From d23dd0d1320a72145d0da1897ddb23f58b0b45b0 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 23 May 2025 15:12:25 +0800 Subject: [PATCH 01/22] initial commit of removing the dependency --- .../emitter/src/code-model-writer.ts | 78 +- .../emitter/src/lib/client-model-builder.ts | 13 +- .../emitter/src/lib/model.ts | 22 +- .../emitter/src/lib/operation-converter.ts | 64 +- .../emitter/src/lib/type-converter.ts | 140 +- .../emitter/src/sdk-context.ts | 19 + .../Serialization/InputApiKeyAuthConverter.cs | 20 +- .../Serialization/InputArrayTypeConverter.cs | 3 +- .../InputBasicServiceMethodConverter.cs | 7 +- .../Serialization/InputConstantConverter.cs | 17 +- .../InputContinuationTokenConverter.cs | 15 +- .../InputDateTimeTypeConverter.cs | 3 +- .../InputDecoratorInfoConverter.cs | 19 +- .../InputDictionaryTypeConverter.cs | 3 +- .../InputDurationTypeConverter.cs | 3 +- .../InputEnumTypeValueConverter.cs | 3 +- .../InputJsonSerializationOptionsConverter.cs | 24 +- .../InputLiteralTypeConverter.cs | 3 +- ...LongRunningPagingServiceMethodConverter.cs | 7 +- ...nputLongRunningServiceMetadataConverter.cs | 22 +- .../InputLongRunningServiceMethodConverter.cs | 7 +- .../Serialization/InputNextLinkConverter.cs | 15 +- .../Serialization/InputOAuth2AuthConverter.cs | 3 +- .../InputOperationResponseConverter.cs | 3 +- .../InputOperationResponseHeaderConverter.cs | 3 +- .../InputPagingServiceMetadataConverter.cs | 22 +- .../InputPagingServiceMethodConverter.cs | 7 +- .../Serialization/InputParameterConverter.cs | 4 +- .../InputPrimitiveTypeConverter.cs | 3 +- .../InputSerializationOptionsConverter.cs | 26 +- .../InputServiceMethodConverter.cs | 22 +- .../InputServiceMethodResponseConverter.cs | 27 +- .../Serialization/InputTypeConverter.cs | 3 +- .../InputXmlNamespaceOptionsConverter.cs | 28 +- .../InputXmlSerializationOptionsConverter.cs | 35 +- .../TypeSpecInputNullableTypeConverter.cs | 3 +- .../Serialization/TypeSpecSerialization.cs | 24 +- .../Serialization/Utf8JsonReaderExtensions.cs | 25 - .../Local/Sample-TypeSpec/tspCodeModel.json | 13107 ++++++++-------- 39 files changed, 6683 insertions(+), 7169 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/code-model-writer.ts b/packages/http-client-csharp/emitter/src/code-model-writer.ts index 41b45ee4177..f7ed80953f2 100644 --- a/packages/http-client-csharp/emitter/src/code-model-writer.ts +++ b/packages/http-client-csharp/emitter/src/code-model-writer.ts @@ -3,7 +3,6 @@ import { UsageFlags } from "@azure-tools/typespec-client-generator-core"; import { resolvePath } from "@typespec/compiler"; -import { PreserveType, stringifyRefs } from "json-serialize-refs"; import { configurationFileName, tspOutputFileName } from "./constants.js"; import { CSharpEmitterContext } from "./sdk-context.js"; import { CodeModel } from "./type/code-model.js"; @@ -23,10 +22,85 @@ export async function writeCodeModel( ) { await context.program.host.writeFile( resolvePath(outputFolder, tspOutputFileName), - prettierOutput(stringifyRefs(codeModel, transformJSONProperties, 1, PreserveType.Objects)), + prettierOutput(JSON.stringify(buildJson(context, codeModel), transformJSONProperties, 2)), ); } +/** + * This function builds a json from code model with refs and ids in it. + * @param context - The CSharp emitter context + * @param codeModel - The code model to build + */ +function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { + const typesToRef = new Set([ + ...context.__typeCache.clients.values(), + ...context.__typeCache.methods.values(), + ...context.__typeCache.operations.values(), + ...context.__typeCache.responses.values(), + ...context.__typeCache.properties.values(), + ...context.__typeCache.types.values(), + ]); + const objectsIds = new Map(); + + return doBuildJson(context, codeModel); + + function doBuildJson(context: CSharpEmitterContext, obj: any): any { + // check if this is a primitive type or null or undefined + if (!obj || typeof obj !== "object") { + return obj; + } + // we switch here for object, arrays and primitives + if (Array.isArray(obj)) { + // array types + return obj.map((item) => doBuildJson(context, item)); + } else { + // this is an object + if (shouldHaveRef(obj)) { + // we will add the $id property to the object if this is the first time we see it + // or returns a $ref if we have seen it before + let id = objectsIds.get(obj); + if (id) { + // we have seen this object before + return { + $ref: id, + }; + } else { + // this is the first time we see this object + id = (objectsIds.size + 1).toString(); + objectsIds.set(obj, id); + return handleObject(context, obj, id); + } + } else { + // this is not an object to ref + return handleObject(context, obj, undefined); + } + } + } + + function handleObject(context: CSharpEmitterContext, obj: any, id: string | undefined): any { + const result: any = id === undefined ? {} : { $id: id }; + + for (const property in obj) { + const v = obj[property]; + result[property] = doBuildJson(context, v); + } + + return result; + } + + function shouldHaveRef(obj: any): boolean { + return typesToRef.has(obj); + // // it needs to be an object + // if (obj === null || typeof obj !== "object" || Array.isArray(obj)) { + // return false; + // } + + // // if it contains a `kind` property, we will include it as a ref + // return "kind" in obj; + // // TODO -- exclude the example objects + } +} + export async function writeConfiguration( context: CSharpEmitterContext, configurations: Configuration, 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 6f4c20edd3f..eead2a615e7 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 @@ -5,8 +5,8 @@ import { UsageFlags } from "@azure-tools/typespec-client-generator-core"; 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 { fromSdkEnums, fromSdkModels } from "./type-converter.js"; import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; /** @@ -18,7 +18,10 @@ import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const sdkPackage = sdkContext.sdkPackage; - navigateModels(sdkContext); + const enums = fromSdkEnums(sdkContext, sdkPackage.enums); + const models = fromSdkModels(sdkContext, sdkPackage.models); + // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. + const constants = Array.from(sdkContext.__typeCache.constants.values()); const sdkApiVersionEnums = sdkPackage.enums.filter((e) => e.usage === UsageFlags.ApiVersionEnum); @@ -69,9 +72,9 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { // if the typespec is changed. name: getClientNamespaceString(sdkContext)!, apiVersions: rootApiVersions, - enums: Array.from(sdkContext.__typeCache.enums.values()), - constants: Array.from(sdkContext.__typeCache.constants.values()), - models: Array.from(sdkContext.__typeCache.models.values()), + enums: enums, + constants: constants, + models: models, clients: inputClients, auth: processServiceAuthentication(sdkContext, sdkPackage), }; diff --git a/packages/http-client-csharp/emitter/src/lib/model.ts b/packages/http-client-csharp/emitter/src/lib/model.ts index b610d800f90..2c29bd8bfc9 100644 --- a/packages/http-client-csharp/emitter/src/lib/model.ts +++ b/packages/http-client-csharp/emitter/src/lib/model.ts @@ -1,15 +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 { - getAllModels, - getClientType, - isAzureCoreModel, -} from "@azure-tools/typespec-client-generator-core"; +import { getClientType } from "@azure-tools/typespec-client-generator-core"; import { Operation, Type, Value } from "@typespec/compiler"; import { CSharpEmitterContext } from "../sdk-context.js"; import { InputType } from "../type/input-type.js"; -import { fromSdkEnumType, fromSdkModelType, fromSdkType } from "./type-converter.js"; +import { fromSdkType } from "./type-converter.js"; export function getDefaultValue(value: Value): any { switch (value.valueKind) { @@ -36,17 +32,3 @@ export function getInputType( const sdkType = getClientType(context, type, operation); return fromSdkType(context, sdkType); } - -export function navigateModels(sdkContext: CSharpEmitterContext) { - for (const type of getAllModels(sdkContext)) { - // we have the name empty check here because TCGC has this issue which impact some downstream packages: https://github.com/Azure/typespec-azure/issues/2417 - if (type.name === "" || isAzureCoreModel(type)) { - continue; - } - if (type.kind === "model") { - fromSdkModelType(sdkContext, type); - } else { - fromSdkEnumType(sdkContext, type); - } - } -} diff --git a/packages/http-client-csharp/emitter/src/lib/operation-converter.ts b/packages/http-client-csharp/emitter/src/lib/operation-converter.ts index 90a5d7d3914..3726c862115 100644 --- a/packages/http-client-csharp/emitter/src/lib/operation-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/operation-converter.ts @@ -48,67 +48,86 @@ import { parseHttpRequestMethod } from "../type/request-method.js"; import { ResponseLocation } from "../type/response-location.js"; import { getExternalDocs, getOperationId } from "./decorators.js"; import { fromSdkHttpExamples } from "./example-converter.js"; -import { fromSdkModelType, fromSdkType } from "./type-converter.js"; +import { fromSdkType } from "./type-converter.js"; import { getClientNamespaceString } from "./utils.js"; export function fromSdkServiceMethod( sdkContext: CSharpEmitterContext, - method: SdkServiceMethod, + sdkMethod: SdkServiceMethod, uri: string, rootApiVersions: string[], ): InputServiceMethod | undefined { - const methodKind = method.kind; + let method = sdkContext.__typeCache.methods.get(sdkMethod); + if (method) { + return method; + } + const methodKind = sdkMethod.kind; switch (methodKind) { case "basic": - return createServiceMethod(sdkContext, method, uri, rootApiVersions); + method = createServiceMethod( + sdkContext, + sdkMethod, + uri, + rootApiVersions, + ); + break; case "paging": const pagingServiceMethod = createServiceMethod( sdkContext, - method, + sdkMethod, uri, rootApiVersions, ); pagingServiceMethod.pagingMetadata = loadPagingServiceMetadata( sdkContext, - method, + sdkMethod, rootApiVersions, uri, ); - return pagingServiceMethod; + method = pagingServiceMethod; + break; case "lro": const lroServiceMethod = createServiceMethod( sdkContext, - method, + sdkMethod, uri, rootApiVersions, ); - lroServiceMethod.lroMetadata = loadLongRunningMetadata(sdkContext, method); - return lroServiceMethod; + lroServiceMethod.lroMetadata = loadLongRunningMetadata(sdkContext, sdkMethod); + method = lroServiceMethod; + break; case "lropaging": const lroPagingMethod = createServiceMethod( sdkContext, - method, + sdkMethod, uri, rootApiVersions, ); - lroPagingMethod.lroMetadata = loadLongRunningMetadata(sdkContext, method); + lroPagingMethod.lroMetadata = loadLongRunningMetadata(sdkContext, sdkMethod); lroPagingMethod.pagingMetadata = loadPagingServiceMetadata( sdkContext, - method, + sdkMethod, rootApiVersions, uri, ); - return lroPagingMethod; - + method = lroPagingMethod; + break; default: sdkContext.logger.reportDiagnostic({ code: "unsupported-service-method", format: { methodKind: methodKind }, target: NoTarget, }); - return undefined; + method = undefined; + break; } + + if (method) { + sdkContext.__typeCache.updateSdkMethodReferences(sdkMethod, method); + } + + return method; } export function fromSdkServiceMethodOperation( @@ -117,6 +136,11 @@ export function fromSdkServiceMethodOperation( uri: string, rootApiVersions: string[], ): InputOperation { + let operation = sdkContext.__typeCache.operations.get(method.operation); + if (operation) { + return operation; + } + let generateConvenience = shouldGenerateConvenient(sdkContext, method.operation.__raw.operation); if (method.operation.verb === "patch" && generateConvenience) { sdkContext.logger.reportDiagnostic({ @@ -129,7 +153,7 @@ export function fromSdkServiceMethodOperation( generateConvenience = false; } - return { + operation = { name: method.name, resourceName: getResourceOperation(sdkContext.program, method.operation.__raw.operation)?.resourceType @@ -155,6 +179,10 @@ export function fromSdkServiceMethodOperation( ? fromSdkHttpExamples(sdkContext, method.operation.examples) : undefined, }; + + sdkContext.__typeCache.updateSdkOperationReferences(method.operation, operation); + + return operation; } export function getParameterDefaultValue( @@ -365,7 +393,7 @@ function loadLongRunningMetadata( statusCodes: method.operation.verb === "delete" ? [204] : [200], bodyType: method.lroMetadata.finalResponse?.envelopeResult !== undefined - ? fromSdkModelType(sdkContext, method.lroMetadata.finalResponse.envelopeResult) + ? fromSdkType(sdkContext, method.lroMetadata.finalResponse.envelopeResult) : undefined, } as OperationResponse, resultPath: method.lroMetadata.finalResponse?.resultPath, diff --git a/packages/http-client-csharp/emitter/src/lib/type-converter.ts b/packages/http-client-csharp/emitter/src/lib/type-converter.ts index 269f975b972..88fa6e0818c 100644 --- a/packages/http-client-csharp/emitter/src/lib/type-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/type-converter.ts @@ -16,7 +16,6 @@ import { SdkModelType, SdkPathParameter, SdkQueryParameter, - SdkTupleType, SdkType, SdkUnionType, UsageFlags, @@ -37,6 +36,7 @@ import { InputLiteralType, InputModelProperty, InputModelType, + InputNullableType, InputPathParameter, InputPrimitiveType, InputProperty, @@ -45,20 +45,76 @@ import { InputUnionType, } from "../type/input-type.js"; -export function fromSdkType(sdkContext: CSharpEmitterContext, sdkType: SdkType): InputType { +export function fromSdkModels( + sdkContext: CSharpEmitterContext, + models: SdkModelType[], +): InputModelType[] { + const inputModels: InputModelType[] = []; + for (const model of models) { + const inputModel = fromSdkType(sdkContext, model); + inputModels.push(inputModel); + } + return inputModels; +} + +export function fromSdkEnums( + sdkContext: CSharpEmitterContext, + enums: SdkEnumType[], +): InputEnumType[] { + const inputEnums: InputEnumType[] = []; + for (const enumType of enums) { + const inputEnum = fromSdkType(sdkContext, enumType); + inputEnums.push(inputEnum); + } + return inputEnums; +} + +// we have this complicated type here to let the caller of fromSdkType could infer the real return type of this function. +type InputReturnType = T extends { kind: "nullable" } + ? InputNullableType + : T extends { kind: "model" } + ? InputModelType + : T extends { kind: "enum" } + ? InputEnumType + : T extends { kind: "enumvalue" } + ? InputEnumValueType + : T extends { kind: "dict" } + ? InputDictionaryType + : T extends { kind: "array" } + ? InputArrayType + : T extends { kind: "constant" } + ? InputLiteralType + : T extends { kind: "union" } + ? InputUnionType + : T extends { kind: "utcDateTime" | "offsetDateTime" } + ? InputDateTimeType + : T extends { kind: "duration" } + ? InputDurationType + : T extends { kind: "tuple" } + ? InputPrimitiveType & { kind: "unknown" } + : T extends { kind: "credential" } + ? InputPrimitiveType & { kind: "unknown" } + : T extends { kind: "endpoint" } + ? InputPrimitiveType & { kind: "string" } + : InputPrimitiveType; + +export function fromSdkType( + sdkContext: CSharpEmitterContext, + sdkType: T, +): InputReturnType { let retVar = sdkContext.__typeCache.types.get(sdkType); if (retVar) { - return retVar; + return retVar as any; } switch (sdkType.kind) { case "nullable": - const inputType = fromSdkType(sdkContext, sdkType.type); - retVar = { + const nullableType: InputNullableType = { kind: "nullable", - type: inputType, + type: fromSdkType(sdkContext, sdkType.type), namespace: sdkType.namespace, }; + retVar = nullableType; break; case "model": retVar = fromSdkModelType(sdkContext, sdkType); @@ -89,7 +145,18 @@ export function fromSdkType(sdkContext: CSharpEmitterContext, sdkType: SdkType): retVar = fromSdkDurationType(sdkContext, sdkType); break; case "tuple": - retVar = fromTupleType(sdkContext, sdkType); + sdkContext.logger.reportDiagnostic({ + code: "unsupported-sdk-type", + format: { sdkType: "tuple" }, + target: sdkType.__raw ?? NoTarget, + }); + const tupleType: InputPrimitiveType = { + kind: "unknown", + name: "tuple", + crossLanguageDefinitionId: "", + decorators: sdkType.decorators, + }; + retVar = tupleType; break; // TODO -- endpoint and credential are handled separately in emitter, since we have specific locations for them in input model. // We can handle unify the way we handle them in the future, probably by chaning the input model schema and do the conversion in generator. @@ -99,20 +166,28 @@ export function fromSdkType(sdkContext: CSharpEmitterContext, sdkType: SdkType): case "credential": sdkContext.logger.reportDiagnostic({ code: "unsupported-sdk-type", - format: { sdkType: "Credential" }, - target: NoTarget, + format: { sdkType: "credential" }, + target: sdkType.__raw ?? NoTarget, }); - return { kind: "unknown", name: "credential", crossLanguageDefinitionId: "" }; + const credentialType: InputPrimitiveType = { + kind: "unknown", + name: "credential", + crossLanguageDefinitionId: "", + decorators: sdkType.decorators, + }; + retVar = credentialType; + break; default: retVar = fromSdkBuiltInType(sdkContext, sdkType); break; } sdkContext.__typeCache.updateSdkTypeReferences(sdkType, retVar); - return retVar; + // we have to cast to any because TypeScript's type narrowing does not automatically infer the return type for conditional types + return retVar as any; } -export function fromSdkModelType( +function fromSdkModelType( sdkContext: CSharpEmitterContext, modelType: SdkModelType, ): InputModelType { @@ -153,7 +228,7 @@ export function fromSdkModelType( : undefined; inputModelType.baseModel = modelType.baseModel - ? fromSdkModelType(sdkContext, modelType.baseModel) + ? fromSdkType(sdkContext, modelType.baseModel) : undefined; inputModelType.properties = properties; @@ -162,7 +237,7 @@ export function fromSdkModelType( const discriminatedSubtypes: Record = {}; for (const key in modelType.discriminatedSubtypes) { const subtype = modelType.discriminatedSubtypes[key]; - discriminatedSubtypes[key] = fromSdkModelType(sdkContext, subtype); + discriminatedSubtypes[key] = fromSdkType(sdkContext, subtype); } inputModelType.discriminatedSubtypes = discriminatedSubtypes; } @@ -293,7 +368,7 @@ export function fromSdkModelType( } } -export function fromSdkEnumType( +function fromSdkEnumType( sdkContext: CSharpEmitterContext, enumType: SdkEnumType, ): InputEnumType { @@ -305,7 +380,7 @@ export function fromSdkEnumType( kind: "enum", name: enumName, crossLanguageDefinitionId: enumType.crossLanguageDefinitionId, - valueType: fromSdkBuiltInType(sdkContext, enumType.valueType), + valueType: fromSdkType(sdkContext, enumType.valueType) as InputPrimitiveType, values: values, access: getAccessOverride(sdkContext, enumType.__raw as any), namespace: enumType.namespace, @@ -319,7 +394,7 @@ export function fromSdkEnumType( }; sdkContext.__typeCache.updateTypeCache(enumType, inputEnumType); for (const v of enumType.values) { - values.push(fromSdkEnumValueType(sdkContext, v)); + values.push(fromSdkType(sdkContext, v)); } } @@ -334,11 +409,9 @@ function fromSdkDateTimeType( kind: dateTimeType.kind, name: dateTimeType.name, encode: dateTimeType.encode, - wireType: fromSdkBuiltInType(sdkContext, dateTimeType.wireType), + wireType: fromSdkType(sdkContext, dateTimeType.wireType), crossLanguageDefinitionId: dateTimeType.crossLanguageDefinitionId, - baseType: dateTimeType.baseType - ? fromSdkDateTimeType(sdkContext, dateTimeType.baseType) - : undefined, + baseType: dateTimeType.baseType ? fromSdkType(sdkContext, dateTimeType.baseType) : undefined, decorators: dateTimeType.decorators, }; } @@ -351,24 +424,13 @@ function fromSdkDurationType( kind: durationType.kind, name: durationType.name, encode: durationType.encode, - wireType: fromSdkBuiltInType(sdkContext, durationType.wireType), + wireType: fromSdkType(sdkContext, durationType.wireType), crossLanguageDefinitionId: durationType.crossLanguageDefinitionId, - baseType: durationType.baseType - ? fromSdkDurationType(sdkContext, durationType.baseType) - : undefined, + baseType: durationType.baseType ? fromSdkType(sdkContext, durationType.baseType) : undefined, decorators: durationType.decorators, }; } -function fromTupleType(sdkContext: CSharpEmitterContext, tupleType: SdkTupleType): InputType { - return { - kind: "unknown", - name: "tuple", - crossLanguageDefinitionId: "", - decorators: tupleType.decorators, - }; -} - function fromSdkBuiltInType( sdkContext: CSharpEmitterContext, builtInType: SdkBuiltInType, @@ -378,9 +440,7 @@ function fromSdkBuiltInType( name: builtInType.name, encode: builtInType.encode !== builtInType.kind ? builtInType.encode : undefined, crossLanguageDefinitionId: builtInType.crossLanguageDefinitionId, - baseType: builtInType.baseType - ? fromSdkBuiltInType(sdkContext, builtInType.baseType) - : undefined, + baseType: builtInType.baseType ? fromSdkType(sdkContext, builtInType.baseType) : undefined, decorators: builtInType.decorators, }; } @@ -416,7 +476,7 @@ function fromSdkConstantType( namespace: "", // constantType.namespace, TODO - constant type now does not have namespace. TCGC will add it later access: undefined, // constantType.access, TODO - constant type now does not have access. TCGC will add it later usage: UsageFlags.None, // constantType.usage, TODO - constant type now does not have usage. TCGC will add it later - valueType: fromSdkBuiltInType(sdkContext, constantType.valueType), + valueType: fromSdkType(sdkContext, constantType.valueType), value: constantType.value, decorators: constantType.decorators, }; @@ -434,8 +494,8 @@ function fromSdkEnumValueType( kind: "enumvalue", name: enumValueType.name, value: enumValueType.value, - valueType: fromSdkBuiltInType(sdkContext, enumValueType.valueType), - enumType: fromSdkEnumType(sdkContext, enumValueType.enumType), + valueType: fromSdkType(sdkContext, enumValueType.valueType), + enumType: fromSdkType(sdkContext, enumValueType.enumType), summary: enumValueType.summary, doc: enumValueType.doc, decorators: enumValueType.decorators, diff --git a/packages/http-client-csharp/emitter/src/sdk-context.ts b/packages/http-client-csharp/emitter/src/sdk-context.ts index d4945dbe993..c63272a357c 100644 --- a/packages/http-client-csharp/emitter/src/sdk-context.ts +++ b/packages/http-client-csharp/emitter/src/sdk-context.ts @@ -10,12 +10,15 @@ import { SdkHttpResponse, SdkModelPropertyType, SdkModelType, + SdkServiceMethod, 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 { InputOperation } from "./type/input-operation.js"; import { InputParameter } from "./type/input-parameter.js"; +import { InputServiceMethod } from "./type/input-service-method.js"; import { InputClient, InputEnumType, @@ -54,6 +57,8 @@ export function createCSharpEmitterContext< class SdkTypeCache { clients: Map, InputClient>; + methods: Map, InputServiceMethod>; + operations: Map; properties: Map; // TODO -- in the near future, we should replace `InputParameter` with those `InputQueryParameter`, etc. responses: Map; types: Map; @@ -64,6 +69,8 @@ class SdkTypeCache { constructor() { this.clients = new Map, InputClient>(); + this.methods = new Map, InputServiceMethod>(); + this.operations = new Map(); this.properties = new Map(); this.responses = new Map(); this.types = new Map(); @@ -78,6 +85,18 @@ class SdkTypeCache { this.crossLanguageDefinitionIds.set(sdkClient.crossLanguageDefinitionId, sdkClient.__raw.type); } + updateSdkMethodReferences( + sdkMethod: SdkServiceMethod, + inputMethod: InputServiceMethod, + ) { + this.methods.set(sdkMethod, inputMethod); + this.crossLanguageDefinitionIds.set(sdkMethod.crossLanguageDefinitionId, sdkMethod.__raw); + } + + updateSdkOperationReferences(sdkOperation: SdkHttpOperation, inputMethod: InputOperation) { + this.operations.set(sdkOperation, inputMethod); + } + updateSdkPropertyReferences( sdkProperty: SdkModelPropertyType, inputProperty: InputParameter | InputProperty, diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs index f70d1d160e7..91c0c0de7af 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; @@ -10,29 +9,26 @@ namespace Microsoft.TypeSpec.Generator.Input { internal class InputApiKeyAuthConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputApiKeyAuthConverter(TypeSpecReferenceHandler referenceHandler) + public InputApiKeyAuthConverter() { - _referenceHandler = referenceHandler; } public override InputApiKeyAuth? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputApiKeyAuth(ref reader, null, options, _referenceHandler.CurrentResolver); + => CreateInputApiKeyAuth(ref reader, options); public override void Write(Utf8JsonWriter writer, InputApiKeyAuth value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputApiKeyAuth CreateInputApiKeyAuth(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputApiKeyAuth CreateInputApiKeyAuth(ref Utf8JsonReader reader, JsonSerializerOptions options) { - var isFirstProperty = id == null; + reader.Read(); // we are at the StartObject token + string? name = null; string? @in = null; string? prefix = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) - || reader.TryReadString("name", ref name) + var isKnownProperty = reader.TryReadString("name", ref name) || reader.TryReadString("in", ref @in) || reader.TryReadString("prefix", ref prefix); if (!isKnownProperty) @@ -44,10 +40,6 @@ private static InputApiKeyAuth CreateInputApiKeyAuth(ref Utf8JsonReader reader, name = name ?? throw new JsonException("ApiKeyAuth must have Name"); var result = new InputApiKeyAuth(name, prefix); // TODO -- when we support other kind of auth, we need to change InputApiKeyAuth type to accept the `In` property. - if (id != null) - { - resolver.AddReference(id, result); - } return result; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputArrayTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputArrayTypeConverter.cs index 3d5af01efb0..b27cfd575dd 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputArrayTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputArrayTypeConverter.cs @@ -25,13 +25,12 @@ public override void Write(Utf8JsonWriter writer, InputArrayType value, JsonSeri public static InputArrayType CreateListType(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null; string? crossLanguageDefinitionId = null; InputType? valueType = null; IReadOnlyList? decorators = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId) || reader.TryReadComplexType("valueType", options, ref valueType) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBasicServiceMethodConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBasicServiceMethodConverter.cs index adedace171d..df3dd60d492 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBasicServiceMethodConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBasicServiceMethodConverter.cs @@ -20,7 +20,7 @@ public InputBasicServiceMethodConverter(TypeSpecReferenceHandler referenceHandle public override InputBasicServiceMethod? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) - ?? CreateInputBasicServiceMethod(ref reader, null, null, options, _referenceHandler.CurrentResolver); + ?? CreateInputBasicServiceMethod(ref reader, null, options, _referenceHandler.CurrentResolver); } public override void Write(Utf8JsonWriter writer, InputBasicServiceMethod value, JsonSerializerOptions options) @@ -29,11 +29,10 @@ public override void Write(Utf8JsonWriter writer, InputBasicServiceMethod value, public static InputBasicServiceMethod CreateInputBasicServiceMethod( ref Utf8JsonReader reader, string? id, - string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; + string? name = null; string? accessibility = null; string[]? apiVersions = null; string? doc = null; @@ -50,7 +49,7 @@ public static InputBasicServiceMethod CreateInputBasicServiceMethod( while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("accessibility", ref accessibility) || reader.TryReadComplexType("apiVersions", options, ref apiVersions) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs index 99732d590ac..822828ecf40 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs @@ -9,25 +9,22 @@ namespace Microsoft.TypeSpec.Generator.Input { internal class InputConstantConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputConstantConverter(TypeSpecReferenceHandler referenceHandler) + public InputConstantConverter() { - _referenceHandler = referenceHandler; } public override InputConstant Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputConstant(ref reader, null, options, _referenceHandler.CurrentResolver); + => CreateInputConstant(ref reader, options); public override void Write(Utf8JsonWriter writer, InputConstant value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - public static InputConstant CreateInputConstant(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + public static InputConstant CreateInputConstant(ref Utf8JsonReader reader, JsonSerializerOptions options) { - var isFirstProperty = id == null; + reader.Read(); // we are at the StartObject token + InputType? type = null; - reader.TryReadReferenceId(ref isFirstProperty, ref id); if (!reader.TryReadComplexType("type", options, ref type)) { throw new JsonException("Must provide type ahead of value."); @@ -39,10 +36,6 @@ public static InputConstant CreateInputConstant(ref Utf8JsonReader reader, strin value = value ?? throw new JsonException("InputConstant must have value"); var constant = new InputConstant(value, type); - if (id != null) - { - resolver.AddReference(id, constant); - } return constant; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs index 596ec1d4933..9730e1d91ad 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs @@ -10,25 +10,19 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputContinuationTokenConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputContinuationTokenConverter(TypeSpecReferenceHandler referenceHandler) + public InputContinuationTokenConverter() { - _referenceHandler = referenceHandler; } public override InputContinuationToken? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateContinuationToken(ref reader, options, _referenceHandler.CurrentResolver); + => CreateContinuationToken(ref reader, options); public override void Write(Utf8JsonWriter writer, InputContinuationToken value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - internal static InputContinuationToken CreateContinuationToken(ref Utf8JsonReader reader, JsonSerializerOptions options, ReferenceResolver resolver) + internal static InputContinuationToken CreateContinuationToken(ref Utf8JsonReader reader, JsonSerializerOptions options) { - string? id = null; - reader.TryReadReferenceId(ref id); - - id = id ?? throw new JsonException(); + reader.Read(); // we are at the StartObject token InputParameter? parameter = null; IReadOnlyList? responseSegments = null; @@ -52,7 +46,6 @@ internal static InputContinuationToken CreateContinuationToken(ref Utf8JsonReade responseSegments ?? throw new JsonException("Continuation token response segments must be defined."), responseLocation ?? throw new JsonException("Continuation token response location must be defined.")); - resolver.AddReference(id, continuationToken); return continuationToken; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs index 3bfd93b6684..1ebb73d5971 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs @@ -24,7 +24,6 @@ public override void Write(Utf8JsonWriter writer, InputDateTimeType value, JsonS public static InputDateTimeType CreateDateTimeType(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null; string? crossLanguageDefinitionId = null; string? encode = null; InputPrimitiveType? wireType = null; @@ -33,7 +32,7 @@ public static InputDateTimeType CreateDateTimeType(ref Utf8JsonReader reader, st while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId) || reader.TryReadString("encode", ref encode) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs index 611f322c884..956b3a447d6 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs @@ -11,28 +11,25 @@ namespace AutoRest.CSharp.Common.Input { internal class InputDecoratorInfoConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputDecoratorInfoConverter(TypeSpecReferenceHandler referenceHandler) + public InputDecoratorInfoConverter() { - _referenceHandler = referenceHandler; } public override InputDecoratorInfo? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateDecoratorInfo(ref reader, null, options, _referenceHandler.CurrentResolver); + => CreateDecoratorInfo(ref reader, options); public override void Write(Utf8JsonWriter writer, InputDecoratorInfo value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputDecoratorInfo? CreateDecoratorInfo(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputDecoratorInfo? CreateDecoratorInfo(ref Utf8JsonReader reader, JsonSerializerOptions options) { - var isFirstProperty = id == null; + reader.Read(); // we are at the StartObject token + string? name = null; IReadOnlyDictionary? arguments = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) - || reader.TryReadString("name", ref name) + var isKnownProperty = reader.TryReadString("name", ref name) || reader.TryReadStringBinaryDataDictionary("arguments", ref arguments); if (!isKnownProperty) @@ -43,10 +40,6 @@ public override void Write(Utf8JsonWriter writer, InputDecoratorInfo value, Json reader.Read(); var decoratorInfo = new InputDecoratorInfo(name ?? throw new JsonException("InputDecoratorInfo must have name"), arguments); - if (id != null) - { - resolver.AddReference(id, decoratorInfo); - } return decoratorInfo; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDictionaryTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDictionaryTypeConverter.cs index 521f73cb546..4a7737426a6 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDictionaryTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDictionaryTypeConverter.cs @@ -25,13 +25,12 @@ public override void Write(Utf8JsonWriter writer, InputDictionaryType value, Jso public static InputDictionaryType CreateDictionaryType(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null; InputType? keyType = null; InputType? valueType = null; IReadOnlyList? decorators = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadComplexType("keyType", options, ref keyType) || reader.TryReadComplexType("valueType", options, ref valueType) || reader.TryReadComplexType("decorators", options, ref decorators); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs index a4e000aa37b..eadea9a249e 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs @@ -24,7 +24,6 @@ public override void Write(Utf8JsonWriter writer, InputDurationType value, JsonS public static InputDurationType CreateDurationType(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null; string? crossLanguageDefinitionId = null; string? encode = null; InputPrimitiveType? wireType = null; @@ -33,7 +32,7 @@ public static InputDurationType CreateDurationType(ref Utf8JsonReader reader, st while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId) || reader.TryReadString("encode", ref encode) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEnumTypeValueConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEnumTypeValueConverter.cs index f9da615381e..5aed48c28d3 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEnumTypeValueConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEnumTypeValueConverter.cs @@ -25,7 +25,6 @@ public override void Write(Utf8JsonWriter writer, InputEnumTypeValue value, Json internal static InputEnumTypeValue CreateEnumTypeValue(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null; JsonElement? rawValue = null; InputPrimitiveType? valueType = null; InputEnumType? enumType = null; @@ -34,7 +33,7 @@ internal static InputEnumTypeValue CreateEnumTypeValue(ref Utf8JsonReader reader IReadOnlyList? decorators = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadComplexType("value", options, ref rawValue) || reader.TryReadComplexType("valueType", options, ref valueType) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs index 84097881eb5..79b7e5c8461 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs @@ -9,31 +9,19 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputJsonSerializationOptionsConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputJsonSerializationOptionsConverter(TypeSpecReferenceHandler referenceHandler) + public InputJsonSerializationOptionsConverter() { - _referenceHandler = referenceHandler; } public override InputJsonSerializationOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? ReadInputJsonSerializationOptions(ref reader, null, options, _referenceHandler.CurrentResolver); + => ReadInputJsonSerializationOptions(ref reader, options); public override void Write(Utf8JsonWriter writer, InputJsonSerializationOptions value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputJsonSerializationOptions ReadInputJsonSerializationOptions(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputJsonSerializationOptions ReadInputJsonSerializationOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - if (id == null) - { - reader.TryReadReferenceId(ref id); - } - - id = id ?? throw new JsonException(); - - // create an empty options to resolve circular references - var jsonOptions = new InputJsonSerializationOptions(null!); - resolver.AddReference(id, jsonOptions); + reader.Read(); // we are at the StartObject token string? name = null; @@ -47,9 +35,7 @@ private static InputJsonSerializationOptions ReadInputJsonSerializationOptions(r } } - jsonOptions.Name = name ?? throw new JsonException("JsonSerializationOptions must have name"); - - return jsonOptions; + return new InputJsonSerializationOptions(name ?? throw new JsonException("JsonSerializationOptions must have name")); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLiteralTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLiteralTypeConverter.cs index 7b0acaf7dd7..138e2567674 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLiteralTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLiteralTypeConverter.cs @@ -24,7 +24,6 @@ public override void Write(Utf8JsonWriter writer, InputLiteralType value, JsonSe public static InputLiteralType CreateInputLiteralType(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; string? ns = null; JsonElement? rawValue = null; InputPrimitiveType? valueType = null; @@ -32,7 +31,7 @@ public static InputLiteralType CreateInputLiteralType(ref Utf8JsonReader reader, while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("namespace", ref ns) || reader.TryReadComplexType("value", options, ref rawValue) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningPagingServiceMethodConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningPagingServiceMethodConverter.cs index f6f6b3326bc..9e77b121ccf 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningPagingServiceMethodConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningPagingServiceMethodConverter.cs @@ -20,7 +20,7 @@ public InputLongRunningPagingServiceMethodConverter(TypeSpecReferenceHandler ref public override InputLongRunningPagingServiceMethod? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) - ?? CreateInputLongRunningPagingServiceMethod(ref reader, null, null, options, _referenceHandler.CurrentResolver); + ?? CreateInputLongRunningPagingServiceMethod(ref reader, null, options, _referenceHandler.CurrentResolver); } public override void Write(Utf8JsonWriter writer, InputLongRunningPagingServiceMethod value, JsonSerializerOptions options) @@ -29,11 +29,10 @@ public override void Write(Utf8JsonWriter writer, InputLongRunningPagingServiceM public static InputLongRunningPagingServiceMethod CreateInputLongRunningPagingServiceMethod( ref Utf8JsonReader reader, string? id, - string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; + string? name = null; string? accessibility = null; string[]? apiVersions = null; string? doc = null; @@ -52,7 +51,7 @@ public static InputLongRunningPagingServiceMethod CreateInputLongRunningPagingSe while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("accessibility", ref accessibility) || reader.TryReadComplexType("apiVersions", options, ref apiVersions) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs index 968a6115d94..7ae3c82d552 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs @@ -9,31 +9,26 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputLongRunningServiceMetadataConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputLongRunningServiceMetadataConverter(TypeSpecReferenceHandler referenceHandler) + public InputLongRunningServiceMetadataConverter() { - _referenceHandler = referenceHandler; } public override InputLongRunningServiceMetadata? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateOperationLongRunning(ref reader, null, options); - } + => CreateOperationLongRunning(ref reader, options); public override void Write(Utf8JsonWriter writer, InputLongRunningServiceMetadata value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private InputLongRunningServiceMetadata CreateOperationLongRunning(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options) + private InputLongRunningServiceMetadata CreateOperationLongRunning(ref Utf8JsonReader reader, JsonSerializerOptions options) { - var isFirstProperty = id == null; + reader.Read(); // we are at the StartObject token + int finalStateVia = default; InputOperationResponse? finalResponse = null; string? resultPath = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) - || reader.TryReadInt32("finalStateVia", ref finalStateVia) + var isKnownProperty = reader.TryReadInt32("finalStateVia", ref finalStateVia) || reader.TryReadComplexType("finalResponse", options, ref finalResponse) || reader.TryReadString("resultPath", ref resultPath); @@ -45,11 +40,6 @@ private InputLongRunningServiceMetadata CreateOperationLongRunning(ref Utf8JsonR var result = new InputLongRunningServiceMetadata(finalStateVia, finalResponse ?? new InputOperationResponse(), resultPath); - if (id != null) - { - _referenceHandler.CurrentResolver.AddReference(id, result); - } - return result; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMethodConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMethodConverter.cs index d5fd2f03418..1e154731c06 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMethodConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMethodConverter.cs @@ -20,7 +20,7 @@ public InputLongRunningServiceMethodConverter(TypeSpecReferenceHandler reference public override InputLongRunningServiceMethod? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) - ?? CreateInputLongRunningServiceMethod(ref reader, null, null, options, _referenceHandler.CurrentResolver); + ?? CreateInputLongRunningServiceMethod(ref reader, null, options, _referenceHandler.CurrentResolver); } public override void Write(Utf8JsonWriter writer, InputLongRunningServiceMethod value, JsonSerializerOptions options) @@ -29,11 +29,10 @@ public override void Write(Utf8JsonWriter writer, InputLongRunningServiceMethod public static InputLongRunningServiceMethod CreateInputLongRunningServiceMethod( ref Utf8JsonReader reader, string? id, - string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; + string? name = null; string? accessibility = null; string[]? apiVersions = null; string? doc = null; @@ -51,7 +50,7 @@ public static InputLongRunningServiceMethod CreateInputLongRunningServiceMethod( while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("accessibility", ref accessibility) || reader.TryReadComplexType("apiVersions", options, ref apiVersions) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs index 6761e06d5da..41a95da745c 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs @@ -10,25 +10,19 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputNextLinkConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputNextLinkConverter(TypeSpecReferenceHandler referenceHandler) + public InputNextLinkConverter() { - _referenceHandler = referenceHandler; } public override InputNextLink? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateNextLink(ref reader, options, _referenceHandler.CurrentResolver); + => CreateNextLink(ref reader, options); public override void Write(Utf8JsonWriter writer, InputNextLink value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - internal static InputNextLink CreateNextLink(ref Utf8JsonReader reader, JsonSerializerOptions options, ReferenceResolver resolver) + internal static InputNextLink CreateNextLink(ref Utf8JsonReader reader, JsonSerializerOptions options) { - string? id = null; - reader.TryReadReferenceId(ref id); - - id = id ?? throw new JsonException(); + reader.Read(); // we are at the StartObject token InputOperation? operation = null; IReadOnlyList? responseSegments = null; @@ -51,7 +45,6 @@ internal static InputNextLink CreateNextLink(ref Utf8JsonReader reader, JsonSeri operation, responseSegments ?? throw new JsonException("NextLink response segments must be defined."), responseLocation ?? throw new JsonException("NextLink response location must be defined.")); - resolver.AddReference(id, nextLink); return nextLink; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs index f1dfcf69ff4..d377506dcbb 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs @@ -25,11 +25,10 @@ public override void Write(Utf8JsonWriter writer, InputOAuth2Auth value, JsonSer private static InputOAuth2Auth CreateInputOAuth2Auth(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null; IReadOnlyList? scopes = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadComplexType("scopes", options, ref scopes); if (!isKnownProperty) { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs index 5c291110e82..66c4a9178c4 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs @@ -27,7 +27,6 @@ public override void Write(Utf8JsonWriter writer, InputOperationResponse value, private InputOperationResponse CreateOperationResponse(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options) { - var isFirstProperty = id == null; IReadOnlyList? statusCodes = null; InputType? bodyType = null; IReadOnlyList? headers = null; @@ -35,7 +34,7 @@ private InputOperationResponse CreateOperationResponse(ref Utf8JsonReader reader IReadOnlyList? contentTypes = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadComplexType("statusCodes", options, ref statusCodes) || reader.TryReadComplexType("bodyType", options, ref bodyType) || reader.TryReadComplexType("headers", options, ref headers) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs index 5a9084f83ce..16a198ea36b 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs @@ -26,7 +26,6 @@ public override void Write(Utf8JsonWriter writer, InputOperationResponseHeader v private InputOperationResponseHeader CreateOperationResponseHeader(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options) { - var isFirstProperty = id == null; string? name = null; string? nameInResponse = null; string? summary = null; @@ -34,7 +33,7 @@ private InputOperationResponseHeader CreateOperationResponseHeader(ref Utf8JsonR InputType? type = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("nameInResponse", ref nameInResponse) || reader.TryReadString("summary", ref summary) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs index 3bdffca1822..13bd5ac44e2 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs @@ -10,29 +10,26 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputPagingServiceMetadataConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputPagingServiceMetadataConverter(TypeSpecReferenceHandler referenceHandler) + public InputPagingServiceMetadataConverter() { - _referenceHandler = referenceHandler; } public override InputPagingServiceMetadata? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputPagingServiceMetadata(ref reader, null, options, _referenceHandler.CurrentResolver); + => CreateInputPagingServiceMetadata(ref reader, options); public override void Write(Utf8JsonWriter writer, InputPagingServiceMetadata value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputPagingServiceMetadata CreateInputPagingServiceMetadata(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputPagingServiceMetadata CreateInputPagingServiceMetadata(ref Utf8JsonReader reader, JsonSerializerOptions options) { - var isFirstProperty = id == null; + reader.Read(); // we are at the StartObject token + IReadOnlyList? itemPropertySegments = null; InputNextLink? nextLink = null; InputContinuationToken? continuationToken = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) - || reader.TryReadComplexType("itemPropertySegments", options, ref itemPropertySegments) + var isKnownProperty = reader.TryReadComplexType("itemPropertySegments", options, ref itemPropertySegments) || reader.TryReadComplexType("nextLink", options, ref nextLink) || reader.TryReadComplexType("continuationToken", options, ref continuationToken); if (!isKnownProperty) @@ -41,12 +38,7 @@ private static InputPagingServiceMetadata CreateInputPagingServiceMetadata(ref U } } - var result = new InputPagingServiceMetadata(itemPropertySegments ?? [], nextLink, continuationToken); - if (id != null) - { - resolver.AddReference(id, result); - } - return result; + return new InputPagingServiceMetadata(itemPropertySegments ?? [], nextLink, continuationToken); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMethodConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMethodConverter.cs index 198e420c16c..eb18418d919 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMethodConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMethodConverter.cs @@ -20,7 +20,7 @@ public InputPagingServiceMethodConverter(TypeSpecReferenceHandler referenceHandl public override InputPagingServiceMethod? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) - ?? CreateInputPagingServiceMethod(ref reader, null, null, options, _referenceHandler.CurrentResolver); + ?? CreateInputPagingServiceMethod(ref reader, null, options, _referenceHandler.CurrentResolver); } public override void Write(Utf8JsonWriter writer, InputPagingServiceMethod value, JsonSerializerOptions options) @@ -29,11 +29,10 @@ public override void Write(Utf8JsonWriter writer, InputPagingServiceMethod value public static InputPagingServiceMethod CreateInputPagingServiceMethod( ref Utf8JsonReader reader, string? id, - string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; + string? name = null; string? accessibility = null; string[]? apiVersions = null; string? doc = null; @@ -51,7 +50,7 @@ public static InputPagingServiceMethod CreateInputPagingServiceMethod( while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("accessibility", ref accessibility) || reader.TryReadComplexType("apiVersions", options, ref apiVersions) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs index 8d76c47d7c1..c204f0b29f4 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs @@ -27,8 +27,6 @@ public override void Write(Utf8JsonWriter writer, InputParameter value, JsonSeri public static InputParameter CreateInputParameter(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; - string? nameInRequest = null; string? summary = null; string? doc = null; @@ -47,7 +45,7 @@ public static InputParameter CreateInputParameter(ref Utf8JsonReader reader, str IReadOnlyList? decorators = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadString("nameInRequest", ref nameInRequest) || reader.TryReadString("summary", ref summary) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPrimitiveTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPrimitiveTypeConverter.cs index a74af259e4f..61c6b7e6cd2 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPrimitiveTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPrimitiveTypeConverter.cs @@ -25,14 +25,13 @@ public override void Write(Utf8JsonWriter writer, InputPrimitiveType value, Json public static InputPrimitiveType CreatePrimitiveType(ref Utf8JsonReader reader, string? id, string? kind, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && kind == null && name == null; string? crossLanguageDefinitionId = null; string? encode = null; InputPrimitiveType? baseType = null; IReadOnlyList? decorators = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("kind", ref kind) || reader.TryReadString("name", ref name) || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs index 2d6ab0bed2f..36835119ce1 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs @@ -9,31 +9,19 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputSerializationOptionsConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputSerializationOptionsConverter(TypeSpecReferenceHandler referenceHandler) + public InputSerializationOptionsConverter() { - _referenceHandler = referenceHandler; } public override InputSerializationOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? ReadInputSerializationOptions(ref reader, null, options, _referenceHandler.CurrentResolver); + => ReadInputSerializationOptions(ref reader, options); public override void Write(Utf8JsonWriter writer, InputSerializationOptions value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputSerializationOptions ReadInputSerializationOptions(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputSerializationOptions ReadInputSerializationOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - if (id == null) - { - reader.TryReadReferenceId(ref id); - } - - id = id ?? throw new JsonException(); - - // create an empty serialization options to resolve circular references - var serializationOptions = new InputSerializationOptions(); - resolver.AddReference(id, serializationOptions); + reader.Read(); // we are at the StartObject token InputJsonSerializationOptions? json = null; InputXmlSerializationOptions? xml = null; @@ -51,11 +39,7 @@ private static InputSerializationOptions ReadInputSerializationOptions(ref Utf8J } } - serializationOptions.Json = json; - serializationOptions.Xml = xml; - serializationOptions.Multipart = multipart; - - return serializationOptions; + return new InputSerializationOptions(json, xml, multipart); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs index f58f26d7850..8f52ad9dcf1 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs @@ -32,31 +32,29 @@ private InputServiceMethod CreateInputServiceMethod(ref Utf8JsonReader reader, J { string? id = null; string? kind = null; - string? name = null; InputServiceMethod? method = null; - var isFirstProperty = true; while (reader.TokenType != JsonTokenType.EndObject) { - var isIdOrKind = reader.TryReadReferenceId(ref isFirstProperty, ref id) || reader.TryReadString("kind", ref kind); + var isIdOrKind = reader.TryReadReferenceId(ref id) || reader.TryReadString("kind", ref kind); if (isIdOrKind) { continue; } - method = CreateDerivedType(ref reader, id, kind, name, options); + method = CreateDerivedType(ref reader, id, kind, options); } - return method ?? CreateDerivedType(ref reader, id, kind, name, options); + return method ?? CreateDerivedType(ref reader, id, kind, options); } - private InputServiceMethod CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, string? name, JsonSerializerOptions options) => kind switch + private InputServiceMethod CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, JsonSerializerOptions options) => kind switch { - null => throw new JsonException($"InputType (id: '{id}', name: '{name}') must have a 'Kind' property"), - BasicKind => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, name, options, _referenceHandler.CurrentResolver), - PagingKind => InputPagingServiceMethodConverter.CreateInputPagingServiceMethod(ref reader, id, name, options, _referenceHandler.CurrentResolver), - LongRunningKind => InputLongRunningServiceMethodConverter.CreateInputLongRunningServiceMethod(ref reader, id, name, options, _referenceHandler.CurrentResolver), - LongRunningPagingKind => InputLongRunningPagingServiceMethodConverter.CreateInputLongRunningPagingServiceMethod(ref reader, id, name, options, _referenceHandler.CurrentResolver), - _ => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, name, options, _referenceHandler.CurrentResolver), + null => throw new JsonException($"InputType (id: '{id}') must have a 'Kind' property"), + BasicKind => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), + PagingKind => InputPagingServiceMethodConverter.CreateInputPagingServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), + LongRunningKind => InputLongRunningServiceMethodConverter.CreateInputLongRunningServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), + LongRunningPagingKind => InputLongRunningPagingServiceMethodConverter.CreateInputLongRunningPagingServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), + _ => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), }; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs index 83261ab55a9..ed793e4df2a 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs @@ -10,38 +10,26 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputServiceMethodResponseConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputServiceMethodResponseConverter (TypeSpecReferenceHandler referenceHandler) + public InputServiceMethodResponseConverter() { - _referenceHandler = referenceHandler; } public override InputServiceMethodResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? ReadInputServiceMethodResponse(ref reader, null, options, _referenceHandler.CurrentResolver); + => ReadInputServiceMethodResponse(ref reader, options); public override void Write(Utf8JsonWriter writer, InputServiceMethodResponse value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputServiceMethodResponse ReadInputServiceMethodResponse(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputServiceMethodResponse ReadInputServiceMethodResponse(ref Utf8JsonReader reader, JsonSerializerOptions options) { - if (id == null) - { - reader.TryReadReferenceId(ref id); - } + reader.Read(); // we are at the StartObject token - id = id ?? throw new JsonException(); - var response = new InputServiceMethodResponse(); - resolver.AddReference(id, response); - - var isFirstProperty = true; InputType? type = null; IReadOnlyList? resultSegments = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) - || reader.TryReadComplexType("type", options, ref type) + var isKnownProperty = reader.TryReadComplexType("type", options, ref type) || reader.TryReadComplexType("resultSegments", options, ref resultSegments); if (!isKnownProperty) @@ -50,10 +38,7 @@ private static InputServiceMethodResponse ReadInputServiceMethodResponse(ref Utf } } - response.Type = type; - response.ResultSegments = resultSegments; - - return response; + return new InputServiceMethodResponse(type, resultSegments); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs index c664d1a6764..6042a5525d2 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs @@ -30,10 +30,9 @@ private InputType CreateInputType(ref Utf8JsonReader reader, JsonSerializerOptio string? kind = null; string? name = null; InputType? result = null; - var isFirstProperty = true; while (reader.TokenType != JsonTokenType.EndObject) { - var isIdOrNameOrKind = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isIdOrNameOrKind = reader.TryReadReferenceId(ref id) || reader.TryReadString("kind", ref kind) || reader.TryReadString("name", ref name); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs index 6ddec231e23..fa41705f8a2 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs @@ -9,31 +9,19 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputXmlNamespaceOptionsConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputXmlNamespaceOptionsConverter(TypeSpecReferenceHandler referenceHandler) + public InputXmlNamespaceOptionsConverter() { - _referenceHandler = referenceHandler; } public override InputXmlNamespaceOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? ReadInputXmlNamespaceOptions(ref reader, null, options, _referenceHandler.CurrentResolver); + => ReadInputXmlNamespaceOptions(ref reader, options); public override void Write(Utf8JsonWriter writer, InputXmlNamespaceOptions value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputXmlNamespaceOptions ReadInputXmlNamespaceOptions(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputXmlNamespaceOptions ReadInputXmlNamespaceOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - if (id == null) - { - reader.TryReadReferenceId(ref id); - } - - id = id ?? throw new JsonException(); - - // create an empty options to resolve circular references - var nsOptions = new InputXmlNamespaceOptions(null!, null!); - resolver.AddReference(id, nsOptions); + reader.Read(); // we are at the StartObject token string? ns = null; string? prefix = null; @@ -49,10 +37,10 @@ private static InputXmlNamespaceOptions ReadInputXmlNamespaceOptions(ref Utf8Jso } } - nsOptions.Namespace = ns ?? throw new JsonException("XmlNamespaceOptions must have namespace"); - nsOptions.Prefix = prefix ?? throw new JsonException("XmlNamespaceOptions must have prefix"); - - return nsOptions; + return new InputXmlNamespaceOptions( + ns ?? throw new JsonException("XmlNamespaceOptions must have namespace"), + prefix ?? throw new JsonException("XmlNamespaceOptions must have prefix") + ); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs index e27a14777fd..c383bab715d 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs @@ -9,31 +9,19 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputXmlSerializationOptionsConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputXmlSerializationOptionsConverter(TypeSpecReferenceHandler referenceHandler) + public InputXmlSerializationOptionsConverter() { - _referenceHandler = referenceHandler; } public override InputXmlSerializationOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? ReadInputXmlSerializationOptions(ref reader, null, options, _referenceHandler.CurrentResolver); + => ReadInputXmlSerializationOptions(ref reader, options); public override void Write(Utf8JsonWriter writer, InputXmlSerializationOptions value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputXmlSerializationOptions ReadInputXmlSerializationOptions(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputXmlSerializationOptions ReadInputXmlSerializationOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - if (id == null) - { - reader.TryReadReferenceId(ref id); - } - - id = id ?? throw new JsonException(); - - // create an empty options to resolve circular references - var xmlOptions = new InputXmlSerializationOptions(null!); - resolver.AddReference(id, xmlOptions); + reader.Read(); // we are at the StartObject token string? name = null; bool? attribute = null; @@ -57,14 +45,13 @@ private static InputXmlSerializationOptions ReadInputXmlSerializationOptions(ref } } - xmlOptions.Name = name ?? throw new JsonException("XmlSerializationOptions must have name"); - xmlOptions.Attribute = attribute; - xmlOptions.Namespace = ns; - xmlOptions.Unwrapped = unwrapped; - xmlOptions.ItemsName = itemsName; - xmlOptions.ItemsNamespace = itemsNs; - - return xmlOptions; + return new InputXmlSerializationOptions( + name ?? throw new JsonException("XmlSerializationOptions must have name"), + attribute, + ns, + unwrapped, + itemsName, + itemsNs); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNullableTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNullableTypeConverter.cs index 72938a68563..815a946dc21 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNullableTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNullableTypeConverter.cs @@ -24,12 +24,11 @@ public override void Write(Utf8JsonWriter writer, InputNullableType value, JsonS public static InputNullableType CreateNullableType(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { - var isFirstProperty = id == null && name == null; InputType? valueType = null; IReadOnlyList? decorators = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref isFirstProperty, ref id) + var isKnownProperty = reader.TryReadReferenceId(ref id) || reader.TryReadString("name", ref name) || reader.TryReadComplexType("type", options, ref valueType) || reader.TryReadComplexType("decorators", options, ref decorators); 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 33e7421417f..f53ff38eac8 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 @@ -31,13 +31,13 @@ public static class TypeSpecSerialization new InputEnumTypeValueConverter(referenceHandler), new InputModelTypeConverter(referenceHandler), new InputModelPropertyConverter(referenceHandler), - new InputConstantConverter(referenceHandler), + new InputConstantConverter(), new InputLiteralTypeConverter(referenceHandler), new InputUnionTypeConverter(referenceHandler), new InputClientConverter(referenceHandler), new InputOperationConverter(referenceHandler), - new InputNextLinkConverter(referenceHandler), - new InputContinuationTokenConverter(referenceHandler), + new InputNextLinkConverter(), + new InputContinuationTokenConverter(), new InputParameterConverter(referenceHandler), new InputPrimitiveTypeConverter(referenceHandler), new InputOperationResponseConverter(referenceHandler), @@ -45,21 +45,21 @@ public static class TypeSpecSerialization new InputDateTimeTypeConverter(referenceHandler), new InputDurationTypeConverter(referenceHandler), new InputAuthConverter(referenceHandler), - new InputApiKeyAuthConverter(referenceHandler), + new InputApiKeyAuthConverter(), new InputOAuth2AuthConverter(referenceHandler), - new InputDecoratorInfoConverter(referenceHandler), - new InputSerializationOptionsConverter(referenceHandler), - new InputJsonSerializationOptionsConverter(referenceHandler), - new InputXmlSerializationOptionsConverter(referenceHandler), - new InputXmlNamespaceOptionsConverter(referenceHandler), + new InputDecoratorInfoConverter(), + new InputSerializationOptionsConverter(), + new InputJsonSerializationOptionsConverter(), + new InputXmlSerializationOptionsConverter(), + new InputXmlNamespaceOptionsConverter(), new InputServiceMethodConverter(referenceHandler), new InputBasicServiceMethodConverter(referenceHandler), new InputPagingServiceMethodConverter(referenceHandler), - new InputPagingServiceMetadataConverter(referenceHandler), + new InputPagingServiceMetadataConverter(), new InputLongRunningServiceMethodConverter(referenceHandler), - new InputLongRunningServiceMetadataConverter(referenceHandler), + new InputLongRunningServiceMetadataConverter(), new InputLongRunningPagingServiceMethodConverter(referenceHandler), - new InputServiceMethodResponseConverter(referenceHandler), + new InputServiceMethodResponseConverter(), new InputPropertyConverter(referenceHandler), new InputHeaderParameterConverter(referenceHandler), new InputQueryParameterConverter(referenceHandler), diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/Utf8JsonReaderExtensions.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/Utf8JsonReaderExtensions.cs index 40fbe8bfd68..f02980b787d 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/Utf8JsonReaderExtensions.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/Utf8JsonReaderExtensions.cs @@ -28,31 +28,6 @@ public static bool TryReadReferenceId(this ref Utf8JsonReader reader, ref string return true; } - public static bool TryReadReferenceId(this ref Utf8JsonReader reader, ref bool isFirstProperty, ref string? value) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException(); - } - - if (reader.GetString() != "$id") - { - return false; - } - - if (!isFirstProperty) - { - throw new JsonException("$id should be the first defined property"); - } - - isFirstProperty = false; - - reader.Read(); - value = reader.GetString() ?? throw new JsonException(); - reader.Read(); - return true; - } - public static bool TryReadNullableBoolean(this ref Utf8JsonReader reader, string propertyName, ref bool? value) { if (reader.TokenType != JsonTokenType.PropertyName) diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index 61db90320d9..d6878d9193c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -1,6947 +1,6464 @@ { - "$id": "1", - "name": "SampleTypeSpec", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "StringFixedEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.StringFixedEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "SampleTypeSpec", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "One", - "value": "1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "StringFixedEnum", + "crossLanguageDefinitionId": "SampleTypeSpec.StringFixedEnum", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "One", + "value": "1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "Two", + "value": "2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "Four", + "value": "4", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "Simple enum", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] }, { - "$id": "6", - "kind": "enumvalue", - "name": "Two", - "value": "2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "6", + "kind": "enum", + "name": "StringExtensibleEnum", + "crossLanguageDefinitionId": "SampleTypeSpec.StringExtensibleEnum", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "8", + "kind": "enumvalue", + "name": "One", + "value": "1", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "Two", + "value": "2", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + }, + { + "$id": "10", + "kind": "enumvalue", + "name": "Four", + "value": "4", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "Extensible enum", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] }, { - "$id": "8", - "kind": "enumvalue", - "name": "Four", - "value": "4", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Simple enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "10", - "kind": "enum", - "name": "StringExtensibleEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.StringExtensibleEnum", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "name": "One", - "value": "1", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "11", + "kind": "enum", + "name": "IntExtensibleEnum", + "crossLanguageDefinitionId": "SampleTypeSpec.IntExtensibleEnum", + "valueType": { + "$id": "12", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "values": [ + { + "$id": "13", + "kind": "enumvalue", + "name": "One", + "value": 1, + "valueType": { + "$ref": "12" + }, + "enumType": { + "$ref": "11" + }, + "decorators": [] + }, + { + "$id": "14", + "kind": "enumvalue", + "name": "Two", + "value": 2, + "valueType": { + "$ref": "12" + }, + "enumType": { + "$ref": "11" + }, + "decorators": [] + }, + { + "$id": "15", + "kind": "enumvalue", + "name": "Four", + "value": 4, + "valueType": { + "$ref": "12" + }, + "enumType": { + "$ref": "11" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "Int based extensible enum", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] }, { - "$id": "14", - "kind": "enumvalue", - "name": "Two", - "value": "2", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "16", + "kind": "enum", + "name": "FloatExtensibleEnum", + "crossLanguageDefinitionId": "SampleTypeSpec.FloatExtensibleEnum", + "valueType": { + "$id": "17", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "values": [ + { + "$id": "18", + "kind": "enumvalue", + "name": "OneDotOne", + "value": 1.1, + "valueType": { + "$ref": "17" + }, + "enumType": { + "$ref": "16" + }, + "decorators": [] + }, + { + "$id": "19", + "kind": "enumvalue", + "name": "TwoDotTwo", + "value": 2.2, + "valueType": { + "$ref": "17" + }, + "enumType": { + "$ref": "16" + }, + "decorators": [] + }, + { + "$id": "20", + "kind": "enumvalue", + "name": "FourDotFour", + "value": 4.4, + "valueType": { + "$ref": "17" + }, + "enumType": { + "$ref": "16" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "Float based extensible enum", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "Four", - "value": "4", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Extensible enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "18", - "kind": "enum", - "name": "IntExtensibleEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.IntExtensibleEnum", - "valueType": { - "$id": "19", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { "$id": "21", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "decorators": [] - }, - { - "$id": "22", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "enum", + "name": "FloatExtensibleEnumWithIntValue", + "crossLanguageDefinitionId": "SampleTypeSpec.FloatExtensibleEnumWithIntValue", + "valueType": { + "$id": "22", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "values": [ + { + "$id": "23", + "kind": "enumvalue", + "name": "One", + "value": 1, + "valueType": { + "$ref": "22" + }, + "enumType": { + "$ref": "21" + }, + "decorators": [] + }, + { + "$id": "24", + "kind": "enumvalue", + "name": "Two", + "value": 2, + "valueType": { + "$ref": "22" + }, + "enumType": { + "$ref": "21" + }, + "decorators": [] + }, + { + "$id": "25", + "kind": "enumvalue", + "name": "Four", + "value": 4, + "valueType": { + "$ref": "22" + }, + "enumType": { + "$ref": "21" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "float fixed enum", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "decorators": [] }, { - "$id": "24", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "25", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Int based extensible enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "26", - "kind": "enum", - "name": "FloatExtensibleEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatExtensibleEnum", - "valueType": { - "$id": "27", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ - { - "$id": "28", - "kind": "enumvalue", - "name": "OneDotOne", - "value": 1.1, - "valueType": { - "$id": "29", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "26", + "kind": "enum", + "name": "FloatFixedEnum", + "crossLanguageDefinitionId": "SampleTypeSpec.FloatFixedEnum", + "valueType": { + "$id": "27", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "values": [ + { + "$id": "28", + "kind": "enumvalue", + "name": "OneDotOne", + "value": 1.1, + "valueType": { + "$ref": "27" + }, + "enumType": { + "$ref": "26" + }, + "decorators": [] + }, + { + "$id": "29", + "kind": "enumvalue", + "name": "TwoDotTwo", + "value": 2.2, + "valueType": { + "$ref": "27" + }, + "enumType": { + "$ref": "26" + }, + "decorators": [] + }, + { + "$id": "30", + "kind": "enumvalue", + "name": "FourDotFour", + "value": 4.4, + "valueType": { + "$ref": "27" + }, + "enumType": { + "$ref": "26" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "float fixed enum", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] }, { - "$id": "30", - "kind": "enumvalue", - "name": "TwoDotTwo", - "value": 2.2, - "valueType": { "$id": "31", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] - }, - { - "$id": "32", - "kind": "enumvalue", - "name": "FourDotFour", - "value": 4.4, - "valueType": { - "$id": "33", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Float based extensible enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "34", - "kind": "enum", - "name": "FloatExtensibleEnumWithIntValue", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatExtensibleEnumWithIntValue", - "valueType": { - "$id": "35", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ - { - "$id": "36", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "37", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "enum", + "name": "FloatFixedEnumWithIntValue", + "crossLanguageDefinitionId": "SampleTypeSpec.FloatFixedEnumWithIntValue", + "valueType": { + "$id": "32", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "values": [ + { + "$id": "33", + "kind": "enumvalue", + "name": "One", + "value": 1, + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "decorators": [] + }, + { + "$id": "34", + "kind": "enumvalue", + "name": "Two", + "value": 2, + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "decorators": [] + }, + { + "$id": "35", + "kind": "enumvalue", + "name": "Four", + "value": 4, + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "float fixed enum", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "34" - }, - "decorators": [] }, { - "$id": "38", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "39", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "36", + "kind": "enum", + "name": "IntFixedEnum", + "crossLanguageDefinitionId": "SampleTypeSpec.IntFixedEnum", + "valueType": { + "$id": "37", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "values": [ + { + "$id": "38", + "kind": "enumvalue", + "name": "One", + "value": 1, + "valueType": { + "$ref": "37" + }, + "enumType": { + "$ref": "36" + }, + "decorators": [] + }, + { + "$id": "39", + "kind": "enumvalue", + "name": "Two", + "value": 2, + "valueType": { + "$ref": "37" + }, + "enumType": { + "$ref": "36" + }, + "decorators": [] + }, + { + "$id": "40", + "kind": "enumvalue", + "name": "Four", + "value": 4, + "valueType": { + "$ref": "37" + }, + "enumType": { + "$ref": "36" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "doc": "int fixed enum", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "34" - }, - "decorators": [] }, { - "$id": "40", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { "$id": "41", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "SampleTypeSpec.Versions", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "43", + "kind": "enumvalue", + "name": "2024-07-16-preview", + "value": "2024-07-16-preview", + "valueType": { + "$ref": "42" + }, + "enumType": { + "$ref": "41" + }, + "decorators": [] + }, + { + "$id": "44", + "kind": "enumvalue", + "name": "2024-08-16-preview", + "value": "2024-08-16-preview", + "valueType": { + "$ref": "42" + }, + "enumType": { + "$ref": "41" + }, + "decorators": [] + } + ], + "namespace": "SampleTypeSpec", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "34" - }, - "decorators": [] } - ], - "namespace": "SampleTypeSpec", - "doc": "float fixed enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "42", - "kind": "enum", - "name": "FloatFixedEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatFixedEnum", - "valueType": { - "$id": "43", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ + ], + "constants": [ { - "$id": "44", - "kind": "enumvalue", - "name": "OneDotOne", - "value": 1.1, - "valueType": { "$id": "45", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] - }, - { - "$id": "46", - "kind": "enumvalue", - "name": "TwoDotTwo", - "value": 2.2, - "valueType": { - "$id": "47", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] - }, - { - "$id": "48", - "kind": "enumvalue", - "name": "FourDotFour", - "value": 4.4, - "valueType": { - "$id": "49", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "float fixed enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "50", - "kind": "enum", - "name": "FloatFixedEnumWithIntValue", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatFixedEnumWithIntValue", - "valueType": { - "$id": "51", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ - { - "$id": "52", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "53", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] - }, - { - "$id": "54", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "55", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] - }, - { - "$id": "56", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "57", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "float fixed enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "58", - "kind": "enum", - "name": "IntFixedEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.IntFixedEnum", - "valueType": { - "$id": "59", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ - { - "$id": "60", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "61", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] - }, - { - "$id": "62", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "63", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] - }, - { - "$id": "64", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "65", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "int fixed enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "66", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "SampleTypeSpec.Versions", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "68", - "kind": "enumvalue", - "name": "2024-07-16-preview", - "value": "2024-07-16-preview", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "66" - }, - "decorators": [] - }, - { - "$id": "70", - "kind": "enumvalue", - "name": "2024-08-16-preview", - "value": "2024-08-16-preview", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "66" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "72", - "kind": "constant", - "name": "ThingRequiredLiteralString", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "accept", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "ThingRequiredLiteralInt", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "75", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "ThingRequiredLiteralFloat", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "77", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 1.23, - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "ThingRequiredLiteralBool", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "79", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": false, - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "ThingOptionalLiteralString", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "reject", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "ThingOptionalLiteralInt", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "83", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 456, - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "ThingOptionalLiteralFloat", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "85", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 4.56, - "decorators": [] - }, - { - "$id": "86", - "kind": "constant", - "name": "ThingOptionalLiteralBool", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", - "valueType": { - "$id": "87", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "88", - "kind": "constant", - "name": "sayHiContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "90", - "kind": "constant", - "name": "HelloAgainRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "92", - "kind": "constant", - "name": "helloAgainContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "94", - "kind": "constant", - "name": "HelloAgainRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "96", - "kind": "constant", - "name": "noContentTypeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "98", - "kind": "constant", - "name": "noContentTypeContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "100", - "kind": "constant", - "name": "helloDemo2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "102", - "kind": "constant", - "name": "createLiteralContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "104", - "kind": "constant", - "name": "createLiteralContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "106", - "kind": "constant", - "name": "HelloLiteralRequestP1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "test", - "decorators": [] - }, - { - "$id": "108", - "kind": "constant", - "name": "ThingRequiredLiteralInt1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "109", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "name": "ThingOptionalLiteralBool1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "111", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "name": "helloLiteralContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "name": "HelloLiteralRequestP11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "test", - "decorators": [] - }, - { - "$id": "116", - "kind": "constant", - "name": "ThingRequiredLiteralInt2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "117", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] - }, - { - "$id": "118", - "kind": "constant", - "name": "ThingOptionalLiteralBool2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "119", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "name": "topActionContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "name": "topAction2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "name": "patchActionContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "126", - "kind": "constant", - "name": "patchActionContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "128", - "kind": "constant", - "name": "anonymousBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "name": "anonymousBodyContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "name": "ThingRequiredLiteralString1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "accept", - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "name": "ThingRequiredLiteralInt3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "135", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] - }, - { - "$id": "136", - "kind": "constant", - "name": "ThingRequiredLiteralFloat1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "137", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 1.23, - "decorators": [] - }, - { - "$id": "138", - "kind": "constant", - "name": "ThingRequiredLiteralBool1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "139", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": false, - "decorators": [] - }, - { - "$id": "140", - "kind": "constant", - "name": "ThingOptionalLiteralString1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "reject", - "decorators": [] - }, - { - "$id": "142", - "kind": "constant", - "name": "ThingOptionalLiteralInt1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "143", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 456, - "decorators": [] - }, - { - "$id": "144", - "kind": "constant", - "name": "ThingOptionalLiteralFloat1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "145", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 4.56, - "decorators": [] - }, - { - "$id": "146", - "kind": "constant", - "name": "ThingOptionalLiteralBool3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "147", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "148", - "kind": "constant", - "name": "friendlyModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "150", - "kind": "constant", - "name": "friendlyModelContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "152", - "kind": "constant", - "name": "projectedNameModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "154", - "kind": "constant", - "name": "projectedNameModelContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "156", - "kind": "constant", - "name": "returnsAnonymousModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "158", - "kind": "constant", - "name": "GetUnknownValueResponse6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "Sunday", - "decorators": [] - }, - { - "$id": "160", - "kind": "constant", - "name": "internalProtocolContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "162", - "kind": "constant", - "name": "internalProtocolContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "163", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "164", - "kind": "constant", - "name": "ListWithNextLinkContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "166", - "kind": "constant", - "name": "ListWithContinuationTokenContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "168", - "kind": "constant", - "name": "ListWithContinuationTokenHeaderResponseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "170", - "kind": "constant", - "name": "ListWithPagingContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "172", - "kind": "constant", - "name": "EmbeddedParametersContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "174", - "kind": "model", - "name": "Thing", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.Thing", - "usage": "Input,Output,Spread,Json", - "doc": "A model with a few properties of literal types", - "decorators": [], - "properties": [ - { - "$id": "175", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the Thing", - "type": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.name", - "serializationOptions": { - "$id": "177", - "json": { - "$id": "178", - "name": "name" - } - } - }, - { - "$id": "179", - "kind": "property", - "name": "requiredUnion", - "serializedName": "requiredUnion", - "doc": "required Union", - "type": { - "$id": "180", - "kind": "union", - "name": "ThingRequiredUnion", - "variantTypes": [ - { - "$id": "181", + "kind": "constant", + "name": "ThingRequiredLiteralString", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "182", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - { - "$id": "184", + }, + "value": "accept", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", + "name": "ThingRequiredLiteralInt", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "48", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] - } - ], - "namespace": "", + }, + "value": 123, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredUnion", - "serializationOptions": { - "$id": "185", - "json": { - "$id": "186", - "name": "requiredUnion" - } - } - }, - { - "$id": "187", - "kind": "property", - "name": "requiredLiteralString", - "serializedName": "requiredLiteralString", - "doc": "required literal string", - "type": { - "$ref": "72" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralString", - "serializationOptions": { - "$id": "188", - "json": { - "$id": "189", - "name": "requiredLiteralString" - } - } }, { - "$id": "190", - "kind": "property", - "name": "requiredNullableString", - "serializedName": "requiredNullableString", - "doc": "required nullable string", - "type": { - "$id": "191", - "kind": "nullable", - "type": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "49", + "kind": "constant", + "name": "ThingRequiredLiteralFloat", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "50", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableString", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "requiredNullableString" - } - } + "value": 1.23, + "decorators": [] }, { - "$id": "195", - "kind": "property", - "name": "optionalNullableString", - "serializedName": "optionalNullableString", - "doc": "required optional string", - "type": { - "$id": "196", - "kind": "nullable", - "type": { - "$id": "197", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "51", + "kind": "constant", + "name": "ThingRequiredLiteralBool", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "52", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, - "namespace": "" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalNullableString", - "serializationOptions": { - "$id": "198", - "json": { - "$id": "199", - "name": "optionalNullableString" - } - } - }, - { - "$id": "200", - "kind": "property", - "name": "requiredLiteralInt", - "serializedName": "requiredLiteralInt", - "doc": "required literal int", - "type": { - "$ref": "74" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralInt", - "serializationOptions": { - "$id": "201", - "json": { - "$id": "202", - "name": "requiredLiteralInt" - } - } - }, - { - "$id": "203", - "kind": "property", - "name": "requiredLiteralFloat", - "serializedName": "requiredLiteralFloat", - "doc": "required literal float", - "type": { - "$ref": "76" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralFloat", - "serializationOptions": { - "$id": "204", - "json": { - "$id": "205", - "name": "requiredLiteralFloat" - } - } - }, - { - "$id": "206", - "kind": "property", - "name": "requiredLiteralBool", - "serializedName": "requiredLiteralBool", - "doc": "required literal bool", - "type": { - "$ref": "78" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralBool", - "serializationOptions": { - "$id": "207", - "json": { - "$id": "208", - "name": "requiredLiteralBool" - } - } - }, - { - "$id": "209", - "kind": "property", - "name": "optionalLiteralString", - "serializedName": "optionalLiteralString", - "doc": "optional literal string", - "type": { - "$ref": "80" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralString", - "serializationOptions": { - "$id": "210", - "json": { - "$id": "211", - "name": "optionalLiteralString" - } - } - }, - { - "$id": "212", - "kind": "property", - "name": "optionalLiteralInt", - "serializedName": "optionalLiteralInt", - "doc": "optional literal int", - "type": { - "$ref": "82" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralInt", - "serializationOptions": { - "$id": "213", - "json": { - "$id": "214", - "name": "optionalLiteralInt" - } - } - }, - { - "$id": "215", - "kind": "property", - "name": "optionalLiteralFloat", - "serializedName": "optionalLiteralFloat", - "doc": "optional literal float", - "type": { - "$ref": "84" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralFloat", - "serializationOptions": { - "$id": "216", - "json": { - "$id": "217", - "name": "optionalLiteralFloat" - } - } - }, - { - "$id": "218", - "kind": "property", - "name": "optionalLiteralBool", - "serializedName": "optionalLiteralBool", - "doc": "optional literal bool", - "type": { - "$ref": "86" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralBool", - "serializationOptions": { - "$id": "219", - "json": { - "$id": "220", - "name": "optionalLiteralBool" - } - } - }, - { - "$id": "221", - "kind": "property", - "name": "requiredBadDescription", - "serializedName": "requiredBadDescription", - "doc": "description with xml <|endoftext|>", - "type": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "value": false, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredBadDescription", - "serializationOptions": { - "$id": "223", - "json": { - "$id": "224", - "name": "requiredBadDescription" - } - } }, { - "$id": "225", - "kind": "property", - "name": "optionalNullableList", - "serializedName": "optionalNullableList", - "doc": "optional nullable collection", - "type": { - "$id": "226", - "kind": "nullable", - "type": { - "$id": "227", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "228", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "53", + "kind": "constant", + "name": "ThingOptionalLiteralString", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "namespace": "" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalNullableList", - "serializationOptions": { - "$id": "229", - "json": { - "$id": "230", - "name": "optionalNullableList" - } - } + "value": "reject", + "decorators": [] }, { - "$id": "231", - "kind": "property", - "name": "requiredNullableList", - "serializedName": "requiredNullableList", - "doc": "required nullable collection", - "type": { - "$id": "232", - "kind": "nullable", - "type": { - "$id": "233", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "234", + "$id": "55", + "kind": "constant", + "name": "ThingOptionalLiteralInt", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "56", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableList", - "serializationOptions": { - "$id": "235", - "json": { - "$id": "236", - "name": "requiredNullableList" - } - } - } - ] - }, - { - "$id": "237", - "kind": "model", - "name": "RoundTripModel", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel", - "usage": "Input,Output,Json", - "doc": "this is a roundtrip model", - "decorators": [], - "properties": [ - { - "$id": "238", - "kind": "property", - "name": "requiredString", - "serializedName": "requiredString", - "doc": "Required string, illustrating a reference type property.", - "type": { - "$id": "239", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredString", - "serializationOptions": { - "$id": "240", - "json": { - "$id": "241", - "name": "requiredString" - } - } - }, - { - "$id": "242", - "kind": "property", - "name": "requiredInt", - "serializedName": "requiredInt", - "doc": "Required int, illustrating a value type property.", - "type": { - "$id": "243", - "kind": "int32", - "name": "int32", - "encode": "string", - "crossLanguageDefinitionId": "TypeSpec.int32", + "value": 456, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredInt", - "serializationOptions": { - "$id": "244", - "json": { - "$id": "245", - "name": "requiredInt" - } - } }, { - "$id": "246", - "kind": "property", - "name": "requiredCollection", - "serializedName": "requiredCollection", - "doc": "Required collection of enums", - "type": { - "$id": "247", - "kind": "array", - "name": "ArrayStringFixedEnum", + "$id": "57", + "kind": "constant", + "name": "ThingOptionalLiteralFloat", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", "valueType": { - "$ref": "2" + "$id": "58", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": 4.56, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredCollection", - "serializationOptions": { - "$id": "248", - "json": { - "$id": "249", - "name": "requiredCollection" - } - } }, { - "$id": "250", - "kind": "property", - "name": "requiredDictionary", - "serializedName": "requiredDictionary", - "doc": "Required dictionary of enums", - "type": { - "$id": "251", - "kind": "dict", - "keyType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "59", + "kind": "constant", + "name": "ThingOptionalLiteralBool", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", "valueType": { - "$ref": "10" + "$id": "60", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, + "value": true, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredDictionary", - "serializationOptions": { - "$id": "253", - "json": { - "$id": "254", - "name": "requiredDictionary" - } - } - }, - { - "$id": "255", - "kind": "property", - "name": "requiredModel", - "serializedName": "requiredModel", - "doc": "Required model", - "type": { - "$ref": "174" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredModel", - "serializationOptions": { - "$id": "256", - "json": { - "$id": "257", - "name": "requiredModel" - } - } - }, + } + ], + "models": [ { - "$id": "258", - "kind": "property", - "name": "intExtensibleEnum", - "serializedName": "intExtensibleEnum", - "doc": "this is an int based extensible enum", - "type": { - "$ref": "18" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnum", - "serializationOptions": { - "$id": "259", - "json": { - "$id": "260", - "name": "intExtensibleEnum" - } - } - }, - { - "$id": "261", - "kind": "property", - "name": "intExtensibleEnumCollection", - "serializedName": "intExtensibleEnumCollection", - "doc": "this is a collection of int based extensible enum", - "type": { - "$id": "262", - "kind": "array", - "name": "ArrayIntExtensibleEnum", - "valueType": { - "$ref": "18" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnumCollection", - "serializationOptions": { - "$id": "263", - "json": { - "$id": "264", - "name": "intExtensibleEnumCollection" - } - } - }, - { - "$id": "265", - "kind": "property", - "name": "floatExtensibleEnum", - "serializedName": "floatExtensibleEnum", - "doc": "this is a float based extensible enum", - "type": { - "$ref": "26" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnum", - "serializationOptions": { - "$id": "266", - "json": { - "$id": "267", - "name": "floatExtensibleEnum" - } - } - }, - { - "$id": "268", - "kind": "property", - "name": "floatExtensibleEnumWithIntValue", - "serializedName": "floatExtensibleEnumWithIntValue", - "doc": "this is a float based extensible enum", - "type": { - "$ref": "34" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumWithIntValue", - "serializationOptions": { - "$id": "269", - "json": { - "$id": "270", - "name": "floatExtensibleEnumWithIntValue" - } - } - }, - { - "$id": "271", - "kind": "property", - "name": "floatExtensibleEnumCollection", - "serializedName": "floatExtensibleEnumCollection", - "doc": "this is a collection of float based extensible enum", - "type": { - "$id": "272", - "kind": "array", - "name": "ArrayFloatExtensibleEnum", - "valueType": { - "$ref": "26" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumCollection", - "serializationOptions": { - "$id": "273", - "json": { - "$id": "274", - "name": "floatExtensibleEnumCollection" - } - } - }, - { - "$id": "275", - "kind": "property", - "name": "floatFixedEnum", - "serializedName": "floatFixedEnum", - "doc": "this is a float based fixed enum", - "type": { - "$ref": "42" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnum", - "serializationOptions": { - "$id": "276", - "json": { - "$id": "277", - "name": "floatFixedEnum" - } - } - }, - { - "$id": "278", - "kind": "property", - "name": "floatFixedEnumWithIntValue", - "serializedName": "floatFixedEnumWithIntValue", - "doc": "this is a float based fixed enum", - "type": { - "$ref": "50" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnumWithIntValue", - "serializationOptions": { - "$id": "279", - "json": { - "$id": "280", - "name": "floatFixedEnumWithIntValue" - } - } - }, - { - "$id": "281", - "kind": "property", - "name": "floatFixedEnumCollection", - "serializedName": "floatFixedEnumCollection", - "doc": "this is a collection of float based fixed enum", - "type": { - "$id": "282", - "kind": "array", - "name": "ArrayFloatFixedEnum", - "valueType": { - "$ref": "42" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnumCollection", - "serializationOptions": { - "$id": "283", - "json": { - "$id": "284", - "name": "floatFixedEnumCollection" - } - } - }, - { - "$id": "285", - "kind": "property", - "name": "intFixedEnum", - "serializedName": "intFixedEnum", - "doc": "this is a int based fixed enum", - "type": { - "$ref": "58" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intFixedEnum", - "serializationOptions": { - "$id": "286", - "json": { - "$id": "287", - "name": "intFixedEnum" - } - } - }, - { - "$id": "288", - "kind": "property", - "name": "intFixedEnumCollection", - "serializedName": "intFixedEnumCollection", - "doc": "this is a collection of int based fixed enum", - "type": { - "$id": "289", - "kind": "array", - "name": "ArrayIntFixedEnum", - "valueType": { - "$ref": "58" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intFixedEnumCollection", - "serializationOptions": { - "$id": "290", - "json": { - "$id": "291", - "name": "intFixedEnumCollection" - } - } - }, - { - "$id": "292", - "kind": "property", - "name": "stringFixedEnum", - "serializedName": "stringFixedEnum", - "doc": "this is a string based fixed enum", - "type": { - "$ref": "2" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.stringFixedEnum", - "serializationOptions": { - "$id": "293", - "json": { - "$id": "294", - "name": "stringFixedEnum" - } - } - }, - { - "$id": "295", - "kind": "property", - "name": "requiredUnknown", - "serializedName": "requiredUnknown", - "doc": "required unknown", - "type": { - "$id": "296", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredUnknown", - "serializationOptions": { - "$id": "297", - "json": { - "$id": "298", - "name": "requiredUnknown" - } - } - }, - { - "$id": "299", - "kind": "property", - "name": "optionalUnknown", - "serializedName": "optionalUnknown", - "doc": "optional unknown", - "type": { - "$id": "300", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalUnknown", - "serializationOptions": { - "$id": "301", - "json": { - "$id": "302", - "name": "optionalUnknown" - } - } - }, - { - "$id": "303", - "kind": "property", - "name": "requiredRecordUnknown", - "serializedName": "requiredRecordUnknown", - "doc": "required record of unknown", - "type": { - "$id": "304", - "kind": "dict", - "keyType": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "306", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredRecordUnknown", - "serializationOptions": { - "$id": "307", - "json": { - "$id": "308", - "name": "requiredRecordUnknown" - } - } - }, - { - "$id": "309", - "kind": "property", - "name": "optionalRecordUnknown", - "serializedName": "optionalRecordUnknown", - "doc": "optional record of unknown", - "type": { - "$id": "310", - "kind": "dict", - "keyType": { - "$id": "311", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "312", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalRecordUnknown", - "serializationOptions": { - "$id": "313", - "json": { - "$id": "314", - "name": "optionalRecordUnknown" - } - } - }, - { - "$id": "315", - "kind": "property", - "name": "readOnlyRequiredRecordUnknown", - "serializedName": "readOnlyRequiredRecordUnknown", - "doc": "required readonly record of unknown", - "type": { - "$id": "316", - "kind": "dict", - "keyType": { - "$id": "317", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "318", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown", - "serializationOptions": { - "$id": "319", - "json": { - "$id": "320", - "name": "readOnlyRequiredRecordUnknown" - } - } - }, - { - "$id": "321", - "kind": "property", - "name": "readOnlyOptionalRecordUnknown", - "serializedName": "readOnlyOptionalRecordUnknown", - "doc": "optional readonly record of unknown", - "type": { - "$id": "322", - "kind": "dict", - "keyType": { - "$id": "323", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "324", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown", - "serializationOptions": { - "$id": "325", - "json": { - "$id": "326", - "name": "readOnlyOptionalRecordUnknown" - } - } - }, - { - "$id": "327", - "kind": "property", - "name": "modelWithRequiredNullable", - "serializedName": "modelWithRequiredNullable", - "doc": "this is a model with required nullable properties", - "type": { - "$id": "328", + "$id": "61", "kind": "model", - "name": "ModelWithRequiredNullableProperties", + "name": "Thing", "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties", - "usage": "Input,Output,Json", - "doc": "A model with a few required nullable properties", + "crossLanguageDefinitionId": "SampleTypeSpec.Thing", + "usage": "Input,Output,Spread,Json", + "doc": "A model with a few properties of literal types", "decorators": [], "properties": [ - { - "$id": "329", - "kind": "property", - "name": "requiredNullablePrimitive", - "serializedName": "requiredNullablePrimitive", - "doc": "required nullable primitive type", - "type": { - "$id": "330", - "kind": "nullable", - "type": { - "$id": "331", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive", - "serializationOptions": { - "$id": "332", - "json": { - "$id": "333", - "name": "requiredNullablePrimitive" - } - } - }, - { - "$id": "334", - "kind": "property", - "name": "requiredExtensibleEnum", - "serializedName": "requiredExtensibleEnum", - "doc": "required nullable extensible enum type", - "type": { - "$id": "335", - "kind": "nullable", - "type": { - "$ref": "10" - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum", - "serializationOptions": { - "$id": "336", - "json": { - "$id": "337", - "name": "requiredExtensibleEnum" - } - } - }, - { - "$id": "338", - "kind": "property", - "name": "requiredFixedEnum", - "serializedName": "requiredFixedEnum", - "doc": "required nullable fixed enum type", - "type": { - "$id": "339", - "kind": "nullable", - "type": { - "$ref": "2" - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum", - "serializationOptions": { - "$id": "340", - "json": { - "$id": "341", - "name": "requiredFixedEnum" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.modelWithRequiredNullable", - "serializationOptions": { - "$id": "342", - "json": { - "$id": "343", - "name": "modelWithRequiredNullable" - } - } - }, - { - "$id": "344", - "kind": "property", - "name": "requiredBytes", - "serializedName": "requiredBytes", - "doc": "Required bytes", - "type": { - "$id": "345", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredBytes", - "serializationOptions": { - "$id": "346", - "json": { - "$id": "347", - "name": "requiredBytes" - } - } - } - ] - }, - { - "$ref": "328" - }, - { - "$id": "348", - "kind": "model", - "name": "Friend", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend", - "usage": "Output,Spread,Json", - "doc": "this is not a friendly model but with a friendly name", - "decorators": [], - "properties": [ - { - "$id": "349", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend.name", - "serializationOptions": { - "$id": "351", - "json": { - "$id": "352", - "name": "name" - } - } - } - ] - }, - { - "$id": "353", - "kind": "model", - "name": "RenamedModel", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName", - "usage": "Output,Spread,Json", - "doc": "this is a model with a client name", - "decorators": [], - "properties": [ - { - "$id": "354", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName.name", - "serializationOptions": { - "$id": "356", - "json": { - "$id": "357", - "name": "name" - } - } - } - ] - }, - { - "$id": "358", - "kind": "model", - "name": "ReturnsAnonymousModelResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [] - }, - { - "$id": "359", - "kind": "model", - "name": "ListWithNextLinkResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "360", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "361", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.things", - "serializationOptions": { - "$id": "362", - "json": { - "$id": "363", - "name": "things" - } - } - }, - { - "$id": "364", - "kind": "property", - "name": "next", - "serializedName": "next", - "type": { - "$id": "365", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.next", - "serializationOptions": { - "$id": "366", - "json": { - "$id": "367", - "name": "next" - } - } - } - ] - }, - { - "$id": "368", - "kind": "model", - "name": "ListWithContinuationTokenResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "369", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "370", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.things", - "serializationOptions": { - "$id": "371", - "json": { - "$id": "372", - "name": "things" - } - } - }, - { - "$id": "373", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "375", - "json": { - "$id": "376", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "377", - "kind": "model", - "name": "ListWithContinuationTokenHeaderResponseResponse", - "namespace": "", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "378", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "379", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "ListWithContinuationTokenHeaderResponse.Response.anonymous.things", - "serializationOptions": { - "$id": "380", - "json": { - "$id": "381", - "name": "things" - } - } - } - ] - }, - { - "$id": "382", - "kind": "model", - "name": "PageThing", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.Page", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "383", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$id": "384", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Page.items", - "serializationOptions": { - "$id": "385", - "json": { - "$id": "386", - "name": "items" - } - } - } - ] - }, - { - "$id": "387", - "kind": "model", - "name": "ModelWithEmbeddedNonBodyParameters", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "388", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the ModelWithEmbeddedNonBodyParameters", - "type": { - "$id": "389", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.name", - "serializationOptions": { - "$id": "390", - "json": { - "$id": "391", - "name": "name" - } - } - }, - { - "$id": "392", - "kind": "header", - "name": "requiredHeader", - "serializedName": "required-header", - "doc": "required header parameter", - "type": { - "$id": "393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", - "correspondingMethodParams": [] - }, - { - "$id": "394", - "kind": "header", - "name": "optionalHeader", - "serializedName": "optional-header", - "doc": "optional header parameter", - "type": { - "$id": "395", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", - "correspondingMethodParams": [] - }, - { - "$id": "396", - "kind": "query", - "name": "requiredQuery", - "serializedName": "requiredQuery", - "doc": "required query parameter", - "type": { - "$id": "397", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", - "correspondingMethodParams": [] - }, - { - "$id": "398", - "kind": "query", - "name": "optionalQuery", - "serializedName": "optionalQuery", - "doc": "optional query parameter", - "type": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", - "correspondingMethodParams": [] - } - ] - } - ], - "clients": [ - { - "$id": "400", - "kind": "client", - "name": "SampleTypeSpecClient", - "namespace": "SampleTypeSpec", - "doc": "This is a sample typespec project.", - "methods": [ - { - "$id": "401", - "kind": "basic", - "name": "sayHi", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi", - "operation": { - "$id": "402", - "name": "sayHi", - "resourceName": "SampleTypeSpec", - "doc": "Return hi", - "accessibility": "public", - "parameters": [ - { - "$id": "403", - "name": "headParameter", - "nameInRequest": "head-parameter", - "type": { - "$id": "404", - "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": "405", - "name": "queryParameter", - "nameInRequest": "queryParameter", - "type": { - "$id": "406", - "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": "407", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "type": { - "$id": "408", - "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": "409", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "410", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/hello", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi", - "decorators": [] - }, - "parameters": [ - { - "$id": "411", - "name": "headParameter", - "nameInRequest": "head-parameter", - "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 - }, - { - "$id": "413", - "name": "queryParameter", - "nameInRequest": "queryParameter", - "type": { - "$id": "414", - "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": "415", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "type": { - "$id": "416", - "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": "417", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "418", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" - }, - { - "$id": "419", - "kind": "basic", - "name": "helloAgain", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "420", - "name": "helloAgain", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "421", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "422", - "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": "423", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "424", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "425", - "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": "426", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "427", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "237" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "428", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "237" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/againHi/{p2}", - "requestMediaTypes": [ - "text/plain" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain", - "decorators": [] - }, - "parameters": [ - { - "$id": "429", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "430", - "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": "431", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "237" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "432", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "433", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "434", - "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": "435", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "436", - "type": { - "$ref": "237" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" - }, - { - "$id": "437", - "kind": "basic", - "name": "noContentType", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "438", - "name": "noContentType", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "439", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "440", - "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": "441", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "442", - "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": "443", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "444", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "445", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "237" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "446", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "237" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/noContentType/{p2}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType", - "decorators": [] - }, - "parameters": [ - { - "$id": "447", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "448", - "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": "449", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "237" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "450", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "451", - "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": "452", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "453", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "454", - "type": { - "$ref": "237" - } - }, - "isOverride": false, - "generateConvenient": false, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" - }, - { - "$id": "455", - "kind": "basic", - "name": "helloDemo2", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi in demo2", - "operation": { - "$id": "456", - "name": "helloDemo2", - "resourceName": "SampleTypeSpec", - "doc": "Return hi in demo2", - "accessibility": "public", - "parameters": [ - { - "$id": "457", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "458", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/demoHi", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2", - "decorators": [] - }, - "parameters": [ - { - "$id": "459", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "460", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" - }, - { - "$id": "461", - "kind": "basic", - "name": "createLiteral", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Create with literal value", - "operation": { - "$id": "462", - "name": "createLiteral", - "resourceName": "SampleTypeSpec", - "doc": "Create with literal value", - "accessibility": "public", - "parameters": [ - { - "$id": "463", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "464", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "104" + { + "$id": "62", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the Thing", + "type": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "465", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" + { + "$id": "64", + "kind": "property", + "name": "requiredUnion", + "serializedName": "requiredUnion", + "doc": "required Union", + "type": { + "$id": "65", + "kind": "union", + "name": "ThingRequiredUnion", + "variantTypes": [ + { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "67", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + { + "$id": "69", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredUnion", + "serializationOptions": { + "json": { + "name": "requiredUnion" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "466", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "70", + "kind": "property", + "name": "requiredLiteralString", + "serializedName": "requiredLiteralString", + "doc": "required literal string", + "type": { + "$ref": "45" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralString", + "serializationOptions": { + "json": { + "name": "requiredLiteralString" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral", - "decorators": [] - }, - "parameters": [ - { - "$id": "467", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "468", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "469", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "470", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" - }, - { - "$id": "471", - "kind": "basic", - "name": "helloLiteral", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Send literal parameters", - "operation": { - "$id": "472", - "name": "helloLiteral", - "resourceName": "SampleTypeSpec", - "doc": "Send literal parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "473", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$ref": "106" + { + "$id": "71", + "kind": "property", + "name": "requiredNullableString", + "serializedName": "requiredNullableString", + "doc": "required nullable string", + "type": { + "$id": "72", + "kind": "nullable", + "type": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableString", + "serializationOptions": { + "json": { + "name": "requiredNullableString" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "474", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$ref": "108" + { + "$id": "74", + "kind": "property", + "name": "optionalNullableString", + "serializedName": "optionalNullableString", + "doc": "required optional string", + "type": { + "$id": "75", + "kind": "nullable", + "type": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalNullableString", + "serializationOptions": { + "json": { + "name": "optionalNullableString" + } + } }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "475", - "name": "p3", - "nameInRequest": "p3", - "type": { - "$ref": "110" + { + "$id": "77", + "kind": "property", + "name": "requiredLiteralInt", + "serializedName": "requiredLiteralInt", + "doc": "required literal int", + "type": { + "$ref": "47" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralInt", + "serializationOptions": { + "json": { + "name": "requiredLiteralInt" + } + } }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "476", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "112" + { + "$id": "78", + "kind": "property", + "name": "requiredLiteralFloat", + "serializedName": "requiredLiteralFloat", + "doc": "required literal float", + "type": { + "$ref": "49" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralFloat", + "serializationOptions": { + "json": { + "name": "requiredLiteralFloat" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "477", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "79", + "kind": "property", + "name": "requiredLiteralBool", + "serializedName": "requiredLiteralBool", + "doc": "required literal bool", + "type": { + "$ref": "51" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralBool", + "serializationOptions": { + "json": { + "name": "requiredLiteralBool" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/helloLiteral/{p2}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral", - "decorators": [] - }, - "parameters": [ - { - "$id": "478", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "479", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$ref": "116" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "480", - "name": "p3", - "nameInRequest": "p3", - "type": { - "$ref": "118" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "481", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "482", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" - }, - { - "$id": "483", - "kind": "basic", - "name": "topAction", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level method", - "operation": { - "$id": "484", - "name": "topAction", - "resourceName": "SampleTypeSpec", - "doc": "top level method", - "accessibility": "public", - "parameters": [ - { - "$id": "485", - "name": "action", - "nameInRequest": "action", - "type": { - "$id": "486", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "487", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + { + "$id": "80", + "kind": "property", + "name": "optionalLiteralString", + "serializedName": "optionalLiteralString", + "doc": "optional literal string", + "type": { + "$ref": "53" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralString", + "serializationOptions": { + "json": { + "name": "optionalLiteralString" + } + } }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "488", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "120" + { + "$id": "81", + "kind": "property", + "name": "optionalLiteralInt", + "serializedName": "optionalLiteralInt", + "doc": "optional literal int", + "type": { + "$ref": "55" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralInt", + "serializationOptions": { + "json": { + "name": "optionalLiteralInt" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "489", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "82", + "kind": "property", + "name": "optionalLiteralFloat", + "serializedName": "optionalLiteralFloat", + "doc": "optional literal float", + "type": { + "$ref": "57" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralFloat", + "serializationOptions": { + "json": { + "name": "optionalLiteralFloat" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/top/{action}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction", - "decorators": [] - }, - "parameters": [ - { - "$id": "490", - "name": "action", - "nameInRequest": "action", - "type": { - "$id": "491", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "492", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "83", + "kind": "property", + "name": "optionalLiteralBool", + "serializedName": "optionalLiteralBool", + "doc": "optional literal bool", + "type": { + "$ref": "59" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralBool", + "serializationOptions": { + "json": { + "name": "optionalLiteralBool" + } + } }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "493", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "494", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction" - }, - { - "$id": "495", - "kind": "basic", - "name": "topAction2", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level method2", - "operation": { - "$id": "496", - "name": "topAction2", - "resourceName": "SampleTypeSpec", - "doc": "top level method2", - "accessibility": "public", - "parameters": [ - { - "$id": "497", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "122" + { + "$id": "84", + "kind": "property", + "name": "requiredBadDescription", + "serializedName": "requiredBadDescription", + "doc": "description with xml <|endoftext|>", + "type": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredBadDescription", + "serializationOptions": { + "json": { + "name": "requiredBadDescription" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "498", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "86", + "kind": "property", + "name": "optionalNullableList", + "serializedName": "optionalNullableList", + "doc": "optional nullable collection", + "type": { + "$id": "87", + "kind": "nullable", + "type": { + "$id": "88", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "89", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalNullableList", + "serializationOptions": { + "json": { + "name": "optionalNullableList" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/top2", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2", - "decorators": [] - }, - "parameters": [ - { - "$id": "499", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "500", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": false, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" + { + "$id": "90", + "kind": "property", + "name": "requiredNullableList", + "serializedName": "requiredNullableList", + "doc": "required nullable collection", + "type": { + "$id": "91", + "kind": "nullable", + "type": { + "$id": "92", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "93", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableList", + "serializationOptions": { + "json": { + "name": "requiredNullableList" + } + } + } + ] }, { - "$id": "501", - "kind": "basic", - "name": "patchAction", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level patch", - "operation": { - "$id": "502", - "name": "patchAction", - "resourceName": "SampleTypeSpec", - "doc": "top level patch", - "accessibility": "public", - "parameters": [ - { - "$id": "503", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "504", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "505", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "506", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + "$id": "94", + "kind": "model", + "name": "RoundTripModel", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel", + "usage": "Input,Output,Json", + "doc": "this is a roundtrip model", + "decorators": [], + "properties": [ + { + "$id": "95", + "kind": "property", + "name": "requiredString", + "serializedName": "requiredString", + "doc": "Required string, illustrating a reference type property.", + "type": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredString", + "serializationOptions": { + "json": { + "name": "requiredString" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PATCH", - "uri": "{sampleTypeSpecUrl}", - "path": "/patch", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction", - "decorators": [] - }, - "parameters": [ - { - "$id": "507", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "508", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "509", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "510", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" - }, - { - "$id": "511", - "kind": "basic", - "name": "anonymousBody", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "body parameter without body decorator", - "operation": { - "$id": "512", - "name": "anonymousBody", - "resourceName": "SampleTypeSpec", - "doc": "body parameter without body decorator", - "accessibility": "public", - "parameters": [ - { - "$id": "513", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "128" + { + "$id": "97", + "kind": "property", + "name": "requiredInt", + "serializedName": "requiredInt", + "doc": "Required int, illustrating a value type property.", + "type": { + "$id": "98", + "kind": "int32", + "name": "int32", + "encode": "string", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredInt", + "serializationOptions": { + "json": { + "name": "requiredInt" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "514", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "130" + { + "$id": "99", + "kind": "property", + "name": "requiredCollection", + "serializedName": "requiredCollection", + "doc": "Required collection of enums", + "type": { + "$id": "100", + "kind": "array", + "name": "ArrayStringFixedEnum", + "valueType": { + "$ref": "1" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredCollection", + "serializationOptions": { + "json": { + "name": "requiredCollection" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "515", - "name": "thing", - "nameInRequest": "thing", - "type": { - "$ref": "174" + { + "$id": "101", + "kind": "property", + "name": "requiredDictionary", + "serializedName": "requiredDictionary", + "doc": "Required dictionary of enums", + "type": { + "$id": "102", + "kind": "dict", + "keyType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "6" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredDictionary", + "serializationOptions": { + "json": { + "name": "requiredDictionary" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "516", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "104", + "kind": "property", + "name": "requiredModel", + "serializedName": "requiredModel", + "doc": "Required model", + "type": { + "$ref": "61" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredModel", + "serializationOptions": { + "json": { + "name": "requiredModel" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/anonymousBody", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody", - "decorators": [] - }, - "parameters": [ - { - "$id": "517", - "name": "name", - "nameInRequest": "name", - "doc": "name of the Thing", - "type": { - "$id": "518", - "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 - }, - { - "$id": "519", - "name": "requiredUnion", - "nameInRequest": "requiredUnion", - "doc": "required Union", - "type": { - "$ref": "180" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "520", - "name": "requiredLiteralString", - "nameInRequest": "requiredLiteralString", - "doc": "required literal string", - "type": { - "$ref": "72" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "521", - "name": "requiredNullableString", - "nameInRequest": "requiredNullableString", - "doc": "required nullable string", - "type": { - "$ref": "191" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "522", - "name": "optionalNullableString", - "nameInRequest": "optionalNullableString", - "doc": "required optional string", - "type": { - "$ref": "196" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "523", - "name": "requiredLiteralInt", - "nameInRequest": "requiredLiteralInt", - "doc": "required literal int", - "type": { - "$ref": "74" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "524", - "name": "requiredLiteralFloat", - "nameInRequest": "requiredLiteralFloat", - "doc": "required literal float", - "type": { - "$ref": "76" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "525", - "name": "requiredLiteralBool", - "nameInRequest": "requiredLiteralBool", - "doc": "required literal bool", - "type": { - "$ref": "78" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "526", - "name": "optionalLiteralString", - "nameInRequest": "optionalLiteralString", - "doc": "optional literal string", - "type": { - "$ref": "80" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "527", - "name": "optionalLiteralInt", - "nameInRequest": "optionalLiteralInt", - "doc": "optional literal int", - "type": { - "$ref": "82" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "528", - "name": "optionalLiteralFloat", - "nameInRequest": "optionalLiteralFloat", - "doc": "optional literal float", - "type": { - "$ref": "84" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "529", - "name": "optionalLiteralBool", - "nameInRequest": "optionalLiteralBool", - "doc": "optional literal bool", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "530", - "name": "requiredBadDescription", - "nameInRequest": "requiredBadDescription", - "doc": "description with xml <|endoftext|>", - "type": { - "$id": "531", - "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 - }, - { - "$id": "532", - "name": "optionalNullableList", - "nameInRequest": "optionalNullableList", - "doc": "optional nullable collection", - "type": { - "$ref": "226" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "533", - "name": "requiredNullableList", - "nameInRequest": "requiredNullableList", - "doc": "required nullable collection", - "type": { - "$ref": "232" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "534", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "535", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "536", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" - }, - { - "$id": "537", - "kind": "basic", - "name": "friendlyModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Model can have its friendly name", - "operation": { - "$id": "538", - "name": "friendlyModel", - "resourceName": "SampleTypeSpec", - "doc": "Model can have its friendly name", - "accessibility": "public", - "parameters": [ - { - "$id": "539", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "148" + { + "$id": "105", + "kind": "property", + "name": "intExtensibleEnum", + "serializedName": "intExtensibleEnum", + "doc": "this is an int based extensible enum", + "type": { + "$ref": "11" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnum", + "serializationOptions": { + "json": { + "name": "intExtensibleEnum" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "540", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "150" + { + "$id": "106", + "kind": "property", + "name": "intExtensibleEnumCollection", + "serializedName": "intExtensibleEnumCollection", + "doc": "this is a collection of int based extensible enum", + "type": { + "$id": "107", + "kind": "array", + "name": "ArrayIntExtensibleEnum", + "valueType": { + "$ref": "11" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnumCollection", + "serializationOptions": { + "json": { + "name": "intExtensibleEnumCollection" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "541", - "name": "friend", - "nameInRequest": "friend", - "type": { - "$ref": "348" + { + "$id": "108", + "kind": "property", + "name": "floatExtensibleEnum", + "serializedName": "floatExtensibleEnum", + "doc": "this is a float based extensible enum", + "type": { + "$ref": "16" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnum", + "serializationOptions": { + "json": { + "name": "floatExtensibleEnum" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "542", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "348" + { + "$id": "109", + "kind": "property", + "name": "floatExtensibleEnumWithIntValue", + "serializedName": "floatExtensibleEnumWithIntValue", + "doc": "this is a float based extensible enum", + "type": { + "$ref": "21" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumWithIntValue", + "serializationOptions": { + "json": { + "name": "floatExtensibleEnumWithIntValue" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/friendlyName", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "543", - "name": "name", - "nameInRequest": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "544", - "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 - }, - { - "$id": "545", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "546", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "547", - "type": { - "$ref": "348" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" - }, - { - "$id": "548", - "kind": "basic", - "name": "addTimeHeader", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "operation": { - "$id": "549", - "name": "addTimeHeader", - "resourceName": "SampleTypeSpec", - "accessibility": "public", - "parameters": [ - { - "$id": "550", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "551", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "552", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + { + "$id": "110", + "kind": "property", + "name": "floatExtensibleEnumCollection", + "serializedName": "floatExtensibleEnumCollection", + "doc": "this is a collection of float based extensible enum", + "type": { + "$id": "111", + "kind": "array", + "name": "ArrayFloatExtensibleEnum", + "valueType": { + "$ref": "16" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumCollection", + "serializationOptions": { + "json": { + "name": "floatExtensibleEnumCollection" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "553", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader", - "decorators": [] - }, - "parameters": [ - { - "$id": "554", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "555", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "556", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "112", + "kind": "property", + "name": "floatFixedEnum", + "serializedName": "floatFixedEnum", + "doc": "this is a float based fixed enum", + "type": { + "$ref": "26" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnum", + "serializationOptions": { + "json": { + "name": "floatFixedEnum" + } + } }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "557" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" - }, - { - "$id": "558", - "kind": "basic", - "name": "projectedNameModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Model can have its projected name", - "operation": { - "$id": "559", - "name": "projectedNameModel", - "resourceName": "SampleTypeSpec", - "doc": "Model can have its projected name", - "accessibility": "public", - "parameters": [ - { - "$id": "560", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "152" + { + "$id": "113", + "kind": "property", + "name": "floatFixedEnumWithIntValue", + "serializedName": "floatFixedEnumWithIntValue", + "doc": "this is a float based fixed enum", + "type": { + "$ref": "31" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnumWithIntValue", + "serializationOptions": { + "json": { + "name": "floatFixedEnumWithIntValue" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "561", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "154" + { + "$id": "114", + "kind": "property", + "name": "floatFixedEnumCollection", + "serializedName": "floatFixedEnumCollection", + "doc": "this is a collection of float based fixed enum", + "type": { + "$id": "115", + "kind": "array", + "name": "ArrayFloatFixedEnum", + "valueType": { + "$ref": "26" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnumCollection", + "serializationOptions": { + "json": { + "name": "floatFixedEnumCollection" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "562", - "name": "renamedModel", - "nameInRequest": "renamedModel", - "type": { - "$ref": "353" + { + "$id": "116", + "kind": "property", + "name": "intFixedEnum", + "serializedName": "intFixedEnum", + "doc": "this is a int based fixed enum", + "type": { + "$ref": "36" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intFixedEnum", + "serializationOptions": { + "json": { + "name": "intFixedEnum" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "563", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "353" + { + "$id": "117", + "kind": "property", + "name": "intFixedEnumCollection", + "serializedName": "intFixedEnumCollection", + "doc": "this is a collection of int based fixed enum", + "type": { + "$id": "118", + "kind": "array", + "name": "ArrayIntFixedEnum", + "valueType": { + "$ref": "36" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intFixedEnumCollection", + "serializationOptions": { + "json": { + "name": "intFixedEnumCollection" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/projectedName", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "564", - "name": "name", - "nameInRequest": "name", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "565", - "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 - }, - { - "$id": "566", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "567", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "568", - "type": { - "$ref": "353" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" - }, - { - "$id": "569", - "kind": "basic", - "name": "returnsAnonymousModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "return anonymous model", - "operation": { - "$id": "570", - "name": "returnsAnonymousModel", - "resourceName": "SampleTypeSpec", - "doc": "return anonymous model", - "accessibility": "public", - "parameters": [ - { - "$id": "571", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "156" + { + "$id": "119", + "kind": "property", + "name": "stringFixedEnum", + "serializedName": "stringFixedEnum", + "doc": "this is a string based fixed enum", + "type": { + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.stringFixedEnum", + "serializationOptions": { + "json": { + "name": "stringFixedEnum" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "572", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "358" + { + "$id": "120", + "kind": "property", + "name": "requiredUnknown", + "serializedName": "requiredUnknown", + "doc": "required unknown", + "type": { + "$id": "121", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredUnknown", + "serializationOptions": { + "json": { + "name": "requiredUnknown" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/returnsAnonymousModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "573", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "156" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "574", - "type": { - "$ref": "358" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" - }, - { - "$id": "575", - "kind": "basic", - "name": "getUnknownValue", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "get extensible enum", - "operation": { - "$id": "576", - "name": "getUnknownValue", - "resourceName": "SampleTypeSpec", - "doc": "get extensible enum", - "accessibility": "public", - "parameters": [ - { - "$id": "577", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "578", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "122", + "kind": "property", + "name": "optionalUnknown", + "serializedName": "optionalUnknown", + "doc": "optional unknown", + "type": { + "$id": "123", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalUnknown", + "serializationOptions": { + "json": { + "name": "optionalUnknown" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "579", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "158" + { + "$id": "124", + "kind": "property", + "name": "requiredRecordUnknown", + "serializedName": "requiredRecordUnknown", + "doc": "required record of unknown", + "type": { + "$id": "125", + "kind": "dict", + "keyType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "127", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredRecordUnknown", + "serializationOptions": { + "json": { + "name": "requiredRecordUnknown" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/unknown-value", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue", - "decorators": [] - }, - "parameters": [ - { - "$id": "580", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "578" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "581", - "type": { - "$ref": "158" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" - }, - { - "$id": "582", - "kind": "basic", - "name": "internalProtocol", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "When set protocol false and convenient true, then the protocol method should be internal", - "operation": { - "$id": "583", - "name": "internalProtocol", - "resourceName": "SampleTypeSpec", - "doc": "When set protocol false and convenient true, then the protocol method should be internal", - "accessibility": "public", - "parameters": [ - { - "$id": "584", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "160" + { + "$id": "128", + "kind": "property", + "name": "optionalRecordUnknown", + "serializedName": "optionalRecordUnknown", + "doc": "optional record of unknown", + "type": { + "$id": "129", + "kind": "dict", + "keyType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "131", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalRecordUnknown", + "serializationOptions": { + "json": { + "name": "optionalRecordUnknown" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "585", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "162" + { + "$id": "132", + "kind": "property", + "name": "readOnlyRequiredRecordUnknown", + "serializedName": "readOnlyRequiredRecordUnknown", + "doc": "required readonly record of unknown", + "type": { + "$id": "133", + "kind": "dict", + "keyType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "135", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown", + "serializationOptions": { + "json": { + "name": "readOnlyRequiredRecordUnknown" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "586", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" + { + "$id": "136", + "kind": "property", + "name": "readOnlyOptionalRecordUnknown", + "serializedName": "readOnlyOptionalRecordUnknown", + "doc": "optional readonly record of unknown", + "type": { + "$id": "137", + "kind": "dict", + "keyType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "139", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown", + "serializationOptions": { + "json": { + "name": "readOnlyOptionalRecordUnknown" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "587", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "140", + "kind": "property", + "name": "modelWithRequiredNullable", + "serializedName": "modelWithRequiredNullable", + "doc": "this is a model with required nullable properties", + "type": { + "$id": "141", + "kind": "model", + "name": "ModelWithRequiredNullableProperties", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties", + "usage": "Input,Output,Json", + "doc": "A model with a few required nullable properties", + "decorators": [], + "properties": [ + { + "$id": "142", + "kind": "property", + "name": "requiredNullablePrimitive", + "serializedName": "requiredNullablePrimitive", + "doc": "required nullable primitive type", + "type": { + "$id": "143", + "kind": "nullable", + "type": { + "$id": "144", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive", + "serializationOptions": { + "json": { + "name": "requiredNullablePrimitive" + } + } + }, + { + "$id": "145", + "kind": "property", + "name": "requiredExtensibleEnum", + "serializedName": "requiredExtensibleEnum", + "doc": "required nullable extensible enum type", + "type": { + "$id": "146", + "kind": "nullable", + "type": { + "$ref": "6" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum", + "serializationOptions": { + "json": { + "name": "requiredExtensibleEnum" + } + } + }, + { + "$id": "147", + "kind": "property", + "name": "requiredFixedEnum", + "serializedName": "requiredFixedEnum", + "doc": "required nullable fixed enum type", + "type": { + "$id": "148", + "kind": "nullable", + "type": { + "$ref": "1" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum", + "serializationOptions": { + "json": { + "name": "requiredFixedEnum" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.modelWithRequiredNullable", + "serializationOptions": { + "json": { + "name": "modelWithRequiredNullable" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/internalProtocol", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": false, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol", - "decorators": [] - }, - "parameters": [ - { - "$id": "588", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "589", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "160" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "590", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "162" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "591", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": false, - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" + { + "$id": "149", + "kind": "property", + "name": "requiredBytes", + "serializedName": "requiredBytes", + "doc": "Required bytes", + "type": { + "$id": "150", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredBytes", + "serializationOptions": { + "json": { + "name": "requiredBytes" + } + } + } + ] }, { - "$id": "592", - "kind": "basic", - "name": "stillConvenient", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", - "operation": { - "$id": "593", - "name": "stillConvenient", - "resourceName": "SampleTypeSpec", - "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "594", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/stillConvenient", - "bufferResponse": true, - "generateProtocolMethod": false, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "595" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": false, - "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" + "$ref": "141" }, { - "$id": "596", - "kind": "basic", - "name": "headAsBoolean", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "head as boolean.", - "operation": { - "$id": "597", - "name": "headAsBoolean", - "resourceName": "SampleTypeSpec", - "doc": "head as boolean.", - "accessibility": "public", - "parameters": [ - { - "$id": "598", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "599", - "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": "600", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{sampleTypeSpecUrl}", - "path": "/headAsBoolean/{id}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean", - "decorators": [] - }, - "parameters": [ - { - "$id": "601", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "602", - "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 - } - ], - "response": { - "$id": "603" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" + "$id": "151", + "kind": "model", + "name": "Friend", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend", + "usage": "Output,Spread,Json", + "doc": "this is not a friendly model but with a friendly name", + "decorators": [], + "properties": [ + { + "$id": "152", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the NotFriend", + "type": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] }, { - "$id": "604", - "kind": "basic", - "name": "WithApiVersion", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "605", - "name": "WithApiVersion", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "606", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "607", - "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": "608", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "type": { - "$id": "609", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "610", - "type": { - "$id": "611", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2024-08-16-preview" - }, - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "612", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/WithApiVersion", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion", - "decorators": [] - }, - "parameters": [ - { - "$id": "613", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "614", - "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 - } - ], - "response": { - "$id": "615" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" + "$id": "154", + "kind": "model", + "name": "RenamedModel", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName", + "usage": "Output,Spread,Json", + "doc": "this is a model with a client name", + "decorators": [], + "properties": [ + { + "$id": "155", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the ModelWithClientName", + "type": { + "$id": "156", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] }, { - "$id": "616", - "kind": "paging", - "name": "ListWithNextLink", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with nextlink", - "operation": { - "$id": "617", - "name": "ListWithNextLink", - "resourceName": "SampleTypeSpec", - "doc": "List things with nextlink", - "accessibility": "public", - "parameters": [ - { - "$id": "618", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "164" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "619", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "359" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/link", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", - "decorators": [] - }, - "parameters": [ - { - "$id": "620", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "164" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "621", - "type": { - "$id": "622", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "things" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", - "pagingMetadata": { - "$id": "623", - "itemPropertySegments": [ - "things" - ], - "nextLink": { - "$id": "624", - "responseSegments": [ - "next" - ], - "responseLocation": "Body" - } - } + "$id": "157", + "kind": "model", + "name": "ReturnsAnonymousModelResponse", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [] }, { - "$id": "625", - "kind": "paging", - "name": "ListWithContinuationToken", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with continuation token", - "operation": { - "$id": "626", - "name": "ListWithContinuationToken", - "resourceName": "SampleTypeSpec", - "doc": "List things with continuation token", - "accessibility": "public", - "parameters": [ - { - "$id": "627", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "628", - "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": "629", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "166" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "630", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "368" + "$id": "158", + "kind": "model", + "name": "ListWithNextLinkResponse", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "159", + "kind": "property", + "name": "things", + "serializedName": "things", + "type": { + "$id": "160", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.things", + "serializationOptions": { + "json": { + "name": "things" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/continuation", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", - "decorators": [] - }, - "parameters": [ - { - "$id": "631", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "632", - "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": "633", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "166" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "634", - "type": { - "$id": "635", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "things" + { + "$id": "161", + "kind": "property", + "name": "next", + "serializedName": "next", + "type": { + "$id": "162", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.next", + "serializationOptions": { + "json": { + "name": "next" + } + } + } ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", - "pagingMetadata": { - "$id": "636", - "itemPropertySegments": [ - "things" - ], - "continuationToken": { - "$id": "637", - "parameter": { - "$ref": "627" - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" - } - } }, { - "$id": "638", - "kind": "paging", - "name": "ListWithContinuationTokenHeaderResponse", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with continuation token header response", - "operation": { - "$id": "639", - "name": "ListWithContinuationTokenHeaderResponse", - "resourceName": "SampleTypeSpec", - "doc": "List things with continuation token header response", - "accessibility": "public", - "parameters": [ - { - "$id": "640", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "641", - "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": "642", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "168" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "643", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "377" + "$id": "163", + "kind": "model", + "name": "ListWithContinuationTokenResponse", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "164", + "kind": "property", + "name": "things", + "serializedName": "things", + "type": { + "$id": "165", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.things", + "serializationOptions": { + "json": { + "name": "things" + } + } }, - "headers": [ - { - "$id": "644", + { + "$id": "166", + "kind": "property", "name": "nextToken", - "nameInResponse": "next-token", + "serializedName": "nextToken", "type": { - "$id": "645", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.nextToken", + "serializationOptions": { + "json": { + "name": "nextToken" + } } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/continuation/header", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", - "decorators": [] - }, - "parameters": [ - { - "$id": "646", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "647", - "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": "648", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "168" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "649", - "type": { - "$id": "650", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "things" + } ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", - "pagingMetadata": { - "$id": "651", - "itemPropertySegments": [ - "things" - ], - "continuationToken": { - "$id": "652", - "parameter": { - "$ref": "640" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" - } - } }, { - "$id": "653", - "kind": "paging", - "name": "ListWithPaging", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with paging", - "operation": { - "$id": "654", - "name": "ListWithPaging", - "resourceName": "SampleTypeSpec", - "doc": "List things with paging", - "accessibility": "public", - "parameters": [ - { - "$id": "655", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "170" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "656", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "382" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/list/paging", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging", - "decorators": [] - }, - "parameters": [ - { - "$id": "657", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "170" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "658", - "type": { - "$id": "659", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "174" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "items" + "$id": "168", + "kind": "model", + "name": "ListWithContinuationTokenHeaderResponseResponse", + "namespace": "", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "169", + "kind": "property", + "name": "things", + "serializedName": "things", + "type": { + "$id": "170", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "ListWithContinuationTokenHeaderResponse.Response.anonymous.things", + "serializationOptions": { + "json": { + "name": "things" + } + } + } ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging", - "pagingMetadata": { - "$id": "660", - "itemPropertySegments": [ - "items" + }, + { + "$id": "171", + "kind": "model", + "name": "PageThing", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.Page", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "172", + "kind": "property", + "name": "items", + "serializedName": "items", + "type": { + "$id": "173", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Page.items", + "serializationOptions": { + "json": { + "name": "items" + } + } + } ] - } }, { - "$id": "661", - "kind": "basic", - "name": "EmbeddedParameters", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "An operation with embedded parameters within the body", - "operation": { - "$id": "662", - "name": "EmbeddedParameters", - "resourceName": "SampleTypeSpec", - "doc": "An operation with embedded parameters within the body", - "accessibility": "public", - "parameters": [ - { - "$id": "663", - "name": "requiredHeader", - "nameInRequest": "required-header", - "doc": "required header parameter", - "type": { - "$id": "664", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "174", + "kind": "model", + "name": "ModelWithEmbeddedNonBodyParameters", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "175", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the ModelWithEmbeddedNonBodyParameters", + "type": { + "$id": "176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "665", - "name": "optionalHeader", - "nameInRequest": "optional-header", - "doc": "optional header parameter", - "type": { - "$id": "666", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "177", + "kind": "header", + "name": "requiredHeader", + "serializedName": "required-header", + "doc": "required header parameter", + "type": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", + "correspondingMethodParams": [] + }, + { + "$id": "179", + "kind": "header", + "name": "optionalHeader", + "serializedName": "optional-header", + "doc": "optional header parameter", + "type": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", + "correspondingMethodParams": [] + }, + { + "$id": "181", + "kind": "query", + "name": "requiredQuery", + "serializedName": "requiredQuery", + "doc": "required query parameter", + "type": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", + "correspondingMethodParams": [] + }, + { + "$id": "183", + "kind": "query", + "name": "optionalQuery", + "serializedName": "optionalQuery", + "doc": "optional query parameter", + "type": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", + "correspondingMethodParams": [] + } + ] + } + ], + "clients": [ + { + "$id": "185", + "kind": "client", + "name": "SampleTypeSpecClient", + "namespace": "SampleTypeSpec", + "doc": "This is a sample typespec project.", + "methods": [ + { + "$id": "186", + "kind": "basic", + "name": "sayHi", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi", + "operation": { + "$id": "187", + "name": "sayHi", + "resourceName": "SampleTypeSpec", + "doc": "Return hi", + "accessibility": "public", + "parameters": [ + { + "$id": "188", + "name": "headParameter", + "nameInRequest": "head-parameter", + "type": { + "$id": "189", + "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": "190", + "name": "queryParameter", + "nameInRequest": "queryParameter", + "type": { + "$id": "191", + "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": "192", + "name": "optionalQuery", + "nameInRequest": "optionalQuery", + "type": { + "$id": "193", + "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": "194", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "195", + "kind": "constant", + "name": "sayHiContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "197", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/hello", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi", + "decorators": [] + }, + "parameters": [ + { + "$id": "198", + "name": "headParameter", + "nameInRequest": "head-parameter", + "type": { + "$id": "199", + "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": "200", + "name": "queryParameter", + "nameInRequest": "queryParameter", + "type": { + "$id": "201", + "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": "202", + "name": "optionalQuery", + "nameInRequest": "optionalQuery", + "type": { + "$id": "203", + "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": "204", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "195" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "667", - "name": "requiredQuery", - "nameInRequest": "requiredQuery", - "doc": "required query parameter", - "type": { - "$id": "668", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "205", + "kind": "basic", + "name": "helloAgain", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi again", + "operation": { + "$id": "206", + "name": "helloAgain", + "resourceName": "SampleTypeSpec", + "doc": "Return hi again", + "accessibility": "public", + "parameters": [ + { + "$id": "207", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "208", + "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": "209", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "210", + "kind": "constant", + "name": "HelloAgainRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "211", + "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": "212", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "213", + "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": "214", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "215", + "kind": "constant", + "name": "helloAgainContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "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": "217", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "218", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "94" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/againHi/{p2}", + "requestMediaTypes": [ + "text/plain" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain", + "decorators": [] + }, + "parameters": [ + { + "$id": "219", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "220", + "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": "221", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "222", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$id": "223", + "kind": "constant", + "name": "HelloAgainRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "224", + "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 + }, + { + "$id": "225", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "226", + "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": "227", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "215" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "94" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "669", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "doc": "optional query parameter", - "type": { - "$id": "670", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "228", + "kind": "basic", + "name": "noContentType", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi again", + "operation": { + "$id": "229", + "name": "noContentType", + "resourceName": "SampleTypeSpec", + "doc": "Return hi again", + "accessibility": "public", + "parameters": [ + { + "$id": "230", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "231", + "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": "232", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "233", + "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": "234", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "235", + "kind": "constant", + "name": "noContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "237", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "238", + "kind": "constant", + "name": "noContentTypeContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "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": "240", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "241", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "94" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/noContentType/{p2}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType", + "decorators": [] + }, + "parameters": [ + { + "$id": "242", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "243", + "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": "244", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "245", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "246", + "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": "247", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "235" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "248", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "238" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "94" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "671", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "172" + { + "$id": "249", + "kind": "basic", + "name": "helloDemo2", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi in demo2", + "operation": { + "$id": "250", + "name": "helloDemo2", + "resourceName": "SampleTypeSpec", + "doc": "Return hi in demo2", + "accessibility": "public", + "parameters": [ + { + "$id": "251", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "252", + "kind": "constant", + "name": "helloDemo2ContentType", + "namespace": "", + "usage": "None", + "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 + } + ], + "responses": [ + { + "$id": "254", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/demoHi", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2", + "decorators": [] + }, + "parameters": [ + { + "$id": "255", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "252" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "672", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "387" + { + "$id": "256", + "kind": "basic", + "name": "createLiteral", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Create with literal value", + "operation": { + "$id": "257", + "name": "createLiteral", + "resourceName": "SampleTypeSpec", + "doc": "Create with literal value", + "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", + "name": "createLiteralContentType", + "namespace": "", + "usage": "None", + "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": "261", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "262", + "kind": "constant", + "name": "createLiteralContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "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": "264", + "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": "265", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral", + "decorators": [] + }, + "parameters": [ + { + "$id": "266", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "267", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "259" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "268", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "262" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "673", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "269", + "kind": "basic", + "name": "helloLiteral", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Send literal parameters", + "operation": { + "$id": "270", + "name": "helloLiteral", + "resourceName": "SampleTypeSpec", + "doc": "Send literal parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "271", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "272", + "kind": "constant", + "name": "HelloLiteralRequestP1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "273", + "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": "274", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "275", + "kind": "constant", + "name": "ThingRequiredLiteralInt1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "276", + "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": "277", + "name": "p3", + "nameInRequest": "p3", + "type": { + "$id": "278", + "kind": "constant", + "name": "ThingOptionalLiteralBool1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "279", + "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": "280", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "281", + "kind": "constant", + "name": "helloLiteralContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "283", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/helloLiteral/{p2}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral", + "decorators": [] + }, + "parameters": [ + { + "$id": "284", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "285", + "kind": "constant", + "name": "HelloLiteralRequestP11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "286", + "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": "287", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "288", + "kind": "constant", + "name": "ThingRequiredLiteralInt2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "289", + "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": "290", + "name": "p3", + "nameInRequest": "p3", + "type": { + "$id": "291", + "kind": "constant", + "name": "ThingOptionalLiteralBool2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "292", + "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": "293", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "281" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" + }, + { + "$id": "294", + "kind": "basic", + "name": "topAction", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "top level method", + "operation": { + "$id": "295", + "name": "topAction", + "resourceName": "SampleTypeSpec", + "doc": "top level method", + "accessibility": "public", + "parameters": [ + { + "$id": "296", + "name": "action", + "nameInRequest": "action", + "type": { + "$id": "297", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "298", + "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": "299", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "300", + "kind": "constant", + "name": "topActionContentType", + "namespace": "", + "usage": "None", + "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": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/top/{action}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction", + "decorators": [] + }, + "parameters": [ + { + "$id": "303", + "name": "action", + "nameInRequest": "action", + "type": { + "$id": "304", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "305", + "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": "306", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "300" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction" + }, + { + "$id": "307", + "kind": "basic", + "name": "topAction2", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "top level method2", + "operation": { + "$id": "308", + "name": "topAction2", + "resourceName": "SampleTypeSpec", + "doc": "top level method2", + "accessibility": "public", + "parameters": [ + { + "$id": "309", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "310", + "kind": "constant", + "name": "topAction2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "312", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/top2", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction2", + "decorators": [] + }, + "parameters": [ + { + "$id": "313", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "310" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" + }, + { + "$id": "314", + "kind": "basic", + "name": "patchAction", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "top level patch", + "operation": { + "$id": "315", + "name": "patchAction", + "resourceName": "SampleTypeSpec", + "doc": "top level patch", + "accessibility": "public", + "parameters": [ + { + "$id": "316", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "317", + "kind": "constant", + "name": "patchActionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "319", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "320", + "kind": "constant", + "name": "patchActionContentType1", + "namespace": "", + "usage": "None", + "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 + }, + { + "$id": "322", + "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": "323", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PATCH", + "uri": "{sampleTypeSpecUrl}", + "path": "/patch", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction", + "decorators": [] + }, + "parameters": [ + { + "$id": "324", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "325", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "317" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "326", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "320" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" + }, + { + "$id": "327", + "kind": "basic", + "name": "anonymousBody", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "body parameter without body decorator", + "operation": { + "$id": "328", + "name": "anonymousBody", + "resourceName": "SampleTypeSpec", + "doc": "body parameter without body decorator", + "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", + "name": "anonymousBodyContentType", + "namespace": "", + "usage": "None", + "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", + "name": "anonymousBodyContentType1", + "namespace": "", + "usage": "None", + "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": "thing", + "nameInRequest": "thing", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "336", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/anonymousBody", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody", + "decorators": [] + }, + "parameters": [ + { + "$id": "337", + "name": "name", + "nameInRequest": "name", + "doc": "name of the Thing", + "type": { + "$id": "338", + "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 + }, + { + "$id": "339", + "name": "requiredUnion", + "nameInRequest": "requiredUnion", + "doc": "required Union", + "type": { + "$ref": "65" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "340", + "name": "requiredLiteralString", + "nameInRequest": "requiredLiteralString", + "doc": "required literal string", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "341", + "name": "requiredNullableString", + "nameInRequest": "requiredNullableString", + "doc": "required nullable string", + "type": { + "$ref": "72" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "342", + "name": "optionalNullableString", + "nameInRequest": "optionalNullableString", + "doc": "required optional string", + "type": { + "$ref": "75" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "343", + "name": "requiredLiteralInt", + "nameInRequest": "requiredLiteralInt", + "doc": "required literal int", + "type": { + "$ref": "47" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "344", + "name": "requiredLiteralFloat", + "nameInRequest": "requiredLiteralFloat", + "doc": "required literal float", + "type": { + "$ref": "49" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "345", + "name": "requiredLiteralBool", + "nameInRequest": "requiredLiteralBool", + "doc": "required literal bool", + "type": { + "$ref": "51" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "346", + "name": "optionalLiteralString", + "nameInRequest": "optionalLiteralString", + "doc": "optional literal string", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "347", + "name": "optionalLiteralInt", + "nameInRequest": "optionalLiteralInt", + "doc": "optional literal int", + "type": { + "$ref": "55" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "348", + "name": "optionalLiteralFloat", + "nameInRequest": "optionalLiteralFloat", + "doc": "optional literal float", + "type": { + "$ref": "57" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "349", + "name": "optionalLiteralBool", + "nameInRequest": "optionalLiteralBool", + "doc": "optional literal bool", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "350", + "name": "requiredBadDescription", + "nameInRequest": "requiredBadDescription", + "doc": "description with xml <|endoftext|>", + "type": { + "$id": "351", + "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 + }, + { + "$id": "352", + "name": "optionalNullableList", + "nameInRequest": "optionalNullableList", + "doc": "optional nullable collection", + "type": { + "$ref": "87" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "353", + "name": "requiredNullableList", + "nameInRequest": "requiredNullableList", + "doc": "required nullable collection", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "354", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "330" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "355", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "333" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" + }, + { + "$id": "356", + "kind": "basic", + "name": "friendlyModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Model can have its friendly name", + "operation": { + "$id": "357", + "name": "friendlyModel", + "resourceName": "SampleTypeSpec", + "doc": "Model can have its friendly name", + "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", + "name": "friendlyModelContentType", + "namespace": "", + "usage": "None", + "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": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "362", + "kind": "constant", + "name": "friendlyModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "363", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "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": "364", + "name": "friend", + "nameInRequest": "friend", + "type": { + "$ref": "151" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "365", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "151" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/friendlyName", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "366", + "name": "name", + "nameInRequest": "name", + "doc": "name of the NotFriend", + "type": { + "$id": "367", + "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 + }, + { + "$id": "368", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "359" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "369", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "362" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "151" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" + }, + { + "$id": "370", + "kind": "basic", + "name": "addTimeHeader", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "operation": { + "$id": "371", + "name": "addTimeHeader", + "resourceName": "SampleTypeSpec", + "accessibility": "public", + "parameters": [ + { + "$id": "372", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "type": { + "$id": "373", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "374", + "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": "375", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader", + "decorators": [] + }, + "parameters": [ + { + "$id": "376", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "type": { + "$id": "377", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "378", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" + }, + { + "$id": "379", + "kind": "basic", + "name": "projectedNameModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Model can have its projected name", + "operation": { + "$id": "380", + "name": "projectedNameModel", + "resourceName": "SampleTypeSpec", + "doc": "Model can have its projected name", + "accessibility": "public", + "parameters": [ + { + "$id": "381", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "382", + "kind": "constant", + "name": "projectedNameModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "383", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "384", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "385", + "kind": "constant", + "name": "projectedNameModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "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": "387", + "name": "renamedModel", + "nameInRequest": "renamedModel", + "type": { + "$ref": "154" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "388", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "154" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/projectedName", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "389", + "name": "name", + "nameInRequest": "name", + "doc": "name of the ModelWithClientName", + "type": { + "$id": "390", + "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 + }, + { + "$id": "391", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "382" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "392", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "385" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "154" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" + }, + { + "$id": "393", + "kind": "basic", + "name": "returnsAnonymousModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "return anonymous model", + "operation": { + "$id": "394", + "name": "returnsAnonymousModel", + "resourceName": "SampleTypeSpec", + "doc": "return anonymous model", + "accessibility": "public", + "parameters": [ + { + "$id": "395", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "396", + "kind": "constant", + "name": "returnsAnonymousModelContentType", + "namespace": "", + "usage": "None", + "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": "157" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/returnsAnonymousModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "399", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "396" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "157" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" + }, + { + "$id": "400", + "kind": "basic", + "name": "getUnknownValue", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "get extensible enum", + "operation": { + "$id": "401", + "name": "getUnknownValue", + "resourceName": "SampleTypeSpec", + "doc": "get extensible enum", + "accessibility": "public", + "parameters": [ + { + "$id": "402", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "403", + "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": "404", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "405", + "kind": "constant", + "name": "GetUnknownValueResponse6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "406", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "Sunday", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "text/plain", + "text/plain", + "text/plain", + "text/plain", + "text/plain", + "text/plain", + "text/plain", + "text/plain" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/unknown-value", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue", + "decorators": [] + }, + "parameters": [ + { + "$id": "407", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "403" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "405" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" + }, + { + "$id": "408", + "kind": "basic", + "name": "internalProtocol", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "When set protocol false and convenient true, then the protocol method should be internal", + "operation": { + "$id": "409", + "name": "internalProtocol", + "resourceName": "SampleTypeSpec", + "doc": "When set protocol false and convenient true, then the protocol method should be internal", + "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", + "name": "internalProtocolContentType", + "namespace": "", + "usage": "None", + "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": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "414", + "kind": "constant", + "name": "internalProtocolContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "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": "416", + "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": "417", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/internalProtocol", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": false, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol", + "decorators": [] + }, + "parameters": [ + { + "$id": "418", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "419", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "411" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "420", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "414" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "61" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": false, + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" + }, + { + "$id": "421", + "kind": "basic", + "name": "stillConvenient", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", + "operation": { + "$id": "422", + "name": "stillConvenient", + "resourceName": "SampleTypeSpec", + "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "423", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/stillConvenient", + "bufferResponse": true, + "generateProtocolMethod": false, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": false, + "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" + }, + { + "$id": "424", + "kind": "basic", + "name": "headAsBoolean", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "head as boolean.", + "operation": { + "$id": "425", + "name": "headAsBoolean", + "resourceName": "SampleTypeSpec", + "doc": "head as boolean.", + "accessibility": "public", + "parameters": [ + { + "$id": "426", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "427", + "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": "428", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{sampleTypeSpecUrl}", + "path": "/headAsBoolean/{id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean", + "decorators": [] + }, + "parameters": [ + { + "$id": "429", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "430", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" + }, + { + "$id": "431", + "kind": "basic", + "name": "WithApiVersion", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi again", + "operation": { + "$id": "432", + "name": "WithApiVersion", + "resourceName": "SampleTypeSpec", + "doc": "Return hi again", + "accessibility": "public", + "parameters": [ + { + "$id": "433", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "434", + "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": "435", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "type": { + "$id": "436", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-08-16-preview" + }, + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "437", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/WithApiVersion", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion", + "decorators": [] + }, + "parameters": [ + { + "$id": "438", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "439", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" + }, + { + "$id": "440", + "kind": "paging", + "name": "ListWithNextLink", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with nextlink", + "operation": { + "$id": "441", + "name": "ListWithNextLink", + "resourceName": "SampleTypeSpec", + "doc": "List things with nextlink", + "accessibility": "public", + "parameters": [ + { + "$id": "442", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "443", + "kind": "constant", + "name": "ListWithNextLinkContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "444", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "445", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "158" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/link", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", + "decorators": [] + }, + "parameters": [ + { + "$id": "446", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "443" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "447", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "things" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", + "pagingMetadata": { + "itemPropertySegments": [ + "things" + ], + "nextLink": { + "responseSegments": [ + "next" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "448", + "kind": "paging", + "name": "ListWithContinuationToken", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with continuation token", + "operation": { + "$id": "449", + "name": "ListWithContinuationToken", + "resourceName": "SampleTypeSpec", + "doc": "List things with continuation token", + "accessibility": "public", + "parameters": [ + { + "$id": "450", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "451", + "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": "452", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "453", + "kind": "constant", + "name": "ListWithContinuationTokenContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "454", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "455", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "163" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/continuation", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", + "decorators": [] + }, + "parameters": [ + { + "$id": "456", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "457", + "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": "458", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "453" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "459", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "things" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", + "pagingMetadata": { + "itemPropertySegments": [ + "things" + ], + "continuationToken": { + "parameter": { + "$ref": "450" + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "460", + "kind": "paging", + "name": "ListWithContinuationTokenHeaderResponse", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with continuation token header response", + "operation": { + "$id": "461", + "name": "ListWithContinuationTokenHeaderResponse", + "resourceName": "SampleTypeSpec", + "doc": "List things with continuation token header response", + "accessibility": "public", + "parameters": [ + { + "$id": "462", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "463", + "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": "464", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "465", + "kind": "constant", + "name": "ListWithContinuationTokenHeaderResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "467", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "168" + }, + "headers": [ + { + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/continuation/header", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", + "decorators": [] + }, + "parameters": [ + { + "$id": "469", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "470", + "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": "471", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "465" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "472", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "things" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", + "pagingMetadata": { + "itemPropertySegments": [ + "things" + ], + "continuationToken": { + "parameter": { + "$ref": "462" + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + } + }, + { + "$id": "473", + "kind": "paging", + "name": "ListWithPaging", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with paging", + "operation": { + "$id": "474", + "name": "ListWithPaging", + "resourceName": "SampleTypeSpec", + "doc": "List things with paging", + "accessibility": "public", + "parameters": [ + { + "$id": "475", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "476", + "kind": "constant", + "name": "ListWithPagingContentType", + "namespace": "", + "usage": "None", + "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": "171" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/list/paging", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging", + "decorators": [] + }, + "parameters": [ + { + "$id": "479", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "476" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "480", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "61" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "items" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging", + "pagingMetadata": { + "itemPropertySegments": [ + "items" + ] + } + }, + { + "$id": "481", + "kind": "basic", + "name": "EmbeddedParameters", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "An operation with embedded parameters within the body", + "operation": { + "$id": "482", + "name": "EmbeddedParameters", + "resourceName": "SampleTypeSpec", + "doc": "An operation with embedded parameters within the body", + "accessibility": "public", + "parameters": [ + { + "$id": "483", + "name": "requiredHeader", + "nameInRequest": "required-header", + "doc": "required header parameter", + "type": { + "$id": "484", + "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": "485", + "name": "optionalHeader", + "nameInRequest": "optional-header", + "doc": "optional header parameter", + "type": { + "$id": "486", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "487", + "name": "requiredQuery", + "nameInRequest": "requiredQuery", + "doc": "required query parameter", + "type": { + "$id": "488", + "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": "489", + "name": "optionalQuery", + "nameInRequest": "optionalQuery", + "doc": "optional query parameter", + "type": { + "$id": "490", + "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": "491", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "492", + "kind": "constant", + "name": "EmbeddedParametersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "494", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "174" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "495", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/embeddedParameters", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters", + "decorators": [] + }, + "parameters": [ + { + "$id": "496", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "174" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "497", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "492" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters" + } ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/embeddedParameters", - "requestMediaTypes": [ - "application/json" + "parameters": [ + { + "name": "sampleTypeSpecUrl", + "nameInRequest": "sampleTypeSpecUrl", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters", - "decorators": [] - }, - "parameters": [ - { - "$id": "674", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "387" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "675", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "172" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "676" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters" + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ] } - ], - "parameters": [ - { - "$id": "677", - "name": "sampleTypeSpecUrl", - "nameInRequest": "sampleTypeSpecUrl", - "type": { - "$id": "678", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + ], + "auth": { + "apiKey": { + "name": "my-api-key", + "in": "header" } - ], - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ] - } - ], - "auth": { - "$id": "679", - "apiKey": { - "$id": "680", - "name": "my-api-key", - "in": "header" } - } } From a541d216e9659601f0f18754bad9dad5ac24ba12 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 23 May 2025 15:18:13 +0800 Subject: [PATCH 02/22] format --- .../http-client-csharp/emitter/src/lib/type-converter.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/type-converter.ts b/packages/http-client-csharp/emitter/src/lib/type-converter.ts index 88fa6e0818c..5c13bb3ad8e 100644 --- a/packages/http-client-csharp/emitter/src/lib/type-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/type-converter.ts @@ -368,10 +368,7 @@ function fromSdkModelType( } } -function fromSdkEnumType( - sdkContext: CSharpEmitterContext, - enumType: SdkEnumType, -): InputEnumType { +function fromSdkEnumType(sdkContext: CSharpEmitterContext, enumType: SdkEnumType): InputEnumType { const enumName = enumType.name; let inputEnumType = sdkContext.__typeCache.enums.get(enumName); if (!inputEnumType) { From 82c10918cb73ce5e706c429cd03f67ec13211ecf Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Sat, 24 May 2025 16:08:30 +0800 Subject: [PATCH 03/22] partially regen --- .../authentication/api-key/tspCodeModel.json | 435 +- .../http/custom/src/Generated/CustomClient.cs | 39 - .../src/Generated/CustomClientOptions.cs | 12 - .../Models/AuthenticationHttpCustomContext.cs | 12 - .../http/custom/tspCodeModel.json | 437 +- .../authentication/oauth2/tspCodeModel.json | 437 +- .../authentication/union/tspCodeModel.json | 276 +- .../Spector/http/routes/tspCodeModel.json | 10301 ++++---- .../http/special-words/tspCodeModel.json | 19550 ++++++++-------- 9 files changed, 15397 insertions(+), 16102 deletions(-) delete mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs delete mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs delete mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.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 ee9fa7332c2..84115c4cea4 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 @@ -1,237 +1,220 @@ { - "$id": "1", - "name": "Authentication.ApiKey", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "invalidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "4", - "kind": "model", - "name": "InvalidAuth", - "namespace": "Authentication.ApiKey", - "crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + "name": "Authentication.ApiKey", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [ { - "$id": "5", - "kind": "property", - "name": "error", - "serializedName": "error", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth.error", - "serializationOptions": { - "$id": "7", - "json": { - "$id": "8", - "name": "error" - } - } + "$id": "1", + "kind": "model", + "name": "InvalidAuth", + "namespace": "Authentication.ApiKey", + "crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "2", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] } - ] - } - ], - "clients": [ - { - "$id": "9", - "kind": "client", - "name": "ApiKeyClient", - "namespace": "Authentication.ApiKey", - "doc": "Illustrates clients generated with ApiKey authentication.", - "methods": [ - { - "$id": "10", - "kind": "basic", - "name": "valid", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated", - "operation": { - "$id": "11", - "name": "valid", - "resourceName": "ApiKey", - "doc": "Check whether client is authenticated", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "12", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/api-key/valid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.ApiKey.valid", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "13" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.ApiKey.valid" - }, + ], + "clients": [ { - "$id": "14", - "kind": "basic", - "name": "invalid", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated.", - "operation": { - "$id": "15", - "name": "invalid", - "resourceName": "ApiKey", - "doc": "Check whether client is authenticated.", - "accessibility": "public", - "parameters": [ - { - "$id": "16", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" + "$id": "4", + "kind": "client", + "name": "ApiKeyClient", + "namespace": "Authentication.ApiKey", + "doc": "Illustrates clients generated with ApiKey authentication.", + "methods": [ + { + "$id": "5", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "6", + "name": "valid", + "resourceName": "ApiKey", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "7", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/api-key/valid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.ApiKey.valid", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.ApiKey.valid" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "8", + "kind": "basic", + "name": "invalid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated.", + "operation": { + "$id": "9", + "name": "invalid", + "resourceName": "ApiKey", + "doc": "Check whether client is authenticated.", + "accessibility": "public", + "parameters": [ + { + "$id": "10", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "11", + "kind": "constant", + "name": "invalidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/api-key/invalid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.ApiKey.invalid", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.ApiKey.invalid" + } ], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/api-key/invalid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.ApiKey.invalid", - "decorators": [] - }, - "parameters": [ - { - "$id": "18", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "19" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.ApiKey.invalid" + "decorators": [], + "crossLanguageDefinitionId": "Authentication.ApiKey", + "apiVersions": [] } - ], - "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" - } + ], + "auth": { + "apiKey": { + "name": "x-ms-api-key", + "in": "header" } - ], - "decorators": [], - "crossLanguageDefinitionId": "Authentication.ApiKey", - "apiVersions": [] - } - ], - "auth": { - "$id": "24", - "apiKey": { - "$id": "25", - "name": "x-ms-api-key", - "in": "header" } - } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs deleted file mode 100644 index 18db40d8e7b..00000000000 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs +++ /dev/null @@ -1,39 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; - -namespace Authentication.Http.Custom -{ - public partial class CustomClient - { - protected CustomClient() => throw null; - - public CustomClient(ApiKeyCredential keyCredential) : this(new Uri("http://localhost:3000"), keyCredential, new CustomClientOptions()) => throw null; - - public CustomClient(Uri endpoint, ApiKeyCredential keyCredential, CustomClientOptions options) => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Valid(RequestOptions options) => throw null; - - public virtual Task ValidAsync(RequestOptions options) => throw null; - - public virtual ClientResult Valid(CancellationToken cancellationToken = default) => throw null; - - public virtual Task ValidAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Invalid(RequestOptions options) => throw null; - - public virtual Task InvalidAsync(RequestOptions options) => throw null; - - public virtual ClientResult Invalid(CancellationToken cancellationToken = default) => throw null; - - public virtual Task InvalidAsync(CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs deleted file mode 100644 index bd234ac920d..00000000000 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// - -#nullable disable - -using System.ClientModel.Primitives; - -namespace Authentication.Http.Custom -{ - public partial class CustomClientOptions : ClientPipelineOptions - { - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs deleted file mode 100644 index a2437ee39c6..00000000000 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs +++ /dev/null @@ -1,12 +0,0 @@ -// - -#nullable disable - -using System.ClientModel.Primitives; - -namespace Authentication.Http.Custom -{ - public partial class AuthenticationHttpCustomContext : ModelReaderWriterContext - { - } -} 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 22fb8f77093..6b79879cc79 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 @@ -1,238 +1,221 @@ { - "$id": "1", - "name": "Authentication.Http.Custom", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "invalidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "4", - "kind": "model", - "name": "InvalidAuth", - "namespace": "Authentication.Http.Custom", - "crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + "name": "Authentication.Http.Custom", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [ { - "$id": "5", - "kind": "property", - "name": "error", - "serializedName": "error", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth.error", - "serializationOptions": { - "$id": "7", - "json": { - "$id": "8", - "name": "error" - } - } + "$id": "1", + "kind": "model", + "name": "InvalidAuth", + "namespace": "Authentication.Http.Custom", + "crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "2", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] } - ] - } - ], - "clients": [ - { - "$id": "9", - "kind": "client", - "name": "CustomClient", - "namespace": "Authentication.Http.Custom", - "doc": "Illustrates clients generated with generic HTTP auth.", - "methods": [ - { - "$id": "10", - "kind": "basic", - "name": "valid", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated", - "operation": { - "$id": "11", - "name": "valid", - "resourceName": "Custom", - "doc": "Check whether client is authenticated", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "12", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/http/custom/valid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.Http.Custom.valid", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "13" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.Http.Custom.valid" - }, + ], + "clients": [ { - "$id": "14", - "kind": "basic", - "name": "invalid", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated.", - "operation": { - "$id": "15", - "name": "invalid", - "resourceName": "Custom", - "doc": "Check whether client is authenticated.", - "accessibility": "public", - "parameters": [ - { - "$id": "16", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" + "$id": "4", + "kind": "client", + "name": "CustomClient", + "namespace": "Authentication.Http.Custom", + "doc": "Illustrates clients generated with generic HTTP auth.", + "methods": [ + { + "$id": "5", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "6", + "name": "valid", + "resourceName": "Custom", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "7", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/http/custom/valid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.Http.Custom.valid", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.Http.Custom.valid" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "8", + "kind": "basic", + "name": "invalid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated.", + "operation": { + "$id": "9", + "name": "invalid", + "resourceName": "Custom", + "doc": "Check whether client is authenticated.", + "accessibility": "public", + "parameters": [ + { + "$id": "10", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "11", + "kind": "constant", + "name": "invalidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/http/custom/invalid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.Http.Custom.invalid", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.Http.Custom.invalid" + } ], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/http/custom/invalid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.Http.Custom.invalid", - "decorators": [] - }, - "parameters": [ - { - "$id": "18", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "19" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.Http.Custom.invalid" + "decorators": [], + "crossLanguageDefinitionId": "Authentication.Http.Custom", + "apiVersions": [] } - ], - "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" - } + ], + "auth": { + "apiKey": { + "name": "Authorization", + "in": "header", + "prefix": "SharedAccessKey" } - ], - "decorators": [], - "crossLanguageDefinitionId": "Authentication.Http.Custom", - "apiVersions": [] - } - ], - "auth": { - "$id": "24", - "apiKey": { - "$id": "25", - "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 9004a1e03f0..7769313edac 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 @@ -1,238 +1,221 @@ { - "$id": "1", - "name": "Authentication.OAuth2", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "invalidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "4", - "kind": "model", - "name": "InvalidAuth", - "namespace": "Authentication.OAuth2", - "crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + "name": "Authentication.OAuth2", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [ { - "$id": "5", - "kind": "property", - "name": "error", - "serializedName": "error", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth.error", - "serializationOptions": { - "$id": "7", - "json": { - "$id": "8", - "name": "error" - } - } + "$id": "1", + "kind": "model", + "name": "InvalidAuth", + "namespace": "Authentication.OAuth2", + "crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "2", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] } - ] - } - ], - "clients": [ - { - "$id": "9", - "kind": "client", - "name": "OAuth2Client", - "namespace": "Authentication.OAuth2", - "doc": "Illustrates clients generated with OAuth2 authentication.", - "methods": [ - { - "$id": "10", - "kind": "basic", - "name": "valid", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated", - "operation": { - "$id": "11", - "name": "valid", - "resourceName": "OAuth2", - "doc": "Check whether client is authenticated", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "12", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/oauth2/valid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.OAuth2.valid", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "13" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.OAuth2.valid" - }, + ], + "clients": [ { - "$id": "14", - "kind": "basic", - "name": "invalid", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated. Will return an invalid bearer error.", - "operation": { - "$id": "15", - "name": "invalid", - "resourceName": "OAuth2", - "doc": "Check whether client is authenticated. Will return an invalid bearer error.", - "accessibility": "public", - "parameters": [ - { - "$id": "16", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" + "$id": "4", + "kind": "client", + "name": "OAuth2Client", + "namespace": "Authentication.OAuth2", + "doc": "Illustrates clients generated with OAuth2 authentication.", + "methods": [ + { + "$id": "5", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "6", + "name": "valid", + "resourceName": "OAuth2", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "7", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/oauth2/valid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.OAuth2.valid", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.OAuth2.valid" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "8", + "kind": "basic", + "name": "invalid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated. Will return an invalid bearer error.", + "operation": { + "$id": "9", + "name": "invalid", + "resourceName": "OAuth2", + "doc": "Check whether client is authenticated. Will return an invalid bearer error.", + "accessibility": "public", + "parameters": [ + { + "$id": "10", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "11", + "kind": "constant", + "name": "invalidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/oauth2/invalid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.OAuth2.invalid", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.OAuth2.invalid" + } ], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/oauth2/invalid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.OAuth2.invalid", - "decorators": [] - }, - "parameters": [ - { - "$id": "18", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "19" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.OAuth2.invalid" + "decorators": [], + "crossLanguageDefinitionId": "Authentication.OAuth2", + "apiVersions": [] } - ], - "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" - } + ], + "auth": { + "oAuth2": { + "scopes": [ + "https://security.microsoft.com/.default" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Authentication.OAuth2", - "apiVersions": [] - } - ], - "auth": { - "$id": "24", - "oAuth2": { - "$id": "25", - "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 1161b88dcc6..69cba53353e 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 @@ -1,152 +1,140 @@ { - "$id": "1", - "name": "Authentication.Union", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "UnionClient", - "namespace": "Authentication.Union", - "doc": "Illustrates clients generated with ApiKey and OAuth2 authentication.", - "methods": [ + "name": "Authentication.Union", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "validKey", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated", - "operation": { - "$id": "4", - "name": "validKey", - "resourceName": "Union", - "doc": "Check whether client is authenticated", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "5", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "1", + "kind": "client", + "name": "UnionClient", + "namespace": "Authentication.Union", + "doc": "Illustrates clients generated with ApiKey and OAuth2 authentication.", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "validKey", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "3", + "name": "validKey", + "resourceName": "Union", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "4", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/union/validkey", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.Union.validKey", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.Union.validKey" + }, + { + "$id": "5", + "kind": "basic", + "name": "validToken", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "6", + "name": "validToken", + "resourceName": "Union", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "7", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/authentication/union/validtoken", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Authentication.Union.validToken", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Authentication.Union.validToken" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/union/validkey", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.Union.validKey", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "6" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.Union.validKey" - }, - { - "$id": "7", - "kind": "basic", - "name": "validToken", - "accessibility": "public", - "apiVersions": [], - "doc": "Check whether client is authenticated", - "operation": { - "$id": "8", - "name": "validToken", - "resourceName": "Union", - "doc": "Check whether client is authenticated", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "9", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/authentication/union/validtoken", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Authentication.Union.validToken", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "10" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Authentication.Union.validToken" + "decorators": [], + "crossLanguageDefinitionId": "Authentication.Union", + "apiVersions": [] } - ], - "parameters": [ - { - "$id": "11", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "12", - "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": "13", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + ], + "auth": { + "apiKey": { + "name": "x-ms-api-key", + "in": "header" + }, + "oAuth2": { + "scopes": [ + "https://security.microsoft.com/.default" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Authentication.Union", - "apiVersions": [] - } - ], - "auth": { - "$id": "15", - "apiKey": { - "$id": "16", - "name": "x-ms-api-key", - "in": "header" - }, - "oAuth2": { - "$id": "17", - "scopes": [ - "https://security.microsoft.com/.default" - ] } - } } 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 8ec47b42fd7..8e846313341 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 @@ -1,5310 +1,5125 @@ { - "$id": "1", - "name": "Routes", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "RoutesClient", - "namespace": "Routes", - "doc": "Define scenario in building the http route/uri", - "methods": [ + "name": "Routes", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "fixed", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "4", - "name": "fixed", - "resourceName": "Routes", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "5", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/fixed", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.fixed", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "6" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.fixed" - } - ], - "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": "Routes", - "apiVersions": [], - "children": [ - { - "$id": "11", - "kind": "client", - "name": "PathParameters", - "namespace": "Routes.PathParameters", - "methods": [ - { - "$id": "12", - "kind": "basic", - "name": "templateOnly", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "13", - "name": "templateOnly", - "resourceName": "PathParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "14", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "15", - "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": "16", - "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": [] - }, - "parameters": [ - { - "$id": "17", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "18", - "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 - } - ], - "response": { - "$id": "19" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly" - }, - { - "$id": "20", - "kind": "basic", - "name": "explicit", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "21", - "name": "explicit", - "resourceName": "PathParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "22", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "23", - "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": "24", - "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": [] - }, - "parameters": [ - { - "$id": "25", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "26", - "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 - } - ], - "response": { - "$id": "27" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.explicit" - }, - { - "$id": "28", - "kind": "basic", - "name": "annotationOnly", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "29", - "name": "annotationOnly", - "resourceName": "PathParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "30", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "31", - "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": "32", - "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": [] - }, - "parameters": [ - { - "$id": "33", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "34", - "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 - } - ], - "response": { - "$id": "35" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly" - } - ], - "parameters": [ - { - "$id": "36", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "37", - "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": "38", - "type": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters", - "apiVersions": [], - "parent": { - "$ref": "2" - }, - "children": [ - { - "$id": "40", - "kind": "client", - "name": "ReservedExpansion", - "namespace": "Routes.PathParameters.ReservedExpansion", - "methods": [ - { - "$id": "41", - "kind": "basic", - "name": "template", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "42", - "name": "template", - "resourceName": "ReservedExpansion", - "accessibility": "public", - "parameters": [ - { - "$id": "43", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "44", - "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": "45", - "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": [] - }, - "parameters": [ - { - "$id": "46", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "47", - "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 - } - ], - "response": { - "$id": "48" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template" - }, - { - "$id": "49", - "kind": "basic", - "name": "annotation", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "50", - "name": "annotation", - "resourceName": "ReservedExpansion", - "accessibility": "public", - "parameters": [ - { - "$id": "51", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "52", - "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": "53", - "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": [] - }, - "parameters": [ - { - "$id": "54", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "55", - "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 - } - ], - "response": { - "$id": "56" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation" - } - ], - "parameters": [ - { - "$id": "57", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "59", - "type": { - "$id": "60", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "61", - "kind": "client", - "name": "SimpleExpansion", - "namespace": "Routes.PathParameters.SimpleExpansion", - "methods": [], - "parameters": [ - { - "$id": "62", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "63", - "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": "64", - "type": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "66", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.SimpleExpansion.Standard", - "methods": [ - { - "$id": "67", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "68", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "69", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "70", - "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": "71", - "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": [] - }, - "parameters": [ - { - "$id": "72", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "73", - "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 - } - ], - "response": { - "$id": "74" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive" - }, - { - "$id": "75", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "76", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "77", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "78", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "79", - "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": "80", - "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": [] - }, - "parameters": [ - { - "$id": "81", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "82", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "83", - "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 - } - ], - "response": { - "$id": "84" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array" - }, - { - "$id": "85", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "86", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "87", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "88", - "kind": "dict", - "keyType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "90", - "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": "91", - "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": [] - }, - "parameters": [ - { - "$id": "92", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "93", - "kind": "dict", - "keyType": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "95", - "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 - } - ], - "response": { - "$id": "96" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "97", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "98", - "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": "99", - "type": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "61" - } - }, - { - "$id": "101", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.SimpleExpansion.Explode", - "methods": [ - { - "$id": "102", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "103", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "104", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "105", - "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": "106", - "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": [] - }, - "parameters": [ - { - "$id": "107", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "108", - "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 - } - ], - "response": { - "$id": "109" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive" - }, - { - "$id": "110", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "111", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "112", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "113", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "114", - "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": "115", - "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": [] - }, - "parameters": [ - { - "$id": "116", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "117", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "118", - "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 - } - ], - "response": { - "$id": "119" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array" - }, - { - "$id": "120", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "121", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "122", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "123", - "kind": "dict", - "keyType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "125", - "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": "126", - "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": [] - }, - "parameters": [ - { - "$id": "127", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "128", - "kind": "dict", - "keyType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "130", - "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 - } - ], - "response": { - "$id": "131" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "132", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "133", - "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": "134", - "type": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "61" - } - } - ] - }, - { - "$id": "136", - "kind": "client", - "name": "PathExpansion", - "namespace": "Routes.PathParameters.PathExpansion", - "methods": [], - "parameters": [ - { - "$id": "137", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "138", - "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": "139", - "type": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "141", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.PathExpansion.Standard", - "methods": [ - { - "$id": "142", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "143", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "144", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "145", - "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": "146", - "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": [] - }, - "parameters": [ - { - "$id": "147", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "148", - "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 - } - ], - "response": { - "$id": "149" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive" - }, - { - "$id": "150", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "151", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "152", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "153", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "154", - "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": "155", - "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": [] - }, - "parameters": [ - { - "$id": "156", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "157", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "158", - "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 - } - ], - "response": { - "$id": "159" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array" - }, - { - "$id": "160", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "161", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "162", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "163", - "kind": "dict", - "keyType": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "165", - "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": "166", - "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": [] - }, - "parameters": [ - { - "$id": "167", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "168", - "kind": "dict", - "keyType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "170", - "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 - } - ], - "response": { - "$id": "171" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "172", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "173", - "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": "174", - "type": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "136" - } - }, - { - "$id": "176", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.PathExpansion.Explode", - "methods": [ - { - "$id": "177", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "178", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "179", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "180", - "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": "181", - "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": [] - }, - "parameters": [ - { - "$id": "182", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "183", - "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 - } - ], - "response": { - "$id": "184" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive" - }, - { - "$id": "185", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "186", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "187", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "188", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "189", - "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": "190", - "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": [] - }, - "parameters": [ - { - "$id": "191", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "192", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "193", - "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 - } - ], - "response": { - "$id": "194" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array" - }, - { - "$id": "195", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "196", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "197", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "198", - "kind": "dict", - "keyType": { - "$id": "199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "200", - "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": "201", - "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": [] - }, - "parameters": [ - { - "$id": "202", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "203", - "kind": "dict", - "keyType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "205", - "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 - } - ], - "response": { - "$id": "206" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "207", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "208", - "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": "209", - "type": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "136" - } - } - ] - }, - { - "$id": "211", - "kind": "client", - "name": "LabelExpansion", - "namespace": "Routes.PathParameters.LabelExpansion", - "methods": [], - "parameters": [ - { - "$id": "212", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "213", - "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": "214", - "type": { - "$id": "215", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "216", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.LabelExpansion.Standard", - "methods": [ - { - "$id": "217", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "218", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "219", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "220", - "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": "221", - "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": [] - }, - "parameters": [ - { - "$id": "222", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "223", - "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 - } - ], - "response": { - "$id": "224" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive" - }, - { - "$id": "225", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "226", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "227", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "228", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "229", - "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": "230", - "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": [] - }, - "parameters": [ - { - "$id": "231", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "232", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "233", - "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 - } - ], - "response": { - "$id": "234" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array" - }, - { - "$id": "235", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "236", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "237", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "238", - "kind": "dict", - "keyType": { - "$id": "239", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "240", - "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": "241", - "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": [] - }, - "parameters": [ - { - "$id": "242", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "243", - "kind": "dict", - "keyType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "245", - "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 - } - ], - "response": { - "$id": "246" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "247", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "248", - "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": "249", - "type": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "251", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.LabelExpansion.Explode", - "methods": [ - { - "$id": "252", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "253", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "254", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "255", - "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": "256", - "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": [] - }, - "parameters": [ - { - "$id": "257", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "258", - "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 - } - ], - "response": { - "$id": "259" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive" - }, - { - "$id": "260", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "261", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "262", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "263", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "264", - "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": "265", - "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": [] - }, - "parameters": [ - { - "$id": "266", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "267", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "268", - "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 - } - ], - "response": { - "$id": "269" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array" - }, - { - "$id": "270", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "271", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "272", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "273", - "kind": "dict", - "keyType": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "275", - "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": "276", - "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": [] - }, - "parameters": [ - { - "$id": "277", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "278", - "kind": "dict", - "keyType": { - "$id": "279", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "280", - "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 - } - ], - "response": { - "$id": "281" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "282", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "283", - "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": "284", - "type": { - "$id": "285", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "211" - } - } - ] - }, - { - "$id": "286", - "kind": "client", - "name": "MatrixExpansion", - "namespace": "Routes.PathParameters.MatrixExpansion", - "methods": [], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "291", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.MatrixExpansion.Standard", - "methods": [ - { - "$id": "292", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "293", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "294", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "295", - "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": "296", - "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": [] - }, - "parameters": [ - { - "$id": "297", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "298", - "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 - } - ], - "response": { - "$id": "299" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive" - }, - { - "$id": "300", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "301", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "302", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "303", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "304", - "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": "305", - "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": [] - }, - "parameters": [ - { - "$id": "306", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "307", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "308", - "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 - } - ], - "response": { - "$id": "309" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array" - }, - { - "$id": "310", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "311", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "312", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "313", - "kind": "dict", - "keyType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "315", - "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": "316", - "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": [] - }, - "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": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "321" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record" - } - ], - "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.PathParameters.MatrixExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "286" - } - }, - { - "$id": "326", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.MatrixExpansion.Explode", - "methods": [ - { - "$id": "327", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$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": "Path", - "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/path/matrix/explode/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", - "decorators": [] - }, - "parameters": [ - { - "$id": "332", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "333", - "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 - } - ], - "response": { - "$id": "334" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive" - }, - { - "$id": "335", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "336", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "337", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "338", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "339", - "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": "340", - "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": [] - }, - "parameters": [ - { - "$id": "341", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "342", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "343", - "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 - } - ], - "response": { - "$id": "344" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array" - }, - { - "$id": "345", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "346", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "347", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "348", - "kind": "dict", - "keyType": { - "$id": "349", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "350", - "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": "351", - "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": [] - }, - "parameters": [ - { - "$id": "352", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "353", - "kind": "dict", - "keyType": { - "$id": "354", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "355", - "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 - } - ], - "response": { - "$id": "356" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "357", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "358", - "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": "359", - "type": { - "$id": "360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "286" - } - } - ] - } - ] - }, - { - "$id": "361", - "kind": "client", - "name": "QueryParameters", - "namespace": "Routes.QueryParameters", - "methods": [ - { - "$id": "362", - "kind": "basic", - "name": "templateOnly", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "363", - "name": "templateOnly", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "364", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "365", - "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": "366", - "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": [] - }, - "parameters": [ - { - "$id": "367", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "368", - "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 - } - ], - "response": { - "$id": "369" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly" - }, - { - "$id": "370", - "kind": "basic", - "name": "explicit", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "371", - "name": "explicit", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "372", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "373", - "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": "374", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/explicit", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.explicit", - "decorators": [] - }, - "parameters": [ - { - "$id": "375", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "376", - "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 - } - ], - "response": { - "$id": "377" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.explicit" - }, - { - "$id": "378", - "kind": "basic", - "name": "annotationOnly", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "379", - "name": "annotationOnly", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "380", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "381", - "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": "382", - "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": [] - }, - "parameters": [ - { - "$id": "383", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "384", - "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 - } - ], - "response": { - "$id": "385" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly" - } - ], - "parameters": [ - { - "$id": "386", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "387", - "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": "388", - "type": { - "$id": "389", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters", - "apiVersions": [], - "parent": { - "$ref": "2" - }, - "children": [ - { - "$id": "390", - "kind": "client", - "name": "QueryExpansion", - "namespace": "Routes.QueryParameters.QueryExpansion", - "methods": [], - "parameters": [ - { - "$id": "391", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "392", - "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": "393", - "type": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", - "apiVersions": [], - "parent": { - "$ref": "361" - }, - "children": [ - { - "$id": "395", - "kind": "client", - "name": "Standard", - "namespace": "Routes.QueryParameters.QueryExpansion.Standard", - "methods": [ - { - "$id": "396", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "397", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "398", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "399", - "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": "400", - "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": [] - }, - "parameters": [ - { - "$id": "401", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "402", - "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 - } - ], - "response": { - "$id": "403" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive" - }, - { - "$id": "404", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "405", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "406", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "407", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "408", - "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": "409", - "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": [] - }, - "parameters": [ - { - "$id": "410", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "411", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "412", - "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 - } - ], - "response": { - "$id": "413" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array" - }, - { - "$id": "414", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "415", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "416", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "417", - "kind": "dict", - "keyType": { - "$id": "418", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "419", - "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": "420", - "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": [] - }, - "parameters": [ - { - "$id": "421", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "422", - "kind": "dict", - "keyType": { - "$id": "423", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "424", - "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 - } - ], - "response": { - "$id": "425" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "426", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "427", - "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": "428", - "type": { - "$id": "429", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "430", - "kind": "client", - "name": "Explode", - "namespace": "Routes.QueryParameters.QueryExpansion.Explode", - "methods": [ - { - "$id": "431", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "432", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "433", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "434", - "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": "435", - "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": [] - }, - "parameters": [ - { - "$id": "436", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "437", - "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 - } - ], - "response": { - "$id": "438" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive" - }, - { - "$id": "439", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "440", - "name": "array", - "resourceName": "Explode", + "$id": "1", + "kind": "client", + "name": "RoutesClient", + "namespace": "Routes", + "doc": "Define scenario in building the http route/uri", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "fixed", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3", + "name": "fixed", + "resourceName": "Routes", "accessibility": "public", - "parameters": [ - { - "$id": "441", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "442", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "443", - "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 - } - ], + "parameters": [], "responses": [ - { - "$id": "444", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "4", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/routes/query/query-expansion/explode/array", + "path": "/routes/fixed", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", + "crossLanguageDefinitionId": "Routes.fixed", "decorators": [] - }, - "parameters": [ - { - "$id": "445", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "446", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "447", - "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 - } - ], - "response": { - "$id": "448" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array" }, - { - "$id": "449", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "450", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "451", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "452", - "kind": "dict", - "keyType": { - "$id": "453", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "454", - "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": "455", - "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": [] - }, - "parameters": [ - { - "$id": "456", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "457", - "kind": "dict", - "keyType": { - "$id": "458", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "459", - "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 - } - ], - "response": { - "$id": "460" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "461", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "462", + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.fixed" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { "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": "463", + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$id": "464", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" }, "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "390" - } - } - ] - }, - { - "$id": "465", - "kind": "client", - "name": "QueryContinuation", - "namespace": "Routes.QueryParameters.QueryContinuation", - "methods": [], - "parameters": [ - { - "$id": "466", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "467", - "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": "468", - "type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", - "apiVersions": [], - "parent": { - "$ref": "361" - }, - "children": [ + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes", + "apiVersions": [], + "children": [ { - "$id": "470", - "kind": "client", - "name": "Standard", - "namespace": "Routes.QueryParameters.QueryContinuation.Standard", - "methods": [ - { - "$id": "471", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "472", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "473", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5", + "kind": "client", + "name": "PathParameters", + "namespace": "Routes.PathParameters", + "methods": [ + { + "$id": "6", + "kind": "basic", + "name": "templateOnly", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7", + "name": "templateOnly", + "resourceName": "PathParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "8", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "9", + "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": "10", + "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": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "475", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "11", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "12", + "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/query/query-continuation/standard/primitive?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", - "decorators": [] - }, - "parameters": [ + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly" + }, { - "$id": "476", - "name": "param", - "nameInRequest": "param", - "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 - } - ], - "response": { - "$id": "478" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive" - }, - { - "$id": "479", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "480", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "481", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "482", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "483", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "13", + "kind": "basic", + "name": "explicit", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "14", + "name": "explicit", + "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/explicit/{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.explicit", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "484", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "18", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "19", + "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/query/query-continuation/standard/array?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", - "decorators": [] - }, - "parameters": [ + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.explicit" + }, { - "$id": "485", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "486", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "487", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "20", + "kind": "basic", + "name": "annotationOnly", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "21", + "name": "annotationOnly", + "resourceName": "PathParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "22", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "23", + "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": "24", + "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": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "parameters": [ + { + "$id": "25", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "26", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly" } - ], - "response": { - "$id": "488" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array" - }, - { - "$id": "489", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "490", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "491", - "name": "param", - "nameInRequest": "param", + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "492", - "kind": "dict", - "keyType": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "494", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters", + "apiVersions": [], + "parent": { + "$ref": "1" + }, + "children": [ + { + "$id": "27", + "kind": "client", + "name": "ReservedExpansion", + "namespace": "Routes.PathParameters.ReservedExpansion", + "methods": [ + { + "$id": "28", + "kind": "basic", + "name": "template", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$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": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": true + } + ], + "responses": [ + { + "$id": "32", + "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": [] + }, + "parameters": [ + { + "$id": "33", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "34", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template" + }, + { + "$id": "35", + "kind": "basic", + "name": "annotation", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "36", + "name": "annotation", + "resourceName": "ReservedExpansion", + "accessibility": "public", + "parameters": [ + { + "$id": "37", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "38", + "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": "39", + "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": [] + }, + "parameters": [ + { + "$id": "40", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "41", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "495", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "apiVersions": [], + "parent": { + "$ref": "5" + } + }, + { + "$id": "42", + "kind": "client", + "name": "SimpleExpansion", + "namespace": "Routes.PathParameters.SimpleExpansion", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "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": [] - }, - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", + "apiVersions": [], + "parent": { + "$ref": "5" + }, + "children": [ + { + "$id": "43", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.SimpleExpansion.Standard", + "methods": [ + { + "$id": "44", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "45", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "46", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "47", + "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": "48", + "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": [] + }, + "parameters": [ + { + "$id": "49", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "50", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive" + }, + { + "$id": "51", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "52", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "53", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "54", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "55", + "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": "56", + "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": [] + }, + "parameters": [ + { + "$id": "57", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "58", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "59", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array" + }, + { + "$id": "60", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "61", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "62", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "63", + "kind": "dict", + "keyType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "65", + "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": "66", + "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": [] + }, + "parameters": [ + { + "$id": "67", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "68", + "kind": "dict", + "keyType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "70", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "42" + } + }, + { + "$id": "71", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.SimpleExpansion.Explode", + "methods": [ + { + "$id": "72", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "73", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "74", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "75", + "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": "76", + "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": [] + }, + "parameters": [ + { + "$id": "77", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "78", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive" + }, + { + "$id": "79", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "80", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "81", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "82", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "83", + "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": "84", + "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": [] + }, + "parameters": [ + { + "$id": "85", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "86", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "87", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array" + }, + { + "$id": "88", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "89", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "90", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "91", + "kind": "dict", + "keyType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "93", + "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": "94", + "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": [] + }, + "parameters": [ + { + "$id": "95", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "96", + "kind": "dict", + "keyType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "98", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "42" + } + } + ] + }, { - "$id": "496", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "497", - "kind": "dict", - "keyType": { - "$id": "498", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "99", + "kind": "client", + "name": "PathExpansion", + "namespace": "Routes.PathParameters.PathExpansion", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", + "apiVersions": [], + "parent": { + "$ref": "5" }, - "valueType": { - "$id": "499", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "children": [ + { + "$id": "100", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.PathExpansion.Standard", + "methods": [ + { + "$id": "101", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "102", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "103", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "104", + "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": "105", + "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": [] + }, + "parameters": [ + { + "$id": "106", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "107", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive" + }, + { + "$id": "108", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "109", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "110", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "111", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "112", + "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": "113", + "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": [] + }, + "parameters": [ + { + "$id": "114", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "115", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "116", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array" + }, + { + "$id": "117", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "118", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "119", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "120", + "kind": "dict", + "keyType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "122", + "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": "123", + "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": [] + }, + "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": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "99" + } + }, + { + "$id": "128", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.PathExpansion.Explode", + "methods": [ + { + "$id": "129", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "130", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "132", + "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": "133", + "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": [] + }, + "parameters": [ + { + "$id": "134", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "135", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive" + }, + { + "$id": "136", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "137", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "138", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "139", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "140", + "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": "141", + "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": [] + }, + "parameters": [ + { + "$id": "142", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "143", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "144", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array" + }, + { + "$id": "145", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "146", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "147", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "148", + "kind": "dict", + "keyType": { + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "150", + "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": "151", + "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": [] + }, + "parameters": [ + { + "$id": "152", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "153", + "kind": "dict", + "keyType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "155", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "99" + } + } + ] + }, + { + "$id": "156", + "kind": "client", + "name": "LabelExpansion", + "namespace": "Routes.PathParameters.LabelExpansion", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", + "apiVersions": [], + "parent": { + "$ref": "5" }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "500" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record" - } - ], - "parameters": [ - { - "$id": "501", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "502", - "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": "503", - "type": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "children": [ + { + "$id": "157", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.LabelExpansion.Standard", + "methods": [ + { + "$id": "158", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "159", + "name": "primitive", + "resourceName": "Standard", + "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": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "162", + "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": [] + }, + "parameters": [ + { + "$id": "163", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "164", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive" + }, + { + "$id": "165", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "166", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "167", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "168", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "169", + "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": "170", + "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": [] + }, + "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": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array" + }, + { + "$id": "174", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "175", + "name": "record", + "resourceName": "Standard", + "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": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "180", + "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": [] + }, + "parameters": [ + { + "$id": "181", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "182", + "kind": "dict", + "keyType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "184", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "156" + } + }, + { + "$id": "185", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.LabelExpansion.Explode", + "methods": [ + { + "$id": "186", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "187", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "188", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "189", + "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": "190", + "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": [] + }, + "parameters": [ + { + "$id": "191", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "192", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive" + }, + { + "$id": "193", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "194", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "195", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "196", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "197", + "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": "198", + "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": [] + }, + "parameters": [ + { + "$id": "199", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "200", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "201", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array" + }, + { + "$id": "202", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "203", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "204", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "205", + "kind": "dict", + "keyType": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "207", + "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": "208", + "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": [] + }, + "parameters": [ + { + "$id": "209", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "210", + "kind": "dict", + "keyType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "212", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "156" + } + } + ] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", - "apiVersions": [], - "parent": { - "$ref": "465" - } + { + "$id": "213", + "kind": "client", + "name": "MatrixExpansion", + "namespace": "Routes.PathParameters.MatrixExpansion", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", + "apiVersions": [], + "parent": { + "$ref": "5" + }, + "children": [ + { + "$id": "214", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.MatrixExpansion.Standard", + "methods": [ + { + "$id": "215", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "216", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "217", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "218", + "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": "219", + "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": [] + }, + "parameters": [ + { + "$id": "220", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "221", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive" + }, + { + "$id": "222", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "223", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "224", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "225", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "226", + "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": "227", + "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": [] + }, + "parameters": [ + { + "$id": "228", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "229", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "230", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array" + }, + { + "$id": "231", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "232", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "233", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "234", + "kind": "dict", + "keyType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "236", + "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": "237", + "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": [] + }, + "parameters": [ + { + "$id": "238", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "239", + "kind": "dict", + "keyType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "241", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "213" + } + }, + { + "$id": "242", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.MatrixExpansion.Explode", + "methods": [ + { + "$id": "243", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "244", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "245", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "246", + "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": "247", + "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": [] + }, + "parameters": [ + { + "$id": "248", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "249", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive" + }, + { + "$id": "250", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "251", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "252", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "253", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "254", + "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": "255", + "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": [] + }, + "parameters": [ + { + "$id": "256", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "257", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "258", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array" + }, + { + "$id": "259", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "260", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "261", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "262", + "kind": "dict", + "keyType": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "264", + "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": "265", + "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": [] + }, + "parameters": [ + { + "$id": "266", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "267", + "kind": "dict", + "keyType": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "269", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "213" + } + } + ] + } + ] }, { - "$id": "505", - "kind": "client", - "name": "Explode", - "namespace": "Routes.QueryParameters.QueryContinuation.Explode", - "methods": [ - { - "$id": "506", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "507", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "508", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "270", + "kind": "client", + "name": "QueryParameters", + "namespace": "Routes.QueryParameters", + "methods": [ + { + "$id": "271", + "kind": "basic", + "name": "templateOnly", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "272", + "name": "templateOnly", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "273", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "274", + "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": "275", + "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": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "510", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "276", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "277", + "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/query/query-continuation/explode/primitive?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", - "decorators": [] - }, - "parameters": [ + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly" + }, { - "$id": "511", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "512", - "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 - } - ], - "response": { - "$id": "513" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive" - }, - { - "$id": "514", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "515", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "516", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "517", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "518", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "278", + "kind": "basic", + "name": "explicit", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "279", + "name": "explicit", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "280", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "281", + "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": "282", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/explicit", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.explicit", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "519", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "283", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "284", + "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/query/query-continuation/explode/array?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", - "decorators": [] - }, - "parameters": [ + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.explicit" + }, { - "$id": "520", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "521", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "522", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "285", + "kind": "basic", + "name": "annotationOnly", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "286", + "name": "annotationOnly", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "288", + "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": "289", + "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": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "parameters": [ + { + "$id": "290", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "291", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly" } - ], - "response": { - "$id": "523" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array" - }, - { - "$id": "524", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "525", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "526", - "name": "param", - "nameInRequest": "param", + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "527", - "kind": "dict", - "keyType": { - "$id": "528", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "529", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": true, "isRequired": true, - "kind": "Method", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters", + "apiVersions": [], + "parent": { + "$ref": "1" + }, + "children": [ + { + "$id": "292", + "kind": "client", + "name": "QueryExpansion", + "namespace": "Routes.QueryParameters.QueryExpansion", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "530", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "apiVersions": [], + "parent": { + "$ref": "270" + }, + "children": [ + { + "$id": "293", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryExpansion.Standard", + "methods": [ + { + "$id": "294", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "295", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "296", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "297", + "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": "298", + "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": [] + }, + "parameters": [ + { + "$id": "299", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "300", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive" + }, + { + "$id": "301", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "302", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "303", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "304", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "305", + "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": "306", + "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": [] + }, + "parameters": [ + { + "$id": "307", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "308", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "309", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array" + }, + { + "$id": "310", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "311", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "312", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "313", + "kind": "dict", + "keyType": { + "$id": "314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "315", + "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": "316", + "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": [] + }, + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "292" + } + }, + { + "$id": "321", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryExpansion.Explode", + "methods": [ + { + "$id": "322", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "323", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "324", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "325", + "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": "326", + "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": [] + }, + "parameters": [ + { + "$id": "327", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "328", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive" + }, + { + "$id": "329", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "330", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "331", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "332", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "333", + "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": "334", + "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": [] + }, + "parameters": [ + { + "$id": "335", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "336", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "337", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array" + }, + { + "$id": "338", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "339", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "340", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "341", + "kind": "dict", + "keyType": { + "$id": "342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "343", + "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": "344", + "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": [] + }, + "parameters": [ + { + "$id": "345", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "346", + "kind": "dict", + "keyType": { + "$id": "347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "348", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "292" + } + } + ] + }, + { + "$id": "349", + "kind": "client", + "name": "QueryContinuation", + "namespace": "Routes.QueryParameters.QueryContinuation", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "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": [] - }, - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "apiVersions": [], + "parent": { + "$ref": "270" + }, + "children": [ + { + "$id": "350", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryContinuation.Standard", + "methods": [ + { + "$id": "351", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "352", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "353", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "354", + "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": "355", + "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": [] + }, + "parameters": [ + { + "$id": "356", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "357", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive" + }, + { + "$id": "358", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "359", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "360", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "361", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "362", + "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": "363", + "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": [] + }, + "parameters": [ + { + "$id": "364", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "365", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "366", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array" + }, + { + "$id": "367", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "368", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "369", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "370", + "kind": "dict", + "keyType": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "372", + "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": "373", + "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": [] + }, + "parameters": [ + { + "$id": "374", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "375", + "kind": "dict", + "keyType": { + "$id": "376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "377", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", + "apiVersions": [], + "parent": { + "$ref": "349" + } + }, + { + "$id": "378", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryContinuation.Explode", + "methods": [ + { + "$id": "379", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "380", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "381", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "382", + "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": "383", + "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": [] + }, + "parameters": [ + { + "$id": "384", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "385", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive" + }, + { + "$id": "386", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "387", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "388", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "389", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "390", + "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": "391", + "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": [] + }, + "parameters": [ + { + "$id": "392", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "393", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "394", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array" + }, + { + "$id": "395", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "396", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "397", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "398", + "kind": "dict", + "keyType": { + "$id": "399", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "400", + "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": "401", + "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": [] + }, + "parameters": [ + { + "$id": "402", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "403", + "kind": "dict", + "keyType": { + "$id": "404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "405", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "apiVersions": [], + "parent": { + "$ref": "349" + } + } + ] + } + ] + }, + { + "$id": "406", + "kind": "client", + "name": "InInterface", + "namespace": "Routes", + "methods": [ { - "$id": "531", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "532", - "kind": "dict", - "keyType": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "407", + "kind": "basic", + "name": "fixed", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "408", + "name": "fixed", + "resourceName": "InInterface", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "409", + "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": [] }, - "valueType": { - "$id": "534", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.InInterface.fixed" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - ], - "response": { - "$id": "535" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record" - } - ], - "parameters": [ - { - "$id": "536", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "537", - "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": "538", - "type": { - "$id": "539", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.InInterface", + "apiVersions": [], + "parent": { + "$ref": "1" } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", - "apiVersions": [], - "parent": { - "$ref": "465" - } } - ] - } - ] - }, - { - "$id": "540", - "kind": "client", - "name": "InInterface", - "namespace": "Routes", - "methods": [ - { - "$id": "541", - "kind": "basic", - "name": "fixed", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "542", - "name": "fixed", - "resourceName": "InInterface", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "543", - "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": [], - "response": { - "$id": "544" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.InInterface.fixed" - } - ], - "parameters": [ - { - "$id": "545", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "546", - "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": "547", - "type": { - "$id": "548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.InInterface", - "apiVersions": [], - "parent": { - "$ref": "2" - } + ] } - ] - } - ] + ] } 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 c0ec2fe6126..31d4e13f319 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 @@ -1,10133 +1,9739 @@ { - "$id": "1", - "name": "SpecialWords", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "withAndContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "withAsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "withAssertContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "withAsyncContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "withAwaitContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "withBreakContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "withClassContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "withConstructorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "withContinueContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "withDefContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "withDelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "withElifContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "withElseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "withExceptContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "withExecContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "withFinallyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "withForContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "withFromContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "withGlobalContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "withIfContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "withImportContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "withInContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "withIsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "withLambdaContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "withNotContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "withOrContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "54", - "kind": "constant", - "name": "withPassContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "withRaiseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "58", - "kind": "constant", - "name": "withReturnContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "60", - "kind": "constant", - "name": "withTryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "62", - "kind": "constant", - "name": "withWhileContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "64", - "kind": "constant", - "name": "withWithContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "66", - "kind": "constant", - "name": "withYieldContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "68", - "kind": "constant", - "name": "sameAsModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "70", - "kind": "model", - "name": "and", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.and", - "usage": "Input,Json", - "decorators": [], - "properties": [ + "name": "SpecialWords", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [ { - "$id": "71", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.and.name", - "serializationOptions": { - "$id": "73", - "json": { - "$id": "74", - "name": "name" - } - } - } - ] - }, - { - "$id": "75", - "kind": "model", - "name": "as", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.as", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "76", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.as.name", - "serializationOptions": { - "$id": "78", - "json": { - "$id": "79", - "name": "name" - } - } - } - ] - }, - { - "$id": "80", - "kind": "model", - "name": "assert", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.assert", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "81", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.assert.name", - "serializationOptions": { - "$id": "83", - "json": { - "$id": "84", - "name": "name" - } - } - } - ] - }, - { - "$id": "85", - "kind": "model", - "name": "async", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.async", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "86", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.async.name", - "serializationOptions": { - "$id": "88", - "json": { - "$id": "89", - "name": "name" - } - } - } - ] - }, - { - "$id": "90", - "kind": "model", - "name": "await", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.await", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "91", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.await.name", - "serializationOptions": { - "$id": "93", - "json": { - "$id": "94", - "name": "name" - } - } - } - ] - }, - { - "$id": "95", - "kind": "model", - "name": "break", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.break", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "96", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.break.name", - "serializationOptions": { - "$id": "98", - "json": { - "$id": "99", - "name": "name" - } - } - } - ] - }, - { - "$id": "100", - "kind": "model", - "name": "class", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.class", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "101", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.class.name", - "serializationOptions": { - "$id": "103", - "json": { - "$id": "104", - "name": "name" - } - } - } - ] - }, - { - "$id": "105", - "kind": "model", - "name": "constructor", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.constructor", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "106", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.constructor.name", - "serializationOptions": { - "$id": "108", - "json": { - "$id": "109", - "name": "name" - } - } - } - ] - }, - { - "$id": "110", - "kind": "model", - "name": "continue", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.continue", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "111", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.continue.name", - "serializationOptions": { - "$id": "113", - "json": { - "$id": "114", - "name": "name" - } - } - } - ] - }, - { - "$id": "115", - "kind": "model", - "name": "def", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.def", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "116", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.def.name", - "serializationOptions": { - "$id": "118", - "json": { - "$id": "119", - "name": "name" - } - } - } - ] - }, - { - "$id": "120", - "kind": "model", - "name": "del", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.del", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "121", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.del.name", - "serializationOptions": { - "$id": "123", - "json": { - "$id": "124", - "name": "name" - } - } - } - ] - }, - { - "$id": "125", - "kind": "model", - "name": "elif", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.elif", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "126", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.elif.name", - "serializationOptions": { - "$id": "128", - "json": { - "$id": "129", - "name": "name" - } - } - } - ] - }, - { - "$id": "130", - "kind": "model", - "name": "else", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.else", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "131", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.else.name", - "serializationOptions": { - "$id": "133", - "json": { - "$id": "134", - "name": "name" - } - } - } - ] - }, - { - "$id": "135", - "kind": "model", - "name": "except", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.except", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "136", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.except.name", - "serializationOptions": { - "$id": "138", - "json": { - "$id": "139", - "name": "name" - } - } - } - ] - }, - { - "$id": "140", - "kind": "model", - "name": "exec", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.exec", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "141", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.exec.name", - "serializationOptions": { - "$id": "143", - "json": { - "$id": "144", - "name": "name" - } - } - } - ] - }, - { - "$id": "145", - "kind": "model", - "name": "finally", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.finally", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "146", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.finally.name", - "serializationOptions": { - "$id": "148", - "json": { - "$id": "149", - "name": "name" - } - } - } - ] - }, - { - "$id": "150", - "kind": "model", - "name": "for", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.for", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "151", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.for.name", - "serializationOptions": { - "$id": "153", - "json": { - "$id": "154", - "name": "name" - } - } - } - ] - }, - { - "$id": "155", - "kind": "model", - "name": "from", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.from", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "156", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.from.name", - "serializationOptions": { - "$id": "158", - "json": { - "$id": "159", - "name": "name" - } - } - } - ] - }, - { - "$id": "160", - "kind": "model", - "name": "global", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.global", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "161", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.global.name", - "serializationOptions": { - "$id": "163", - "json": { - "$id": "164", - "name": "name" - } - } - } - ] - }, - { - "$id": "165", - "kind": "model", - "name": "if", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.if", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "166", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.if.name", - "serializationOptions": { - "$id": "168", - "json": { - "$id": "169", - "name": "name" - } - } - } - ] - }, - { - "$id": "170", - "kind": "model", - "name": "import", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.import", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "171", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.import.name", - "serializationOptions": { - "$id": "173", - "json": { - "$id": "174", - "name": "name" - } - } - } - ] - }, - { - "$id": "175", - "kind": "model", - "name": "in", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.in", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "176", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "177", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.in.name", - "serializationOptions": { - "$id": "178", - "json": { - "$id": "179", - "name": "name" - } - } - } - ] - }, - { - "$id": "180", - "kind": "model", - "name": "is", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.is", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "181", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.is.name", - "serializationOptions": { - "$id": "183", - "json": { - "$id": "184", - "name": "name" - } - } - } - ] - }, - { - "$id": "185", - "kind": "model", - "name": "lambda", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.lambda", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "186", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.lambda.name", - "serializationOptions": { - "$id": "188", - "json": { - "$id": "189", - "name": "name" - } - } - } - ] - }, - { - "$id": "190", - "kind": "model", - "name": "not", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.not", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "191", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.not.name", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "name" - } - } - } - ] - }, - { - "$id": "195", - "kind": "model", - "name": "or", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.or", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "196", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "197", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.or.name", - "serializationOptions": { - "$id": "198", - "json": { - "$id": "199", - "name": "name" - } - } - } - ] - }, - { - "$id": "200", - "kind": "model", - "name": "pass", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.pass", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "201", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.pass.name", - "serializationOptions": { - "$id": "203", - "json": { - "$id": "204", - "name": "name" - } - } - } - ] - }, - { - "$id": "205", - "kind": "model", - "name": "raise", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.raise", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "206", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.raise.name", - "serializationOptions": { - "$id": "208", - "json": { - "$id": "209", - "name": "name" - } - } - } - ] - }, - { - "$id": "210", - "kind": "model", - "name": "return", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.return", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "211", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.return.name", - "serializationOptions": { - "$id": "213", - "json": { - "$id": "214", - "name": "name" - } - } - } - ] - }, - { - "$id": "215", - "kind": "model", - "name": "try", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.try", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "216", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.try.name", - "serializationOptions": { - "$id": "218", - "json": { - "$id": "219", - "name": "name" - } - } - } - ] - }, - { - "$id": "220", - "kind": "model", - "name": "while", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.while", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "221", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.while.name", - "serializationOptions": { - "$id": "223", - "json": { - "$id": "224", - "name": "name" - } - } - } - ] - }, - { - "$id": "225", - "kind": "model", - "name": "with", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.with", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "226", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "227", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.with.name", - "serializationOptions": { - "$id": "228", - "json": { - "$id": "229", - "name": "name" - } - } - } - ] - }, - { - "$id": "230", - "kind": "model", - "name": "yield", - "namespace": "SpecialWords.Models", - "crossLanguageDefinitionId": "SpecialWords.Models.yield", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "231", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "232", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.yield.name", - "serializationOptions": { - "$id": "233", - "json": { - "$id": "234", - "name": "name" - } - } - } - ] - }, - { - "$id": "235", - "kind": "model", - "name": "SameAsModel", - "namespace": "SpecialWords.ModelProperties", - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.SameAsModel", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "236", - "kind": "property", - "name": "SameAsModel", - "serializedName": "SameAsModel", - "type": { - "$id": "237", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.SameAsModel.SameAsModel", - "serializationOptions": { - "$id": "238", - "json": { - "$id": "239", - "name": "SameAsModel" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "240", - "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```", - "methods": [], - "parameters": [ - { - "$id": "241", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "242", - "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": "243", - "type": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords", - "apiVersions": [], - "children": [ - { - "$id": "245", - "kind": "client", - "name": "Models", - "namespace": "SpecialWords.Models", - "doc": "Verify model names", - "methods": [ - { - "$id": "246", - "kind": "basic", - "name": "withAnd", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "247", - "name": "withAnd", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "248", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "249", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "70" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "250", - "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": [] - }, - "parameters": [ - { - "$id": "251", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "70" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "252", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "253" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAnd" - }, - { - "$id": "254", - "kind": "basic", - "name": "withAs", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "255", - "name": "withAs", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "256", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "257", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "75" - }, - "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 - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/as", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAs", - "decorators": [] - }, - "parameters": [ - { - "$id": "259", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "75" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "260", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "261" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAs" - }, - { - "$id": "262", - "kind": "basic", - "name": "withAssert", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "263", - "name": "withAssert", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "264", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "265", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "80" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "266", - "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": [] - }, - "parameters": [ - { - "$id": "267", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "80" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "268", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "269" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAssert" - }, - { - "$id": "270", - "kind": "basic", - "name": "withAsync", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "271", - "name": "withAsync", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "272", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "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": "85" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/async", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAsync", - "decorators": [] - }, - "parameters": [ - { - "$id": "275", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "85" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "276", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "277" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAsync" - }, - { - "$id": "278", - "kind": "basic", - "name": "withAwait", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "279", - "name": "withAwait", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "280", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "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": "90" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "282", - "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": [] - }, - "parameters": [ - { - "$id": "283", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "90" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "284", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "285" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAwait" - }, - { - "$id": "286", - "kind": "basic", - "name": "withBreak", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "287", - "name": "withBreak", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "288", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "289", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "95" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "290", - "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": [] - }, - "parameters": [ - { - "$id": "291", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "95" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "292", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "293" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withBreak" - }, - { - "$id": "294", - "kind": "basic", - "name": "withClass", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "295", - "name": "withClass", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "296", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "297", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "100" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/class", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withClass", - "decorators": [] - }, - "parameters": [ - { - "$id": "299", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "100" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "300", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "301" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withClass" - }, - { - "$id": "302", - "kind": "basic", - "name": "withConstructor", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "303", - "name": "withConstructor", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "304", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "305", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "105" - }, - "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 - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/constructor", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor", - "decorators": [] - }, - "parameters": [ - { - "$id": "307", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "105" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "308", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "309" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor" - }, - { - "$id": "310", - "kind": "basic", - "name": "withContinue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "311", - "name": "withContinue", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "312", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "313", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "110" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/continue", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue", - "decorators": [] - }, - "parameters": [ - { - "$id": "315", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "110" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "316", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "317" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue" - }, - { - "$id": "318", - "kind": "basic", - "name": "withDef", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "319", - "name": "withDef", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "320", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "321", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "115" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "322", - "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": [] - }, - "parameters": [ - { - "$id": "323", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "115" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "324", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "325" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withDef" - }, - { - "$id": "326", - "kind": "basic", - "name": "withDel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "327", - "name": "withDel", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "328", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "329", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "120" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "330", - "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": [] - }, - "parameters": [ - { - "$id": "331", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "120" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "332", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "333" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withDel" - }, - { - "$id": "334", - "kind": "basic", - "name": "withElif", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "335", - "name": "withElif", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "336", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "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": "125" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/elif", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withElif", - "decorators": [] - }, - "parameters": [ - { - "$id": "339", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "125" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "340", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "341" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withElif" - }, - { - "$id": "342", - "kind": "basic", - "name": "withElse", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "343", - "name": "withElse", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "344", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "345", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "130" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/else", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withElse", - "decorators": [] - }, - "parameters": [ - { - "$id": "347", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "130" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "348", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "349" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withElse" - }, - { - "$id": "350", - "kind": "basic", - "name": "withExcept", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "351", - "name": "withExcept", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "352", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "353", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "135" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "354", - "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": [] - }, - "parameters": [ - { - "$id": "355", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "135" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "356", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "357" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withExcept" - }, - { - "$id": "358", - "kind": "basic", - "name": "withExec", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "359", - "name": "withExec", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "360", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "361", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "140" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/exec", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withExec", - "decorators": [] - }, - "parameters": [ - { - "$id": "363", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "140" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "364", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "365" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withExec" - }, - { - "$id": "366", - "kind": "basic", - "name": "withFinally", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "367", - "name": "withFinally", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "368", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "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": "145" - }, - "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/finally", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally", - "decorators": [] - }, - "parameters": [ - { - "$id": "371", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "145" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "372", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "373" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally" - }, - { - "$id": "374", - "kind": "basic", - "name": "withFor", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "375", - "name": "withFor", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "376", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "377", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "150" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "378", - "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": [] - }, - "parameters": [ - { - "$id": "379", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "150" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "380", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "381" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFor" - }, - { - "$id": "382", - "kind": "basic", - "name": "withFrom", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "383", - "name": "withFrom", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "384", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "385", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "155" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "386", - "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": [] - }, - "parameters": [ - { - "$id": "387", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "155" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "388", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "389" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFrom" - }, - { - "$id": "390", - "kind": "basic", - "name": "withGlobal", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "391", - "name": "withGlobal", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "392", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "38" - }, - "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": "160" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/global", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal", - "decorators": [] - }, - "parameters": [ - { - "$id": "395", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "160" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "396", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "397" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal" - }, - { - "$id": "398", - "kind": "basic", - "name": "withIf", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "399", - "name": "withIf", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "400", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "401", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "165" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "402", - "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": [] - }, - "parameters": [ - { - "$id": "403", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "165" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "404", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "405" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIf" - }, - { - "$id": "406", - "kind": "basic", - "name": "withImport", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "407", - "name": "withImport", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "408", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "409", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "170" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/import", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withImport", - "decorators": [] - }, - "parameters": [ - { - "$id": "411", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "170" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "412", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "413" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withImport" - }, - { - "$id": "414", - "kind": "basic", - "name": "withIn", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "415", - "name": "withIn", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "416", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "417", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "175" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "418", - "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": [] - }, - "parameters": [ - { - "$id": "419", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "175" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "420", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "421" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIn" - }, - { - "$id": "422", - "kind": "basic", - "name": "withIs", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "423", - "name": "withIs", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "424", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "425", - "name": "body", - "nameInRequest": "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/is", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIs", - "decorators": [] - }, - "parameters": [ - { - "$id": "427", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "180" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "428", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "429" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIs" - }, - { - "$id": "430", - "kind": "basic", - "name": "withLambda", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "431", - "name": "withLambda", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "432", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "433", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "185" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "434", - "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": [] - }, - "parameters": [ - { - "$id": "435", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "185" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "436", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "437" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withLambda" - }, - { - "$id": "438", - "kind": "basic", - "name": "withNot", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "439", - "name": "withNot", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "440", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "441", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "190" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/not", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withNot", - "decorators": [] - }, - "parameters": [ - { - "$id": "443", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "444", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "445" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withNot" - }, - { - "$id": "446", - "kind": "basic", - "name": "withOr", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "447", - "name": "withOr", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "448", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "52" - }, - "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": "195" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/or", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withOr", - "decorators": [] - }, - "parameters": [ - { - "$id": "451", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "195" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "$id": "1", + "kind": "model", + "name": "and", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.and", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "452", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "453" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withOr" - }, - { - "$id": "454", - "kind": "basic", - "name": "withPass", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "455", - "name": "withPass", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "456", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "457", - "name": "body", - "nameInRequest": "body", + "$id": "2", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "200" + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "458", - "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": [] - }, - "parameters": [ - { - "$id": "459", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "200" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "460", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "SpecialWords.Models.and.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "461" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withPass" - }, - { - "$id": "462", - "kind": "basic", - "name": "withRaise", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "463", - "name": "withRaise", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "464", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "465", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "205" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "466", - "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": [] - }, - "parameters": [ - { - "$id": "467", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "205" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + ] + }, + { + "$id": "4", + "kind": "model", + "name": "as", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.as", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "468", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "469" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withRaise" - }, - { - "$id": "470", - "kind": "basic", - "name": "withReturn", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "471", - "name": "withReturn", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "472", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "473", - "name": "body", - "nameInRequest": "body", + "$id": "5", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "210" + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "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": [] - }, - "parameters": [ - { - "$id": "475", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "210" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "476", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "SpecialWords.Models.as.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "477" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withReturn" - }, - { - "$id": "478", - "kind": "basic", - "name": "withTry", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "479", - "name": "withTry", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "480", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "481", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "215" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/try", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withTry", - "decorators": [] - }, - "parameters": [ - { - "$id": "483", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + ] + }, + { + "$id": "7", + "kind": "model", + "name": "assert", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.assert", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "484", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "485" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withTry" - }, - { - "$id": "486", - "kind": "basic", - "name": "withWhile", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "487", - "name": "withWhile", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "488", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "489", - "name": "body", - "nameInRequest": "body", + "$id": "8", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "220" + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "490", - "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": [] - }, - "parameters": [ - { - "$id": "491", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "220" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "492", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "SpecialWords.Models.assert.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "493" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withWhile" - }, - { - "$id": "494", - "kind": "basic", - "name": "withWith", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "495", - "name": "withWith", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "496", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "497", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "225" - }, - "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": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/with", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withWith", - "decorators": [] - }, - "parameters": [ - { - "$id": "499", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "225" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + ] + }, + { + "$id": "10", + "kind": "model", + "name": "async", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.async", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "500", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "501" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withWith" - }, - { - "$id": "502", - "kind": "basic", - "name": "withYield", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "503", - "name": "withYield", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "504", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "505", - "name": "body", - "nameInRequest": "body", + "$id": "11", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "230" + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "506", - "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": [] - }, - "parameters": [ - { - "$id": "507", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "230" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "508", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "SpecialWords.Models.async.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "509" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withYield" - } - ], - "parameters": [ - { - "$id": "510", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "511", - "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": "512", - "type": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models", - "apiVersions": [], - "parent": { - "$ref": "240" - } + ] }, { - "$id": "514", - "kind": "client", - "name": "ModelProperties", - "namespace": "SpecialWords.ModelProperties", - "doc": "Verify model names", - "methods": [ - { - "$id": "515", - "kind": "basic", - "name": "sameAsModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "516", - "name": "sameAsModel", - "resourceName": "ModelProperties", - "accessibility": "public", - "parameters": [ - { - "$id": "517", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "518", - "name": "body", - "nameInRequest": "body", + "$id": "13", + "kind": "model", + "name": "await", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.await", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "14", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "235" + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "519", - "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": [] - }, - "parameters": [ - { - "$id": "520", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "235" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "521", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "SpecialWords.Models.await.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "522" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel" - } - ], - "parameters": [ - { - "$id": "523", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "524", - "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": "525", - "type": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ModelProperties", - "apiVersions": [], - "parent": { - "$ref": "240" - } - }, - { - "$id": "527", - "kind": "client", - "name": "Operations", - "namespace": "SpecialWords", - "doc": "Test reserved words as operation name.", - "methods": [ - { - "$id": "528", - "kind": "basic", - "name": "and", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "529", - "name": "and", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "530", - "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": [] - }, - "parameters": [], - "response": { - "$id": "531" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.and" - }, - { - "$id": "532", - "kind": "basic", - "name": "as", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "533", - "name": "as", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "534", - "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": [] - }, - "parameters": [], - "response": { - "$id": "535" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.as" - }, - { - "$id": "536", - "kind": "basic", - "name": "assert", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "537", - "name": "assert", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "538", - "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": [] - }, - "parameters": [], - "response": { - "$id": "539" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.assert" - }, - { - "$id": "540", - "kind": "basic", - "name": "async", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "541", - "name": "async", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "542", - "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": [] - }, - "parameters": [], - "response": { - "$id": "543" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.async" - }, - { - "$id": "544", - "kind": "basic", - "name": "await", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "545", - "name": "await", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "546", - "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": [] - }, - "parameters": [], - "response": { - "$id": "547" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.await" - }, - { - "$id": "548", - "kind": "basic", - "name": "break", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "549", - "name": "break", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "550", - "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": [] - }, - "parameters": [], - "response": { - "$id": "551" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.break" - }, - { - "$id": "552", - "kind": "basic", - "name": "class", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "553", - "name": "class", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "554", - "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": [] - }, - "parameters": [], - "response": { - "$id": "555" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.class" - }, - { - "$id": "556", - "kind": "basic", - "name": "constructor", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "557", - "name": "constructor", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "558", - "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": [] - }, - "parameters": [], - "response": { - "$id": "559" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.constructor" - }, - { - "$id": "560", - "kind": "basic", - "name": "continue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "561", - "name": "continue", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "562", - "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": [] - }, - "parameters": [], - "response": { - "$id": "563" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.continue" - }, - { - "$id": "564", - "kind": "basic", - "name": "def", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "565", - "name": "def", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "566", - "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": [] - }, - "parameters": [], - "response": { - "$id": "567" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.def" - }, - { - "$id": "568", - "kind": "basic", - "name": "del", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "569", - "name": "del", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "570", - "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": [] - }, - "parameters": [], - "response": { - "$id": "571" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.del" - }, - { - "$id": "572", - "kind": "basic", - "name": "elif", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "573", - "name": "elif", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "574", - "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": [] - }, - "parameters": [], - "response": { - "$id": "575" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.elif" - }, - { - "$id": "576", - "kind": "basic", - "name": "else", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "577", - "name": "else", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "578", - "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": [] - }, - "parameters": [], - "response": { - "$id": "579" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.else" - }, - { - "$id": "580", - "kind": "basic", - "name": "except", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "581", - "name": "except", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "582", - "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": [] - }, - "parameters": [], - "response": { - "$id": "583" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.except" - }, - { - "$id": "584", - "kind": "basic", - "name": "exec", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "585", - "name": "exec", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "586", - "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": [] - }, - "parameters": [], - "response": { - "$id": "587" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.exec" - }, - { - "$id": "588", - "kind": "basic", - "name": "finally", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "589", - "name": "finally", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "590", - "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": [] - }, - "parameters": [], - "response": { - "$id": "591" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.finally" - }, - { - "$id": "592", - "kind": "basic", - "name": "for", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "593", - "name": "for", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "594", - "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": [] - }, - "parameters": [], - "response": { - "$id": "595" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.for" - }, - { - "$id": "596", - "kind": "basic", - "name": "from", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "597", - "name": "from", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "598", - "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": [] - }, - "parameters": [], - "response": { - "$id": "599" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.from" - }, - { - "$id": "600", - "kind": "basic", - "name": "global", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "601", - "name": "global", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "602", - "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": [] - }, - "parameters": [], - "response": { - "$id": "603" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.global" - }, - { - "$id": "604", - "kind": "basic", - "name": "if", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "605", - "name": "if", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "606", - "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": [] - }, - "parameters": [], - "response": { - "$id": "607" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.if" - }, - { - "$id": "608", - "kind": "basic", - "name": "import", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "609", - "name": "import", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "610", - "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": [] - }, - "parameters": [], - "response": { - "$id": "611" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.import" - }, - { - "$id": "612", - "kind": "basic", - "name": "in", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "613", - "name": "in", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "614", - "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": [] - }, - "parameters": [], - "response": { - "$id": "615" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.in" - }, - { - "$id": "616", - "kind": "basic", - "name": "is", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "617", - "name": "is", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "618", - "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": [] - }, - "parameters": [], - "response": { - "$id": "619" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.is" - }, - { - "$id": "620", - "kind": "basic", - "name": "lambda", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "621", - "name": "lambda", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "622", - "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": [] - }, - "parameters": [], - "response": { - "$id": "623" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.lambda" - }, - { - "$id": "624", - "kind": "basic", - "name": "not", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "625", - "name": "not", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "626", - "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": [] - }, - "parameters": [], - "response": { - "$id": "627" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.not" - }, - { - "$id": "628", - "kind": "basic", - "name": "or", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "629", - "name": "or", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "630", - "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": [] - }, - "parameters": [], - "response": { - "$id": "631" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.or" - }, - { - "$id": "632", - "kind": "basic", - "name": "pass", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "633", - "name": "pass", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "634", - "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": [] - }, - "parameters": [], - "response": { - "$id": "635" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.pass" - }, - { - "$id": "636", - "kind": "basic", - "name": "raise", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "637", - "name": "raise", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "638", - "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": [] - }, - "parameters": [], - "response": { - "$id": "639" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.raise" - }, - { - "$id": "640", - "kind": "basic", - "name": "return", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "641", - "name": "return", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "642", - "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": [] - }, - "parameters": [], - "response": { - "$id": "643" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.return" - }, - { - "$id": "644", - "kind": "basic", - "name": "try", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "645", - "name": "try", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "646", - "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": [] - }, - "parameters": [], - "response": { - "$id": "647" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.try" - }, - { - "$id": "648", - "kind": "basic", - "name": "while", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "649", - "name": "while", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "650", - "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": [] - }, - "parameters": [], - "response": { - "$id": "651" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.while" - }, - { - "$id": "652", - "kind": "basic", - "name": "with", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "653", - "name": "with", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "654", - "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": [] - }, - "parameters": [], - "response": { - "$id": "655" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.with" - }, - { - "$id": "656", - "kind": "basic", - "name": "yield", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "657", - "name": "yield", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "658", - "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": [] - }, - "parameters": [], - "response": { - "$id": "659" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.yield" - } - ], - "parameters": [ - { - "$id": "660", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "661", - "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": "662", - "type": { - "$id": "663", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Operations", - "apiVersions": [], - "parent": { - "$ref": "240" - } + ] }, { - "$id": "664", - "kind": "client", - "name": "Parameters", - "namespace": "SpecialWords", - "doc": "Verify reserved words as parameter name.", - "methods": [ - { - "$id": "665", - "kind": "basic", - "name": "withAnd", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "666", - "name": "withAnd", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "667", - "name": "and", - "nameInRequest": "and", - "type": { - "$id": "668", - "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": "669", - "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": [] - }, - "parameters": [ + "$id": "16", + "kind": "model", + "name": "break", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.break", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "670", - "name": "and", - "nameInRequest": "and", - "type": { - "$id": "671", - "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 - } - ], - "response": { - "$id": "672" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd" - }, - { - "$id": "673", - "kind": "basic", - "name": "withAs", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "674", - "name": "withAs", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "675", - "name": "as", - "nameInRequest": "as", + "$id": "17", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "676", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "677", - "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": [] - }, - "parameters": [ - { - "$id": "678", - "name": "as", - "nameInRequest": "as", - "type": { - "$id": "679", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.break.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "680" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs" - }, - { - "$id": "681", - "kind": "basic", - "name": "withAssert", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "682", - "name": "withAssert", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "683", - "name": "assert", - "nameInRequest": "assert", - "type": { - "$id": "684", - "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": "685", - "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": [] - }, - "parameters": [ + ] + }, + { + "$id": "19", + "kind": "model", + "name": "class", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.class", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "686", - "name": "assert", - "nameInRequest": "assert", - "type": { - "$id": "687", - "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 - } - ], - "response": { - "$id": "688" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert" - }, - { - "$id": "689", - "kind": "basic", - "name": "withAsync", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "690", - "name": "withAsync", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "691", - "name": "async", - "nameInRequest": "async", + "$id": "20", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "692", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "693", - "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": [] - }, - "parameters": [ - { - "$id": "694", - "name": "async", - "nameInRequest": "async", - "type": { - "$id": "695", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.class.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "696" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync" - }, - { - "$id": "697", - "kind": "basic", - "name": "withAwait", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "698", - "name": "withAwait", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "699", - "name": "await", - "nameInRequest": "await", - "type": { - "$id": "700", - "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": "701", - "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": [] - }, - "parameters": [ + ] + }, + { + "$id": "22", + "kind": "model", + "name": "constructor", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.constructor", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "702", - "name": "await", - "nameInRequest": "await", - "type": { - "$id": "703", - "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 - } - ], - "response": { - "$id": "704" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait" - }, - { - "$id": "705", - "kind": "basic", - "name": "withBreak", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "706", - "name": "withBreak", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "707", - "name": "break", - "nameInRequest": "break", + "$id": "23", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "709", - "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": [] - }, - "parameters": [ - { - "$id": "710", - "name": "break", - "nameInRequest": "break", - "type": { - "$id": "711", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.constructor.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "712" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak" - }, - { - "$id": "713", - "kind": "basic", - "name": "withClass", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "714", - "name": "withClass", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "715", - "name": "class", - "nameInRequest": "class", - "type": { - "$id": "716", - "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": "717", - "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": [] - }, - "parameters": [ + ] + }, + { + "$id": "25", + "kind": "model", + "name": "continue", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.continue", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$id": "718", - "name": "class", - "nameInRequest": "class", - "type": { - "$id": "719", - "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 - } - ], - "response": { - "$id": "720" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass" - }, - { - "$id": "721", - "kind": "basic", - "name": "withConstructor", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "722", - "name": "withConstructor", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "723", - "name": "constructor", - "nameInRequest": "constructor", + "$id": "26", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "724", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "725", - "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": [] - }, - "parameters": [ - { - "$id": "726", - "name": "constructor", - "nameInRequest": "constructor", - "type": { - "$id": "727", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.continue.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "728" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor" - }, - { - "$id": "729", - "kind": "basic", - "name": "withContinue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "730", - "name": "withContinue", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "731", - "name": "continue", - "nameInRequest": "continue", + ] + }, + { + "$id": "28", + "kind": "model", + "name": "def", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.def", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "29", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "732", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "733", - "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": [] - }, - "parameters": [ - { - "$id": "734", - "name": "continue", - "nameInRequest": "continue", - "type": { - "$id": "735", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.def.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "736" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue" - }, - { - "$id": "737", - "kind": "basic", - "name": "withDef", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "738", - "name": "withDef", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "739", - "name": "def", - "nameInRequest": "def", + ] + }, + { + "$id": "31", + "kind": "model", + "name": "del", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.del", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "32", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "740", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "741", - "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": [] - }, - "parameters": [ - { - "$id": "742", - "name": "def", - "nameInRequest": "def", - "type": { - "$id": "743", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.del.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "744" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef" - }, - { - "$id": "745", - "kind": "basic", - "name": "withDel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "746", - "name": "withDel", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "747", - "name": "del", - "nameInRequest": "del", + ] + }, + { + "$id": "34", + "kind": "model", + "name": "elif", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.elif", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "35", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "748", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "749", - "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": [] - }, - "parameters": [ - { - "$id": "750", - "name": "del", - "nameInRequest": "del", - "type": { - "$id": "751", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.elif.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "752" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel" - }, - { - "$id": "753", - "kind": "basic", - "name": "withElif", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "754", - "name": "withElif", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "755", - "name": "elif", - "nameInRequest": "elif", + ] + }, + { + "$id": "37", + "kind": "model", + "name": "else", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.else", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "38", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "756", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "757", - "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": [] - }, - "parameters": [ - { - "$id": "758", - "name": "elif", - "nameInRequest": "elif", - "type": { - "$id": "759", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.else.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "760" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif" - }, - { - "$id": "761", - "kind": "basic", - "name": "withElse", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "762", - "name": "withElse", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "763", - "name": "else", - "nameInRequest": "else", + ] + }, + { + "$id": "40", + "kind": "model", + "name": "except", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.except", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "41", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "764", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "765", - "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": [] - }, - "parameters": [ - { - "$id": "766", - "name": "else", - "nameInRequest": "else", - "type": { - "$id": "767", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.except.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "768" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse" - }, - { - "$id": "769", - "kind": "basic", - "name": "withExcept", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "770", - "name": "withExcept", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "771", - "name": "except", - "nameInRequest": "except", + ] + }, + { + "$id": "43", + "kind": "model", + "name": "exec", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.exec", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "44", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "772", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "773", - "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": [] - }, - "parameters": [ - { - "$id": "774", - "name": "except", - "nameInRequest": "except", - "type": { - "$id": "775", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.exec.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "776" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept" - }, - { - "$id": "777", - "kind": "basic", - "name": "withExec", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "778", - "name": "withExec", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "779", - "name": "exec", - "nameInRequest": "exec", + ] + }, + { + "$id": "46", + "kind": "model", + "name": "finally", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.finally", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "47", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "780", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "781", - "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": [] - }, - "parameters": [ - { - "$id": "782", - "name": "exec", - "nameInRequest": "exec", - "type": { - "$id": "783", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.finally.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "784" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec" - }, - { - "$id": "785", - "kind": "basic", - "name": "withFinally", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "786", - "name": "withFinally", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "787", - "name": "finally", - "nameInRequest": "finally", + ] + }, + { + "$id": "49", + "kind": "model", + "name": "for", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.for", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "50", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "788", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "789", - "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": [] - }, - "parameters": [ - { - "$id": "790", - "name": "finally", - "nameInRequest": "finally", - "type": { - "$id": "791", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.for.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "792" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally" - }, - { - "$id": "793", - "kind": "basic", - "name": "withFor", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "794", - "name": "withFor", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "795", - "name": "for", - "nameInRequest": "for", + ] + }, + { + "$id": "52", + "kind": "model", + "name": "from", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.from", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "53", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "796", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "797", - "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": [] - }, - "parameters": [ - { - "$id": "798", - "name": "for", - "nameInRequest": "for", - "type": { - "$id": "799", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.from.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "800" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor" - }, - { - "$id": "801", - "kind": "basic", - "name": "withFrom", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "802", - "name": "withFrom", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "803", - "name": "from", - "nameInRequest": "from", + ] + }, + { + "$id": "55", + "kind": "model", + "name": "global", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.global", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "56", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "804", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "805", - "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": [] - }, - "parameters": [ - { - "$id": "806", - "name": "from", - "nameInRequest": "from", - "type": { - "$id": "807", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.global.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "808" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom" - }, - { - "$id": "809", - "kind": "basic", - "name": "withGlobal", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "810", - "name": "withGlobal", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "811", - "name": "global", - "nameInRequest": "global", + ] + }, + { + "$id": "58", + "kind": "model", + "name": "if", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.if", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "59", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "812", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "813", - "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": [] - }, - "parameters": [ - { - "$id": "814", - "name": "global", - "nameInRequest": "global", - "type": { - "$id": "815", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.if.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "816" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal" - }, - { - "$id": "817", - "kind": "basic", - "name": "withIf", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "818", - "name": "withIf", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "819", - "name": "if", - "nameInRequest": "if", + ] + }, + { + "$id": "61", + "kind": "model", + "name": "import", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.import", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "62", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "820", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "821", - "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": [] - }, - "parameters": [ - { - "$id": "822", - "name": "if", - "nameInRequest": "if", - "type": { - "$id": "823", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.import.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "824" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf" - }, - { - "$id": "825", - "kind": "basic", - "name": "withImport", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "826", - "name": "withImport", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "827", - "name": "import", - "nameInRequest": "import", + ] + }, + { + "$id": "64", + "kind": "model", + "name": "in", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.in", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "65", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "828", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "829", - "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": [] - }, - "parameters": [ - { - "$id": "830", - "name": "import", - "nameInRequest": "import", - "type": { - "$id": "831", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.in.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "832" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport" - }, - { - "$id": "833", - "kind": "basic", - "name": "withIn", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "834", - "name": "withIn", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "835", - "name": "in", - "nameInRequest": "in", + ] + }, + { + "$id": "67", + "kind": "model", + "name": "is", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.is", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "68", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "836", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "837", - "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": [] - }, - "parameters": [ - { - "$id": "838", - "name": "in", - "nameInRequest": "in", - "type": { - "$id": "839", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.is.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "840" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn" - }, - { - "$id": "841", - "kind": "basic", - "name": "withIs", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "842", - "name": "withIs", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "843", - "name": "is", - "nameInRequest": "is", + ] + }, + { + "$id": "70", + "kind": "model", + "name": "lambda", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.lambda", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "71", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "844", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "845", - "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": [] - }, - "parameters": [ - { - "$id": "846", - "name": "is", - "nameInRequest": "is", - "type": { - "$id": "847", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.lambda.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "848" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs" - }, - { - "$id": "849", - "kind": "basic", - "name": "withLambda", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "850", - "name": "withLambda", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "851", - "name": "lambda", - "nameInRequest": "lambda", + ] + }, + { + "$id": "73", + "kind": "model", + "name": "not", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.not", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "74", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "852", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "853", - "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": [] - }, - "parameters": [ - { - "$id": "854", - "name": "lambda", - "nameInRequest": "lambda", - "type": { - "$id": "855", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.not.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "856" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda" - }, - { - "$id": "857", - "kind": "basic", - "name": "withNot", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "858", - "name": "withNot", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "859", - "name": "not", - "nameInRequest": "not", + ] + }, + { + "$id": "76", + "kind": "model", + "name": "or", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.or", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "77", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "860", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "861", - "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": [] - }, - "parameters": [ - { - "$id": "862", - "name": "not", - "nameInRequest": "not", - "type": { - "$id": "863", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.or.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "864" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot" - }, - { - "$id": "865", - "kind": "basic", - "name": "withOr", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "866", - "name": "withOr", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "867", - "name": "or", - "nameInRequest": "or", + ] + }, + { + "$id": "79", + "kind": "model", + "name": "pass", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.pass", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "80", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "868", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "869", - "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": [] - }, - "parameters": [ - { - "$id": "870", - "name": "or", - "nameInRequest": "or", - "type": { - "$id": "871", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.pass.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "872" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr" - }, - { - "$id": "873", - "kind": "basic", - "name": "withPass", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "874", - "name": "withPass", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "875", - "name": "pass", - "nameInRequest": "pass", + ] + }, + { + "$id": "82", + "kind": "model", + "name": "raise", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.raise", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "83", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "876", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "877", - "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": [] - }, - "parameters": [ - { - "$id": "878", - "name": "pass", - "nameInRequest": "pass", - "type": { - "$id": "879", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.raise.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "880" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass" - }, - { - "$id": "881", - "kind": "basic", - "name": "withRaise", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "882", - "name": "withRaise", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "883", - "name": "raise", - "nameInRequest": "raise", + ] + }, + { + "$id": "85", + "kind": "model", + "name": "return", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.return", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "86", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "884", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "885", - "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": [] - }, - "parameters": [ - { - "$id": "886", - "name": "raise", - "nameInRequest": "raise", - "type": { - "$id": "887", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.return.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "888" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise" - }, - { - "$id": "889", - "kind": "basic", - "name": "withReturn", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "890", - "name": "withReturn", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "891", - "name": "return", - "nameInRequest": "return", + ] + }, + { + "$id": "88", + "kind": "model", + "name": "try", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.try", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "89", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "892", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "893", - "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": [] - }, - "parameters": [ - { - "$id": "894", - "name": "return", - "nameInRequest": "return", - "type": { - "$id": "895", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.try.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "896" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn" - }, - { - "$id": "897", - "kind": "basic", - "name": "withTry", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "898", - "name": "withTry", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "899", - "name": "try", - "nameInRequest": "try", + ] + }, + { + "$id": "91", + "kind": "model", + "name": "while", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.while", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "92", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "900", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "901", - "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": [] - }, - "parameters": [ - { - "$id": "902", - "name": "try", - "nameInRequest": "try", - "type": { - "$id": "903", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.while.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "904" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry" - }, - { - "$id": "905", - "kind": "basic", - "name": "withWhile", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "906", - "name": "withWhile", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "907", - "name": "while", - "nameInRequest": "while", + ] + }, + { + "$id": "94", + "kind": "model", + "name": "with", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.with", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "95", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "908", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "909", - "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": [] - }, - "parameters": [ - { - "$id": "910", - "name": "while", - "nameInRequest": "while", - "type": { - "$id": "911", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.with.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "912" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile" - }, - { - "$id": "913", - "kind": "basic", - "name": "withWith", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "914", - "name": "withWith", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "915", - "name": "with", - "nameInRequest": "with", + ] + }, + { + "$id": "97", + "kind": "model", + "name": "yield", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.yield", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "98", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "916", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "917", - "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": [] - }, - "parameters": [ - { - "$id": "918", - "name": "with", - "nameInRequest": "with", - "type": { - "$id": "919", - "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 + "crossLanguageDefinitionId": "SpecialWords.Models.yield.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "920" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith" - }, - { - "$id": "921", - "kind": "basic", - "name": "withYield", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "922", - "name": "withYield", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "923", - "name": "yield", - "nameInRequest": "yield", + ] + }, + { + "$id": "100", + "kind": "model", + "name": "SameAsModel", + "namespace": "SpecialWords.ModelProperties", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.SameAsModel", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "101", + "kind": "property", + "name": "SameAsModel", + "serializedName": "SameAsModel", "type": { - "$id": "924", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "925", - "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": [] - }, - "parameters": [ - { - "$id": "926", - "name": "yield", - "nameInRequest": "yield", - "type": { - "$id": "927", - "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 + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.SameAsModel.SameAsModel", + "serializationOptions": { + "json": { + "name": "SameAsModel" + } + } } - ], - "response": { - "$id": "928" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield" - }, - { - "$id": "929", - "kind": "basic", - "name": "withCancellationToken", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "930", - "name": "withCancellationToken", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "931", - "name": "cancellationToken", - "nameInRequest": "cancellationToken", + ] + } + ], + "clients": [ + { + "$id": "103", + "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```", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "932", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords", + "apiVersions": [], + "children": [ + { + "$id": "104", + "kind": "client", + "name": "Models", + "namespace": "SpecialWords.Models", + "doc": "Verify model names", + "methods": [ + { + "$id": "105", + "kind": "basic", + "name": "withAnd", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "106", + "name": "withAnd", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "107", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "108", + "kind": "constant", + "name": "withAndContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "110", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "111", + "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": [] + }, + "parameters": [ + { + "$id": "112", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "113", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "108" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAnd" + }, + { + "$id": "114", + "kind": "basic", + "name": "withAs", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "115", + "name": "withAs", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "116", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "117", + "kind": "constant", + "name": "withAsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "119", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "4" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "120", + "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": [] + }, + "parameters": [ + { + "$id": "121", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "4" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "122", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAs" + }, + { + "$id": "123", + "kind": "basic", + "name": "withAssert", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "124", + "name": "withAssert", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "125", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "126", + "kind": "constant", + "name": "withAssertContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "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": "129", + "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": [] + }, + "parameters": [ + { + "$id": "130", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "7" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "131", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "126" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAssert" + }, + { + "$id": "132", + "kind": "basic", + "name": "withAsync", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "133", + "name": "withAsync", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "134", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "135", + "kind": "constant", + "name": "withAsyncContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "137", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "10" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "138", + "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": [] + }, + "parameters": [ + { + "$id": "139", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "10" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "140", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAsync" + }, + { + "$id": "141", + "kind": "basic", + "name": "withAwait", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "142", + "name": "withAwait", + "resourceName": "Models", + "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", + "name": "withAwaitContentType", + "namespace": "", + "usage": "None", + "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 + }, + { + "$id": "146", + "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": "147", + "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": [] + }, + "parameters": [ + { + "$id": "148", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "13" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "149", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "144" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAwait" + }, + { + "$id": "150", + "kind": "basic", + "name": "withBreak", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "151", + "name": "withBreak", + "resourceName": "Models", + "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", + "name": "withBreakContentType", + "namespace": "", + "usage": "None", + "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 + }, + { + "$id": "155", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "156", + "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": [] + }, + "parameters": [ + { + "$id": "157", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "158", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "153" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak" + }, + { + "$id": "159", + "kind": "basic", + "name": "withClass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "160", + "name": "withClass", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "161", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "162", + "kind": "constant", + "name": "withClassContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "163", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/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": "19" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/class", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withClass", + "decorators": [] + }, + "parameters": [ + { + "$id": "166", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "167", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "162" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withClass" + }, + { + "$id": "168", + "kind": "basic", + "name": "withConstructor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "169", + "name": "withConstructor", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "170", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "171", + "kind": "constant", + "name": "withConstructorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "172", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "173", + "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": "174", + "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": [] + }, + "parameters": [ + { + "$id": "175", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "22" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "176", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "171" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor" + }, + { + "$id": "177", + "kind": "basic", + "name": "withContinue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "178", + "name": "withContinue", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "179", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "180", + "kind": "constant", + "name": "withContinueContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "182", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "25" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/continue", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue", + "decorators": [] + }, + "parameters": [ + { + "$id": "184", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "185", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "180" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue" + }, + { + "$id": "186", + "kind": "basic", + "name": "withDef", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "187", + "name": "withDef", + "resourceName": "Models", + "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", + "name": "withDefContentType", + "namespace": "", + "usage": "None", + "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", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "192", + "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": [] + }, + "parameters": [ + { + "$id": "193", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "194", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "189" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withDef" + }, + { + "$id": "195", + "kind": "basic", + "name": "withDel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "196", + "name": "withDel", + "resourceName": "Models", + "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", + "name": "withDelContentType", + "namespace": "", + "usage": "None", + "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": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "201", + "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": [] + }, + "parameters": [ + { + "$id": "202", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "203", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "198" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withDel" + }, + { + "$id": "204", + "kind": "basic", + "name": "withElif", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "205", + "name": "withElif", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "206", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "207", + "kind": "constant", + "name": "withElifContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "209", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "34" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "210", + "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": [] + }, + "parameters": [ + { + "$id": "211", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "34" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "212", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "207" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withElif" + }, + { + "$id": "213", + "kind": "basic", + "name": "withElse", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "214", + "name": "withElse", + "resourceName": "Models", + "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", + "name": "withElseContentType", + "namespace": "", + "usage": "None", + "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": "218", + "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": "219", + "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": [] + }, + "parameters": [ + { + "$id": "220", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "37" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "221", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "216" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withElse" + }, + { + "$id": "222", + "kind": "basic", + "name": "withExcept", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "223", + "name": "withExcept", + "resourceName": "Models", + "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", + "name": "withExceptContentType", + "namespace": "", + "usage": "None", + "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": "227", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "228", + "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": [] + }, + "parameters": [ + { + "$id": "229", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "230", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "225" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept" + }, + { + "$id": "231", + "kind": "basic", + "name": "withExec", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "232", + "name": "withExec", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "233", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "234", + "kind": "constant", + "name": "withExecContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "236", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "43" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/exec", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withExec", + "decorators": [] + }, + "parameters": [ + { + "$id": "238", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "43" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "239", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "234" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withExec" + }, + { + "$id": "240", + "kind": "basic", + "name": "withFinally", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "241", + "name": "withFinally", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "242", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "243", + "kind": "constant", + "name": "withFinallyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "245", + "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": "246", + "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": [] + }, + "parameters": [ + { + "$id": "247", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "46" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "248", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "243" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally" + }, + { + "$id": "249", + "kind": "basic", + "name": "withFor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "250", + "name": "withFor", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "251", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "252", + "kind": "constant", + "name": "withForContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "254", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "49" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "255", + "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": [] + }, + "parameters": [ + { + "$id": "256", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "49" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "257", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "252" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFor" + }, + { + "$id": "258", + "kind": "basic", + "name": "withFrom", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "259", + "name": "withFrom", + "resourceName": "Models", + "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", + "name": "withFromContentType", + "namespace": "", + "usage": "None", + "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", + "type": { + "$ref": "52" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "264", + "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": [] + }, + "parameters": [ + { + "$id": "265", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "52" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "266", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "261" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFrom" + }, + { + "$id": "267", + "kind": "basic", + "name": "withGlobal", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "268", + "name": "withGlobal", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "269", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "270", + "kind": "constant", + "name": "withGlobalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "271", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "272", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "55" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "273", + "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": [] + }, + "parameters": [ + { + "$id": "274", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "55" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "275", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "270" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal" + }, + { + "$id": "276", + "kind": "basic", + "name": "withIf", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "277", + "name": "withIf", + "resourceName": "Models", + "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", + "name": "withIfContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "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": "58" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "282", + "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": [] + }, + "parameters": [ + { + "$id": "283", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "58" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "284", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "279" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIf" + }, + { + "$id": "285", + "kind": "basic", + "name": "withImport", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "286", + "name": "withImport", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "288", + "kind": "constant", + "name": "withImportContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "290", + "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": "291", + "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": [] + }, + "parameters": [ + { + "$id": "292", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "293", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "288" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withImport" + }, + { + "$id": "294", + "kind": "basic", + "name": "withIn", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "295", + "name": "withIn", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "296", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "297", + "kind": "constant", + "name": "withInContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "298", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.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", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "64" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "300", + "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": [] + }, + "parameters": [ + { + "$id": "301", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "64" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "302", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "297" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIn" + }, + { + "$id": "303", + "kind": "basic", + "name": "withIs", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "304", + "name": "withIs", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "305", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "306", + "kind": "constant", + "name": "withIsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "308", + "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": "309", + "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": [] + }, + "parameters": [ + { + "$id": "310", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "67" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "311", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "306" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIs" + }, + { + "$id": "312", + "kind": "basic", + "name": "withLambda", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "313", + "name": "withLambda", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "314", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "315", + "kind": "constant", + "name": "withLambdaContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "317", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "70" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "318", + "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": [] + }, + "parameters": [ + { + "$id": "319", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "70" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "320", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "315" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda" + }, + { + "$id": "321", + "kind": "basic", + "name": "withNot", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "322", + "name": "withNot", + "resourceName": "Models", + "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", + "name": "withNotContentType", + "namespace": "", + "usage": "None", + "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": "body", + "nameInRequest": "body", + "type": { + "$ref": "73" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "327", + "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": [] + }, + "parameters": [ + { + "$id": "328", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "73" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "329", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "324" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withNot" + }, + { + "$id": "330", + "kind": "basic", + "name": "withOr", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "331", + "name": "withOr", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "332", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "333", + "kind": "constant", + "name": "withOrContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "335", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "76" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "336", + "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": [] + }, + "parameters": [ + { + "$id": "337", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "76" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "338", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "333" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withOr" + }, + { + "$id": "339", + "kind": "basic", + "name": "withPass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "340", + "name": "withPass", + "resourceName": "Models", + "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", + "name": "withPassContentType", + "namespace": "", + "usage": "None", + "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", + "type": { + "$ref": "79" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/pass", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withPass", + "decorators": [] + }, + "parameters": [ + { + "$id": "346", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "79" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "347", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "342" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withPass" + }, + { + "$id": "348", + "kind": "basic", + "name": "withRaise", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "349", + "name": "withRaise", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "350", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "351", + "kind": "constant", + "name": "withRaiseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "353", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "82" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "354", + "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": [] + }, + "parameters": [ + { + "$id": "355", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "82" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "356", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "351" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withRaise" + }, + { + "$id": "357", + "kind": "basic", + "name": "withReturn", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "358", + "name": "withReturn", + "resourceName": "Models", + "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", + "name": "withReturnContentType", + "namespace": "", + "usage": "None", + "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", + "type": { + "$ref": "85" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/return", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn", + "decorators": [] + }, + "parameters": [ + { + "$id": "364", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "365", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "360" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn" + }, + { + "$id": "366", + "kind": "basic", + "name": "withTry", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "367", + "name": "withTry", + "resourceName": "Models", + "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", + "name": "withTryContentType", + "namespace": "", + "usage": "None", + "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", + "type": { + "$ref": "88" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/try", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withTry", + "decorators": [] + }, + "parameters": [ + { + "$id": "373", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "88" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "374", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "369" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withTry" + }, + { + "$id": "375", + "kind": "basic", + "name": "withWhile", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "376", + "name": "withWhile", + "resourceName": "Models", + "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", + "name": "withWhileContentType", + "namespace": "", + "usage": "None", + "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": "380", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "381", + "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": [] + }, + "parameters": [ + { + "$id": "382", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "383", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "378" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withWhile" + }, + { + "$id": "384", + "kind": "basic", + "name": "withWith", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "385", + "name": "withWith", + "resourceName": "Models", + "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", + "name": "withWithContentType", + "namespace": "", + "usage": "None", + "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": "94" + }, + "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 + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/with", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withWith", + "decorators": [] + }, + "parameters": [ + { + "$id": "391", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "392", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "387" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withWith" + }, + { + "$id": "393", + "kind": "basic", + "name": "withYield", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "394", + "name": "withYield", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "395", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "396", + "kind": "constant", + "name": "withYieldContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.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": "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": "399", + "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": [] + }, + "parameters": [ + { + "$id": "400", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "401", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "396" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withYield" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "933", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "SpecialWords.Models", + "apiVersions": [], + "parent": { + "$ref": "103" + } + }, + { + "$id": "402", + "kind": "client", + "name": "ModelProperties", + "namespace": "SpecialWords.ModelProperties", + "doc": "Verify model names", + "methods": [ + { + "$id": "403", + "kind": "basic", + "name": "sameAsModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "404", + "name": "sameAsModel", + "resourceName": "ModelProperties", + "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", + "name": "sameAsModelContentType", + "namespace": "", + "usage": "None", + "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 + }, + { + "$id": "408", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "100" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "410", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "100" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "411", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "406" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/cancellationToken", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", - "decorators": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties", + "apiVersions": [], + "parent": { + "$ref": "103" + } + }, { - "$id": "934", - "name": "cancellationToken", - "nameInRequest": "cancellationToken", - "type": { - "$id": "935", - "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 - } - ], - "response": { - "$id": "936" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken" - } - ], - "parameters": [ - { - "$id": "937", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "938", - "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": "939", - "type": { - "$id": "940", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "412", + "kind": "client", + "name": "Operations", + "namespace": "SpecialWords", + "doc": "Test reserved words as operation name.", + "methods": [ + { + "$id": "413", + "kind": "basic", + "name": "and", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "414", + "name": "and", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "415", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.and" + }, + { + "$id": "416", + "kind": "basic", + "name": "as", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "417", + "name": "as", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "418", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.as" + }, + { + "$id": "419", + "kind": "basic", + "name": "assert", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "420", + "name": "assert", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "421", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.assert" + }, + { + "$id": "422", + "kind": "basic", + "name": "async", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "423", + "name": "async", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "424", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.async" + }, + { + "$id": "425", + "kind": "basic", + "name": "await", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "426", + "name": "await", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "427", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.await" + }, + { + "$id": "428", + "kind": "basic", + "name": "break", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "429", + "name": "break", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "430", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.break" + }, + { + "$id": "431", + "kind": "basic", + "name": "class", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "432", + "name": "class", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "433", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.class" + }, + { + "$id": "434", + "kind": "basic", + "name": "constructor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "435", + "name": "constructor", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "436", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.constructor" + }, + { + "$id": "437", + "kind": "basic", + "name": "continue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "438", + "name": "continue", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "439", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.continue" + }, + { + "$id": "440", + "kind": "basic", + "name": "def", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "441", + "name": "def", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "442", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.def" + }, + { + "$id": "443", + "kind": "basic", + "name": "del", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "444", + "name": "del", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "445", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.del" + }, + { + "$id": "446", + "kind": "basic", + "name": "elif", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "447", + "name": "elif", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "448", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.elif" + }, + { + "$id": "449", + "kind": "basic", + "name": "else", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "450", + "name": "else", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "451", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.else" + }, + { + "$id": "452", + "kind": "basic", + "name": "except", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "453", + "name": "except", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "454", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.except" + }, + { + "$id": "455", + "kind": "basic", + "name": "exec", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "456", + "name": "exec", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "457", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.exec" + }, + { + "$id": "458", + "kind": "basic", + "name": "finally", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "459", + "name": "finally", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "460", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.finally" + }, + { + "$id": "461", + "kind": "basic", + "name": "for", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "462", + "name": "for", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "463", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.for" + }, + { + "$id": "464", + "kind": "basic", + "name": "from", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "465", + "name": "from", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "466", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.from" + }, + { + "$id": "467", + "kind": "basic", + "name": "global", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "468", + "name": "global", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "469", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.global" + }, + { + "$id": "470", + "kind": "basic", + "name": "if", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "471", + "name": "if", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "472", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.if" + }, + { + "$id": "473", + "kind": "basic", + "name": "import", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "474", + "name": "import", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "475", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.import" + }, + { + "$id": "476", + "kind": "basic", + "name": "in", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "477", + "name": "in", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "478", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.in" + }, + { + "$id": "479", + "kind": "basic", + "name": "is", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "480", + "name": "is", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "481", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.is" + }, + { + "$id": "482", + "kind": "basic", + "name": "lambda", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "483", + "name": "lambda", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "484", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.lambda" + }, + { + "$id": "485", + "kind": "basic", + "name": "not", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "486", + "name": "not", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "487", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.not" + }, + { + "$id": "488", + "kind": "basic", + "name": "or", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "489", + "name": "or", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "490", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.or" + }, + { + "$id": "491", + "kind": "basic", + "name": "pass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "492", + "name": "pass", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "493", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.pass" + }, + { + "$id": "494", + "kind": "basic", + "name": "raise", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "495", + "name": "raise", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "496", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.raise" + }, + { + "$id": "497", + "kind": "basic", + "name": "return", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "498", + "name": "return", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "499", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.return" + }, + { + "$id": "500", + "kind": "basic", + "name": "try", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "501", + "name": "try", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "502", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.try" + }, + { + "$id": "503", + "kind": "basic", + "name": "while", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "504", + "name": "while", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "505", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.while" + }, + { + "$id": "506", + "kind": "basic", + "name": "with", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "507", + "name": "with", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "508", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.with" + }, + { + "$id": "509", + "kind": "basic", + "name": "yield", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "510", + "name": "yield", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "511", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.yield" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Operations", + "apiVersions": [], + "parent": { + "$ref": "103" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Parameters", - "apiVersions": [], - "parent": { - "$ref": "240" - } + { + "$id": "512", + "kind": "client", + "name": "Parameters", + "namespace": "SpecialWords", + "doc": "Verify reserved words as parameter name.", + "methods": [ + { + "$id": "513", + "kind": "basic", + "name": "withAnd", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "514", + "name": "withAnd", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "515", + "name": "and", + "nameInRequest": "and", + "type": { + "$id": "516", + "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": "517", + "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": [] + }, + "parameters": [ + { + "$id": "518", + "name": "and", + "nameInRequest": "and", + "type": { + "$id": "519", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd" + }, + { + "$id": "520", + "kind": "basic", + "name": "withAs", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "521", + "name": "withAs", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "522", + "name": "as", + "nameInRequest": "as", + "type": { + "$id": "523", + "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": "524", + "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": [] + }, + "parameters": [ + { + "$id": "525", + "name": "as", + "nameInRequest": "as", + "type": { + "$id": "526", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs" + }, + { + "$id": "527", + "kind": "basic", + "name": "withAssert", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "528", + "name": "withAssert", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "529", + "name": "assert", + "nameInRequest": "assert", + "type": { + "$id": "530", + "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", + "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": [] + }, + "parameters": [ + { + "$id": "532", + "name": "assert", + "nameInRequest": "assert", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert" + }, + { + "$id": "534", + "kind": "basic", + "name": "withAsync", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "535", + "name": "withAsync", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "536", + "name": "async", + "nameInRequest": "async", + "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": "538", + "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": [] + }, + "parameters": [ + { + "$id": "539", + "name": "async", + "nameInRequest": "async", + "type": { + "$id": "540", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync" + }, + { + "$id": "541", + "kind": "basic", + "name": "withAwait", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "542", + "name": "withAwait", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "543", + "name": "await", + "nameInRequest": "await", + "type": { + "$id": "544", + "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": "545", + "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": [] + }, + "parameters": [ + { + "$id": "546", + "name": "await", + "nameInRequest": "await", + "type": { + "$id": "547", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait" + }, + { + "$id": "548", + "kind": "basic", + "name": "withBreak", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "549", + "name": "withBreak", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "550", + "name": "break", + "nameInRequest": "break", + "type": { + "$id": "551", + "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": "552", + "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": [] + }, + "parameters": [ + { + "$id": "553", + "name": "break", + "nameInRequest": "break", + "type": { + "$id": "554", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak" + }, + { + "$id": "555", + "kind": "basic", + "name": "withClass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "556", + "name": "withClass", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "557", + "name": "class", + "nameInRequest": "class", + "type": { + "$id": "558", + "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": "559", + "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": [] + }, + "parameters": [ + { + "$id": "560", + "name": "class", + "nameInRequest": "class", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass" + }, + { + "$id": "562", + "kind": "basic", + "name": "withConstructor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "563", + "name": "withConstructor", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "564", + "name": "constructor", + "nameInRequest": "constructor", + "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/constructor", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", + "decorators": [] + }, + "parameters": [ + { + "$id": "567", + "name": "constructor", + "nameInRequest": "constructor", + "type": { + "$id": "568", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor" + }, + { + "$id": "569", + "kind": "basic", + "name": "withContinue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "570", + "name": "withContinue", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "571", + "name": "continue", + "nameInRequest": "continue", + "type": { + "$id": "572", + "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": "573", + "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": [] + }, + "parameters": [ + { + "$id": "574", + "name": "continue", + "nameInRequest": "continue", + "type": { + "$id": "575", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue" + }, + { + "$id": "576", + "kind": "basic", + "name": "withDef", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "577", + "name": "withDef", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "578", + "name": "def", + "nameInRequest": "def", + "type": { + "$id": "579", + "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": "580", + "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": [] + }, + "parameters": [ + { + "$id": "581", + "name": "def", + "nameInRequest": "def", + "type": { + "$id": "582", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef" + }, + { + "$id": "583", + "kind": "basic", + "name": "withDel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "584", + "name": "withDel", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "585", + "name": "del", + "nameInRequest": "del", + "type": { + "$id": "586", + "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", + "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": [] + }, + "parameters": [ + { + "$id": "588", + "name": "del", + "nameInRequest": "del", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel" + }, + { + "$id": "590", + "kind": "basic", + "name": "withElif", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "591", + "name": "withElif", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "592", + "name": "elif", + "nameInRequest": "elif", + "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": "594", + "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": [] + }, + "parameters": [ + { + "$id": "595", + "name": "elif", + "nameInRequest": "elif", + "type": { + "$id": "596", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif" + }, + { + "$id": "597", + "kind": "basic", + "name": "withElse", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "598", + "name": "withElse", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "599", + "name": "else", + "nameInRequest": "else", + "type": { + "$id": "600", + "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": "601", + "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": [] + }, + "parameters": [ + { + "$id": "602", + "name": "else", + "nameInRequest": "else", + "type": { + "$id": "603", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse" + }, + { + "$id": "604", + "kind": "basic", + "name": "withExcept", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "605", + "name": "withExcept", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "606", + "name": "except", + "nameInRequest": "except", + "type": { + "$id": "607", + "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": "608", + "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": [] + }, + "parameters": [ + { + "$id": "609", + "name": "except", + "nameInRequest": "except", + "type": { + "$id": "610", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept" + }, + { + "$id": "611", + "kind": "basic", + "name": "withExec", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "612", + "name": "withExec", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "613", + "name": "exec", + "nameInRequest": "exec", + "type": { + "$id": "614", + "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": "615", + "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": [] + }, + "parameters": [ + { + "$id": "616", + "name": "exec", + "nameInRequest": "exec", + "type": { + "$id": "617", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec" + }, + { + "$id": "618", + "kind": "basic", + "name": "withFinally", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "619", + "name": "withFinally", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "620", + "name": "finally", + "nameInRequest": "finally", + "type": { + "$id": "621", + "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": "622", + "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": [] + }, + "parameters": [ + { + "$id": "623", + "name": "finally", + "nameInRequest": "finally", + "type": { + "$id": "624", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally" + }, + { + "$id": "625", + "kind": "basic", + "name": "withFor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "626", + "name": "withFor", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "627", + "name": "for", + "nameInRequest": "for", + "type": { + "$id": "628", + "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": "629", + "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": [] + }, + "parameters": [ + { + "$id": "630", + "name": "for", + "nameInRequest": "for", + "type": { + "$id": "631", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor" + }, + { + "$id": "632", + "kind": "basic", + "name": "withFrom", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "633", + "name": "withFrom", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "634", + "name": "from", + "nameInRequest": "from", + "type": { + "$id": "635", + "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": "636", + "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": [] + }, + "parameters": [ + { + "$id": "637", + "name": "from", + "nameInRequest": "from", + "type": { + "$id": "638", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom" + }, + { + "$id": "639", + "kind": "basic", + "name": "withGlobal", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "640", + "name": "withGlobal", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "641", + "name": "global", + "nameInRequest": "global", + "type": { + "$id": "642", + "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": "643", + "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": [] + }, + "parameters": [ + { + "$id": "644", + "name": "global", + "nameInRequest": "global", + "type": { + "$id": "645", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal" + }, + { + "$id": "646", + "kind": "basic", + "name": "withIf", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "647", + "name": "withIf", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "648", + "name": "if", + "nameInRequest": "if", + "type": { + "$id": "649", + "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": "650", + "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": [] + }, + "parameters": [ + { + "$id": "651", + "name": "if", + "nameInRequest": "if", + "type": { + "$id": "652", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf" + }, + { + "$id": "653", + "kind": "basic", + "name": "withImport", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "654", + "name": "withImport", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "655", + "name": "import", + "nameInRequest": "import", + "type": { + "$id": "656", + "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": "657", + "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": [] + }, + "parameters": [ + { + "$id": "658", + "name": "import", + "nameInRequest": "import", + "type": { + "$id": "659", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport" + }, + { + "$id": "660", + "kind": "basic", + "name": "withIn", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "661", + "name": "withIn", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "662", + "name": "in", + "nameInRequest": "in", + "type": { + "$id": "663", + "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": "664", + "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": [] + }, + "parameters": [ + { + "$id": "665", + "name": "in", + "nameInRequest": "in", + "type": { + "$id": "666", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn" + }, + { + "$id": "667", + "kind": "basic", + "name": "withIs", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "668", + "name": "withIs", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "669", + "name": "is", + "nameInRequest": "is", + "type": { + "$id": "670", + "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": "671", + "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": [] + }, + "parameters": [ + { + "$id": "672", + "name": "is", + "nameInRequest": "is", + "type": { + "$id": "673", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs" + }, + { + "$id": "674", + "kind": "basic", + "name": "withLambda", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "675", + "name": "withLambda", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "676", + "name": "lambda", + "nameInRequest": "lambda", + "type": { + "$id": "677", + "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": "678", + "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": [] + }, + "parameters": [ + { + "$id": "679", + "name": "lambda", + "nameInRequest": "lambda", + "type": { + "$id": "680", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda" + }, + { + "$id": "681", + "kind": "basic", + "name": "withNot", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "682", + "name": "withNot", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "683", + "name": "not", + "nameInRequest": "not", + "type": { + "$id": "684", + "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": "685", + "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": [] + }, + "parameters": [ + { + "$id": "686", + "name": "not", + "nameInRequest": "not", + "type": { + "$id": "687", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot" + }, + { + "$id": "688", + "kind": "basic", + "name": "withOr", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "689", + "name": "withOr", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "690", + "name": "or", + "nameInRequest": "or", + "type": { + "$id": "691", + "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": "692", + "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": [] + }, + "parameters": [ + { + "$id": "693", + "name": "or", + "nameInRequest": "or", + "type": { + "$id": "694", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr" + }, + { + "$id": "695", + "kind": "basic", + "name": "withPass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "696", + "name": "withPass", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "697", + "name": "pass", + "nameInRequest": "pass", + "type": { + "$id": "698", + "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": "699", + "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": [] + }, + "parameters": [ + { + "$id": "700", + "name": "pass", + "nameInRequest": "pass", + "type": { + "$id": "701", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass" + }, + { + "$id": "702", + "kind": "basic", + "name": "withRaise", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "703", + "name": "withRaise", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "704", + "name": "raise", + "nameInRequest": "raise", + "type": { + "$id": "705", + "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": "706", + "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": [] + }, + "parameters": [ + { + "$id": "707", + "name": "raise", + "nameInRequest": "raise", + "type": { + "$id": "708", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise" + }, + { + "$id": "709", + "kind": "basic", + "name": "withReturn", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "710", + "name": "withReturn", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "711", + "name": "return", + "nameInRequest": "return", + "type": { + "$id": "712", + "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": "713", + "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": [] + }, + "parameters": [ + { + "$id": "714", + "name": "return", + "nameInRequest": "return", + "type": { + "$id": "715", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn" + }, + { + "$id": "716", + "kind": "basic", + "name": "withTry", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "717", + "name": "withTry", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "718", + "name": "try", + "nameInRequest": "try", + "type": { + "$id": "719", + "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": "720", + "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": [] + }, + "parameters": [ + { + "$id": "721", + "name": "try", + "nameInRequest": "try", + "type": { + "$id": "722", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry" + }, + { + "$id": "723", + "kind": "basic", + "name": "withWhile", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "724", + "name": "withWhile", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "725", + "name": "while", + "nameInRequest": "while", + "type": { + "$id": "726", + "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": "727", + "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": [] + }, + "parameters": [ + { + "$id": "728", + "name": "while", + "nameInRequest": "while", + "type": { + "$id": "729", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile" + }, + { + "$id": "730", + "kind": "basic", + "name": "withWith", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "731", + "name": "withWith", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "732", + "name": "with", + "nameInRequest": "with", + "type": { + "$id": "733", + "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": "734", + "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": [] + }, + "parameters": [ + { + "$id": "735", + "name": "with", + "nameInRequest": "with", + "type": { + "$id": "736", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith" + }, + { + "$id": "737", + "kind": "basic", + "name": "withYield", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "738", + "name": "withYield", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "739", + "name": "yield", + "nameInRequest": "yield", + "type": { + "$id": "740", + "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": "741", + "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": [] + }, + "parameters": [ + { + "$id": "742", + "name": "yield", + "nameInRequest": "yield", + "type": { + "$id": "743", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield" + }, + { + "$id": "744", + "kind": "basic", + "name": "withCancellationToken", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "745", + "name": "withCancellationToken", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "746", + "name": "cancellationToken", + "nameInRequest": "cancellationToken", + "type": { + "$id": "747", + "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": "748", + "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": [] + }, + "parameters": [ + { + "$id": "749", + "name": "cancellationToken", + "nameInRequest": "cancellationToken", + "type": { + "$id": "750", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Parameters", + "apiVersions": [], + "parent": { + "$ref": "103" + } + } + ] } - ] - } - ] + ] } From 3cca9c2e4524336052c0330e8e51741c159b23c8 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 26 May 2025 16:58:42 +0800 Subject: [PATCH 04/22] fix a few regen issues --- .../emitter/src/lib/client-model-builder.ts | 10 ++-- .../http/custom/src/Generated/CustomClient.cs | 39 +++++++++++++ .../src/Generated/CustomClientOptions.cs | 12 ++++ .../Models/AuthenticationHttpCustomContext.cs | 12 ++++ .../http/custom/tspCodeModel.json | 56 ++++++++++--------- 5 files changed, 98 insertions(+), 31 deletions(-) create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs 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 eead2a615e7..1babb6ec6eb 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 @@ -18,11 +18,6 @@ import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const sdkPackage = sdkContext.sdkPackage; - const enums = fromSdkEnums(sdkContext, sdkPackage.enums); - const models = fromSdkModels(sdkContext, sdkPackage.models); - // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. - const constants = Array.from(sdkContext.__typeCache.constants.values()); - const sdkApiVersionEnums = sdkPackage.enums.filter((e) => e.usage === UsageFlags.ApiVersionEnum); const rootClients = sdkPackage.clients; @@ -33,6 +28,11 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { : (rootClients[0]?.apiVersions ?? []); const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); + + const enums = fromSdkEnums(sdkContext, sdkPackage.enums); + const models = fromSdkModels(sdkContext, sdkPackage.models); + // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. + const constants = Array.from(sdkContext.__typeCache.constants.values()); // TODO - TCGC has two issues which come from the same root cause: the name determination algorithm based on the typespec node of the constant. // typespec itself will always use the same node/Type instance for the same value constant, therefore a lot of names are not correct. diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs new file mode 100644 index 00000000000..18db40d8e7b --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClient.cs @@ -0,0 +1,39 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Authentication.Http.Custom +{ + public partial class CustomClient + { + protected CustomClient() => throw null; + + public CustomClient(ApiKeyCredential keyCredential) : this(new Uri("http://localhost:3000"), keyCredential, new CustomClientOptions()) => throw null; + + public CustomClient(Uri endpoint, ApiKeyCredential keyCredential, CustomClientOptions options) => throw null; + + public ClientPipeline Pipeline => throw null; + + public virtual ClientResult Valid(RequestOptions options) => throw null; + + public virtual Task ValidAsync(RequestOptions options) => throw null; + + public virtual ClientResult Valid(CancellationToken cancellationToken = default) => throw null; + + public virtual Task ValidAsync(CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult Invalid(RequestOptions options) => throw null; + + public virtual Task InvalidAsync(RequestOptions options) => throw null; + + public virtual ClientResult Invalid(CancellationToken cancellationToken = default) => throw null; + + public virtual Task InvalidAsync(CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs new file mode 100644 index 00000000000..bd234ac920d --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/CustomClientOptions.cs @@ -0,0 +1,12 @@ +// + +#nullable disable + +using System.ClientModel.Primitives; + +namespace Authentication.Http.Custom +{ + public partial class CustomClientOptions : ClientPipelineOptions + { + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs new file mode 100644 index 00000000000..a2437ee39c6 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Generated/Models/AuthenticationHttpCustomContext.cs @@ -0,0 +1,12 @@ +// + +#nullable disable + +using System.ClientModel.Primitives; + +namespace Authentication.Http.Custom +{ + public partial class AuthenticationHttpCustomContext : ModelReaderWriterContext + { + } +} 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 6b79879cc79..7933e61f1bb 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 @@ -2,10 +2,27 @@ "name": "Authentication.Http.Custom", "apiVersions": [], "enums": [], - "constants": [], - "models": [ + "constants": [ { "$id": "1", + "kind": "constant", + "name": "invalidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "3", "kind": "model", "name": "InvalidAuth", "namespace": "Authentication.Http.Custom", @@ -14,12 +31,12 @@ "decorators": [], "properties": [ { - "$id": "2", + "$id": "4", "kind": "property", "name": "error", "serializedName": "error", "type": { - "$id": "3", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -42,21 +59,21 @@ ], "clients": [ { - "$id": "4", + "$id": "6", "kind": "client", "name": "CustomClient", "namespace": "Authentication.Http.Custom", "doc": "Illustrates clients generated with generic HTTP auth.", "methods": [ { - "$id": "5", + "$id": "7", "kind": "basic", "name": "valid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated", "operation": { - "$id": "6", + "$id": "8", "name": "valid", "resourceName": "Custom", "doc": "Check whether client is authenticated", @@ -64,7 +81,7 @@ "parameters": [], "responses": [ { - "$id": "7", + "$id": "9", "statusCodes": [ 204 ], @@ -89,38 +106,25 @@ "crossLanguageDefinitionId": "Authentication.Http.Custom.valid" }, { - "$id": "8", + "$id": "10", "kind": "basic", "name": "invalid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated.", "operation": { - "$id": "9", + "$id": "11", "name": "invalid", "resourceName": "Custom", "doc": "Check whether client is authenticated.", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "12", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "11", - "kind": "constant", - "name": "invalidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "1" }, "location": "Header", "isApiVersion": false, @@ -158,7 +162,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "11" + "$ref": "1" }, "location": "Header", "isApiVersion": false, From d1a3fd048b8440d4601085ce46006ed94c5021a5 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Tue, 27 May 2025 14:36:12 +0800 Subject: [PATCH 05/22] regen --- .../emitter/src/code-model-writer.ts | 11 +- .../Local/Sample-TypeSpec/tspCodeModel.json | 2287 +- .../authentication/api-key/tspCodeModel.json | 56 +- .../authentication/oauth2/tspCodeModel.json | 56 +- .../client-operation-group/tspCodeModel.json | 1162 +- .../structure/default/tspCodeModel.json | 1588 +- .../structure/multi-client/tspCodeModel.json | 847 +- .../renamed-operation/tspCodeModel.json | 861 +- .../two-operation-group/tspCodeModel.json | 962 +- .../http/encode/bytes/tspCodeModel.json | 6450 +++-- .../http/encode/datetime/tspCodeModel.json | 5282 ++-- .../http/encode/duration/tspCodeModel.json | 5577 ++--- .../http/encode/numeric/tspCodeModel.json | 1488 +- .../http/parameters/basic/tspCodeModel.json | 897 +- .../body-optionality/tspCodeModel.json | 1253 +- .../collection-format/tspCodeModel.json | 1247 +- .../http/parameters/path/tspCodeModel.json | 419 +- .../http/parameters/spread/tspCodeModel.json | 4705 ++-- .../content-negotiation/tspCodeModel.json | 1503 +- .../json-merge-patch/tspCodeModel.json | 2178 +- .../http/payload/media-type/tspCodeModel.json | 1277 +- .../http/payload/multipart/tspCodeModel.json | 6467 +++-- .../http/payload/pageable/tspCodeModel.json | 3112 ++- .../srv-driven/v1/tspCodeModel.json | 687 +- .../srv-driven/v2/tspCodeModel.json | 1075 +- .../status-code-range/tspCodeModel.json | 819 +- .../encoded-name/json/tspCodeModel.json | 692 +- .../endpoint/not-defined/tspCodeModel.json | 153 +- .../server/path/multiple/tspCodeModel.json | 448 +- .../http/server/path/single/tspCodeModel.json | 153 +- .../versions/not-versioned/tspCodeModel.json | 479 +- .../versions/versioned/tspCodeModel.json | 701 +- .../conditional-request/tspCodeModel.json | 843 +- .../repeatability/tspCodeModel.json | 486 +- .../http/special-words/tspCodeModel.json | 1947 +- .../Spector/http/type/array/tspCodeModel.json | 8705 ++++--- .../http/type/dictionary/tspCodeModel.json | 7234 +++--- .../type/enum/extensible/tspCodeModel.json | 1459 +- .../http/type/enum/fixed/tspCodeModel.json | 1237 +- .../http/type/model/empty/tspCodeModel.json | 983 +- .../enum-discriminator/tspCodeModel.json | 2388 +- .../nested-discriminator/tspCodeModel.json | 2165 +- .../not-discriminated/tspCodeModel.json | 1133 +- .../inheritance/recursive/tspCodeModel.json | 698 +- .../single-discriminator/tspCodeModel.json | 2528 +- .../http/type/model/usage/tspCodeModel.json | 1131 +- .../type/model/visibility/tspCodeModel.json | 2625 +- .../additional-properties/tspCodeModel.json | 20848 ++++++++-------- .../type/property/nullable/tspCodeModel.json | 8537 ++++--- .../property/optionality/tspCodeModel.json | 17733 +++++++------ .../property/value-types/tspCodeModel.json | 18673 +++++++------- .../http/type/scalar/tspCodeModel.json | 4851 ++-- .../Spector/http/type/union/tspCodeModel.json | 8533 +++---- .../versioning/added/v1/tspCodeModel.json | 737 +- .../versioning/added/v2/tspCodeModel.json | 2042 +- .../madeOptional/v1/tspCodeModel.json | 759 +- .../madeOptional/v2/tspCodeModel.json | 797 +- .../versioning/removed/v1/tspCodeModel.json | 2653 +- .../versioning/removed/v2/tspCodeModel.json | 1462 +- .../removed/v2Preview/tspCodeModel.json | 2565 +- .../renamedFrom/v1/tspCodeModel.json | 1359 +- .../renamedFrom/v2/tspCodeModel.json | 1399 +- .../v1/tspCodeModel.json | 656 +- .../v2/tspCodeModel.json | 688 +- .../typeChangedFrom/v1/tspCodeModel.json | 761 +- .../typeChangedFrom/v2/tspCodeModel.json | 797 +- 66 files changed, 91840 insertions(+), 94464 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/code-model-writer.ts b/packages/http-client-csharp/emitter/src/code-model-writer.ts index f7ed80953f2..f27a2636bb1 100644 --- a/packages/http-client-csharp/emitter/src/code-model-writer.ts +++ b/packages/http-client-csharp/emitter/src/code-model-writer.ts @@ -81,6 +81,9 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { const result: any = id === undefined ? {} : { $id: id }; for (const property in obj) { + if (property === "__raw") { + continue; // skip __raw property + } const v = obj[property]; result[property] = doBuildJson(context, v); } @@ -90,14 +93,6 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { function shouldHaveRef(obj: any): boolean { return typesToRef.has(obj); - // // it needs to be an object - // if (obj === null || typeof obj !== "object" || Array.isArray(obj)) { - // return false; - // } - - // // if it contains a `kind` property, we will include it as a ref - // return "kind" in obj; - // // TODO -- exclude the example objects } } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index d6878d9193c..b0fdfd6587c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -536,135 +536,823 @@ { "$id": "45", "kind": "constant", + "name": "sayHiContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", "name": "ThingRequiredLiteralString", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "46", + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "accept", + "decorators": [] + }, + { + "$id": "49", + "kind": "constant", + "name": "ThingRequiredLiteralInt", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "50", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 123, + "decorators": [] + }, + { + "$id": "51", + "kind": "constant", + "name": "ThingRequiredLiteralFloat", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "52", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 1.23, + "decorators": [] + }, + { + "$id": "53", + "kind": "constant", + "name": "ThingRequiredLiteralBool", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "54", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": false, + "decorators": [] + }, + { + "$id": "55", + "kind": "constant", + "name": "ThingOptionalLiteralString", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "reject", + "decorators": [] + }, + { + "$id": "57", + "kind": "constant", + "name": "ThingOptionalLiteralInt", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "58", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 456, + "decorators": [] + }, + { + "$id": "59", + "kind": "constant", + "name": "ThingOptionalLiteralFloat", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "60", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 4.56, + "decorators": [] + }, + { + "$id": "61", + "kind": "constant", + "name": "ThingOptionalLiteralBool", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "62", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "63", + "kind": "constant", + "name": "HelloAgainRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + { + "$id": "65", + "kind": "constant", + "name": "helloAgainContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "67", + "kind": "constant", + "name": "HelloAgainRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + { + "$id": "69", + "kind": "constant", + "name": "noContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "71", + "kind": "constant", + "name": "noContentTypeContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "73", + "kind": "constant", + "name": "helloDemo2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "75", + "kind": "constant", + "name": "createLiteralContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "77", + "kind": "constant", + "name": "createLiteralContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "79", + "kind": "constant", + "name": "HelloLiteralRequestP1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "test", + "decorators": [] + }, + { + "$id": "81", + "kind": "constant", + "name": "ThingRequiredLiteralInt1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 123, + "decorators": [] + }, + { + "$id": "83", + "kind": "constant", + "name": "ThingOptionalLiteralBool1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "85", + "kind": "constant", + "name": "helloLiteralContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "87", + "kind": "constant", + "name": "HelloLiteralRequestP11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "test", + "decorators": [] + }, + { + "$id": "89", + "kind": "constant", + "name": "ThingRequiredLiteralInt2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "90", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 123, + "decorators": [] + }, + { + "$id": "91", + "kind": "constant", + "name": "ThingOptionalLiteralBool2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "93", + "kind": "constant", + "name": "topActionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "95", + "kind": "constant", + "name": "topAction2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "97", + "kind": "constant", + "name": "patchActionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "99", + "kind": "constant", + "name": "patchActionContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "101", + "kind": "constant", + "name": "anonymousBodyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "103", + "kind": "constant", + "name": "anonymousBodyContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "105", + "kind": "constant", + "name": "ThingRequiredLiteralString1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "accept", + "decorators": [] + }, + { + "$id": "107", + "kind": "constant", + "name": "ThingRequiredLiteralInt3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 123, + "decorators": [] + }, + { + "$id": "109", + "kind": "constant", + "name": "ThingRequiredLiteralFloat1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "110", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 1.23, + "decorators": [] + }, + { + "$id": "111", + "kind": "constant", + "name": "ThingRequiredLiteralBool1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "112", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": false, + "decorators": [] + }, + { + "$id": "113", + "kind": "constant", + "name": "ThingOptionalLiteralString1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "reject", + "decorators": [] + }, + { + "$id": "115", + "kind": "constant", + "name": "ThingOptionalLiteralInt1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "116", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 456, + "decorators": [] + }, + { + "$id": "117", + "kind": "constant", + "name": "ThingOptionalLiteralFloat1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 4.56, + "decorators": [] + }, + { + "$id": "119", + "kind": "constant", + "name": "ThingOptionalLiteralBool3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "120", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "121", + "kind": "constant", + "name": "friendlyModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "accept", + "value": "application/json", "decorators": [] }, { - "$id": "47", + "$id": "123", "kind": "constant", - "name": "ThingRequiredLiteralInt", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "friendlyModelContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "48", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 123, + "value": "application/json", "decorators": [] }, { - "$id": "49", + "$id": "125", "kind": "constant", - "name": "ThingRequiredLiteralFloat", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "projectedNameModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "50", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 1.23, + "value": "application/json", "decorators": [] }, { - "$id": "51", + "$id": "127", "kind": "constant", - "name": "ThingRequiredLiteralBool", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "projectedNameModelContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "52", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": false, + "value": "application/json", "decorators": [] }, { - "$id": "53", + "$id": "129", "kind": "constant", - "name": "ThingOptionalLiteralString", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "returnsAnonymousModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "54", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "reject", + "value": "application/json", "decorators": [] }, { - "$id": "55", + "$id": "131", "kind": "constant", - "name": "ThingOptionalLiteralInt", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "GetUnknownValueResponse6", + "namespace": "", + "usage": "None", "valueType": { - "$id": "56", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 456, + "value": "Sunday", "decorators": [] }, { - "$id": "57", + "$id": "133", "kind": "constant", - "name": "ThingOptionalLiteralFloat", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "internalProtocolContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "58", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 4.56, + "value": "application/json", "decorators": [] }, { - "$id": "59", + "$id": "135", "kind": "constant", - "name": "ThingOptionalLiteralBool", - "namespace": "SampleTypeSpec", - "usage": "Input,Output,Spread,Json", + "name": "internalProtocolContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "60", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": true, + "value": "application/json", + "decorators": [] + }, + { + "$id": "137", + "kind": "constant", + "name": "ListWithNextLinkContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "139", + "kind": "constant", + "name": "ListWithContinuationTokenContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "141", + "kind": "constant", + "name": "ListWithContinuationTokenHeaderResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "143", + "kind": "constant", + "name": "ListWithPagingContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "145", + "kind": "constant", + "name": "EmbeddedParametersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] } ], "models": [ { - "$id": "61", + "$id": "147", "kind": "model", "name": "Thing", "namespace": "SampleTypeSpec", @@ -674,13 +1362,13 @@ "decorators": [], "properties": [ { - "$id": "62", + "$id": "148", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the Thing", "type": { - "$id": "63", + "$id": "149", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -699,29 +1387,29 @@ } }, { - "$id": "64", + "$id": "150", "kind": "property", "name": "requiredUnion", "serializedName": "requiredUnion", "doc": "required Union", "type": { - "$id": "65", + "$id": "151", "kind": "union", "name": "ThingRequiredUnion", "variantTypes": [ { - "$id": "66", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "67", + "$id": "153", "kind": "array", "name": "Array", "valueType": { - "$id": "68", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -731,7 +1419,7 @@ "decorators": [] }, { - "$id": "69", + "$id": "155", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -754,13 +1442,13 @@ } }, { - "$id": "70", + "$id": "156", "kind": "property", "name": "requiredLiteralString", "serializedName": "requiredLiteralString", "doc": "required literal string", "type": { - "$ref": "45" + "$ref": "47" }, "optional": false, "readOnly": false, @@ -775,16 +1463,16 @@ } }, { - "$id": "71", + "$id": "157", "kind": "property", "name": "requiredNullableString", "serializedName": "requiredNullableString", "doc": "required nullable string", "type": { - "$id": "72", + "$id": "158", "kind": "nullable", "type": { - "$id": "73", + "$id": "159", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -805,16 +1493,16 @@ } }, { - "$id": "74", + "$id": "160", "kind": "property", "name": "optionalNullableString", "serializedName": "optionalNullableString", "doc": "required optional string", "type": { - "$id": "75", + "$id": "161", "kind": "nullable", "type": { - "$id": "76", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -835,13 +1523,13 @@ } }, { - "$id": "77", + "$id": "163", "kind": "property", "name": "requiredLiteralInt", "serializedName": "requiredLiteralInt", "doc": "required literal int", "type": { - "$ref": "47" + "$ref": "49" }, "optional": false, "readOnly": false, @@ -856,13 +1544,13 @@ } }, { - "$id": "78", + "$id": "164", "kind": "property", "name": "requiredLiteralFloat", "serializedName": "requiredLiteralFloat", "doc": "required literal float", "type": { - "$ref": "49" + "$ref": "51" }, "optional": false, "readOnly": false, @@ -877,13 +1565,13 @@ } }, { - "$id": "79", + "$id": "165", "kind": "property", "name": "requiredLiteralBool", "serializedName": "requiredLiteralBool", "doc": "required literal bool", "type": { - "$ref": "51" + "$ref": "53" }, "optional": false, "readOnly": false, @@ -898,13 +1586,13 @@ } }, { - "$id": "80", + "$id": "166", "kind": "property", "name": "optionalLiteralString", "serializedName": "optionalLiteralString", "doc": "optional literal string", "type": { - "$ref": "53" + "$ref": "55" }, "optional": true, "readOnly": false, @@ -919,13 +1607,13 @@ } }, { - "$id": "81", + "$id": "167", "kind": "property", "name": "optionalLiteralInt", "serializedName": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$ref": "55" + "$ref": "57" }, "optional": true, "readOnly": false, @@ -940,13 +1628,13 @@ } }, { - "$id": "82", + "$id": "168", "kind": "property", "name": "optionalLiteralFloat", "serializedName": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$ref": "57" + "$ref": "59" }, "optional": true, "readOnly": false, @@ -961,13 +1649,13 @@ } }, { - "$id": "83", + "$id": "169", "kind": "property", "name": "optionalLiteralBool", "serializedName": "optionalLiteralBool", "doc": "optional literal bool", "type": { - "$ref": "59" + "$ref": "61" }, "optional": true, "readOnly": false, @@ -982,13 +1670,13 @@ } }, { - "$id": "84", + "$id": "170", "kind": "property", "name": "requiredBadDescription", "serializedName": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "85", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1007,20 +1695,20 @@ } }, { - "$id": "86", + "$id": "172", "kind": "property", "name": "optionalNullableList", "serializedName": "optionalNullableList", "doc": "optional nullable collection", "type": { - "$id": "87", + "$id": "173", "kind": "nullable", "type": { - "$id": "88", + "$id": "174", "kind": "array", "name": "Array1", "valueType": { - "$id": "89", + "$id": "175", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1044,20 +1732,20 @@ } }, { - "$id": "90", + "$id": "176", "kind": "property", "name": "requiredNullableList", "serializedName": "requiredNullableList", "doc": "required nullable collection", "type": { - "$id": "91", + "$id": "177", "kind": "nullable", "type": { - "$id": "92", + "$id": "178", "kind": "array", "name": "Array1", "valueType": { - "$id": "93", + "$id": "179", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1083,7 +1771,7 @@ ] }, { - "$id": "94", + "$id": "180", "kind": "model", "name": "RoundTripModel", "namespace": "SampleTypeSpec", @@ -1093,13 +1781,13 @@ "decorators": [], "properties": [ { - "$id": "95", + "$id": "181", "kind": "property", "name": "requiredString", "serializedName": "requiredString", "doc": "Required string, illustrating a reference type property.", "type": { - "$id": "96", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1118,13 +1806,13 @@ } }, { - "$id": "97", + "$id": "183", "kind": "property", "name": "requiredInt", "serializedName": "requiredInt", "doc": "Required int, illustrating a value type property.", "type": { - "$id": "98", + "$id": "184", "kind": "int32", "name": "int32", "encode": "string", @@ -1144,13 +1832,13 @@ } }, { - "$id": "99", + "$id": "185", "kind": "property", "name": "requiredCollection", "serializedName": "requiredCollection", "doc": "Required collection of enums", "type": { - "$id": "100", + "$id": "186", "kind": "array", "name": "ArrayStringFixedEnum", "valueType": { @@ -1172,16 +1860,16 @@ } }, { - "$id": "101", + "$id": "187", "kind": "property", "name": "requiredDictionary", "serializedName": "requiredDictionary", "doc": "Required dictionary of enums", "type": { - "$id": "102", + "$id": "188", "kind": "dict", "keyType": { - "$id": "103", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1205,13 +1893,13 @@ } }, { - "$id": "104", + "$id": "190", "kind": "property", "name": "requiredModel", "serializedName": "requiredModel", "doc": "Required model", "type": { - "$ref": "61" + "$ref": "147" }, "optional": false, "readOnly": false, @@ -1226,7 +1914,7 @@ } }, { - "$id": "105", + "$id": "191", "kind": "property", "name": "intExtensibleEnum", "serializedName": "intExtensibleEnum", @@ -1247,13 +1935,13 @@ } }, { - "$id": "106", + "$id": "192", "kind": "property", "name": "intExtensibleEnumCollection", "serializedName": "intExtensibleEnumCollection", "doc": "this is a collection of int based extensible enum", "type": { - "$id": "107", + "$id": "193", "kind": "array", "name": "ArrayIntExtensibleEnum", "valueType": { @@ -1275,7 +1963,7 @@ } }, { - "$id": "108", + "$id": "194", "kind": "property", "name": "floatExtensibleEnum", "serializedName": "floatExtensibleEnum", @@ -1296,7 +1984,7 @@ } }, { - "$id": "109", + "$id": "195", "kind": "property", "name": "floatExtensibleEnumWithIntValue", "serializedName": "floatExtensibleEnumWithIntValue", @@ -1317,13 +2005,13 @@ } }, { - "$id": "110", + "$id": "196", "kind": "property", "name": "floatExtensibleEnumCollection", "serializedName": "floatExtensibleEnumCollection", "doc": "this is a collection of float based extensible enum", "type": { - "$id": "111", + "$id": "197", "kind": "array", "name": "ArrayFloatExtensibleEnum", "valueType": { @@ -1345,7 +2033,7 @@ } }, { - "$id": "112", + "$id": "198", "kind": "property", "name": "floatFixedEnum", "serializedName": "floatFixedEnum", @@ -1366,7 +2054,7 @@ } }, { - "$id": "113", + "$id": "199", "kind": "property", "name": "floatFixedEnumWithIntValue", "serializedName": "floatFixedEnumWithIntValue", @@ -1387,13 +2075,13 @@ } }, { - "$id": "114", + "$id": "200", "kind": "property", "name": "floatFixedEnumCollection", "serializedName": "floatFixedEnumCollection", "doc": "this is a collection of float based fixed enum", "type": { - "$id": "115", + "$id": "201", "kind": "array", "name": "ArrayFloatFixedEnum", "valueType": { @@ -1415,7 +2103,7 @@ } }, { - "$id": "116", + "$id": "202", "kind": "property", "name": "intFixedEnum", "serializedName": "intFixedEnum", @@ -1436,13 +2124,13 @@ } }, { - "$id": "117", + "$id": "203", "kind": "property", "name": "intFixedEnumCollection", "serializedName": "intFixedEnumCollection", "doc": "this is a collection of int based fixed enum", "type": { - "$id": "118", + "$id": "204", "kind": "array", "name": "ArrayIntFixedEnum", "valueType": { @@ -1464,7 +2152,7 @@ } }, { - "$id": "119", + "$id": "205", "kind": "property", "name": "stringFixedEnum", "serializedName": "stringFixedEnum", @@ -1485,13 +2173,13 @@ } }, { - "$id": "120", + "$id": "206", "kind": "property", "name": "requiredUnknown", "serializedName": "requiredUnknown", "doc": "required unknown", "type": { - "$id": "121", + "$id": "207", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1510,13 +2198,13 @@ } }, { - "$id": "122", + "$id": "208", "kind": "property", "name": "optionalUnknown", "serializedName": "optionalUnknown", "doc": "optional unknown", "type": { - "$id": "123", + "$id": "209", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1535,23 +2223,23 @@ } }, { - "$id": "124", + "$id": "210", "kind": "property", "name": "requiredRecordUnknown", "serializedName": "requiredRecordUnknown", "doc": "required record of unknown", "type": { - "$id": "125", + "$id": "211", "kind": "dict", "keyType": { - "$id": "126", + "$id": "212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "127", + "$id": "213", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1572,23 +2260,23 @@ } }, { - "$id": "128", + "$id": "214", "kind": "property", "name": "optionalRecordUnknown", "serializedName": "optionalRecordUnknown", "doc": "optional record of unknown", "type": { - "$id": "129", + "$id": "215", "kind": "dict", "keyType": { - "$id": "130", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "131", + "$id": "217", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1609,23 +2297,23 @@ } }, { - "$id": "132", + "$id": "218", "kind": "property", "name": "readOnlyRequiredRecordUnknown", "serializedName": "readOnlyRequiredRecordUnknown", "doc": "required readonly record of unknown", "type": { - "$id": "133", + "$id": "219", "kind": "dict", "keyType": { - "$id": "134", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "135", + "$id": "221", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1646,23 +2334,23 @@ } }, { - "$id": "136", + "$id": "222", "kind": "property", "name": "readOnlyOptionalRecordUnknown", "serializedName": "readOnlyOptionalRecordUnknown", "doc": "optional readonly record of unknown", "type": { - "$id": "137", + "$id": "223", "kind": "dict", "keyType": { - "$id": "138", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "139", + "$id": "225", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1683,13 +2371,13 @@ } }, { - "$id": "140", + "$id": "226", "kind": "property", "name": "modelWithRequiredNullable", "serializedName": "modelWithRequiredNullable", "doc": "this is a model with required nullable properties", "type": { - "$id": "141", + "$id": "227", "kind": "model", "name": "ModelWithRequiredNullableProperties", "namespace": "SampleTypeSpec", @@ -1699,16 +2387,16 @@ "decorators": [], "properties": [ { - "$id": "142", + "$id": "228", "kind": "property", "name": "requiredNullablePrimitive", "serializedName": "requiredNullablePrimitive", "doc": "required nullable primitive type", "type": { - "$id": "143", + "$id": "229", "kind": "nullable", "type": { - "$id": "144", + "$id": "230", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1729,13 +2417,13 @@ } }, { - "$id": "145", + "$id": "231", "kind": "property", "name": "requiredExtensibleEnum", "serializedName": "requiredExtensibleEnum", "doc": "required nullable extensible enum type", "type": { - "$id": "146", + "$id": "232", "kind": "nullable", "type": { "$ref": "6" @@ -1755,13 +2443,13 @@ } }, { - "$id": "147", + "$id": "233", "kind": "property", "name": "requiredFixedEnum", "serializedName": "requiredFixedEnum", "doc": "required nullable fixed enum type", "type": { - "$id": "148", + "$id": "234", "kind": "nullable", "type": { "$ref": "1" @@ -1795,13 +2483,13 @@ } }, { - "$id": "149", + "$id": "235", "kind": "property", "name": "requiredBytes", "serializedName": "requiredBytes", "doc": "Required bytes", "type": { - "$id": "150", + "$id": "236", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1823,10 +2511,10 @@ ] }, { - "$ref": "141" + "$ref": "227" }, { - "$id": "151", + "$id": "237", "kind": "model", "name": "Friend", "namespace": "SampleTypeSpec", @@ -1836,13 +2524,13 @@ "decorators": [], "properties": [ { - "$id": "152", + "$id": "238", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "153", + "$id": "239", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1863,7 +2551,7 @@ ] }, { - "$id": "154", + "$id": "240", "kind": "model", "name": "RenamedModel", "namespace": "SampleTypeSpec", @@ -1873,13 +2561,13 @@ "decorators": [], "properties": [ { - "$id": "155", + "$id": "241", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "156", + "$id": "242", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1900,7 +2588,7 @@ ] }, { - "$id": "157", + "$id": "243", "kind": "model", "name": "ReturnsAnonymousModelResponse", "namespace": "SampleTypeSpec", @@ -1910,7 +2598,7 @@ "properties": [] }, { - "$id": "158", + "$id": "244", "kind": "model", "name": "ListWithNextLinkResponse", "namespace": "SampleTypeSpec", @@ -1919,16 +2607,16 @@ "decorators": [], "properties": [ { - "$id": "159", + "$id": "245", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "160", + "$id": "246", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1946,12 +2634,12 @@ } }, { - "$id": "161", + "$id": "247", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "162", + "$id": "248", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1972,7 +2660,7 @@ ] }, { - "$id": "163", + "$id": "249", "kind": "model", "name": "ListWithContinuationTokenResponse", "namespace": "SampleTypeSpec", @@ -1981,16 +2669,16 @@ "decorators": [], "properties": [ { - "$id": "164", + "$id": "250", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "165", + "$id": "251", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2008,12 +2696,12 @@ } }, { - "$id": "166", + "$id": "252", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "167", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2034,7 +2722,7 @@ ] }, { - "$id": "168", + "$id": "254", "kind": "model", "name": "ListWithContinuationTokenHeaderResponseResponse", "namespace": "", @@ -2043,16 +2731,16 @@ "decorators": [], "properties": [ { - "$id": "169", + "$id": "255", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "170", + "$id": "256", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2072,7 +2760,7 @@ ] }, { - "$id": "171", + "$id": "257", "kind": "model", "name": "PageThing", "namespace": "SampleTypeSpec", @@ -2081,16 +2769,16 @@ "decorators": [], "properties": [ { - "$id": "172", + "$id": "258", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$id": "173", + "$id": "259", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2110,7 +2798,7 @@ ] }, { - "$id": "174", + "$id": "260", "kind": "model", "name": "ModelWithEmbeddedNonBodyParameters", "namespace": "SampleTypeSpec", @@ -2119,13 +2807,13 @@ "decorators": [], "properties": [ { - "$id": "175", + "$id": "261", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithEmbeddedNonBodyParameters", "type": { - "$id": "176", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2144,13 +2832,13 @@ } }, { - "$id": "177", + "$id": "263", "kind": "header", "name": "requiredHeader", "serializedName": "required-header", "doc": "required header parameter", "type": { - "$id": "178", + "$id": "264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2163,13 +2851,13 @@ "correspondingMethodParams": [] }, { - "$id": "179", + "$id": "265", "kind": "header", "name": "optionalHeader", "serializedName": "optional-header", "doc": "optional header parameter", "type": { - "$id": "180", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2182,13 +2870,13 @@ "correspondingMethodParams": [] }, { - "$id": "181", + "$id": "267", "kind": "query", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "182", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2201,13 +2889,13 @@ "correspondingMethodParams": [] }, { - "$id": "183", + "$id": "269", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "184", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2224,14 +2912,14 @@ ], "clients": [ { - "$id": "185", + "$id": "271", "kind": "client", "name": "SampleTypeSpecClient", "namespace": "SampleTypeSpec", "doc": "This is a sample typespec project.", "methods": [ { - "$id": "186", + "$id": "272", "kind": "basic", "name": "sayHi", "accessibility": "public", @@ -2241,18 +2929,18 @@ ], "doc": "Return hi", "operation": { - "$id": "187", + "$id": "273", "name": "sayHi", "resourceName": "SampleTypeSpec", "doc": "Return hi", "accessibility": "public", "parameters": [ { - "$id": "188", + "$id": "274", "name": "headParameter", "nameInRequest": "head-parameter", "type": { - "$id": "189", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2269,11 +2957,11 @@ "skipUrlEncoding": false }, { - "$id": "190", + "$id": "276", "name": "queryParameter", "nameInRequest": "queryParameter", "type": { - "$id": "191", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2290,11 +2978,11 @@ "skipUrlEncoding": false }, { - "$id": "192", + "$id": "278", "name": "optionalQuery", "nameInRequest": "optionalQuery", "type": { - "$id": "193", + "$id": "279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2311,24 +2999,11 @@ "skipUrlEncoding": false }, { - "$id": "194", + "$id": "280", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "195", - "kind": "constant", - "name": "sayHiContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -2343,12 +3018,12 @@ ], "responses": [ { - "$id": "197", + "$id": "281", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -2368,11 +3043,11 @@ }, "parameters": [ { - "$id": "198", + "$id": "282", "name": "headParameter", "nameInRequest": "head-parameter", "type": { - "$id": "199", + "$id": "283", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2389,11 +3064,11 @@ "skipUrlEncoding": false }, { - "$id": "200", + "$id": "284", "name": "queryParameter", "nameInRequest": "queryParameter", "type": { - "$id": "201", + "$id": "285", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2410,11 +3085,11 @@ "skipUrlEncoding": false }, { - "$id": "202", + "$id": "286", "name": "optionalQuery", "nameInRequest": "optionalQuery", "type": { - "$id": "203", + "$id": "287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2431,11 +3106,11 @@ "skipUrlEncoding": false }, { - "$id": "204", + "$id": "288", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "195" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -2450,7 +3125,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -2459,7 +3134,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, { - "$id": "205", + "$id": "289", "kind": "basic", "name": "helloAgain", "accessibility": "public", @@ -2469,18 +3144,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "206", + "$id": "290", "name": "helloAgain", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "207", + "$id": "291", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "208", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2497,24 +3172,11 @@ "skipUrlEncoding": false }, { - "$id": "209", + "$id": "293", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "210", - "kind": "constant", - "name": "HelloAgainRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "211", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -2527,11 +3189,11 @@ "skipUrlEncoding": false }, { - "$id": "212", + "$id": "294", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "213", + "$id": "295", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2548,24 +3210,11 @@ "skipUrlEncoding": false }, { - "$id": "214", + "$id": "296", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "215", - "kind": "constant", - "name": "helloAgainContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -2578,11 +3227,11 @@ "skipUrlEncoding": false }, { - "$id": "217", + "$id": "297", "name": "action", "nameInRequest": "action", "type": { - "$ref": "94" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -2597,12 +3246,12 @@ ], "responses": [ { - "$id": "218", + "$id": "298", "statusCodes": [ 200 ], "bodyType": { - "$ref": "94" + "$ref": "180" }, "headers": [], "isErrorResponse": false, @@ -2625,11 +3274,11 @@ }, "parameters": [ { - "$id": "219", + "$id": "299", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "220", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2646,11 +3295,11 @@ "skipUrlEncoding": false }, { - "$id": "221", + "$id": "301", "name": "action", "nameInRequest": "action", "type": { - "$ref": "94" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -2663,24 +3312,11 @@ "skipUrlEncoding": false }, { - "$id": "222", + "$id": "302", "name": "contentType", "nameInRequest": "content-type", "type": { - "$id": "223", - "kind": "constant", - "name": "HelloAgainRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -2693,11 +3329,11 @@ "skipUrlEncoding": false }, { - "$id": "225", + "$id": "303", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "226", + "$id": "304", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2714,11 +3350,11 @@ "skipUrlEncoding": false }, { - "$id": "227", + "$id": "305", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "215" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -2733,7 +3369,7 @@ ], "response": { "type": { - "$ref": "94" + "$ref": "180" } }, "isOverride": false, @@ -2742,7 +3378,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, { - "$id": "228", + "$id": "306", "kind": "basic", "name": "noContentType", "accessibility": "public", @@ -2752,18 +3388,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "229", + "$id": "307", "name": "noContentType", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "230", + "$id": "308", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "231", + "$id": "309", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2780,11 +3416,11 @@ "skipUrlEncoding": false }, { - "$id": "232", + "$id": "310", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "233", + "$id": "311", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2801,25 +3437,12 @@ "skipUrlEncoding": false }, { - "$id": "234", + "$id": "312", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "235", - "kind": "constant", - "name": "noContentTypeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -2832,24 +3455,11 @@ "skipUrlEncoding": false }, { - "$id": "237", + "$id": "313", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "238", - "kind": "constant", - "name": "noContentTypeContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "239", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -2862,11 +3472,11 @@ "skipUrlEncoding": false }, { - "$id": "240", + "$id": "314", "name": "action", "nameInRequest": "action", "type": { - "$ref": "94" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -2881,12 +3491,12 @@ ], "responses": [ { - "$id": "241", + "$id": "315", "statusCodes": [ 200 ], "bodyType": { - "$ref": "94" + "$ref": "180" }, "headers": [], "isErrorResponse": false, @@ -2909,11 +3519,11 @@ }, "parameters": [ { - "$id": "242", + "$id": "316", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "243", + "$id": "317", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2930,11 +3540,11 @@ "skipUrlEncoding": false }, { - "$id": "244", + "$id": "318", "name": "action", "nameInRequest": "action", "type": { - "$ref": "94" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -2947,11 +3557,11 @@ "skipUrlEncoding": false }, { - "$id": "245", + "$id": "319", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "246", + "$id": "320", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2968,12 +3578,12 @@ "skipUrlEncoding": false }, { - "$id": "247", + "$id": "321", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "235" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -2986,11 +3596,11 @@ "skipUrlEncoding": false }, { - "$id": "248", + "$id": "322", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "238" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -3005,7 +3615,7 @@ ], "response": { "type": { - "$ref": "94" + "$ref": "180" } }, "isOverride": false, @@ -3014,7 +3624,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" }, { - "$id": "249", + "$id": "323", "kind": "basic", "name": "helloDemo2", "accessibility": "public", @@ -3024,31 +3634,18 @@ ], "doc": "Return hi in demo2", "operation": { - "$id": "250", + "$id": "324", "name": "helloDemo2", "resourceName": "SampleTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "251", + "$id": "325", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "252", - "kind": "constant", - "name": "helloDemo2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -3063,12 +3660,12 @@ ], "responses": [ { - "$id": "254", + "$id": "326", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -3088,11 +3685,11 @@ }, "parameters": [ { - "$id": "255", + "$id": "327", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "252" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -3107,7 +3704,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -3116,7 +3713,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, { - "$id": "256", + "$id": "328", "kind": "basic", "name": "createLiteral", "accessibility": "public", @@ -3126,32 +3723,19 @@ ], "doc": "Create with literal value", "operation": { - "$id": "257", + "$id": "329", "name": "createLiteral", "resourceName": "SampleTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "258", + "$id": "330", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "259", - "kind": "constant", - "name": "createLiteralContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -3164,24 +3748,11 @@ "skipUrlEncoding": false }, { - "$id": "261", + "$id": "331", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "262", - "kind": "constant", - "name": "createLiteralContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "263", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -3194,11 +3765,11 @@ "skipUrlEncoding": false }, { - "$id": "264", + "$id": "332", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -3213,12 +3784,12 @@ ], "responses": [ { - "$id": "265", + "$id": "333", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -3241,11 +3812,11 @@ }, "parameters": [ { - "$id": "266", + "$id": "334", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -3258,12 +3829,12 @@ "skipUrlEncoding": false }, { - "$id": "267", + "$id": "335", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "259" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -3276,11 +3847,11 @@ "skipUrlEncoding": false }, { - "$id": "268", + "$id": "336", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "262" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -3295,7 +3866,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -3304,7 +3875,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" }, { - "$id": "269", + "$id": "337", "kind": "basic", "name": "helloLiteral", "accessibility": "public", @@ -3314,31 +3885,18 @@ ], "doc": "Send literal parameters", "operation": { - "$id": "270", + "$id": "338", "name": "helloLiteral", "resourceName": "SampleTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "271", + "$id": "339", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "272", - "kind": "constant", - "name": "HelloLiteralRequestP1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "273", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "test", - "decorators": [] + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -3351,24 +3909,11 @@ "skipUrlEncoding": false }, { - "$id": "274", + "$id": "340", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "275", - "kind": "constant", - "name": "ThingRequiredLiteralInt1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "276", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] + "$ref": "81" }, "location": "Path", "isApiVersion": false, @@ -3381,24 +3926,11 @@ "skipUrlEncoding": false }, { - "$id": "277", + "$id": "341", "name": "p3", "nameInRequest": "p3", "type": { - "$id": "278", - "kind": "constant", - "name": "ThingOptionalLiteralBool1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "279", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] + "$ref": "83" }, "location": "Query", "isApiVersion": false, @@ -3411,24 +3943,11 @@ "skipUrlEncoding": false }, { - "$id": "280", + "$id": "342", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "281", - "kind": "constant", - "name": "helloLiteralContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -3443,12 +3962,12 @@ ], "responses": [ { - "$id": "283", + "$id": "343", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -3468,24 +3987,11 @@ }, "parameters": [ { - "$id": "284", + "$id": "344", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "285", - "kind": "constant", - "name": "HelloLiteralRequestP11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "test", - "decorators": [] + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -3498,24 +4004,11 @@ "skipUrlEncoding": false }, { - "$id": "287", + "$id": "345", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "288", - "kind": "constant", - "name": "ThingRequiredLiteralInt2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "289", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] + "$ref": "89" }, "location": "Path", "isApiVersion": false, @@ -3528,24 +4021,11 @@ "skipUrlEncoding": false }, { - "$id": "290", + "$id": "346", "name": "p3", "nameInRequest": "p3", "type": { - "$id": "291", - "kind": "constant", - "name": "ThingOptionalLiteralBool2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "292", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] + "$ref": "91" }, "location": "Query", "isApiVersion": false, @@ -3558,11 +4038,11 @@ "skipUrlEncoding": false }, { - "$id": "293", + "$id": "347", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "281" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -3577,7 +4057,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -3586,7 +4066,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" }, { - "$id": "294", + "$id": "348", "kind": "basic", "name": "topAction", "accessibility": "public", @@ -3596,23 +4076,23 @@ ], "doc": "top level method", "operation": { - "$id": "295", + "$id": "349", "name": "topAction", "resourceName": "SampleTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "296", + "$id": "350", "name": "action", "nameInRequest": "action", "type": { - "$id": "297", + "$id": "351", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "298", + "$id": "352", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3632,24 +4112,11 @@ "skipUrlEncoding": false }, { - "$id": "299", + "$id": "353", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "300", - "kind": "constant", - "name": "topActionContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -3664,12 +4131,12 @@ ], "responses": [ { - "$id": "302", + "$id": "354", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -3689,16 +4156,16 @@ }, "parameters": [ { - "$id": "303", + "$id": "355", "name": "action", "nameInRequest": "action", "type": { - "$id": "304", + "$id": "356", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "305", + "$id": "357", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3718,11 +4185,11 @@ "skipUrlEncoding": false }, { - "$id": "306", + "$id": "358", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "300" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -3737,7 +4204,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -3746,7 +4213,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction" }, { - "$id": "307", + "$id": "359", "kind": "basic", "name": "topAction2", "accessibility": "public", @@ -3756,31 +4223,18 @@ ], "doc": "top level method2", "operation": { - "$id": "308", + "$id": "360", "name": "topAction2", "resourceName": "SampleTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "309", + "$id": "361", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "310", - "kind": "constant", - "name": "topAction2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "311", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -3795,12 +4249,12 @@ ], "responses": [ { - "$id": "312", + "$id": "362", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -3820,11 +4274,11 @@ }, "parameters": [ { - "$id": "313", + "$id": "363", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "310" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -3839,7 +4293,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -3848,7 +4302,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" }, { - "$id": "314", + "$id": "364", "kind": "basic", "name": "patchAction", "accessibility": "public", @@ -3858,32 +4312,19 @@ ], "doc": "top level patch", "operation": { - "$id": "315", + "$id": "365", "name": "patchAction", "resourceName": "SampleTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "366", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "317", - "kind": "constant", - "name": "patchActionContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "318", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -3896,24 +4337,11 @@ "skipUrlEncoding": false }, { - "$id": "319", + "$id": "367", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "320", - "kind": "constant", - "name": "patchActionContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "321", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -3926,11 +4354,11 @@ "skipUrlEncoding": false }, { - "$id": "322", + "$id": "368", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -3945,12 +4373,12 @@ ], "responses": [ { - "$id": "323", + "$id": "369", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -3973,11 +4401,11 @@ }, "parameters": [ { - "$id": "324", + "$id": "370", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -3990,12 +4418,12 @@ "skipUrlEncoding": false }, { - "$id": "325", + "$id": "371", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "317" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -4008,11 +4436,11 @@ "skipUrlEncoding": false }, { - "$id": "326", + "$id": "372", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "320" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -4027,7 +4455,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -4036,7 +4464,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" }, { - "$id": "327", + "$id": "373", "kind": "basic", "name": "anonymousBody", "accessibility": "public", @@ -4046,32 +4474,19 @@ ], "doc": "body parameter without body decorator", "operation": { - "$id": "328", + "$id": "374", "name": "anonymousBody", "resourceName": "SampleTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "329", + "$id": "375", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "330", - "kind": "constant", - "name": "anonymousBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -4084,24 +4499,11 @@ "skipUrlEncoding": false }, { - "$id": "332", + "$id": "376", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "333", - "kind": "constant", - "name": "anonymousBodyContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -4114,11 +4516,11 @@ "skipUrlEncoding": false }, { - "$id": "335", + "$id": "377", "name": "thing", "nameInRequest": "thing", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -4133,12 +4535,12 @@ ], "responses": [ { - "$id": "336", + "$id": "378", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -4161,12 +4563,12 @@ }, "parameters": [ { - "$id": "337", + "$id": "379", "name": "name", "nameInRequest": "name", "doc": "name of the Thing", "type": { - "$id": "338", + "$id": "380", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4183,12 +4585,12 @@ "skipUrlEncoding": false }, { - "$id": "339", + "$id": "381", "name": "requiredUnion", "nameInRequest": "requiredUnion", "doc": "required Union", "type": { - "$ref": "65" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -4201,12 +4603,12 @@ "skipUrlEncoding": false }, { - "$id": "340", + "$id": "382", "name": "requiredLiteralString", "nameInRequest": "requiredLiteralString", "doc": "required literal string", "type": { - "$ref": "45" + "$ref": "47" }, "location": "Body", "isApiVersion": false, @@ -4219,12 +4621,12 @@ "skipUrlEncoding": false }, { - "$id": "341", + "$id": "383", "name": "requiredNullableString", "nameInRequest": "requiredNullableString", "doc": "required nullable string", "type": { - "$ref": "72" + "$ref": "158" }, "location": "Body", "isApiVersion": false, @@ -4237,12 +4639,12 @@ "skipUrlEncoding": false }, { - "$id": "342", + "$id": "384", "name": "optionalNullableString", "nameInRequest": "optionalNullableString", "doc": "required optional string", "type": { - "$ref": "75" + "$ref": "161" }, "location": "Body", "isApiVersion": false, @@ -4255,12 +4657,12 @@ "skipUrlEncoding": false }, { - "$id": "343", + "$id": "385", "name": "requiredLiteralInt", "nameInRequest": "requiredLiteralInt", "doc": "required literal int", "type": { - "$ref": "47" + "$ref": "49" }, "location": "Body", "isApiVersion": false, @@ -4273,12 +4675,12 @@ "skipUrlEncoding": false }, { - "$id": "344", + "$id": "386", "name": "requiredLiteralFloat", "nameInRequest": "requiredLiteralFloat", "doc": "required literal float", "type": { - "$ref": "49" + "$ref": "51" }, "location": "Body", "isApiVersion": false, @@ -4291,12 +4693,12 @@ "skipUrlEncoding": false }, { - "$id": "345", + "$id": "387", "name": "requiredLiteralBool", "nameInRequest": "requiredLiteralBool", "doc": "required literal bool", "type": { - "$ref": "51" + "$ref": "53" }, "location": "Body", "isApiVersion": false, @@ -4309,12 +4711,12 @@ "skipUrlEncoding": false }, { - "$id": "346", + "$id": "388", "name": "optionalLiteralString", "nameInRequest": "optionalLiteralString", "doc": "optional literal string", "type": { - "$ref": "53" + "$ref": "55" }, "location": "Body", "isApiVersion": false, @@ -4327,12 +4729,12 @@ "skipUrlEncoding": false }, { - "$id": "347", + "$id": "389", "name": "optionalLiteralInt", "nameInRequest": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$ref": "55" + "$ref": "57" }, "location": "Body", "isApiVersion": false, @@ -4345,12 +4747,12 @@ "skipUrlEncoding": false }, { - "$id": "348", + "$id": "390", "name": "optionalLiteralFloat", "nameInRequest": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$ref": "57" + "$ref": "59" }, "location": "Body", "isApiVersion": false, @@ -4363,12 +4765,12 @@ "skipUrlEncoding": false }, { - "$id": "349", + "$id": "391", "name": "optionalLiteralBool", "nameInRequest": "optionalLiteralBool", "doc": "optional literal bool", "type": { - "$ref": "59" + "$ref": "61" }, "location": "Body", "isApiVersion": false, @@ -4381,12 +4783,12 @@ "skipUrlEncoding": false }, { - "$id": "350", + "$id": "392", "name": "requiredBadDescription", "nameInRequest": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "351", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4403,12 +4805,12 @@ "skipUrlEncoding": false }, { - "$id": "352", + "$id": "394", "name": "optionalNullableList", "nameInRequest": "optionalNullableList", "doc": "optional nullable collection", "type": { - "$ref": "87" + "$ref": "173" }, "location": "Body", "isApiVersion": false, @@ -4421,12 +4823,12 @@ "skipUrlEncoding": false }, { - "$id": "353", + "$id": "395", "name": "requiredNullableList", "nameInRequest": "requiredNullableList", "doc": "required nullable collection", "type": { - "$ref": "91" + "$ref": "177" }, "location": "Body", "isApiVersion": false, @@ -4439,12 +4841,12 @@ "skipUrlEncoding": false }, { - "$id": "354", + "$id": "396", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "330" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -4457,11 +4859,11 @@ "skipUrlEncoding": false }, { - "$id": "355", + "$id": "397", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "333" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -4476,7 +4878,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -4485,7 +4887,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" }, { - "$id": "356", + "$id": "398", "kind": "basic", "name": "friendlyModel", "accessibility": "public", @@ -4495,32 +4897,19 @@ ], "doc": "Model can have its friendly name", "operation": { - "$id": "357", + "$id": "399", "name": "friendlyModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "358", + "$id": "400", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "359", - "kind": "constant", - "name": "friendlyModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -4533,24 +4922,11 @@ "skipUrlEncoding": false }, { - "$id": "361", + "$id": "401", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "362", - "kind": "constant", - "name": "friendlyModelContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "363", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -4563,11 +4939,11 @@ "skipUrlEncoding": false }, { - "$id": "364", + "$id": "402", "name": "friend", "nameInRequest": "friend", "type": { - "$ref": "151" + "$ref": "237" }, "location": "Body", "isApiVersion": false, @@ -4582,12 +4958,12 @@ ], "responses": [ { - "$id": "365", + "$id": "403", "statusCodes": [ 200 ], "bodyType": { - "$ref": "151" + "$ref": "237" }, "headers": [], "isErrorResponse": false, @@ -4610,12 +4986,12 @@ }, "parameters": [ { - "$id": "366", + "$id": "404", "name": "name", "nameInRequest": "name", "doc": "name of the NotFriend", "type": { - "$id": "367", + "$id": "405", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4632,12 +5008,12 @@ "skipUrlEncoding": false }, { - "$id": "368", + "$id": "406", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "359" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -4650,11 +5026,11 @@ "skipUrlEncoding": false }, { - "$id": "369", + "$id": "407", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "362" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -4669,7 +5045,7 @@ ], "response": { "type": { - "$ref": "151" + "$ref": "237" } }, "isOverride": false, @@ -4678,7 +5054,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" }, { - "$id": "370", + "$id": "408", "kind": "basic", "name": "addTimeHeader", "accessibility": "public", @@ -4687,22 +5063,22 @@ "2024-08-16-preview" ], "operation": { - "$id": "371", + "$id": "409", "name": "addTimeHeader", "resourceName": "SampleTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "372", + "$id": "410", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "373", + "$id": "411", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "374", + "$id": "412", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4724,7 +5100,7 @@ ], "responses": [ { - "$id": "375", + "$id": "413", "statusCodes": [ 204 ], @@ -4743,16 +5119,16 @@ }, "parameters": [ { - "$id": "376", + "$id": "414", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "377", + "$id": "415", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "378", + "$id": "416", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4779,7 +5155,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" }, { - "$id": "379", + "$id": "417", "kind": "basic", "name": "projectedNameModel", "accessibility": "public", @@ -4789,32 +5165,19 @@ ], "doc": "Model can have its projected name", "operation": { - "$id": "380", + "$id": "418", "name": "projectedNameModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "381", + "$id": "419", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "382", - "kind": "constant", - "name": "projectedNameModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "383", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -4827,24 +5190,11 @@ "skipUrlEncoding": false }, { - "$id": "384", + "$id": "420", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "385", - "kind": "constant", - "name": "projectedNameModelContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -4857,11 +5207,11 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "421", "name": "renamedModel", "nameInRequest": "renamedModel", "type": { - "$ref": "154" + "$ref": "240" }, "location": "Body", "isApiVersion": false, @@ -4876,12 +5226,12 @@ ], "responses": [ { - "$id": "388", + "$id": "422", "statusCodes": [ 200 ], "bodyType": { - "$ref": "154" + "$ref": "240" }, "headers": [], "isErrorResponse": false, @@ -4904,12 +5254,12 @@ }, "parameters": [ { - "$id": "389", + "$id": "423", "name": "name", "nameInRequest": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "390", + "$id": "424", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4926,12 +5276,12 @@ "skipUrlEncoding": false }, { - "$id": "391", + "$id": "425", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "382" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -4944,11 +5294,11 @@ "skipUrlEncoding": false }, { - "$id": "392", + "$id": "426", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "385" + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -4963,7 +5313,7 @@ ], "response": { "type": { - "$ref": "154" + "$ref": "240" } }, "isOverride": false, @@ -4972,7 +5322,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" }, { - "$id": "393", + "$id": "427", "kind": "basic", "name": "returnsAnonymousModel", "accessibility": "public", @@ -4982,31 +5332,18 @@ ], "doc": "return anonymous model", "operation": { - "$id": "394", + "$id": "428", "name": "returnsAnonymousModel", "resourceName": "SampleTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "395", + "$id": "429", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "396", - "kind": "constant", - "name": "returnsAnonymousModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "397", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "129" }, "location": "Header", "isApiVersion": false, @@ -5021,12 +5358,12 @@ ], "responses": [ { - "$id": "398", + "$id": "430", "statusCodes": [ 200 ], "bodyType": { - "$ref": "157" + "$ref": "243" }, "headers": [], "isErrorResponse": false, @@ -5046,11 +5383,11 @@ }, "parameters": [ { - "$id": "399", + "$id": "431", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "396" + "$ref": "129" }, "location": "Header", "isApiVersion": false, @@ -5065,7 +5402,7 @@ ], "response": { "type": { - "$ref": "157" + "$ref": "243" } }, "isOverride": false, @@ -5074,7 +5411,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" }, { - "$id": "400", + "$id": "432", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", @@ -5084,18 +5421,18 @@ ], "doc": "get extensible enum", "operation": { - "$id": "401", + "$id": "433", "name": "getUnknownValue", "resourceName": "SampleTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "402", + "$id": "434", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "403", + "$id": "435", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5114,25 +5451,12 @@ ], "responses": [ { - "$id": "404", + "$id": "436", "statusCodes": [ 200 ], "bodyType": { - "$id": "405", - "kind": "constant", - "name": "GetUnknownValueResponse6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "406", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "Sunday", - "decorators": [] + "$ref": "131" }, "headers": [], "isErrorResponse": false, @@ -5159,11 +5483,11 @@ }, "parameters": [ { - "$id": "407", + "$id": "437", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "403" + "$ref": "435" }, "location": "Header", "isApiVersion": false, @@ -5178,7 +5502,7 @@ ], "response": { "type": { - "$ref": "405" + "$ref": "131" } }, "isOverride": false, @@ -5187,7 +5511,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" }, { - "$id": "408", + "$id": "438", "kind": "basic", "name": "internalProtocol", "accessibility": "public", @@ -5197,32 +5521,19 @@ ], "doc": "When set protocol false and convenient true, then the protocol method should be internal", "operation": { - "$id": "409", + "$id": "439", "name": "internalProtocol", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "410", + "$id": "440", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "411", - "kind": "constant", - "name": "internalProtocolContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -5235,24 +5546,11 @@ "skipUrlEncoding": false }, { - "$id": "413", + "$id": "441", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "414", - "kind": "constant", - "name": "internalProtocolContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "415", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "135" }, "location": "Header", "isApiVersion": false, @@ -5265,11 +5563,11 @@ "skipUrlEncoding": false }, { - "$id": "416", + "$id": "442", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -5284,12 +5582,12 @@ ], "responses": [ { - "$id": "417", + "$id": "443", "statusCodes": [ 200 ], "bodyType": { - "$ref": "61" + "$ref": "147" }, "headers": [], "isErrorResponse": false, @@ -5312,11 +5610,11 @@ }, "parameters": [ { - "$id": "418", + "$id": "444", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -5329,12 +5627,12 @@ "skipUrlEncoding": false }, { - "$id": "419", + "$id": "445", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "411" + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -5347,11 +5645,11 @@ "skipUrlEncoding": false }, { - "$id": "420", + "$id": "446", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "414" + "$ref": "135" }, "location": "Header", "isApiVersion": false, @@ -5366,7 +5664,7 @@ ], "response": { "type": { - "$ref": "61" + "$ref": "147" } }, "isOverride": false, @@ -5375,7 +5673,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" }, { - "$id": "421", + "$id": "447", "kind": "basic", "name": "stillConvenient", "accessibility": "public", @@ -5385,7 +5683,7 @@ ], "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", "operation": { - "$id": "422", + "$id": "448", "name": "stillConvenient", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -5393,7 +5691,7 @@ "parameters": [], "responses": [ { - "$id": "423", + "$id": "449", "statusCodes": [ 204 ], @@ -5418,7 +5716,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" }, { - "$id": "424", + "$id": "450", "kind": "basic", "name": "headAsBoolean", "accessibility": "public", @@ -5428,18 +5726,18 @@ ], "doc": "head as boolean.", "operation": { - "$id": "425", + "$id": "451", "name": "headAsBoolean", "resourceName": "SampleTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "426", + "$id": "452", "name": "id", "nameInRequest": "id", "type": { - "$id": "427", + "$id": "453", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5458,7 +5756,7 @@ ], "responses": [ { - "$id": "428", + "$id": "454", "statusCodes": [ 204 ], @@ -5477,11 +5775,11 @@ }, "parameters": [ { - "$id": "429", + "$id": "455", "name": "id", "nameInRequest": "id", "type": { - "$id": "430", + "$id": "456", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5505,7 +5803,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" }, { - "$id": "431", + "$id": "457", "kind": "basic", "name": "WithApiVersion", "accessibility": "public", @@ -5515,18 +5813,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "432", + "$id": "458", "name": "WithApiVersion", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "433", + "$id": "459", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "434", + "$id": "460", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5543,11 +5841,11 @@ "skipUrlEncoding": false }, { - "$id": "435", + "$id": "461", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "436", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5574,7 +5872,7 @@ ], "responses": [ { - "$id": "437", + "$id": "463", "statusCodes": [ 204 ], @@ -5593,11 +5891,11 @@ }, "parameters": [ { - "$id": "438", + "$id": "464", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "439", + "$id": "465", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5621,7 +5919,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" }, { - "$id": "440", + "$id": "466", "kind": "paging", "name": "ListWithNextLink", "accessibility": "public", @@ -5631,31 +5929,18 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "441", + "$id": "467", "name": "ListWithNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "442", + "$id": "468", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "443", - "kind": "constant", - "name": "ListWithNextLinkContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "444", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "137" }, "location": "Header", "isApiVersion": false, @@ -5670,12 +5955,12 @@ ], "responses": [ { - "$id": "445", + "$id": "469", "statusCodes": [ 200 ], "bodyType": { - "$ref": "158" + "$ref": "244" }, "headers": [], "isErrorResponse": false, @@ -5695,11 +5980,11 @@ }, "parameters": [ { - "$id": "446", + "$id": "470", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "443" + "$ref": "137" }, "location": "Header", "isApiVersion": false, @@ -5714,11 +5999,11 @@ ], "response": { "type": { - "$id": "447", + "$id": "471", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -5744,7 +6029,7 @@ } }, { - "$id": "448", + "$id": "472", "kind": "paging", "name": "ListWithContinuationToken", "accessibility": "public", @@ -5754,18 +6039,18 @@ ], "doc": "List things with continuation token", "operation": { - "$id": "449", + "$id": "473", "name": "ListWithContinuationToken", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "450", + "$id": "474", "name": "token", "nameInRequest": "token", "type": { - "$id": "451", + "$id": "475", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5782,24 +6067,11 @@ "skipUrlEncoding": false }, { - "$id": "452", + "$id": "476", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "453", - "kind": "constant", - "name": "ListWithContinuationTokenContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "454", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "139" }, "location": "Header", "isApiVersion": false, @@ -5814,12 +6086,12 @@ ], "responses": [ { - "$id": "455", + "$id": "477", "statusCodes": [ 200 ], "bodyType": { - "$ref": "163" + "$ref": "249" }, "headers": [], "isErrorResponse": false, @@ -5839,11 +6111,11 @@ }, "parameters": [ { - "$id": "456", + "$id": "478", "name": "token", "nameInRequest": "token", "type": { - "$id": "457", + "$id": "479", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5860,11 +6132,11 @@ "skipUrlEncoding": false }, { - "$id": "458", + "$id": "480", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "453" + "$ref": "139" }, "location": "Header", "isApiVersion": false, @@ -5879,11 +6151,11 @@ ], "response": { "type": { - "$id": "459", + "$id": "481", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -5902,7 +6174,7 @@ ], "continuationToken": { "parameter": { - "$ref": "450" + "$ref": "474" }, "responseSegments": [ "nextToken" @@ -5912,7 +6184,7 @@ } }, { - "$id": "460", + "$id": "482", "kind": "paging", "name": "ListWithContinuationTokenHeaderResponse", "accessibility": "public", @@ -5922,18 +6194,18 @@ ], "doc": "List things with continuation token header response", "operation": { - "$id": "461", + "$id": "483", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "462", + "$id": "484", "name": "token", "nameInRequest": "token", "type": { - "$id": "463", + "$id": "485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5950,24 +6222,11 @@ "skipUrlEncoding": false }, { - "$id": "464", + "$id": "486", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "465", - "kind": "constant", - "name": "ListWithContinuationTokenHeaderResponseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "466", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "141" }, "location": "Header", "isApiVersion": false, @@ -5982,19 +6241,19 @@ ], "responses": [ { - "$id": "467", + "$id": "487", "statusCodes": [ 200 ], "bodyType": { - "$ref": "168" + "$ref": "254" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "468", + "$id": "488", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6019,11 +6278,11 @@ }, "parameters": [ { - "$id": "469", + "$id": "489", "name": "token", "nameInRequest": "token", "type": { - "$id": "470", + "$id": "490", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6040,11 +6299,11 @@ "skipUrlEncoding": false }, { - "$id": "471", + "$id": "491", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "465" + "$ref": "141" }, "location": "Header", "isApiVersion": false, @@ -6059,11 +6318,11 @@ ], "response": { "type": { - "$id": "472", + "$id": "492", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -6082,7 +6341,7 @@ ], "continuationToken": { "parameter": { - "$ref": "462" + "$ref": "484" }, "responseSegments": [ "next-token" @@ -6092,7 +6351,7 @@ } }, { - "$id": "473", + "$id": "493", "kind": "paging", "name": "ListWithPaging", "accessibility": "public", @@ -6102,31 +6361,18 @@ ], "doc": "List things with paging", "operation": { - "$id": "474", + "$id": "494", "name": "ListWithPaging", "resourceName": "SampleTypeSpec", "doc": "List things with paging", "accessibility": "public", "parameters": [ { - "$id": "475", + "$id": "495", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "476", - "kind": "constant", - "name": "ListWithPagingContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "477", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "143" }, "location": "Header", "isApiVersion": false, @@ -6141,12 +6387,12 @@ ], "responses": [ { - "$id": "478", + "$id": "496", "statusCodes": [ 200 ], "bodyType": { - "$ref": "171" + "$ref": "257" }, "headers": [], "isErrorResponse": false, @@ -6166,11 +6412,11 @@ }, "parameters": [ { - "$id": "479", + "$id": "497", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "476" + "$ref": "143" }, "location": "Header", "isApiVersion": false, @@ -6185,11 +6431,11 @@ ], "response": { "type": { - "$id": "480", + "$id": "498", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "61" + "$ref": "147" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -6209,7 +6455,7 @@ } }, { - "$id": "481", + "$id": "499", "kind": "basic", "name": "EmbeddedParameters", "accessibility": "public", @@ -6219,19 +6465,19 @@ ], "doc": "An operation with embedded parameters within the body", "operation": { - "$id": "482", + "$id": "500", "name": "EmbeddedParameters", "resourceName": "SampleTypeSpec", "doc": "An operation with embedded parameters within the body", "accessibility": "public", "parameters": [ { - "$id": "483", + "$id": "501", "name": "requiredHeader", "nameInRequest": "required-header", "doc": "required header parameter", "type": { - "$id": "484", + "$id": "502", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6248,12 +6494,12 @@ "skipUrlEncoding": false }, { - "$id": "485", + "$id": "503", "name": "optionalHeader", "nameInRequest": "optional-header", "doc": "optional header parameter", "type": { - "$id": "486", + "$id": "504", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6270,12 +6516,12 @@ "skipUrlEncoding": false }, { - "$id": "487", + "$id": "505", "name": "requiredQuery", "nameInRequest": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "488", + "$id": "506", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6292,12 +6538,12 @@ "skipUrlEncoding": false }, { - "$id": "489", + "$id": "507", "name": "optionalQuery", "nameInRequest": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "490", + "$id": "508", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6314,25 +6560,12 @@ "skipUrlEncoding": false }, { - "$id": "491", + "$id": "509", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "492", - "kind": "constant", - "name": "EmbeddedParametersContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "145" }, "location": "Header", "isApiVersion": false, @@ -6345,11 +6578,11 @@ "skipUrlEncoding": false }, { - "$id": "494", + "$id": "510", "name": "body", "nameInRequest": "body", "type": { - "$ref": "174" + "$ref": "260" }, "location": "Body", "isApiVersion": false, @@ -6364,7 +6597,7 @@ ], "responses": [ { - "$id": "495", + "$id": "511", "statusCodes": [ 204 ], @@ -6386,11 +6619,11 @@ }, "parameters": [ { - "$id": "496", + "$id": "512", "name": "body", "nameInRequest": "body", "type": { - "$ref": "174" + "$ref": "260" }, "location": "Body", "isApiVersion": false, @@ -6403,12 +6636,12 @@ "skipUrlEncoding": false }, { - "$id": "497", + "$id": "513", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "492" + "$ref": "145" }, "location": "Header", "isApiVersion": false, 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 84115c4cea4..c721837f32f 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 @@ -2,10 +2,27 @@ "name": "Authentication.ApiKey", "apiVersions": [], "enums": [], - "constants": [], - "models": [ + "constants": [ { "$id": "1", + "kind": "constant", + "name": "invalidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "3", "kind": "model", "name": "InvalidAuth", "namespace": "Authentication.ApiKey", @@ -14,12 +31,12 @@ "decorators": [], "properties": [ { - "$id": "2", + "$id": "4", "kind": "property", "name": "error", "serializedName": "error", "type": { - "$id": "3", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -42,21 +59,21 @@ ], "clients": [ { - "$id": "4", + "$id": "6", "kind": "client", "name": "ApiKeyClient", "namespace": "Authentication.ApiKey", "doc": "Illustrates clients generated with ApiKey authentication.", "methods": [ { - "$id": "5", + "$id": "7", "kind": "basic", "name": "valid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated", "operation": { - "$id": "6", + "$id": "8", "name": "valid", "resourceName": "ApiKey", "doc": "Check whether client is authenticated", @@ -64,7 +81,7 @@ "parameters": [], "responses": [ { - "$id": "7", + "$id": "9", "statusCodes": [ 204 ], @@ -89,38 +106,25 @@ "crossLanguageDefinitionId": "Authentication.ApiKey.valid" }, { - "$id": "8", + "$id": "10", "kind": "basic", "name": "invalid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated.", "operation": { - "$id": "9", + "$id": "11", "name": "invalid", "resourceName": "ApiKey", "doc": "Check whether client is authenticated.", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "12", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "11", - "kind": "constant", - "name": "invalidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "1" }, "location": "Header", "isApiVersion": false, @@ -158,7 +162,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "11" + "$ref": "1" }, "location": "Header", "isApiVersion": false, 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 7769313edac..bf0443279aa 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 @@ -2,10 +2,27 @@ "name": "Authentication.OAuth2", "apiVersions": [], "enums": [], - "constants": [], - "models": [ + "constants": [ { "$id": "1", + "kind": "constant", + "name": "invalidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "3", "kind": "model", "name": "InvalidAuth", "namespace": "Authentication.OAuth2", @@ -14,12 +31,12 @@ "decorators": [], "properties": [ { - "$id": "2", + "$id": "4", "kind": "property", "name": "error", "serializedName": "error", "type": { - "$id": "3", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -42,21 +59,21 @@ ], "clients": [ { - "$id": "4", + "$id": "6", "kind": "client", "name": "OAuth2Client", "namespace": "Authentication.OAuth2", "doc": "Illustrates clients generated with OAuth2 authentication.", "methods": [ { - "$id": "5", + "$id": "7", "kind": "basic", "name": "valid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated", "operation": { - "$id": "6", + "$id": "8", "name": "valid", "resourceName": "OAuth2", "doc": "Check whether client is authenticated", @@ -64,7 +81,7 @@ "parameters": [], "responses": [ { - "$id": "7", + "$id": "9", "statusCodes": [ 204 ], @@ -89,38 +106,25 @@ "crossLanguageDefinitionId": "Authentication.OAuth2.valid" }, { - "$id": "8", + "$id": "10", "kind": "basic", "name": "invalid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated. Will return an invalid bearer error.", "operation": { - "$id": "9", + "$id": "11", "name": "invalid", "resourceName": "OAuth2", "doc": "Check whether client is authenticated. Will return an invalid bearer error.", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "12", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "11", - "kind": "constant", - "name": "invalidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "1" }, "location": "Header", "isApiVersion": false, @@ -158,7 +162,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "11" + "$ref": "1" }, "location": "Header", "isApiVersion": false, 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 dda85254e1f..f017253fa73 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 @@ -1,619 +1,571 @@ { - "$id": "1", - "name": "Client.Structure.Service", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "ClientType", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Client.Structure.Service", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Default", - "value": "default", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "MultiClient", - "value": "multi-client", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "RenamedOperation", - "value": "renamed-operation", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "TwoOperationGroup", - "value": "two-operation-group", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "12", - "kind": "enumvalue", - "name": "ClientOperationGroup", - "value": "client-operation-group", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Client.Structure.Service", - "isFixed": true, - "isFlags": false, - "usage": "Input", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "14", - "kind": "client", - "name": "FirstClient", - "namespace": "Client.Structure.ClientOperationGroup", - "methods": [ - { - "$id": "15", - "kind": "basic", - "name": "one", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "16", - "name": "one", - "resourceName": "ClientOperationGroup", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "1", + "kind": "enum", + "name": "ClientType", + "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Default", + "value": "default", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "MultiClient", + "value": "multi-client", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "RenamedOperation", + "value": "renamed-operation", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "TwoOperationGroup", + "value": "two-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "ClientOperationGroup", + "value": "client-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/one", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", + "namespace": "Client.Structure.Service", + "isFixed": true, + "isFlags": false, + "usage": "Input", "decorators": [] - }, - "parameters": [], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one" } - ], - "parameters": [ + ], + "constants": [], + "models": [], + "clients": [ { - "$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.ClientOperationGroup", - "apiVersions": [], - "children": [ - { - "$id": "22", - "kind": "client", - "name": "Group3", - "namespace": "Client.Structure.ClientOperationGroup", - "methods": [ - { - "$id": "23", - "kind": "basic", - "name": "two", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "24", - "name": "two", - "resourceName": "Group3", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "25", - "statusCodes": [ - 204 + "$id": "8", + "kind": "client", + "name": "FirstClient", + "namespace": "Client.Structure.ClientOperationGroup", + "methods": [ + { + "$id": "9", + "kind": "basic", + "name": "one", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "10", + "name": "one", + "resourceName": "ClientOperationGroup", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "11", + "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": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", + "apiVersions": [], + "children": [ + { + "$id": "12", + "kind": "client", + "name": "Group3", + "namespace": "Client.Structure.ClientOperationGroup", + "methods": [ + { + "$id": "13", + "kind": "basic", + "name": "two", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "14", + "name": "two", + "resourceName": "Group3", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "15", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two" + }, + { + "$id": "16", + "kind": "basic", + "name": "three", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "17", + "name": "three", + "resourceName": "Group3", + "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.ClientOperationGroup.Group3.three", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "26" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two" - }, - { - "$id": "27", - "kind": "basic", - "name": "three", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "28", - "name": "three", - "resourceName": "Group3", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "29", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "30" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three" - } - ], - "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.Group3", - "apiVersions": [], - "parent": { - "$ref": "14" - } - }, - { - "$id": "34", - "kind": "client", - "name": "Group4", - "namespace": "Client.Structure.ClientOperationGroup", - "methods": [ - { - "$id": "35", - "kind": "basic", - "name": "four", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "four", - "resourceName": "Group4", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", + "apiVersions": [], + "parent": { + "$ref": "8" + } + }, + { + "$id": "19", + "kind": "client", + "name": "Group4", + "namespace": "Client.Structure.ClientOperationGroup", + "methods": [ + { + "$id": "20", + "kind": "basic", + "name": "four", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "21", + "name": "four", + "resourceName": "Group4", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "38" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four" - } - ], - "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": "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" - } - } - ] - }, - { - "$id": "42", - "kind": "client", - "name": "SubNamespace.SecondClient", - "namespace": "Client.Structure.AnotherClientOperationGroup", - "methods": [ - { - "$id": "43", - "kind": "basic", - "name": "five", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "44", - "name": "five", - "resourceName": "AnotherClientOperationGroup", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "45", - "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": [], - "response": { - "$id": "46" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.five" - } - ], - "parameters": [ - { - "$id": "47", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "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" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "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": "8" + } + } + ] }, { - "$id": "49", - "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.AnotherClientOperationGroup", - "apiVersions": [], - "children": [ - { - "$id": "50", - "kind": "client", - "name": "Group5", - "namespace": "Client.Structure.AnotherClientOperationGroup", - "methods": [ - { - "$id": "51", - "kind": "basic", - "name": "six", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "52", - "name": "six", - "resourceName": "Group5", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "53", - "statusCodes": [ - 204 + "$id": "23", + "kind": "client", + "name": "SubNamespace.SecondClient", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "methods": [ + { + "$id": "24", + "kind": "basic", + "name": "five", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "25", + "name": "five", + "resourceName": "AnotherClientOperationGroup", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "26", + "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": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.five" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", + "apiVersions": [], + "children": [ + { + "$id": "27", + "kind": "client", + "name": "Group5", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "methods": [ + { + "$id": "28", + "kind": "basic", + "name": "six", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "29", + "name": "six", + "resourceName": "Group5", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "30", + "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": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six" + } ], - "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": [], - "response": { - "$id": "54" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six" - } - ], - "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, - "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, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", - "apiVersions": [], - "parent": { - "$ref": "42" - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", + "apiVersions": [], + "parent": { + "$ref": "23" + } + } + ] } - ] - } - ] + ] } 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 9549f60eca6..3c91982de77 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 @@ -1,850 +1,790 @@ { - "$id": "1", - "name": "Client.Structure.Service.Default", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "ClientType", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Client.Structure.Service.Default", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Default", - "value": "default", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "MultiClient", - "value": "multi-client", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "RenamedOperation", - "value": "renamed-operation", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "TwoOperationGroup", - "value": "two-operation-group", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "12", - "kind": "enumvalue", - "name": "ClientOperationGroup", - "value": "client-operation-group", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Client.Structure.Service", - "isFixed": true, - "isFlags": false, - "usage": "Input", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "14", - "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.", - "methods": [ - { - "$id": "15", - "kind": "basic", - "name": "one", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "16", - "name": "one", - "resourceName": "Service", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "17", - "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": [] - }, - "parameters": [], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.one" - }, - { - "$id": "19", - "kind": "basic", - "name": "two", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "20", - "name": "two", - "resourceName": "Service", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "21", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "1", + "kind": "enum", + "name": "ClientType", + "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Default", + "value": "default", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "MultiClient", + "value": "multi-client", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "RenamedOperation", + "value": "renamed-operation", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "TwoOperationGroup", + "value": "two-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "ClientOperationGroup", + "value": "client-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/two", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.two", + "namespace": "Client.Structure.Service", + "isFixed": true, + "isFlags": false, + "usage": "Input", "decorators": [] - }, - "parameters": [], - "response": { - "$id": "22" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.two" } - ], - "parameters": [ + ], + "constants": [], + "models": [], + "clients": [ { - "$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": "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": "26", - "kind": "client", - "name": "Baz", - "namespace": "Client.Structure.Service.Baz", - "methods": [], - "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": "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.Baz", - "apiVersions": [], - "parent": { - "$ref": "14" - }, - "children": [ - { - "$id": "30", - "kind": "client", - "name": "Foo", - "namespace": "Client.Structure.Service.Baz", - "methods": [ + "$id": "8", + "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.", + "methods": [ { - "$id": "31", - "kind": "basic", - "name": "seven", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "32", - "name": "seven", - "resourceName": "Foo", + "$id": "9", + "kind": "basic", + "name": "one", "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "10", + "name": "one", + "resourceName": "Service", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "11", + "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": [] + }, "parameters": [], - "responses": [ - { - "$id": "33", - "statusCodes": [ - 204 + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.one" + }, + { + "$id": "12", + "kind": "basic", + "name": "two", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "13", + "name": "two", + "resourceName": "Service", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "14", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "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": [], - "response": { - "$id": "34" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven" + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/two", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.two", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.two" } - ], - "parameters": [ + ], + "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" + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "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" + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", - "apiVersions": [], - "parent": { - "$ref": "26" - } - } - ] - }, - { - "$id": "38", - "kind": "client", - "name": "Qux", - "namespace": "Client.Structure.Service.Qux", - "methods": [ - { - "$id": "39", - "kind": "basic", - "name": "eight", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "40", - "name": "eight", - "resourceName": "Qux", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "41", - "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": [], - "response": { - "$id": "42" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.eight" - } - ], - "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": "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.Qux", - "apiVersions": [], - "parent": { - "$ref": "14" - }, - "children": [ - { - "$id": "46", - "kind": "client", - "name": "Bar", - "namespace": "Client.Structure.Service.Qux", - "methods": [ + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service", + "apiVersions": [], + "children": [ { - "$id": "47", - "kind": "basic", - "name": "nine", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "48", - "name": "nine", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "49", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "15", + "kind": "client", + "name": "Baz", + "namespace": "Client.Structure.Service.Baz", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/nine", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "50" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine" - } - ], - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz", + "apiVersions": [], + "parent": { + "$ref": "8" + }, + "children": [ + { + "$id": "16", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service.Baz", + "methods": [ + { + "$id": "17", + "kind": "basic", + "name": "seven", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "18", + "name": "seven", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "19", + "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": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", + "apiVersions": [], + "parent": { + "$ref": "15" + } + } + ] + }, { - "$id": "51", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "52", - "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", + "kind": "client", + "name": "Qux", + "namespace": "Client.Structure.Service.Qux", + "methods": [ + { + "$id": "21", + "kind": "basic", + "name": "eight", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "22", + "name": "eight", + "resourceName": "Qux", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "23", + "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": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.eight" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux", + "apiVersions": [], + "parent": { + "$ref": "8" + }, + "children": [ + { + "$id": "24", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service.Qux", + "methods": [ + { + "$id": "25", + "kind": "basic", + "name": "nine", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "26", + "name": "nine", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "27", + "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": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", + "apiVersions": [], + "parent": { + "$ref": "20" + } + } + ] }, { - "$id": "53", - "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.Qux.Bar", - "apiVersions": [], - "parent": { - "$ref": "38" - } - } - ] - }, - { - "$id": "54", - "kind": "client", - "name": "Foo", - "namespace": "Client.Structure.Service", - "methods": [ - { - "$id": "55", - "kind": "basic", - "name": "three", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "56", - "name": "three", - "resourceName": "Foo", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "57", - "statusCodes": [ - 204 + "$id": "28", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service", + "methods": [ + { + "$id": "29", + "kind": "basic", + "name": "three", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "30", + "name": "three", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "31", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Foo.three" + }, + { + "$id": "32", + "kind": "basic", + "name": "four", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "33", + "name": "four", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "34", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Foo.four" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "58" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Foo.three" - }, - { - "$id": "59", - "kind": "basic", - "name": "four", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "60", - "name": "four", - "resourceName": "Foo", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "61", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "62" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Foo.four" - } - ], - "parameters": [ - { - "$id": "63", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "64", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "65", - "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.Foo", - "apiVersions": [], - "parent": { - "$ref": "14" - } - }, - { - "$id": "66", - "kind": "client", - "name": "Bar", - "namespace": "Client.Structure.Service", - "methods": [ - { - "$id": "67", - "kind": "basic", - "name": "five", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "68", - "name": "five", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "69", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Foo", + "apiVersions": [], + "parent": { + "$ref": "8" + } + }, + { + "$id": "35", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service", + "methods": [ + { + "$id": "36", + "kind": "basic", + "name": "five", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "37", + "name": "five", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "38", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Bar.five" + }, + { + "$id": "39", + "kind": "basic", + "name": "six", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "40", + "name": "six", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "41", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Bar.six" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "70" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Bar.five" - }, - { - "$id": "71", - "kind": "basic", - "name": "six", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "72", - "name": "six", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "73", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "74" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Bar.six" - } - ], - "parameters": [ - { - "$id": "75", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "76", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "77", - "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" - } + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "apiVersions": [], + "parent": { + "$ref": "8" + } + } + ] } - ] - } - ] + ] } 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 7928c802e20..ede2aaf2d53 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 @@ -1,456 +1,417 @@ { - "$id": "1", - "name": "Client.Structure.Service.Multi.Client", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "ClientType", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Client.Structure.Service.Multi.Client", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Default", - "value": "default", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "MultiClient", - "value": "multi-client", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "RenamedOperation", - "value": "renamed-operation", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "TwoOperationGroup", - "value": "two-operation-group", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "12", - "kind": "enumvalue", - "name": "ClientOperationGroup", - "value": "client-operation-group", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Client.Structure.Service", - "isFixed": true, - "isFlags": false, - "usage": "Input", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "14", - "kind": "client", - "name": "ClientAClient", - "namespace": "Client.Structure.MultiClient", - "methods": [ - { - "$id": "15", - "kind": "basic", - "name": "renamedOne", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "16", - "name": "renamedOne", - "resourceName": "ClientA", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/one", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedOne", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedOne" - }, - { - "$id": "19", - "kind": "basic", - "name": "renamedThree", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "20", - "name": "renamedThree", - "resourceName": "ClientA", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "21", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "1", + "kind": "enum", + "name": "ClientType", + "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Default", + "value": "default", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "MultiClient", + "value": "multi-client", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "RenamedOperation", + "value": "renamed-operation", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "TwoOperationGroup", + "value": "two-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "ClientOperationGroup", + "value": "client-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/three", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedThree", + "namespace": "Client.Structure.Service", + "isFixed": true, + "isFlags": false, + "usage": "Input", "decorators": [] - }, - "parameters": [], - "response": { - "$id": "22" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedThree" - }, - { - "$id": "23", - "kind": "basic", - "name": "renamedFive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "24", - "name": "renamedFive", - "resourceName": "ClientA", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "25", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/five", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedFive", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "26" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedFive" } - ], - "parameters": [ + ], + "constants": [], + "models": [], + "clients": [ { - "$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": "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.ClientA", - "apiVersions": [] - }, - { - "$id": "30", - "kind": "client", - "name": "ClientBClient", - "namespace": "Client.Structure.MultiClient", - "methods": [ - { - "$id": "31", - "kind": "basic", - "name": "renamedTwo", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "32", - "name": "renamedTwo", - "resourceName": "ClientB", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "33", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "8", + "kind": "client", + "name": "ClientAClient", + "namespace": "Client.Structure.MultiClient", + "methods": [ + { + "$id": "9", + "kind": "basic", + "name": "renamedOne", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "10", + "name": "renamedOne", + "resourceName": "ClientA", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "11", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/one", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedOne", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedOne" + }, + { + "$id": "12", + "kind": "basic", + "name": "renamedThree", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "13", + "name": "renamedThree", + "resourceName": "ClientA", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "14", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/three", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedThree", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedThree" + }, + { + "$id": "15", + "kind": "basic", + "name": "renamedFive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "16", + "name": "renamedFive", + "resourceName": "ClientA", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "17", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/five", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedFive", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedFive" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/two", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedTwo", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "34" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedTwo" - }, - { - "$id": "35", - "kind": "basic", - "name": "renamedFour", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "renamedFour", - "resourceName": "ClientB", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": 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.MultiClient.ClientB.renamedFour", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "38" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedFour" + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA", + "apiVersions": [] }, { - "$id": "39", - "kind": "basic", - "name": "renamedSix", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "40", - "name": "renamedSix", - "resourceName": "ClientB", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "41", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "18", + "kind": "client", + "name": "ClientBClient", + "namespace": "Client.Structure.MultiClient", + "methods": [ + { + "$id": "19", + "kind": "basic", + "name": "renamedTwo", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "20", + "name": "renamedTwo", + "resourceName": "ClientB", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "21", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/two", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedTwo", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedTwo" + }, + { + "$id": "22", + "kind": "basic", + "name": "renamedFour", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "23", + "name": "renamedFour", + "resourceName": "ClientB", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "24", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/four", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedFour", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedFour" + }, + { + "$id": "25", + "kind": "basic", + "name": "renamedSix", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "26", + "name": "renamedSix", + "resourceName": "ClientB", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "27", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/six", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedSix", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedSix" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/six", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedSix", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "42" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedSix" - } - ], - "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": "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" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB", - "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 5221fd2e975..17aa5ccd95b 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 @@ -1,461 +1,422 @@ { - "$id": "1", - "name": "Client.Structure.Service.Renamed.Operation", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "ClientType", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Client.Structure.Service.Renamed.Operation", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Default", - "value": "default", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "MultiClient", - "value": "multi-client", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "RenamedOperation", - "value": "renamed-operation", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "TwoOperationGroup", - "value": "two-operation-group", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "12", - "kind": "enumvalue", - "name": "ClientOperationGroup", - "value": "client-operation-group", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "ClientType", + "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Default", + "value": "default", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "MultiClient", + "value": "multi-client", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "RenamedOperation", + "value": "renamed-operation", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "TwoOperationGroup", + "value": "two-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "ClientOperationGroup", + "value": "client-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Client.Structure.Service", + "isFixed": true, + "isFlags": false, + "usage": "Input", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] } - ], - "namespace": "Client.Structure.Service", - "isFixed": true, - "isFlags": false, - "usage": "Input", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "14", - "kind": "client", - "name": "RenamedOperationClient", - "namespace": "Client.Structure.RenamedOperation", - "methods": [ + ], + "constants": [], + "models": [], + "clients": [ { - "$id": "15", - "kind": "basic", - "name": "renamedOne", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "16", - "name": "renamedOne", - "resourceName": "RenamedOperation", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "8", + "kind": "client", + "name": "RenamedOperationClient", + "namespace": "Client.Structure.RenamedOperation", + "methods": [ + { + "$id": "9", + "kind": "basic", + "name": "renamedOne", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "10", + "name": "renamedOne", + "resourceName": "RenamedOperation", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "11", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne" + }, + { + "$id": "12", + "kind": "basic", + "name": "renamedThree", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "13", + "name": "renamedThree", + "resourceName": "RenamedOperation", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "14", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree" + }, + { + "$id": "15", + "kind": "basic", + "name": "renamedFive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "16", + "name": "renamedFive", + "resourceName": "RenamedOperation", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "17", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedFive" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/one", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne" - }, - { - "$id": "19", - "kind": "basic", - "name": "renamedThree", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "20", - "name": "renamedThree", - "resourceName": "RenamedOperation", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "21", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/three", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "22" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree" - }, - { - "$id": "23", - "kind": "basic", - "name": "renamedFive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "24", - "name": "renamedFive", - "resourceName": "RenamedOperation", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "25", - "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": [] - }, - "parameters": [], - "response": { - "$id": "26" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedFive" - } - ], - "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": "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": "30", - "kind": "client", - "name": "Group", - "namespace": "Client.Structure.RenamedOperation", - "methods": [ - { - "$id": "31", - "kind": "basic", - "name": "renamedTwo", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "32", - "name": "renamedTwo", - "resourceName": "Group", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "33", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "apiVersions": [], + "children": [ + { + "$id": "18", + "kind": "client", + "name": "Group", + "namespace": "Client.Structure.RenamedOperation", + "methods": [ + { + "$id": "19", + "kind": "basic", + "name": "renamedTwo", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "20", + "name": "renamedTwo", + "resourceName": "Group", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "21", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo" + }, + { + "$id": "22", + "kind": "basic", + "name": "renamedFour", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "23", + "name": "renamedFour", + "resourceName": "Group", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "24", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour" + }, + { + "$id": "25", + "kind": "basic", + "name": "renamedSix", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "26", + "name": "renamedSix", + "resourceName": "Group", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "27", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "34" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo" - }, - { - "$id": "35", - "kind": "basic", - "name": "renamedFour", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "renamedFour", - "resourceName": "Group", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "38" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour" - }, - { - "$id": "39", - "kind": "basic", - "name": "renamedSix", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "40", - "name": "renamedSix", - "resourceName": "Group", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "41", - "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": [] - }, - "parameters": [], - "response": { - "$id": "42" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix" - } - ], - "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": "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" - } + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "apiVersions": [], + "parent": { + "$ref": "8" + } + } + ] } - ] - } - ] + ] } 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 7e6092b6470..c741ff92b39 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 @@ -1,513 +1,471 @@ { - "$id": "1", - "name": "Client.Structure.Service.TwoOperationGroup", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "ClientType", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Client.Structure.Service.TwoOperationGroup", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Default", - "value": "default", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "MultiClient", - "value": "multi-client", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "RenamedOperation", - "value": "renamed-operation", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "TwoOperationGroup", - "value": "two-operation-group", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "12", - "kind": "enumvalue", - "name": "ClientOperationGroup", - "value": "client-operation-group", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "ClientType", + "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Default", + "value": "default", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "MultiClient", + "value": "multi-client", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "RenamedOperation", + "value": "renamed-operation", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "TwoOperationGroup", + "value": "two-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "ClientOperationGroup", + "value": "client-operation-group", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Client.Structure.Service", + "isFixed": true, + "isFlags": false, + "usage": "Input", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] } - ], - "namespace": "Client.Structure.Service", - "isFixed": true, - "isFlags": false, - "usage": "Input", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "14", - "kind": "client", - "name": "TwoOperationGroupClient", - "namespace": "Client.Structure.TwoOperationGroup", - "methods": [], - "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" - }, + ], + "constants": [], + "models": [], + "clients": [ { - "$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" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", - "apiVersions": [], - "children": [ - { - "$id": "18", - "kind": "client", - "name": "Group1", - "namespace": "Client.Structure.TwoOperationGroup", - "methods": [ - { - "$id": "19", - "kind": "basic", - "name": "one", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "20", - "name": "one", - "resourceName": "Group1", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "21", - "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": [] - }, - "parameters": [], - "response": { - "$id": "22" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one" - }, - { - "$id": "23", - "kind": "basic", - "name": "three", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "24", - "name": "three", - "resourceName": "Group1", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "25", - "statusCodes": [ - 204 + "$id": "8", + "kind": "client", + "name": "TwoOperationGroupClient", + "namespace": "Client.Structure.TwoOperationGroup", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", + "apiVersions": [], + "children": [ + { + "$id": "9", + "kind": "client", + "name": "Group1", + "namespace": "Client.Structure.TwoOperationGroup", + "methods": [ + { + "$id": "10", + "kind": "basic", + "name": "one", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "11", + "name": "one", + "resourceName": "Group1", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "12", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one" + }, + { + "$id": "13", + "kind": "basic", + "name": "three", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "14", + "name": "three", + "resourceName": "Group1", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "15", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three" + }, + { + "$id": "16", + "kind": "basic", + "name": "four", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "17", + "name": "four", + "resourceName": "Group1", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "18", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "26" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three" - }, - { - "$id": "27", - "kind": "basic", - "name": "four", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "28", - "name": "four", - "resourceName": "Group1", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "29", - "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": [] - }, - "parameters": [], - "response": { - "$id": "30" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four" - } - ], - "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.TwoOperationGroup.Group1", - "apiVersions": [], - "parent": { - "$ref": "14" - } - }, - { - "$id": "34", - "kind": "client", - "name": "Group2", - "namespace": "Client.Structure.TwoOperationGroup", - "methods": [ - { - "$id": "35", - "kind": "basic", - "name": "two", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "two", - "resourceName": "Group2", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "38" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two" - }, - { - "$id": "39", - "kind": "basic", - "name": "five", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "40", - "name": "five", - "resourceName": "Group2", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "41", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", + "apiVersions": [], + "parent": { + "$ref": "8" + } + }, + { + "$id": "19", + "kind": "client", + "name": "Group2", + "namespace": "Client.Structure.TwoOperationGroup", + "methods": [ + { + "$id": "20", + "kind": "basic", + "name": "two", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "21", + "name": "two", + "resourceName": "Group2", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two" + }, + { + "$id": "23", + "kind": "basic", + "name": "five", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "24", + "name": "five", + "resourceName": "Group2", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "25", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five" + }, + { + "$id": "26", + "kind": "basic", + "name": "six", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "27", + "name": "six", + "resourceName": "Group2", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "28", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "42" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five" - }, - { - "$id": "43", - "kind": "basic", - "name": "six", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "44", - "name": "six", - "resourceName": "Group2", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "45", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "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": [] - }, - "parameters": [], - "response": { - "$id": "46" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six" - } - ], - "parameters": [ - { - "$id": "47", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "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" - }, - { - "$id": "49", - "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" - } + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "apiVersions": [], + "parent": { + "$ref": "8" + } + } + ] } - ] - } - ] + ] } 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 fddcdbf5187..348d06198a9 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 @@ -1,3354 +1,3282 @@ { - "$id": "1", - "name": "Encode.Bytes", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "defaultContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "defaultContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "base64ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "base64ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "base64urlContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "base64urlContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "base64urlArrayContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "base64urlArrayContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "defaultContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "OctetStreamRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "OctetStreamRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "CustomContentTypeRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "CustomContentTypeRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "Base64RequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "Base64RequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "Base64RequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "Base64RequestContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "defaultContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "octetStreamContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "OctetStreamRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "customContentTypeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "CustomContentTypeRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "base64ContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "Base64RequestContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "base64urlContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "Base64RequestContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "54", - "kind": "model", - "name": "DefaultBytesProperty", - "namespace": "Encode.Bytes", - "crossLanguageDefinitionId": "Encode.Bytes.DefaultBytesProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Encode.Bytes", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "55", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "56", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "1", + "kind": "constant", + "name": "defaultContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.DefaultBytesProperty.value", - "serializationOptions": { - "$id": "57", - "json": { - "$id": "58", - "name": "value" - } - } - } - ] - }, - { - "$id": "59", - "kind": "model", - "name": "Base64BytesProperty", - "namespace": "Encode.Bytes", - "crossLanguageDefinitionId": "Encode.Bytes.Base64BytesProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "60", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "61", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "3", + "kind": "constant", + "name": "defaultContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Base64BytesProperty.value", - "serializationOptions": { - "$id": "62", - "json": { - "$id": "63", - "name": "value" - } - } - } - ] - }, - { - "$id": "64", - "kind": "model", - "name": "Base64urlBytesProperty", - "namespace": "Encode.Bytes", - "crossLanguageDefinitionId": "Encode.Bytes.Base64urlBytesProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "65", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "66", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "5", + "kind": "constant", + "name": "base64ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Base64urlBytesProperty.value", - "serializationOptions": { - "$id": "67", - "json": { - "$id": "68", - "name": "value" - } - } - } - ] - }, - { - "$id": "69", - "kind": "model", - "name": "Base64urlArrayBytesProperty", - "namespace": "Encode.Bytes", - "crossLanguageDefinitionId": "Encode.Bytes.Base64urlArrayBytesProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "70", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "71", - "kind": "array", - "name": "Array", + "$id": "7", + "kind": "constant", + "name": "base64ContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "72", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "73", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Base64urlArrayBytesProperty.value", - "serializationOptions": { - "$id": "74", - "json": { - "$id": "75", - "name": "value" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "76", - "kind": "client", - "name": "BytesClient", - "namespace": "Encode.Bytes", - "doc": "Test for encode decorator on bytes.", - "methods": [], - "parameters": [ + }, { - "$id": "77", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "78", - "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": "79", - "type": { - "$id": "80", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "9", + "kind": "constant", + "name": "base64urlContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "81", - "kind": "client", - "name": "Query", - "namespace": "Encode.Bytes.Query", - "methods": [ - { - "$id": "82", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "83", - "name": "default", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "84", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "85", - "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": [ - { - "$id": "86", - "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", + "$id": "11", + "kind": "constant", + "name": "base64urlContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "87", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "88", - "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 - } - ], - "response": { - "$id": "89" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.default" }, - { - "$id": "90", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "91", - "name": "base64", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "92", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "93", - "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": [ - { - "$id": "94", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/query/base64", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64", + "value": "application/json", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "base64urlArrayContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "95", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "96", - "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 - } - ], - "response": { - "$id": "97" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64" }, - { - "$id": "98", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "99", - "name": "base64url", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "100", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "101", - "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": "102", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "base64urlArrayContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "103", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "104", - "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 - } - ], - "response": { - "$id": "105" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url" }, - { - "$id": "106", - "kind": "basic", - "name": "base64urlArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "107", - "name": "base64urlArray", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "108", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "109", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "110", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "111", - "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": "112", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/query/base64url-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "defaultContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "113", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "114", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "115", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "116", - "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, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "117" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray" - } - ], - "parameters": [ - { - "$id": "118", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "119", - "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": "120", - "type": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Query", - "apiVersions": [], - "parent": { - "$ref": "76" - } + }, + "value": "application/octet-stream", + "decorators": [] }, { - "$id": "122", - "kind": "client", - "name": "Property", - "namespace": "Encode.Bytes.Property", - "methods": [ - { - "$id": "123", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "124", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "125", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "126", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "127", - "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": "128", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "54" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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", + "$id": "19", + "kind": "constant", + "name": "OctetStreamRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "129", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "54" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "130", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "131", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "132", - "type": { - "$ref": "54" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.default" }, - { - "$id": "133", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "134", - "name": "base64", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "135", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "136", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "137", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "59" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "138", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "59" - }, - "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", + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "21", + "kind": "constant", + "name": "OctetStreamRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "139", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "59" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "140", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "141", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "142", - "type": { - "$ref": "59" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64" }, - { - "$id": "143", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "144", - "name": "base64url", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "145", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "146", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "147", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "64" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "148", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "64" - }, - "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", + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "CustomContentTypeRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "149", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "64" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "150", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "151", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "152", - "type": { - "$ref": "64" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url" }, - { - "$id": "153", - "kind": "basic", - "name": "base64urlArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "154", - "name": "base64urlArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "155", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "156", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "157", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "69" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "158", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "69" - }, - "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", + "value": "image/png", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "CustomContentTypeRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "159", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "69" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "160", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "161", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "162", - "type": { - "$ref": "69" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray" - } - ], - "parameters": [ - { - "$id": "163", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "164", - "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": "165", - "type": { - "$id": "166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property", - "apiVersions": [], - "parent": { - "$ref": "76" - } + }, + "value": "image/png", + "decorators": [] }, { - "$id": "167", - "kind": "client", - "name": "Header", - "namespace": "Encode.Bytes.Header", - "methods": [ - { - "$id": "168", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "169", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "170", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "171", - "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": "172", - "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", + "$id": "27", + "kind": "constant", + "name": "Base64RequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "173", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "174", - "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 - } - ], - "response": { - "$id": "175" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.default" }, - { - "$id": "176", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "177", - "name": "base64", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "178", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "179", - "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": "180", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "Base64RequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "Base64RequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "33", + "kind": "constant", + "name": "Base64RequestContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "35", + "kind": "constant", + "name": "defaultContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "37", + "kind": "constant", + "name": "octetStreamContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "OctetStreamRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "customContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "43", + "kind": "constant", + "name": "CustomContentTypeRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "45", + "kind": "constant", + "name": "base64ContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", + "name": "Base64RequestContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "49", + "kind": "constant", + "name": "base64urlContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "181", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "182", - "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 - } - ], - "response": { - "$id": "183" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64" }, - { - "$id": "184", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "185", - "name": "base64url", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "186", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "187", - "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": "188", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "51", + "kind": "constant", + "name": "Base64RequestContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "189", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "190", - "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 - } - ], - "response": { - "$id": "191" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url" }, - { - "$id": "192", - "kind": "basic", - "name": "base64urlArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "193", - "name": "base64urlArray", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "194", + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "53", + "kind": "model", + "name": "DefaultBytesProperty", + "namespace": "Encode.Bytes", + "crossLanguageDefinitionId": "Encode.Bytes.DefaultBytesProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "54", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "195", - "kind": "array", - "name": "Array", - "valueType": { - "$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": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "198", - "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": [] - }, - "parameters": [ - { - "$id": "199", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "200", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "201", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "202", + "$id": "55", "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, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.DefaultBytesProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "203" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray" - } - ], - "parameters": [ - { - "$id": "204", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "205", - "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": "206", - "type": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header", - "apiVersions": [], - "parent": { - "$ref": "76" - } + ] }, { - "$id": "208", - "kind": "client", - "name": "RequestBody", - "namespace": "Encode.Bytes.RequestBody", - "methods": [ - { - "$id": "209", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "210", - "name": "default", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "211", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/octet-stream", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "212", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "213", - "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": "214", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/body/request/default", - "requestMediaTypes": [ - "application/octet-stream" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", - "decorators": [] - }, - "parameters": [ - { - "$id": "215", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "216", - "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 - }, + "$id": "56", + "kind": "model", + "name": "Base64BytesProperty", + "namespace": "Encode.Bytes", + "crossLanguageDefinitionId": "Encode.Bytes.Base64BytesProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "217", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/octet-stream", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "218" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default" - }, - { - "$id": "219", - "kind": "basic", - "name": "octetStream", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "220", - "name": "octetStream", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "221", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "222", + "$id": "57", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "223", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "58", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "224", - "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": [] - }, - "parameters": [ - { - "$id": "225", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "226", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "227", - "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 + "crossLanguageDefinitionId": "Encode.Bytes.Base64BytesProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "228" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream" - }, - { - "$id": "229", - "kind": "basic", - "name": "customContentType", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "230", - "name": "customContentType", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "231", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "232", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "233", - "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": "234", - "statusCodes": [ - 204 - ], - "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": [] - }, - "parameters": [ - { - "$id": "235", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + ] + }, + { + "$id": "59", + "kind": "model", + "name": "Base64urlBytesProperty", + "namespace": "Encode.Bytes", + "crossLanguageDefinitionId": "Encode.Bytes.Base64urlBytesProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "236", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "237", - "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 - } - ], - "response": { - "$id": "238" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType" - }, - { - "$id": "239", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "240", - "name": "base64", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "241", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "242", + "$id": "60", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "243", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "61", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "244", - "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": [] - }, - "parameters": [ - { - "$id": "245", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "246", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "247", - "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 + "crossLanguageDefinitionId": "Encode.Bytes.Base64urlBytesProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "248" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64" - }, - { - "$id": "249", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "250", - "name": "base64url", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "251", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "252", + ] + }, + { + "$id": "62", + "kind": "model", + "name": "Base64urlArrayBytesProperty", + "namespace": "Encode.Bytes", + "crossLanguageDefinitionId": "Encode.Bytes.Base64urlArrayBytesProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "63", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "253", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "64", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "65", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "66", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "254", - "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": [] - }, - "parameters": [ - { - "$id": "255", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "256", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "257", - "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 + "crossLanguageDefinitionId": "Encode.Bytes.Base64urlArrayBytesProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "258" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url" - } - ], - "parameters": [ - { - "$id": "259", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "260", - "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": "261", - "type": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", - "apiVersions": [], - "parent": { - "$ref": "76" - } - }, + ] + } + ], + "clients": [ { - "$id": "263", - "kind": "client", - "name": "ResponseBody", - "namespace": "Encode.Bytes.ResponseBody", - "methods": [ - { - "$id": "264", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "265", - "name": "default", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "266", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "267", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "268", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/octet-stream" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/body/response/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", - "decorators": [] - }, - "parameters": [ + "$id": "67", + "kind": "client", + "name": "BytesClient", + "namespace": "Encode.Bytes", + "doc": "Test for encode decorator on bytes.", + "methods": [], + "parameters": [ { - "$id": "269", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "270", - "type": { - "$ref": "268" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default" - }, - { - "$id": "271", - "kind": "basic", - "name": "octetStream", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "272", - "name": "octetStream", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "273", - "name": "accept", - "nameInRequest": "Accept", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "38" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "274", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "275", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "276", - "name": "contentType", - "nameInResponse": "content-type", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$ref": "40" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes", + "apiVersions": [], + "children": [ + { + "$id": "68", + "kind": "client", + "name": "Query", + "namespace": "Encode.Bytes.Query", + "methods": [ + { + "$id": "69", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "70", + "name": "default", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "71", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "72", + "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": [ + { + "$id": "73", + "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": [] + }, + "parameters": [ + { + "$id": "74", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "75", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.default" + }, + { + "$id": "76", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "77", + "name": "base64", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "78", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "79", + "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": [ + { + "$id": "80", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/query/base64", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64", + "decorators": [] + }, + "parameters": [ + { + "$id": "81", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "82", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64" + }, + { + "$id": "83", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "84", + "name": "base64url", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "85", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "86", + "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": "87", + "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": [] + }, + "parameters": [ + { + "$id": "88", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "89", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url" + }, + { + "$id": "90", + "kind": "basic", + "name": "base64urlArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "91", + "name": "base64urlArray", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "92", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "93", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "94", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "95", + "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": "96", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "97", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "98", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "99", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "100", + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "277", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "278", - "type": { - "$ref": "275" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream" - }, - { - "$id": "279", - "kind": "basic", - "name": "customContentType", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "280", - "name": "customContentType", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "281", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "282", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Encode.Bytes.Query", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, + { + "$id": "101", + "kind": "client", + "name": "Property", + "namespace": "Encode.Bytes.Property", + "methods": [ + { + "$id": "102", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "103", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "104", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "105", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "106", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "107", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "53" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "108", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "109", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "110", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "53" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.default" + }, + { + "$id": "111", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "112", + "name": "base64", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "113", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "114", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "115", + "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": "116", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "56" + }, + "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": [] + }, + "parameters": [ + { + "$id": "117", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "56" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "118", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "119", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "56" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64" + }, + { + "$id": "120", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "121", + "name": "base64url", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "122", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "123", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "124", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "125", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "59" + }, + "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": [] + }, + "parameters": [ + { + "$id": "126", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "127", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "59" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url" + }, + { + "$id": "129", + "kind": "basic", + "name": "base64urlArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "130", + "name": "base64urlArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "132", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "133", + "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": "134", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "62" + }, + "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": [] + }, + "parameters": [ + { + "$id": "135", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "62" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "136", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "137", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "62" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray" + } ], - "bodyType": { - "$id": "283", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "284", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "44" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "285", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "286", - "type": { - "$ref": "283" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType" - }, - { - "$id": "287", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "288", - "name": "base64", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "289", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "290", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Encode.Bytes.Property", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, + { + "$id": "138", + "kind": "client", + "name": "Header", + "namespace": "Encode.Bytes.Header", + "methods": [ + { + "$id": "139", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "140", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "141", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "142", + "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": "143", + "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": [] + }, + "parameters": [ + { + "$id": "144", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "145", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.default" + }, + { + "$id": "146", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "147", + "name": "base64", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "149", + "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": "150", + "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": [] + }, + "parameters": [ + { + "$id": "151", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "152", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64" + }, + { + "$id": "153", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "154", + "name": "base64url", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "155", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "156", + "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": "157", + "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": [] + }, + "parameters": [ + { + "$id": "158", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "159", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url" + }, + { + "$id": "160", + "kind": "basic", + "name": "base64urlArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "161", + "name": "base64urlArray", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "162", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "163", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "164", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "165", + "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": "166", + "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": [] + }, + "parameters": [ + { + "$id": "167", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "168", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "169", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "170", + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray" + } ], - "bodyType": { - "$id": "291", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "292", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "48" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "293", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "294", - "type": { - "$ref": "291" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64" - }, - { - "$id": "295", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "296", - "name": "base64url", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "297", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "298", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Encode.Bytes.Header", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, + { + "$id": "171", + "kind": "client", + "name": "RequestBody", + "namespace": "Encode.Bytes.RequestBody", + "methods": [ + { + "$id": "172", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "173", + "name": "default", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "174", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/octet-stream", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "175", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "176", + "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": "177", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/body/request/default", + "requestMediaTypes": [ + "application/octet-stream" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", + "decorators": [] + }, + "parameters": [ + { + "$id": "178", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "179", + "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 + }, + { + "$id": "180", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/octet-stream", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default" + }, + { + "$id": "181", + "kind": "basic", + "name": "octetStream", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "182", + "name": "octetStream", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "183", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "184", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "185", + "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": "186", + "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": [] + }, + "parameters": [ + { + "$id": "187", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "188", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "189", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream" + }, + { + "$id": "190", + "kind": "basic", + "name": "customContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "191", + "name": "customContentType", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "192", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "193", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "194", + "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": "195", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "196", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "197", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "198", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType" + }, + { + "$id": "199", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "200", + "name": "base64", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "201", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "202", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "203", + "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": "204", + "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": [] + }, + "parameters": [ + { + "$id": "205", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "206", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "207", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64" + }, + { + "$id": "208", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "209", + "name": "base64url", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "210", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "211", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "212", + "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": "213", + "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": [] + }, + "parameters": [ + { + "$id": "214", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "215", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "216", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url" + } ], - "bodyType": { - "$id": "299", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "300", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "headers": [ - { - "$id": "301", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "52" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "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": [] - }, - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, { - "$id": "302", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "303", - "type": { - "$ref": "299" + "$id": "217", + "kind": "client", + "name": "ResponseBody", + "namespace": "Encode.Bytes.ResponseBody", + "methods": [ + { + "$id": "218", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "219", + "name": "default", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "220", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "221", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "222", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/body/response/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", + "decorators": [] + }, + "parameters": [ + { + "$id": "223", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "222" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default" + }, + { + "$id": "224", + "kind": "basic", + "name": "octetStream", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "225", + "name": "octetStream", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "226", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "37" + }, + "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": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "39" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "229", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "228" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream" + }, + { + "$id": "230", + "kind": "basic", + "name": "customContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "231", + "name": "customContentType", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "232", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "233", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "234", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "43" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "235", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "234" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType" + }, + { + "$id": "236", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "237", + "name": "base64", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "238", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "239", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "240", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "47" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "241", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "240" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64" + }, + { + "$id": "242", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "243", + "name": "base64url", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "244", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "245", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "246", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "247", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "51" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "248", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "246" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "apiVersions": [], + "parent": { + "$ref": "67" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url" - } - ], - "parameters": [ - { - "$id": "304", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "305", - "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": "306", - "type": { - "$id": "307", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", - "apiVersions": [], - "parent": { - "$ref": "76" - } + ] } - ] - } - ] + ] } 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 1a5045e883f..c151f5c83a8 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 @@ -1,2772 +1,2704 @@ { - "$id": "1", - "name": "Encode.Datetime", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "defaultContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "defaultContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "rfc3339ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "rfc3339ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "rfc7231ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "rfc7231ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "unixTimestampContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "unixTimestampContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "unixTimestampArrayContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "unixTimestampArrayContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "22", - "kind": "model", - "name": "DefaultDatetimeProperty", - "namespace": "Encode.Datetime", - "crossLanguageDefinitionId": "Encode.Datetime.DefaultDatetimeProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Encode.Datetime", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "23", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "24", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "1", + "kind": "constant", + "name": "defaultContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.DefaultDatetimeProperty.value", - "serializationOptions": { - "$id": "26", - "json": { - "$id": "27", - "name": "value" - } - } - } - ] - }, - { - "$id": "28", - "kind": "model", - "name": "Rfc3339DatetimeProperty", - "namespace": "Encode.Datetime", - "crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "29", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "30", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "3", + "kind": "constant", + "name": "defaultContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty.value", - "serializationOptions": { - "$id": "32", - "json": { - "$id": "33", - "name": "value" - } - } - } - ] - }, - { - "$id": "34", - "kind": "model", - "name": "Rfc7231DatetimeProperty", - "namespace": "Encode.Datetime", - "crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "35", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "36", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5", + "kind": "constant", + "name": "rfc3339ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty.value", - "serializationOptions": { - "$id": "38", - "json": { - "$id": "39", - "name": "value" - } - } - } - ] - }, - { - "$id": "40", - "kind": "model", - "name": "UnixTimestampDatetimeProperty", - "namespace": "Encode.Datetime", - "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampDatetimeProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "41", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "42", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "43", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "7", + "kind": "constant", + "name": "rfc3339ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampDatetimeProperty.value", - "serializationOptions": { - "$id": "44", - "json": { - "$id": "45", - "name": "value" - } - } - } - ] - }, - { - "$id": "46", - "kind": "model", - "name": "UnixTimestampArrayDatetimeProperty", - "namespace": "Encode.Datetime", - "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampArrayDatetimeProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "47", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "48", - "kind": "array", - "name": "Array", + "$id": "9", + "kind": "constant", + "name": "rfc7231ContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "49", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "50", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "51", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "52", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampArrayDatetimeProperty.value", - "serializationOptions": { - "$id": "53", - "json": { - "$id": "54", - "name": "value" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "55", - "kind": "client", - "name": "DatetimeClient", - "namespace": "Encode.Datetime", - "doc": "Test for encode decorator on datetime.", - "methods": [], - "parameters": [ + }, { - "$id": "56", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "57", - "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": "58", - "type": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "11", + "kind": "constant", + "name": "rfc7231ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "60", - "kind": "client", - "name": "Query", - "namespace": "Encode.Datetime.Query", - "methods": [ - { - "$id": "61", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "62", - "name": "default", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "63", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "64", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "65", - "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 - } - ], - "responses": [ - { - "$id": "66", - "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", + "$id": "13", + "kind": "constant", + "name": "unixTimestampContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "67", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "68", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "69", - "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 - } - ], - "response": { - "$id": "70" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.default" }, - { - "$id": "71", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "72", - "name": "rfc3339", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "73", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "74", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "75", - "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 - } - ], - "responses": [ - { - "$id": "76", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "unixTimestampContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "77", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "78", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "79", - "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 - } - ], - "response": { - "$id": "80" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339" }, - { - "$id": "81", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "82", - "name": "rfc7231", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "83", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "84", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "85", - "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 - } - ], - "responses": [ - { - "$id": "86", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "unixTimestampArrayContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "87", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "88", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "89", - "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 - } - ], - "response": { - "$id": "90" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231" }, - { - "$id": "91", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "92", - "name": "unixTimestamp", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "93", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "94", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "95", - "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": "96", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "unixTimestampArrayContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "97", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "98", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "99", - "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 - } - ], - "response": { - "$id": "100" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp" }, - { - "$id": "101", - "kind": "basic", - "name": "unixTimestampArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "102", - "name": "unixTimestampArray", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "103", + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "21", + "kind": "model", + "name": "DefaultDatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.DefaultDatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "22", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "104", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "105", + "$id": "23", "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", + "name": "utcDateTime", + "encode": "rfc3339", "wireType": { - "$id": "106", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "107", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "108", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "109", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Encode.Datetime.DefaultDatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + } + ] + }, + { + "$id": "25", + "kind": "model", + "name": "Rfc3339DatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "110", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "111", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "112", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "113", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "114", + "$id": "26", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "27", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "28", + "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, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "116" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray" - } - ], - "parameters": [ - { - "$id": "117", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "118", - "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": "119", - "type": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Query", - "apiVersions": [], - "parent": { - "$ref": "55" - } + ] }, { - "$id": "121", - "kind": "client", - "name": "Property", - "namespace": "Encode.Datetime.Property", - "methods": [ - { - "$id": "122", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "123", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "124", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "125", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "126", - "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": "127", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "22" - }, - "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": [] - }, - "parameters": [ - { - "$id": "128", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "22" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "129", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "130", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "131", - "type": { - "$ref": "22" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.default" - }, - { - "$id": "132", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "133", - "name": "rfc3339", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "134", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "135", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "136", - "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": "137", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "28" - }, - "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": [] - }, - "parameters": [ - { - "$id": "138", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "28" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "139", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "140", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "141", - "type": { - "$ref": "28" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339" - }, - { - "$id": "142", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "143", - "name": "rfc7231", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "144", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "145", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "146", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "34" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "147", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "34" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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": [] - }, - "parameters": [ - { - "$id": "148", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "34" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "149", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "150", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "151", - "type": { - "$ref": "34" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231" - }, - { - "$id": "152", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "153", - "name": "unixTimestamp", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "154", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "155", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "156", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "40" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "157", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "40" - }, - "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": [] - }, - "parameters": [ - { - "$id": "158", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "40" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "$id": "29", + "kind": "model", + "name": "Rfc7231DatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "159", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "160", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "161", - "type": { - "$ref": "40" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp" - }, - { - "$id": "162", - "kind": "basic", - "name": "unixTimestampArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "163", - "name": "unixTimestampArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "164", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "165", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "166", - "name": "body", - "nameInRequest": "body", + "$id": "30", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$ref": "46" + "$id": "31", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "167", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "46" - }, - "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": [] - }, - "parameters": [ - { - "$id": "168", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "46" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "169", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "170", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "171", - "type": { - "$ref": "46" + "crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray" - } - ], - "parameters": [ - { - "$id": "172", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "173", - "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": "174", - "type": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property", - "apiVersions": [], - "parent": { - "$ref": "55" - } + ] }, { - "$id": "176", - "kind": "client", - "name": "Header", - "namespace": "Encode.Datetime.Header", - "methods": [ - { - "$id": "177", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "178", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "179", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "180", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "181", - "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": "182", - "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": [] - }, - "parameters": [ + "$id": "33", + "kind": "model", + "name": "UnixTimestampDatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampDatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "183", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "184", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "185", - "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 - } - ], - "response": { - "$id": "186" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.default" - }, - { - "$id": "187", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "188", - "name": "rfc3339", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "189", + "$id": "34", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "190", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "35", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "36", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "192", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/rfc3339", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", - "decorators": [] - }, - "parameters": [ - { - "$id": "193", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "194", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "195", - "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 + "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampDatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "196" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339" - }, - { - "$id": "197", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "198", - "name": "rfc7231", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "199", + ] + }, + { + "$id": "37", + "kind": "model", + "name": "UnixTimestampArrayDatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampArrayDatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "38", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "200", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "201", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "39", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "40", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "41", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "42", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "202", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/rfc7231", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", - "decorators": [] - }, - "parameters": [ - { - "$id": "203", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "204", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "205", - "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 + "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampArrayDatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "206" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231" - }, - { - "$id": "207", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "208", - "name": "unixTimestamp", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "209", - "name": "value", - "nameInRequest": "value", + ] + } + ], + "clients": [ + { + "$id": "44", + "kind": "client", + "name": "DatetimeClient", + "namespace": "Encode.Datetime", + "doc": "Test for encode decorator on datetime.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "210", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "211", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "212", - "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": [] - }, - "parameters": [ - { - "$id": "213", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "214", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "215", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "216" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp" - }, - { - "$id": "217", - "kind": "basic", - "name": "unixTimestampArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "218", - "name": "unixTimestampArray", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "219", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "220", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "221", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "222", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "223", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "224", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "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 - } - ], - "responses": [ - { - "$id": "225", - "statusCodes": [ - 204 - ], - "headers": [], - "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": [] - }, - "parameters": [ + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime", + "apiVersions": [], + "children": [ { - "$id": "226", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "227", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "228", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "229", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "230", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "45", + "kind": "client", + "name": "Query", + "namespace": "Encode.Datetime.Query", + "methods": [ + { + "$id": "46", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "47", + "name": "default", + "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, + "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/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.default", + "decorators": [] + }, + "parameters": [ + { + "$id": "52", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "53", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "54", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.default" }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "232" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray" - } - ], - "parameters": [ - { - "$id": "233", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "234", - "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": "235", - "type": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header", - "apiVersions": [], - "parent": { - "$ref": "55" - } - }, - { - "$id": "237", - "kind": "client", - "name": "ResponseHeader", - "namespace": "Encode.Datetime.ResponseHeader", - "methods": [ - { - "$id": "238", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "239", - "name": "default", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "240", - "statusCodes": [ - 204 + { + "$id": "55", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "56", + "name": "rfc3339", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "57", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "58", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "59", + "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 + } + ], + "responses": [ + { + "$id": "60", + "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": [] + }, + "parameters": [ + { + "$id": "61", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "62", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "63", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339" + }, + { + "$id": "64", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "65", + "name": "rfc7231", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "66", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "67", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "68", + "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 + } + ], + "responses": [ + { + "$id": "69", + "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": [] + }, + "parameters": [ + { + "$id": "70", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "71", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "72", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231" + }, + { + "$id": "73", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "74", + "name": "unixTimestamp", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "75", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "76", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "77", + "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": "78", + "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": [] + }, + "parameters": [ + { + "$id": "79", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "80", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "81", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp" + }, + { + "$id": "82", + "kind": "basic", + "name": "unixTimestampArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "83", + "name": "unixTimestampArray", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "84", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "85", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "86", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "87", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "88", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "89", + "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 + } + ], + "responses": [ + { + "$id": "90", + "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": [] + }, + "parameters": [ + { + "$id": "91", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "92", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "93", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "94", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "95", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "96", + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray" + } ], - "headers": [ - { - "$id": "241", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "242", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "243", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "244" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default" - }, - { - "$id": "245", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "246", - "name": "rfc3339", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "247", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Query", + "apiVersions": [], + "parent": { + "$ref": "44" + } + }, + { + "$id": "97", + "kind": "client", + "name": "Property", + "namespace": "Encode.Datetime.Property", + "methods": [ + { + "$id": "98", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "99", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "100", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "101", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "102", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "103", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "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": [] + }, + "parameters": [ + { + "$id": "104", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "105", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "106", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.default" + }, + { + "$id": "107", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "108", + "name": "rfc3339", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "109", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "110", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "111", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "112", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "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": [] + }, + "parameters": [ + { + "$id": "113", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "114", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "115", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339" + }, + { + "$id": "116", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "117", + "name": "rfc7231", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "118", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "119", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "120", + "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": "121", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "122", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "123", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "124", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231" + }, + { + "$id": "125", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "126", + "name": "unixTimestamp", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "127", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "129", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "130", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "33" + }, + "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": [] + }, + "parameters": [ + { + "$id": "131", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "132", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "133", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "33" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp" + }, + { + "$id": "134", + "kind": "basic", + "name": "unixTimestampArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "135", + "name": "unixTimestampArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "136", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "137", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "138", + "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": "139", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "37" + }, + "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": [] + }, + "parameters": [ + { + "$id": "140", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "37" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "141", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "142", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "37" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray" + } ], - "headers": [ - { - "$id": "248", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "249", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/rfc3339", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "251" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339" - }, - { - "$id": "252", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "253", - "name": "rfc7231", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "254", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Property", + "apiVersions": [], + "parent": { + "$ref": "44" + } + }, + { + "$id": "143", + "kind": "client", + "name": "Header", + "namespace": "Encode.Datetime.Header", + "methods": [ + { + "$id": "144", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "145", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "146", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "147", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "148", + "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": "149", + "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": [] + }, + "parameters": [ + { + "$id": "150", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "151", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "152", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.default" + }, + { + "$id": "153", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "154", + "name": "rfc3339", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "155", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "156", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "157", + "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": "158", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/rfc3339", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", + "decorators": [] + }, + "parameters": [ + { + "$id": "159", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "160", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "161", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339" + }, + { + "$id": "162", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "163", + "name": "rfc7231", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "164", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "165", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "166", + "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": "167", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/rfc7231", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", + "decorators": [] + }, + "parameters": [ + { + "$id": "168", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "169", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "170", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231" + }, + { + "$id": "171", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "172", + "name": "unixTimestamp", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "173", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "174", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "175", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "176", + "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": [] + }, + "parameters": [ + { + "$id": "177", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "178", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "179", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp" + }, + { + "$id": "180", + "kind": "basic", + "name": "unixTimestampArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "181", + "name": "unixTimestampArray", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "182", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "183", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "184", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "185", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "186", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "187", + "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": "188", + "statusCodes": [ + 204 + ], + "headers": [], + "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": [] + }, + "parameters": [ + { + "$id": "189", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "190", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "191", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "192", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "193", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "194", + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray" + } ], - "headers": [ - { - "$id": "255", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "256", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/rfc7231", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "258" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231" - }, - { - "$id": "259", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "260", - "name": "unixTimestamp", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "261", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Header", + "apiVersions": [], + "parent": { + "$ref": "44" + } + }, + { + "$id": "195", + "kind": "client", + "name": "ResponseHeader", + "namespace": "Encode.Datetime.ResponseHeader", + "methods": [ + { + "$id": "196", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "197", + "name": "default", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "198", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "199", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "200", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default" + }, + { + "$id": "201", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "202", + "name": "rfc3339", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "203", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "204", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "205", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339" + }, + { + "$id": "206", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "207", + "name": "rfc7231", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "208", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "209", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "210", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231" + }, + { + "$id": "211", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "212", + "name": "unixTimestamp", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "213", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "214", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "215", + "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": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp" + } ], - "headers": [ - { - "$id": "262", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "263", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "264", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/unix-timestamp", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "265" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp" - } - ], - "parameters": [ - { - "$id": "266", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "267", - "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": "268", - "type": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", - "apiVersions": [], - "parent": { - "$ref": "55" - } + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "apiVersions": [], + "parent": { + "$ref": "44" + } + } + ] } - ] - } - ] + ] } 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 ef1ed847bda..25ffb3c84b0 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 @@ -1,2917 +1,2858 @@ { - "$id": "1", - "name": "Encode.Duration", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "defaultContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "defaultContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "iso8601ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "iso8601ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "int32SecondsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "int32SecondsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "floatSecondsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "floatSecondsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "float64SecondsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "float64SecondsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "floatSecondsArrayContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "floatSecondsArrayContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "26", - "kind": "model", - "name": "DefaultDurationProperty", - "namespace": "Encode.Duration.Property", - "crossLanguageDefinitionId": "Encode.Duration.Property.DefaultDurationProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Encode.Duration", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "27", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "28", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "1", + "kind": "constant", + "name": "defaultContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.DefaultDurationProperty.value", - "serializationOptions": { - "$id": "30", - "json": { - "$id": "31", - "name": "value" - } - } - } - ] - }, - { - "$id": "32", - "kind": "model", - "name": "ISO8601DurationProperty", - "namespace": "Encode.Duration.Property", - "crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "33", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "34", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "3", + "kind": "constant", + "name": "defaultContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty.value", - "serializationOptions": { - "$id": "36", - "json": { - "$id": "37", - "name": "value" - } - } - } - ] - }, - { - "$id": "38", - "kind": "model", - "name": "Int32SecondsDurationProperty", - "namespace": "Encode.Duration.Property", - "crossLanguageDefinitionId": "Encode.Duration.Property.Int32SecondsDurationProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "39", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "40", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "41", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "5", + "kind": "constant", + "name": "iso8601ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.Int32SecondsDurationProperty.value", - "serializationOptions": { - "$id": "42", - "json": { - "$id": "43", - "name": "value" - } - } - } - ] - }, - { - "$id": "44", - "kind": "model", - "name": "FloatSecondsDurationProperty", - "namespace": "Encode.Duration.Property", - "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "45", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "46", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "47", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] + "$id": "7", + "kind": "constant", + "name": "iso8601ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty.value", - "serializationOptions": { - "$id": "48", - "json": { - "$id": "49", - "name": "value" - } - } - } - ] - }, - { - "$id": "50", - "kind": "model", - "name": "Float64SecondsDurationProperty", - "namespace": "Encode.Duration.Property", - "crossLanguageDefinitionId": "Encode.Duration.Property.Float64SecondsDurationProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "51", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "52", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "53", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] + "$id": "9", + "kind": "constant", + "name": "int32SecondsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.Float64SecondsDurationProperty.value", - "serializationOptions": { - "$id": "54", - "json": { - "$id": "55", - "name": "value" - } - } - } - ] - }, - { - "$id": "56", - "kind": "model", - "name": "FloatSecondsDurationArrayProperty", - "namespace": "Encode.Duration.Property", - "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationArrayProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "57", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "58", - "kind": "array", - "name": "Array1", + "$id": "11", + "kind": "constant", + "name": "int32SecondsContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "59", - "kind": "duration", - "name": "Float32Duration", - "encode": "seconds", - "wireType": { - "$id": "60", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Property.Float32Duration", - "baseType": { - "$id": "61", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "62", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationArrayProperty.value", - "serializationOptions": { - "$id": "63", - "json": { - "$id": "64", - "name": "value" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "65", - "kind": "client", - "name": "DurationClient", - "namespace": "Encode.Duration", - "doc": "Test for encode decorator on duration.", - "methods": [], - "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" + "$id": "13", + "kind": "constant", + "name": "floatSecondsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "70", - "kind": "client", - "name": "Query", - "namespace": "Encode.Duration.Query", - "methods": [ - { - "$id": "71", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "72", - "name": "default", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "73", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "74", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "75", - "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": "76", - "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", + "$id": "15", + "kind": "constant", + "name": "floatSecondsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "77", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "78", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "79", - "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 - } - ], - "response": { - "$id": "80" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.default" }, - { - "$id": "81", - "kind": "basic", - "name": "iso8601", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "82", - "name": "iso8601", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "83", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "84", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "85", - "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": "86", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "float64SecondsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "87", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "88", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "89", - "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 - } - ], - "response": { - "$id": "90" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601" }, - { - "$id": "91", - "kind": "basic", - "name": "int32Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "92", - "name": "int32Seconds", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "93", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "94", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "95", - "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": "96", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "float64SecondsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "97", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "98", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "99", - "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 - } - ], - "response": { - "$id": "100" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds" }, - { - "$id": "101", - "kind": "basic", - "name": "floatSeconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "102", - "name": "floatSeconds", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "103", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "104", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "105", - "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": "106", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "21", + "kind": "constant", + "name": "floatSecondsArrayContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "107", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "108", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "109", - "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 - } - ], - "response": { - "$id": "110" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds" }, - { - "$id": "111", - "kind": "basic", - "name": "float64Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "112", - "name": "float64Seconds", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "113", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "114", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "115", - "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": "116", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "floatSecondsArrayContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "117", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "118", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "119", - "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 - } - ], - "response": { - "$id": "120" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds" }, - { - "$id": "121", - "kind": "basic", - "name": "int32SecondsArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "122", - "name": "int32SecondsArray", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "123", - "name": "input", - "nameInRequest": "input", + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "25", + "kind": "model", + "name": "DefaultDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.DefaultDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "26", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "124", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "125", + "$id": "27", "kind": "duration", - "name": "Int32Duration", - "encode": "seconds", + "name": "duration", + "encode": "ISO8601", "wireType": { - "$id": "126", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", - "baseType": { - "$id": "127", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "128", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] }, + "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "129", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Encode.Duration.Property.DefaultDurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + } + ] + }, + { + "$id": "29", + "kind": "model", + "name": "ISO8601DurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "130", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "131", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "132", - "kind": "duration", - "name": "Int32Duration", - "encode": "seconds", - "wireType": { - "$id": "133", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", - "baseType": { - "$id": "134", + "$id": "30", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "31", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "32", + "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, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "136" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray" - } - ], - "parameters": [ - { - "$id": "137", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "138", - "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": "139", - "type": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Query", - "apiVersions": [], - "parent": { - "$ref": "65" - } + ] }, { - "$id": "141", - "kind": "client", - "name": "Property", - "namespace": "Encode.Duration.Property", - "methods": [ - { - "$id": "142", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "143", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "144", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "145", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "146", - "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": "147", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" - }, - "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": [] - }, - "parameters": [ - { - "$id": "148", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "149", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "150", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "151", - "type": { - "$ref": "26" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.default" - }, - { - "$id": "152", - "kind": "basic", - "name": "iso8601", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "153", - "name": "iso8601", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "154", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "155", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "156", - "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": "157", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "32" - }, - "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": [] - }, - "parameters": [ - { - "$id": "158", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "32" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "$id": "33", + "kind": "model", + "name": "Int32SecondsDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.Int32SecondsDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "159", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "160", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "161", - "type": { - "$ref": "32" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601" - }, - { - "$id": "162", - "kind": "basic", - "name": "int32Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "163", - "name": "int32Seconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "164", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "165", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "166", - "name": "body", - "nameInRequest": "body", + "$id": "34", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$ref": "38" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "167", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "38" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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": [] - }, - "parameters": [ - { - "$id": "168", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "38" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "169", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "170", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "171", - "type": { - "$ref": "38" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds" - }, - { - "$id": "172", - "kind": "basic", - "name": "floatSeconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "173", - "name": "floatSeconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "174", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "175", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "176", - "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": "177", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "44" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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": [] - }, - "parameters": [ - { - "$id": "178", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "44" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "179", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "180", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "181", - "type": { - "$ref": "44" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds" - }, - { - "$id": "182", - "kind": "basic", - "name": "float64Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "183", - "name": "float64Seconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "184", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "185", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "186", - "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": "187", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "50" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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": [] - }, - "parameters": [ - { - "$id": "188", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "50" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "189", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "190", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "191", - "type": { - "$ref": "50" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds" - }, - { - "$id": "192", - "kind": "basic", - "name": "floatSecondsArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "193", - "name": "floatSecondsArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "194", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "195", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "196", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "56" + "$id": "35", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "36", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "197", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "56" - }, - "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": [] - }, - "parameters": [ - { - "$id": "198", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "56" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "199", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "200", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "201", - "type": { - "$ref": "56" + "crossLanguageDefinitionId": "Encode.Duration.Property.Int32SecondsDurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray" - } - ], - "parameters": [ - { - "$id": "202", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "203", - "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": "204", - "type": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property", - "apiVersions": [], - "parent": { - "$ref": "65" - } + ] }, { - "$id": "206", - "kind": "client", - "name": "Header", - "namespace": "Encode.Duration.Header", - "methods": [ - { - "$id": "207", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "208", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "209", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "210", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "211", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "212", - "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": [] - }, - "parameters": [ - { - "$id": "213", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "214", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "215", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "216" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.default" - }, - { - "$id": "217", - "kind": "basic", - "name": "iso8601", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "218", - "name": "iso8601", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "219", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "220", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "222", - "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": [] - }, - "parameters": [ + "$id": "37", + "kind": "model", + "name": "FloatSecondsDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "223", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "224", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "225", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "226" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601" - }, - { - "$id": "227", - "kind": "basic", - "name": "iso8601Array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "228", - "name": "iso8601Array", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "229", - "name": "duration", - "nameInRequest": "duration", + "$id": "38", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "230", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "231", + "$id": "39", "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", + "name": "duration", + "encode": "seconds", "wireType": { - "$id": "232", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "233", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "234", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "40", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] }, + "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "235", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + } + ] + }, + { + "$id": "41", + "kind": "model", + "name": "Float64SecondsDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.Float64SecondsDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "236", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "237", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "238", - "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", - "wireType": { - "$id": "239", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "240", + "$id": "42", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "43", "kind": "duration", "name": "duration", - "encode": "ISO8601", + "encode": "seconds", "wireType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "44", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] }, "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] - }, - "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "242" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array" - }, - { - "$id": "243", - "kind": "basic", - "name": "int32Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "244", - "name": "int32Seconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "246", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "247", - "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", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "248", - "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": [] - }, - "parameters": [ - { - "$id": "249", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "250", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "251", - "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 + "crossLanguageDefinitionId": "Encode.Duration.Property.Float64SecondsDurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "252" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds" - }, - { - "$id": "253", - "kind": "basic", - "name": "floatSeconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "254", - "name": "floatSeconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "255", - "name": "duration", - "nameInRequest": "duration", + ] + }, + { + "$id": "45", + "kind": "model", + "name": "FloatSecondsDurationArrayProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "46", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "256", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "257", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", + "$id": "47", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "48", + "kind": "duration", + "name": "Float32Duration", + "encode": "seconds", + "wireType": { + "$id": "49", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Property.Float32Duration", + "baseType": { + "$id": "50", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "258", - "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": [] - }, - "parameters": [ - { - "$id": "259", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "260", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "261", - "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 + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "262" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds" - }, - { - "$id": "263", - "kind": "basic", - "name": "float64Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "264", - "name": "float64Seconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "265", - "name": "duration", - "nameInRequest": "duration", + ] + } + ], + "clients": [ + { + "$id": "52", + "kind": "client", + "name": "DurationClient", + "namespace": "Encode.Duration", + "doc": "Test for encode decorator on duration.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "266", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "267", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration", + "apiVersions": [], + "children": [ + { + "$id": "53", + "kind": "client", + "name": "Query", + "namespace": "Encode.Duration.Query", + "methods": [ + { + "$id": "54", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "55", + "name": "default", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "56", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "57", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "58", + "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": "59", + "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": [] + }, + "parameters": [ + { + "$id": "60", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "61", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "62", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.default" + }, + { + "$id": "63", + "kind": "basic", + "name": "iso8601", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "64", + "name": "iso8601", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "65", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "66", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "67", + "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": "68", + "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": [] + }, + "parameters": [ + { + "$id": "69", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "70", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "71", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601" + }, + { + "$id": "72", + "kind": "basic", + "name": "int32Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "73", + "name": "int32Seconds", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "74", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "75", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "76", + "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": "77", + "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": [] + }, + "parameters": [ + { + "$id": "78", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "79", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "80", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds" + }, + { + "$id": "81", + "kind": "basic", + "name": "floatSeconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "82", + "name": "floatSeconds", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "83", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "84", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "85", + "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": "86", + "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": [] + }, + "parameters": [ + { + "$id": "87", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "88", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "89", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds" + }, + { + "$id": "90", + "kind": "basic", + "name": "float64Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "91", + "name": "float64Seconds", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "92", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "93", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "94", + "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": "95", + "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": [] + }, + "parameters": [ + { + "$id": "96", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "97", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "98", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds" + }, + { + "$id": "99", + "kind": "basic", + "name": "int32SecondsArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "100", + "name": "int32SecondsArray", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "101", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "102", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "103", + "kind": "duration", + "name": "Int32Duration", + "encode": "seconds", + "wireType": { + "$id": "104", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", + "baseType": { + "$id": "105", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "106", + "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 + } + ], + "responses": [ + { + "$id": "107", + "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": [] + }, + "parameters": [ + { + "$id": "108", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "109", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "110", + "kind": "duration", + "name": "Int32Duration", + "encode": "seconds", + "wireType": { + "$id": "111", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", + "baseType": { + "$id": "112", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "113", + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "268", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Encode.Duration.Query", + "apiVersions": [], + "parent": { + "$ref": "52" + } + }, + { + "$id": "114", + "kind": "client", + "name": "Property", + "namespace": "Encode.Duration.Property", + "methods": [ + { + "$id": "115", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "116", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "117", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "118", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "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": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "120", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "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": [] + }, + "parameters": [ + { + "$id": "121", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "122", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "123", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.default" + }, + { + "$id": "124", + "kind": "basic", + "name": "iso8601", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "125", + "name": "iso8601", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "126", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "127", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "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": "129", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "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": [] + }, + "parameters": [ + { + "$id": "130", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "131", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "132", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601" + }, + { + "$id": "133", + "kind": "basic", + "name": "int32Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "134", + "name": "int32Seconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "135", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "136", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "137", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "138", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "33" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "139", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "140", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "141", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "33" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds" + }, + { + "$id": "142", + "kind": "basic", + "name": "floatSeconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "143", + "name": "floatSeconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "144", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "145", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "146", + "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": "147", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "37" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "148", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "37" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "149", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "150", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "37" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds" + }, + { + "$id": "151", + "kind": "basic", + "name": "float64Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "152", + "name": "float64Seconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "153", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "154", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "155", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "41" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "156", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "41" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "157", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "41" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "158", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "159", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "41" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds" + }, + { + "$id": "160", + "kind": "basic", + "name": "floatSecondsArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "161", + "name": "floatSecondsArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "162", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "163", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "164", + "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": "165", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "45" + }, + "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": [] + }, + "parameters": [ + { + "$id": "166", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "167", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "168", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "45" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Property", + "apiVersions": [], + "parent": { + "$ref": "52" + } + }, { - "$id": "269", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "270", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "271", - "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 + "$id": "169", + "kind": "client", + "name": "Header", + "namespace": "Encode.Duration.Header", + "methods": [ + { + "$id": "170", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "171", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "172", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "173", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "175", + "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": [] + }, + "parameters": [ + { + "$id": "176", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "177", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.default" + }, + { + "$id": "179", + "kind": "basic", + "name": "iso8601", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "180", + "name": "iso8601", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "181", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "182", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "184", + "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": [] + }, + "parameters": [ + { + "$id": "185", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "186", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601" + }, + { + "$id": "188", + "kind": "basic", + "name": "iso8601Array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "189", + "name": "iso8601Array", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "190", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "191", + "kind": "array", + "name": "Array2", + "valueType": { + "$id": "192", + "kind": "duration", + "name": "Iso8601Duration", + "encode": "ISO8601", + "wireType": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", + "baseType": { + "$id": "194", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "195", + "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 + } + ], + "responses": [ + { + "$id": "196", + "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": [] + }, + "parameters": [ + { + "$id": "197", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "198", + "kind": "array", + "name": "Array2", + "valueType": { + "$id": "199", + "kind": "duration", + "name": "Iso8601Duration", + "encode": "ISO8601", + "wireType": { + "$id": "200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", + "baseType": { + "$id": "201", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "202", + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array" + }, + { + "$id": "203", + "kind": "basic", + "name": "int32Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "204", + "name": "int32Seconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "205", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "206", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "207", + "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": "208", + "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": [] + }, + "parameters": [ + { + "$id": "209", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "210", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "211", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds" + }, + { + "$id": "212", + "kind": "basic", + "name": "floatSeconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "213", + "name": "floatSeconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "214", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "215", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "216", + "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": "217", + "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": [] + }, + "parameters": [ + { + "$id": "218", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "219", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "220", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds" + }, + { + "$id": "221", + "kind": "basic", + "name": "float64Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "222", + "name": "float64Seconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "223", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "224", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "225", + "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": "226", + "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": [] + }, + "parameters": [ + { + "$id": "227", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "228", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "229", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Header", + "apiVersions": [], + "parent": { + "$ref": "52" + } } - ], - "response": { - "$id": "272" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds" - } - ], - "parameters": [ - { - "$id": "273", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "274", - "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": "275", - "type": { - "$id": "276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header", - "apiVersions": [], - "parent": { - "$ref": "65" - } + ] } - ] - } - ] + ] } 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 8fb79bb7ac7..514a2d0deb9 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 @@ -1,787 +1,769 @@ { - "$id": "1", - "name": "Encode.Numeric", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "safeintAsStringContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "safeintAsStringContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "uint32AsStringOptionalContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "uint32AsStringOptionalContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "uint8AsStringContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "uint8AsStringContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "14", - "kind": "model", - "name": "SafeintAsStringProperty", - "namespace": "Encode.Numeric.Property", - "crossLanguageDefinitionId": "Encode.Numeric.Property.SafeintAsStringProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Encode.Numeric", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "15", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "16", - "kind": "safeint", - "name": "safeint", - "encode": "string", - "crossLanguageDefinitionId": "TypeSpec.safeint", + "$id": "1", + "kind": "constant", + "name": "safeintAsStringContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.SafeintAsStringProperty.value", - "serializationOptions": { - "$id": "17", - "json": { - "$id": "18", - "name": "value" - } - } - } - ] - }, - { - "$id": "19", - "kind": "model", - "name": "Uint32AsStringProperty", - "namespace": "Encode.Numeric.Property", - "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint32AsStringProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "20", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "21", - "kind": "uint32", - "name": "uint32", - "encode": "string", - "crossLanguageDefinitionId": "TypeSpec.uint32", + "$id": "3", + "kind": "constant", + "name": "safeintAsStringContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint32AsStringProperty.value", - "serializationOptions": { - "$id": "22", - "json": { - "$id": "23", - "name": "value" - } - } - } - ] - }, - { - "$id": "24", - "kind": "model", - "name": "Uint8AsStringProperty", - "namespace": "Encode.Numeric.Property", - "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint8AsStringProperty", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "25", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "26", - "kind": "uint8", - "name": "uint8", - "encode": "string", - "crossLanguageDefinitionId": "TypeSpec.uint8", + "$id": "5", + "kind": "constant", + "name": "uint32AsStringOptionalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint8AsStringProperty.value", - "serializationOptions": { - "$id": "27", - "json": { - "$id": "28", - "name": "value" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "29", - "kind": "client", - "name": "NumericClient", - "namespace": "Encode.Numeric", - "doc": "Test for encode decorator on integer.", - "methods": [], - "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" + "$id": "7", + "kind": "constant", + "name": "uint32AsStringOptionalContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "uint8AsStringContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "uint8AsStringContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "34", - "kind": "client", - "name": "Property", - "namespace": "Encode.Numeric.Property", - "methods": [ - { - "$id": "35", - "kind": "basic", - "name": "safeintAsString", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "safeintAsString", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "37", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "38", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "39", + "$id": "13", + "kind": "model", + "name": "SafeintAsStringProperty", + "namespace": "Encode.Numeric.Property", + "crossLanguageDefinitionId": "Encode.Numeric.Property.SafeintAsStringProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "14", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$ref": "14" + "$id": "15", + "kind": "safeint", + "name": "safeint", + "encode": "string", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "40", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "14" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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": [] - }, - "parameters": [ - { - "$id": "41", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "42", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "43", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "44", - "type": { - "$ref": "14" + "crossLanguageDefinitionId": "Encode.Numeric.Property.SafeintAsStringProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString" - }, - { - "$id": "45", - "kind": "basic", - "name": "uint32AsStringOptional", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "46", - "name": "uint32AsStringOptional", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "47", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "48", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "49", + ] + }, + { + "$id": "16", + "kind": "model", + "name": "Uint32AsStringProperty", + "namespace": "Encode.Numeric.Property", + "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint32AsStringProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "17", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$ref": "19" + "$id": "18", + "kind": "uint32", + "name": "uint32", + "encode": "string", + "crossLanguageDefinitionId": "TypeSpec.uint32", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "50", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "19" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "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": [] - }, - "parameters": [ - { - "$id": "51", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "52", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "53", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint32AsStringProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "54", - "type": { - "$ref": "19" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional" - }, - { - "$id": "55", - "kind": "basic", - "name": "uint8AsString", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "56", - "name": "uint8AsString", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "57", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "19", + "kind": "model", + "name": "Uint8AsStringProperty", + "namespace": "Encode.Numeric.Property", + "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint8AsStringProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "20", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$ref": "10" + "$id": "21", + "kind": "uint8", + "name": "uint8", + "encode": "string", + "crossLanguageDefinitionId": "TypeSpec.uint8", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "58", - "name": "accept", - "nameInRequest": "Accept", + "crossLanguageDefinitionId": "Encode.Numeric.Property.Uint8AsStringProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "22", + "kind": "client", + "name": "NumericClient", + "namespace": "Encode.Numeric", + "doc": "Test for encode decorator on integer.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "12" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "59", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "24" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "60", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "24" - }, - "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": [] - }, - "parameters": [ - { - "$id": "61", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "24" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "62", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "63", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - ], - "response": { - "$id": "64", - "type": { - "$ref": "24" + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Numeric", + "apiVersions": [], + "children": [ + { + "$id": "23", + "kind": "client", + "name": "Property", + "namespace": "Encode.Numeric.Property", + "methods": [ + { + "$id": "24", + "kind": "basic", + "name": "safeintAsString", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "25", + "name": "safeintAsString", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "26", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "27", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "28", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "13" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "29", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "13" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "30", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "13" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "31", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "32", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "13" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString" + }, + { + "$id": "33", + "kind": "basic", + "name": "uint32AsStringOptional", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "34", + "name": "uint32AsStringOptional", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "35", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "36", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "37", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "38", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "16" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "39", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "40", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "41", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "16" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional" + }, + { + "$id": "42", + "kind": "basic", + "name": "uint8AsString", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "43", + "name": "uint8AsString", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "44", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "45", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "46", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "47", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "19" + }, + "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": [] + }, + "parameters": [ + { + "$id": "48", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "49", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "50", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "19" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Numeric.Property", + "apiVersions": [], + "parent": { + "$ref": "22" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString" - } - ], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property", - "apiVersions": [], - "parent": { - "$ref": "29" - } + ] } - ] - } - ] + ] } 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 dfac51f947c..ce12f0d23e8 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 @@ -1,486 +1,465 @@ { - "$id": "1", - "name": "Parameters.Basic", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "simpleContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "simpleContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "6", - "kind": "model", - "name": "User", - "namespace": "Parameters.Basic.ExplicitBody", - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.User", - "usage": "Input,Json", - "doc": "This is a simple model.", - "decorators": [], - "properties": [ + "name": "Parameters.Basic", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "7", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "8", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.User.name", - "serializationOptions": { - "$id": "9", - "json": { - "$id": "10", - "name": "name" - } - } - } - ] - }, - { - "$id": "11", - "kind": "model", - "name": "SimpleRequest", - "namespace": "Parameters.Basic.ImplicitBody", - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "12", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "simpleContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.name", - "serializationOptions": { - "$id": "14", - "json": { - "$id": "15", - "name": "name" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "16", - "kind": "client", - "name": "BasicClient", - "namespace": "Parameters.Basic", - "doc": "Test for basic parameters cases.", - "methods": [], - "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" + "$id": "3", + "kind": "constant", + "name": "simpleContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "21", - "kind": "client", - "name": "ExplicitBody", - "namespace": "Parameters.Basic.ExplicitBody", - "methods": [ - { - "$id": "22", - "kind": "basic", - "name": "simple", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "23", - "name": "simple", - "resourceName": "ExplicitBody", - "accessibility": "public", - "parameters": [ - { - "$id": "24", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "25", - "name": "body", - "nameInRequest": "body", + "$id": "5", + "kind": "model", + "name": "User", + "namespace": "Parameters.Basic.ExplicitBody", + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.User", + "usage": "Input,Json", + "doc": "This is a simple model.", + "decorators": [], + "properties": [ + { + "$id": "6", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "6" + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "26", - "statusCodes": [ - 204 - ], - "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": [] - }, - "parameters": [ - { - "$id": "27", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "6" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "28", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.User.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "29" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple" - } - ], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", - "apiVersions": [], - "parent": { - "$ref": "16" - } + ] }, { - "$id": "34", - "kind": "client", - "name": "ImplicitBody", - "namespace": "Parameters.Basic.ImplicitBody", - "methods": [ - { - "$id": "35", - "kind": "basic", - "name": "simple", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "simple", - "resourceName": "ImplicitBody", - "accessibility": "public", - "parameters": [ - { - "$id": "37", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "8", + "kind": "model", + "name": "SimpleRequest", + "namespace": "Parameters.Basic.ImplicitBody", + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "9", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "4" + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "38", - "name": "simpleRequest", - "nameInRequest": "simpleRequest", + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "11", + "kind": "client", + "name": "BasicClient", + "namespace": "Parameters.Basic", + "doc": "Test for basic parameters cases.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "11" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "39", - "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": [] - }, - "parameters": [ + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic", + "apiVersions": [], + "children": [ { - "$id": "40", - "name": "name", - "nameInRequest": "name", - "type": { - "$ref": "13" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "12", + "kind": "client", + "name": "ExplicitBody", + "namespace": "Parameters.Basic.ExplicitBody", + "methods": [ + { + "$id": "13", + "kind": "basic", + "name": "simple", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "14", + "name": "simple", + "resourceName": "ExplicitBody", + "accessibility": "public", + "parameters": [ + { + "$id": "15", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "16", + "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": "17", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "18", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "19", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", + "apiVersions": [], + "parent": { + "$ref": "11" + } }, { - "$id": "41", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "20", + "kind": "client", + "name": "ImplicitBody", + "namespace": "Parameters.Basic.ImplicitBody", + "methods": [ + { + "$id": "21", + "kind": "basic", + "name": "simple", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "22", + "name": "simple", + "resourceName": "ImplicitBody", + "accessibility": "public", + "parameters": [ + { + "$id": "23", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "24", + "name": "simpleRequest", + "nameInRequest": "simpleRequest", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "25", + "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": [] + }, + "parameters": [ + { + "$id": "26", + "name": "name", + "nameInRequest": "name", + "type": { + "$ref": "10" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "27", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "apiVersions": [], + "parent": { + "$ref": "11" + } } - ], - "response": { - "$id": "42" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple" - } - ], - "parameters": [ - { - "$id": "43", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "45", - "type": { - "$id": "46", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", - "apiVersions": [], - "parent": { - "$ref": "16" - } + ] } - ] - } - ] + ] } 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 e098ca9f18d..4ccceee1553 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 @@ -1,669 +1,650 @@ { - "$id": "1", - "name": "Parameters.BodyOptionality", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "requiredExplicitContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "requiredImplicitContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "setContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "omitContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "10", - "kind": "model", - "name": "BodyModel", - "namespace": "Parameters.BodyOptionality", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.BodyModel", - "usage": "Input,Spread,Json", - "decorators": [], - "properties": [ + "name": "Parameters.BodyOptionality", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "11", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "requiredExplicitContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.BodyModel.name", - "serializationOptions": { - "$id": "13", - "json": { - "$id": "14", - "name": "name" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "15", - "kind": "client", - "name": "BodyOptionalityClient", - "namespace": "Parameters.BodyOptionality", - "doc": "Test describing optionality of the request body.", - "methods": [ + }, { - "$id": "16", - "kind": "basic", - "name": "requiredExplicit", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "17", - "name": "requiredExplicit", - "resourceName": "BodyOptionality", - "accessibility": "public", - "parameters": [ - { - "$id": "18", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "19", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "20", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/parameters/body-optionality/required-explicit", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit", - "decorators": [] - }, - "parameters": [ - { - "$id": "21", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "3", + "kind": "constant", + "name": "requiredImplicitContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "22", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "23" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit" + "value": "application/json", + "decorators": [] }, { - "$id": "24", - "kind": "basic", - "name": "requiredImplicit", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "25", - "name": "requiredImplicit", - "resourceName": "BodyOptionality", - "accessibility": "public", - "parameters": [ - { - "$id": "26", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "27", - "name": "bodyModel", - "nameInRequest": "bodyModel", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "28", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/parameters/body-optionality/required-implicit", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit", - "decorators": [] - }, - "parameters": [ - { - "$id": "29", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "30", + "$id": "5", + "kind": "constant", + "name": "setContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", "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 }, - { - "$id": "31", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "32" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit" - } - ], - "parameters": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "33", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "34", - "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": "35", - "type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "7", + "kind": "constant", + "name": "omitContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "37", - "kind": "client", - "name": "OptionalExplicit", - "namespace": "Parameters.BodyOptionality.OptionalExplicit", - "methods": [ - { - "$id": "38", - "kind": "basic", - "name": "set", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "39", - "name": "set", - "resourceName": "OptionalExplicit", - "accessibility": "public", - "parameters": [ - { - "$id": "40", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "9", + "kind": "model", + "name": "BodyModel", + "namespace": "Parameters.BodyOptionality", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.BodyModel", + "usage": "Input,Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "10", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "6" + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "41", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.BodyModel.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "12", + "kind": "client", + "name": "BodyOptionalityClient", + "namespace": "Parameters.BodyOptionality", + "doc": "Test describing optionality of the request body.", + "methods": [ + { + "$id": "13", + "kind": "basic", + "name": "requiredExplicit", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "14", + "name": "requiredExplicit", + "resourceName": "BodyOptionality", + "accessibility": "public", + "parameters": [ + { + "$id": "15", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "16", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "17", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/parameters/body-optionality/required-explicit", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "42", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "18", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "19", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "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": "/parameters/body-optionality/optional-explicit/set", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", - "decorators": [] - }, - "parameters": [ - { - "$id": "43", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit" }, { - "$id": "44", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "45" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set" - }, - { - "$id": "46", - "kind": "basic", - "name": "omit", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "47", - "name": "omit", - "resourceName": "OptionalExplicit", - "accessibility": "public", - "parameters": [ - { - "$id": "48", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" + "$id": "20", + "kind": "basic", + "name": "requiredImplicit", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "21", + "name": "requiredImplicit", + "resourceName": "BodyOptionality", + "accessibility": "public", + "parameters": [ + { + "$id": "22", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "23", + "name": "bodyModel", + "nameInRequest": "bodyModel", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "24", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/parameters/body-optionality/required-implicit", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "49", - "name": "body", - "nameInRequest": "body", + "parameters": [ + { + "$id": "25", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "26", + "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 + }, + { + "$id": "27", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "10" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "50", - "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": [] - }, - "parameters": [ - { - "$id": "51", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "apiVersions": [], + "children": [ { - "$id": "52", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "28", + "kind": "client", + "name": "OptionalExplicit", + "namespace": "Parameters.BodyOptionality.OptionalExplicit", + "methods": [ + { + "$id": "29", + "kind": "basic", + "name": "set", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "30", + "name": "set", + "resourceName": "OptionalExplicit", + "accessibility": "public", + "parameters": [ + { + "$id": "31", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "32", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "33", + "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": [] + }, + "parameters": [ + { + "$id": "34", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "35", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set" + }, + { + "$id": "36", + "kind": "basic", + "name": "omit", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "37", + "name": "omit", + "resourceName": "OptionalExplicit", + "accessibility": "public", + "parameters": [ + { + "$id": "38", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "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": "9" + }, + "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": [] + }, + "parameters": [ + { + "$id": "41", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "42", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "apiVersions": [], + "parent": { + "$ref": "12" + } } - ], - "response": { - "$id": "53" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit" - } - ], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", - "apiVersions": [], - "parent": { - "$ref": "15" - } + ] } - ] - } - ] + ] } 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 59a5830e94e..0d1081296a1 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 @@ -1,651 +1,628 @@ { - "$id": "1", - "name": "Parameters.CollectionFormat", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "CollectionFormatClient", - "namespace": "Parameters.CollectionFormat", - "doc": "Test for collectionFormat.", - "methods": [], - "parameters": [ + "name": "Parameters.CollectionFormat", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat", - "apiVersions": [], - "children": [ - { - "$id": "7", - "kind": "client", - "name": "Query", - "namespace": "Parameters.CollectionFormat.Query", - "methods": [ - { - "$id": "8", - "kind": "basic", - "name": "multi", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "9", - "name": "multi", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "10", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "11", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "12", - "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": "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": [] - }, - "parameters": [ + "$id": "1", + "kind": "client", + "name": "CollectionFormatClient", + "namespace": "Parameters.CollectionFormat", + "doc": "Test for collectionFormat.", + "methods": [], + "parameters": [ { - "$id": "14", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "15", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "16", - "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 - } - ], - "response": { - "$id": "17" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi" - }, - { - "$id": "18", - "kind": "basic", - "name": "ssv", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "19", - "name": "ssv", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "20", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "21", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": " ", "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "23", - "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": [] - }, - "parameters": [ - { - "$id": "24", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "25", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "26", - "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 - } - ], - "response": { - "$id": "27" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv" - }, - { - "$id": "28", - "kind": "basic", - "name": "pipes", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "29", - "name": "pipes", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "30", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "31", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": 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/pipes", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", - "decorators": [] - }, - "parameters": [ - { - "$id": "34", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "35", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "36", - "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 + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - ], - "response": { - "$id": "37" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes" - }, - { - "$id": "38", - "kind": "basic", - "name": "csv", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "39", - "name": "csv", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "40", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "41", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "42", - "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": "43", - "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": [] - }, - "parameters": [ + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "apiVersions": [], + "children": [ { - "$id": "44", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "45", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "46", - "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 - } - ], - "response": { - "$id": "47" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv" - } - ], - "parameters": [ - { - "$id": "48", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "50", - "type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", - "apiVersions": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "52", - "kind": "client", - "name": "Header", - "namespace": "Parameters.CollectionFormat.Header", - "methods": [ - { - "$id": "53", - "kind": "basic", - "name": "csv", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "54", - "name": "csv", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "55", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "56", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "57", - "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 - } - ], - "responses": [ - { - "$id": "58", - "statusCodes": [ - 204 + "$id": "2", + "kind": "client", + "name": "Query", + "namespace": "Parameters.CollectionFormat.Query", + "methods": [ + { + "$id": "3", + "kind": "basic", + "name": "multi", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "4", + "name": "multi", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "5", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "6", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "7", + "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": "8", + "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": [] + }, + "parameters": [ + { + "$id": "9", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "10", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "11", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi" + }, + { + "$id": "12", + "kind": "basic", + "name": "ssv", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "13", + "name": "ssv", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "14", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "15", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "16", + "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": "17", + "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": [] + }, + "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, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv" + }, + { + "$id": "21", + "kind": "basic", + "name": "pipes", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "22", + "name": "pipes", + "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": "|", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "26", + "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": [] + }, + "parameters": [ + { + "$id": "27", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "28", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "29", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes" + }, + { + "$id": "30", + "kind": "basic", + "name": "csv", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "31", + "name": "csv", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "32", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "33", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "34", + "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": "35", + "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": [] + }, + "parameters": [ + { + "$id": "36", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "37", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "38", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "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": [] - }, - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "apiVersions": [], + "parent": { + "$ref": "1" + } + }, { - "$id": "59", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "60", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "39", + "kind": "client", + "name": "Header", + "namespace": "Parameters.CollectionFormat.Header", + "methods": [ + { + "$id": "40", + "kind": "basic", + "name": "csv", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "41", + "name": "csv", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "42", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "43", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "44", + "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 + } + ], + "responses": [ + { + "$id": "45", + "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": [] + }, + "parameters": [ + { + "$id": "46", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "47", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "apiVersions": [], + "parent": { + "$ref": "1" + } } - ], - "response": { - "$id": "62" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv" - } - ], - "parameters": [ - { - "$id": "63", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "64", - "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": "65", - "type": { - "$id": "66", - "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/path/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json index 37f66722a03..e4896bfdde4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json @@ -1,222 +1,213 @@ { - "$id": "1", - "name": "Parameters.Path", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "PathClient", - "namespace": "Parameters.Path", - "doc": "Test for path parameters cases.", - "methods": [ + "name": "Parameters.Path", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "normal", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "4", - "name": "normal", - "resourceName": "Path", - "accessibility": "public", - "parameters": [ - { - "$id": "5", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "1", + "kind": "client", + "name": "PathClient", + "namespace": "Parameters.Path", + "doc": "Test for path parameters cases.", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "normal", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3", + "name": "normal", + "resourceName": "Path", + "accessibility": "public", + "parameters": [ + { + "$id": "4", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "5", + "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": "6", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/path/normal/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Path.normal", + "decorators": [] + }, + "parameters": [ + { + "$id": "7", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "8", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Path.normal" }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "7", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "9", + "kind": "basic", + "name": "optional", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "10", + "name": "optional", + "resourceName": "Path", + "accessibility": "public", + "parameters": [ + { + "$id": "11", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/path/optional{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Path.optional", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Path.optional" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/path/normal/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Path.normal", - "decorators": [] - }, - "parameters": [ - { - "$id": "8", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "9", - "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 - } - ], - "response": { - "$id": "10" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Path.normal" - }, - { - "$id": "11", - "kind": "basic", - "name": "optional", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "12", - "name": "optional", - "resourceName": "Path", - "accessibility": "public", "parameters": [ - { - "$id": "13", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "responses": [ - { - "$id": "15", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/path/optional{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Path.optional", - "decorators": [] - }, - "parameters": [ - { - "$id": "16", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Path.optional" - } - ], - "parameters": [ - { - "$id": "19", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "21", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Path", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Path", - "apiVersions": [] - } - ] + ] } 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 a996c59c83a..4762a252306 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 @@ -1,2472 +1,2417 @@ { - "$id": "1", - "name": "Parameters.Spread", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "spreadAsRequestBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "spreadCompositeRequestOnlyWithBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "spreadCompositeRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "spreadCompositeRequestMixContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "spreadAsRequestBodyContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "spreadParameterWithInnerModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "spreadAsRequestParameterContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "spreadWithMultipleParametersContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "spreadParameterWithInnerAliasContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "20", - "kind": "model", - "name": "BodyParameter", - "namespace": "Parameters.Spread.Model", - "crossLanguageDefinitionId": "Parameters.Spread.Model.BodyParameter", - "usage": "Input,Spread,Json", - "doc": "This is a simple model.", - "decorators": [], - "properties": [ + "name": "Parameters.Spread", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "21", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.BodyParameter.name", - "serializationOptions": { - "$id": "23", - "json": { - "$id": "24", - "name": "name" - } - } - } - ] - }, - { - "$id": "25", - "kind": "model", - "name": "SpreadCompositeRequestMixRequest", - "namespace": "", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "26", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadCompositeRequestMix.Request.anonymous.prop", - "serializationOptions": { - "$id": "28", - "json": { - "$id": "29", - "name": "prop" - } - } - } - ] - }, - { - "$id": "30", - "kind": "model", - "name": "SpreadAsRequestBodyRequest", - "namespace": "Parameters.Spread.Alias", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "31", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.name", - "serializationOptions": { - "$id": "33", - "json": { - "$id": "34", - "name": "name" - } - } - } - ] - }, - { - "$id": "35", - "kind": "model", - "name": "SpreadParameterWithInnerModelRequest", - "namespace": "", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "36", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "spreadAsRequestBodyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadParameterWithInnerModel.Request.anonymous.name", - "serializationOptions": { - "$id": "38", - "json": { - "$id": "39", - "name": "name" - } - } - } - ] - }, - { - "$id": "40", - "kind": "model", - "name": "SpreadAsRequestParameterRequest", - "namespace": "", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + }, { - "$id": "41", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "3", + "kind": "constant", + "name": "spreadCompositeRequestOnlyWithBodyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadAsRequestParameter.Request.anonymous.name", - "serializationOptions": { - "$id": "43", - "json": { - "$id": "44", - "name": "name" - } - } - } - ] - }, - { - "$id": "45", - "kind": "model", - "name": "SpreadWithMultipleParametersRequest", - "namespace": "", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + }, { - "$id": "46", - "kind": "property", - "name": "requiredString", - "serializedName": "requiredString", - "doc": "required string", - "type": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "constant", + "name": "spreadCompositeRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredString", - "serializationOptions": { - "$id": "48", - "json": { - "$id": "49", - "name": "requiredString" - } - } }, { - "$id": "50", - "kind": "property", - "name": "optionalInt", - "serializedName": "optionalInt", - "doc": "optional int", - "type": { - "$id": "51", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "7", + "kind": "constant", + "name": "spreadCompositeRequestMixContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.optionalInt", - "serializationOptions": { - "$id": "52", - "json": { - "$id": "53", - "name": "optionalInt" - } - } }, { - "$id": "54", - "kind": "property", - "name": "requiredIntList", - "serializedName": "requiredIntList", - "doc": "required int", - "type": { - "$id": "55", - "kind": "array", - "name": "Array", + "$id": "9", + "kind": "constant", + "name": "spreadAsRequestBodyContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "56", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredIntList", - "serializationOptions": { - "$id": "57", - "json": { - "$id": "58", - "name": "requiredIntList" - } - } }, { - "$id": "59", - "kind": "property", - "name": "optionalStringList", - "serializedName": "optionalStringList", - "doc": "optional string", - "type": { - "$id": "60", - "kind": "array", - "name": "Array1", + "$id": "11", + "kind": "constant", + "name": "spreadParameterWithInnerModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.optionalStringList", - "serializationOptions": { - "$id": "62", - "json": { - "$id": "63", - "name": "optionalStringList" - } - } - } - ] - }, - { - "$id": "64", - "kind": "model", - "name": "SpreadParameterWithInnerAliasRequest", - "namespace": "", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + }, { - "$id": "65", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the Thing", - "type": { - "$id": "66", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "13", + "kind": "constant", + "name": "spreadAsRequestParameterContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.name", - "serializationOptions": { - "$id": "67", - "json": { - "$id": "68", - "name": "name" - } - } }, { - "$id": "69", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "age of the Thing", - "type": { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "15", + "kind": "constant", + "name": "spreadWithMultipleParametersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.age", - "serializationOptions": { - "$id": "71", - "json": { - "$id": "72", - "name": "age" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "73", - "kind": "client", - "name": "SpreadClient", - "namespace": "Parameters.Spread", - "doc": "Test for the spread operator.", - "methods": [], - "parameters": [ + }, { - "$id": "74", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "75", - "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": "76", - "type": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "17", + "kind": "constant", + "name": "spreadParameterWithInnerAliasContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "78", - "kind": "client", - "name": "Model", - "namespace": "Parameters.Spread.Model", - "methods": [ - { - "$id": "79", - "kind": "basic", - "name": "spreadAsRequestBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "80", - "name": "spreadAsRequestBody", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "81", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "82", - "name": "bodyParameter", - "nameInRequest": "bodyParameter", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "83", - "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": [] - }, - "parameters": [ - { - "$id": "84", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "85", - "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 - }, + "$id": "19", + "kind": "model", + "name": "BodyParameter", + "namespace": "Parameters.Spread.Model", + "crossLanguageDefinitionId": "Parameters.Spread.Model.BodyParameter", + "usage": "Input,Spread,Json", + "doc": "This is a simple model.", + "decorators": [], + "properties": [ { - "$id": "86", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "87" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody" - }, - { - "$id": "88", - "kind": "basic", - "name": "spreadCompositeRequestOnlyWithBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "89", - "name": "spreadCompositeRequestOnlyWithBody", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "90", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "20", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "4" + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "91", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Parameters.Spread.Model.BodyParameter.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "22", + "kind": "model", + "name": "SpreadCompositeRequestMixRequest", + "namespace": "", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "23", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "20" + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "92", - "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": [] - }, - "parameters": [ - { - "$id": "93", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "94", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "spreadCompositeRequestMix.Request.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "95" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody" - }, - { - "$id": "96", - "kind": "basic", - "name": "spreadCompositeRequestWithoutBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "97", - "name": "spreadCompositeRequestWithoutBody", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "98", + ] + }, + { + "$id": "25", + "kind": "model", + "name": "SpreadAsRequestBodyRequest", + "namespace": "Parameters.Spread.Alias", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "26", + "kind": "property", "name": "name", - "nameInRequest": "name", + "serializedName": "name", "type": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "100", - "name": "testHeader", - "nameInRequest": "test-header", - "type": { - "$id": "101", - "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": "102", - "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": [] - }, - "parameters": [ - { - "$id": "103", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "104", - "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": "105", - "name": "testHeader", - "nameInRequest": "test-header", - "type": { - "$id": "106", - "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 + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "107" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody" - }, - { - "$id": "108", - "kind": "basic", - "name": "spreadCompositeRequest", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "109", - "name": "spreadCompositeRequest", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "110", + ] + }, + { + "$id": "28", + "kind": "model", + "name": "SpreadParameterWithInnerModelRequest", + "namespace": "", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "29", + "kind": "property", "name": "name", - "nameInRequest": "name", - "type": { - "$id": "111", - "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": "112", - "name": "testHeader", - "nameInRequest": "test-header", + "serializedName": "name", "type": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "30", + "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": "114", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "115", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "116", - "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": [] - }, - "parameters": [ - { - "$id": "117", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "118", - "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": "119", - "name": "testHeader", - "nameInRequest": "test-header", - "type": { - "$id": "120", - "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": "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 - }, - { - "$id": "122", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "spreadParameterWithInnerModel.Request.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "123" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest" - }, - { - "$id": "124", - "kind": "basic", - "name": "spreadCompositeRequestMix", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "125", - "name": "spreadCompositeRequestMix", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "126", + ] + }, + { + "$id": "31", + "kind": "model", + "name": "SpreadAsRequestParameterRequest", + "namespace": "", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "32", + "kind": "property", "name": "name", - "nameInRequest": "name", - "type": { - "$id": "127", - "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": "128", - "name": "testHeader", - "nameInRequest": "test-header", + "serializedName": "name", "type": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "130", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "131", - "name": "spreadCompositeRequestMixRequest", - "nameInRequest": "spreadCompositeRequestMixRequest", - "type": { - "$ref": "25" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "132", - "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": [] - }, - "parameters": [ - { - "$id": "133", - "name": "name", - "nameInRequest": "name", - "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": "testHeader", - "nameInRequest": "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 - }, - { - "$id": "137", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$id": "138", - "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 - }, - { - "$id": "139", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "spreadAsRequestParameter.Request.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "140" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix" - } - ], - "parameters": [ - { - "$id": "141", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "142", - "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": "143", - "type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model", - "apiVersions": [], - "parent": { - "$ref": "73" - } + ] }, { - "$id": "145", - "kind": "client", - "name": "Alias", - "namespace": "Parameters.Spread.Alias", - "methods": [ - { - "$id": "146", - "kind": "basic", - "name": "spreadAsRequestBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "147", - "name": "spreadAsRequestBody", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ - { - "$id": "148", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "149", - "name": "spreadAsRequestBodyRequest", - "nameInRequest": "spreadAsRequestBodyRequest", + "$id": "34", + "kind": "model", + "name": "SpreadWithMultipleParametersRequest", + "namespace": "", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "35", + "kind": "property", + "name": "requiredString", + "serializedName": "requiredString", + "doc": "required string", "type": { - "$ref": "30" + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "150", - "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": [] - }, - "parameters": [ - { - "$id": "151", - "name": "name", - "nameInRequest": "name", - "type": { - "$ref": "32" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredString", + "serializationOptions": { + "json": { + "name": "requiredString" + } + } }, { - "$id": "152", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "153" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody" - }, - { - "$id": "154", - "kind": "basic", - "name": "spreadParameterWithInnerModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "155", - "name": "spreadParameterWithInnerModel", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ - { - "$id": "156", - "name": "id", - "nameInRequest": "id", + "$id": "37", + "kind": "property", + "name": "optionalInt", + "serializedName": "optionalInt", + "doc": "optional int", "type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "38", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "158", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "160", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "161", - "name": "spreadParameterWithInnerModelRequest", - "nameInRequest": "spreadParameterWithInnerModelRequest", - "type": { - "$ref": "35" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "162", - "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": [] - }, - "parameters": [ - { - "$id": "163", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "164", - "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 + "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.optionalInt", + "serializationOptions": { + "json": { + "name": "optionalInt" + } + } }, { - "$id": "165", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "166", - "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 - }, - { - "$id": "167", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "168", - "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": "169", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "170" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel" - }, - { - "$id": "171", - "kind": "basic", - "name": "spreadAsRequestParameter", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "172", - "name": "spreadAsRequestParameter", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ - { - "$id": "173", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "174", - "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": "175", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "176", - "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": "177", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "39", + "kind": "property", + "name": "requiredIntList", + "serializedName": "requiredIntList", + "doc": "required int", "type": { - "$ref": "14" + "$id": "40", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "41", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "178", - "name": "spreadAsRequestParameterRequest", - "nameInRequest": "spreadAsRequestParameterRequest", - "type": { - "$ref": "40" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "179", - "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": [] - }, - "parameters": [ - { - "$id": "180", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "181", - "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 + "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredIntList", + "serializationOptions": { + "json": { + "name": "requiredIntList" + } + } }, { - "$id": "182", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "183", - "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": "184", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "185", - "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 - }, - { - "$id": "186", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "187" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter" - }, - { - "$id": "188", - "kind": "basic", - "name": "spreadWithMultipleParameters", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "189", - "name": "spreadWithMultipleParameters", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ - { - "$id": "190", - "name": "id", - "nameInRequest": "id", + "$id": "42", + "kind": "property", + "name": "optionalStringList", + "serializedName": "optionalStringList", + "doc": "optional string", "type": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "43", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "44", + "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", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "192", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "193", - "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": "194", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "195", - "name": "spreadWithMultipleParametersRequest", - "nameInRequest": "spreadWithMultipleParametersRequest", + "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.optionalStringList", + "serializationOptions": { + "json": { + "name": "optionalStringList" + } + } + } + ] + }, + { + "$id": "45", + "kind": "model", + "name": "SpreadParameterWithInnerAliasRequest", + "namespace": "", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "46", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the Thing", "type": { - "$ref": "45" + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "196", - "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": [] - }, - "parameters": [ - { - "$id": "197", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "198", - "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": "199", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "200", - "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": "201", - "name": "requiredString", - "nameInRequest": "requiredString", - "doc": "required string", - "type": { - "$id": "202", - "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 - }, - { - "$id": "203", - "name": "optionalInt", - "nameInRequest": "optionalInt", - "doc": "optional int", - "type": { - "$id": "204", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "205", - "name": "requiredIntList", - "nameInRequest": "requiredIntList", - "doc": "required int", - "type": { - "$id": "206", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "207", - "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 - }, - { - "$id": "208", - "name": "optionalStringList", - "nameInRequest": "optionalStringList", - "doc": "optional string", - "type": { - "$id": "209", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, { - "$id": "211", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "212" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters" - }, - { - "$id": "213", - "kind": "basic", - "name": "spreadParameterWithInnerAlias", - "accessibility": "public", - "apiVersions": [], - "doc": "spread an alias with contains another alias property as body.", - "operation": { - "$id": "214", - "name": "spreadParameterWithInnerAlias", - "resourceName": "Alias", - "doc": "spread an alias with contains another alias property as body.", - "accessibility": "public", - "parameters": [ - { - "$id": "215", - "name": "id", - "nameInRequest": "id", + "$id": "48", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "age of the Thing", "type": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "49", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "217", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", + "crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.age", + "serializationOptions": { + "json": { + "name": "age" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "50", + "kind": "client", + "name": "SpreadClient", + "namespace": "Parameters.Spread", + "doc": "Test for the spread operator.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "219", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "220", - "name": "spreadParameterWithInnerAliasRequest", - "nameInRequest": "spreadParameterWithInnerAliasRequest", - "type": { - "$ref": "64" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "221", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ - { - "$id": "222", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "223", - "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": "224", - "name": "name", - "nameInRequest": "name", - "doc": "name of the Thing", - "type": { - "$id": "225", - "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 - }, - { - "$id": "226", - "name": "age", - "nameInRequest": "age", - "doc": "age of the Thing", - "type": { - "$id": "227", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread", + "apiVersions": [], + "children": [ { - "$id": "228", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "229", - "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": "51", + "kind": "client", + "name": "Model", + "namespace": "Parameters.Spread.Model", + "methods": [ + { + "$id": "52", + "kind": "basic", + "name": "spreadAsRequestBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "53", + "name": "spreadAsRequestBody", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "54", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "55", + "name": "bodyParameter", + "nameInRequest": "bodyParameter", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "56", + "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": [] + }, + "parameters": [ + { + "$id": "57", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "58", + "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 + }, + { + "$id": "59", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody" + }, + { + "$id": "60", + "kind": "basic", + "name": "spreadCompositeRequestOnlyWithBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "61", + "name": "spreadCompositeRequestOnlyWithBody", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "62", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "63", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "64", + "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": [] + }, + "parameters": [ + { + "$id": "65", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "66", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody" + }, + { + "$id": "67", + "kind": "basic", + "name": "spreadCompositeRequestWithoutBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "68", + "name": "spreadCompositeRequestWithoutBody", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "69", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "70", + "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": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "72", + "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": "73", + "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": [] + }, + "parameters": [ + { + "$id": "74", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "75", + "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": "76", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "77", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody" + }, + { + "$id": "78", + "kind": "basic", + "name": "spreadCompositeRequest", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "79", + "name": "spreadCompositeRequest", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "80", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "81", + "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": "82", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "83", + "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": "84", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "85", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "86", + "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": [] + }, + "parameters": [ + { + "$id": "87", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "88", + "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": "89", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "90", + "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": "91", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "92", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest" + }, + { + "$id": "93", + "kind": "basic", + "name": "spreadCompositeRequestMix", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "94", + "name": "spreadCompositeRequestMix", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "name", + "nameInRequest": "name", + "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 + }, + { + "$id": "97", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "98", + "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": "99", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "100", + "name": "spreadCompositeRequestMixRequest", + "nameInRequest": "spreadCompositeRequestMixRequest", + "type": { + "$ref": "22" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "101", + "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": [] + }, + "parameters": [ + { + "$id": "102", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "103", + "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": "104", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "105", + "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": "106", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$id": "107", + "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 + }, + { + "$id": "108", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread.Model", + "apiVersions": [], + "parent": { + "$ref": "50" + } }, { - "$id": "230", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "109", + "kind": "client", + "name": "Alias", + "namespace": "Parameters.Spread.Alias", + "methods": [ + { + "$id": "110", + "kind": "basic", + "name": "spreadAsRequestBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "111", + "name": "spreadAsRequestBody", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "112", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "113", + "name": "spreadAsRequestBodyRequest", + "nameInRequest": "spreadAsRequestBodyRequest", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "114", + "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": [] + }, + "parameters": [ + { + "$id": "115", + "name": "name", + "nameInRequest": "name", + "type": { + "$ref": "27" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "116", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody" + }, + { + "$id": "117", + "kind": "basic", + "name": "spreadParameterWithInnerModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "118", + "name": "spreadParameterWithInnerModel", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "119", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "120", + "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": "121", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "122", + "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": "123", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "124", + "name": "spreadParameterWithInnerModelRequest", + "nameInRequest": "spreadParameterWithInnerModelRequest", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "125", + "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": [] + }, + "parameters": [ + { + "$id": "126", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "127", + "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": "128", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "129", + "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 + }, + { + "$id": "130", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "131", + "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": "132", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel" + }, + { + "$id": "133", + "kind": "basic", + "name": "spreadAsRequestParameter", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "134", + "name": "spreadAsRequestParameter", + "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", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "140", + "name": "spreadAsRequestParameterRequest", + "nameInRequest": "spreadAsRequestParameterRequest", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "141", + "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": [] + }, + "parameters": [ + { + "$id": "142", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "143", + "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": "144", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "145", + "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": "146", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "147", + "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 + }, + { + "$id": "148", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter" + }, + { + "$id": "149", + "kind": "basic", + "name": "spreadWithMultipleParameters", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "150", + "name": "spreadWithMultipleParameters", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "151", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "152", + "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": "153", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "154", + "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": "155", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "156", + "name": "spreadWithMultipleParametersRequest", + "nameInRequest": "spreadWithMultipleParametersRequest", + "type": { + "$ref": "34" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "157", + "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": [] + }, + "parameters": [ + { + "$id": "158", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "159", + "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": "160", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "161", + "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": "162", + "name": "requiredString", + "nameInRequest": "requiredString", + "doc": "required string", + "type": { + "$id": "163", + "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 + }, + { + "$id": "164", + "name": "optionalInt", + "nameInRequest": "optionalInt", + "doc": "optional int", + "type": { + "$id": "165", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "166", + "name": "requiredIntList", + "nameInRequest": "requiredIntList", + "doc": "required int", + "type": { + "$id": "167", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "168", + "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 + }, + { + "$id": "169", + "name": "optionalStringList", + "nameInRequest": "optionalStringList", + "doc": "optional string", + "type": { + "$id": "170", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "172", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters" + }, + { + "$id": "173", + "kind": "basic", + "name": "spreadParameterWithInnerAlias", + "accessibility": "public", + "apiVersions": [], + "doc": "spread an alias with contains another alias property as body.", + "operation": { + "$id": "174", + "name": "spreadParameterWithInnerAlias", + "resourceName": "Alias", + "doc": "spread an alias with contains another alias property as body.", + "accessibility": "public", + "parameters": [ + { + "$id": "175", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "176", + "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": "177", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "178", + "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": "179", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "180", + "name": "spreadParameterWithInnerAliasRequest", + "nameInRequest": "spreadParameterWithInnerAliasRequest", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "181", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "182", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "183", + "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": "184", + "name": "name", + "nameInRequest": "name", + "doc": "name of the Thing", + "type": { + "$id": "185", + "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 + }, + { + "$id": "186", + "name": "age", + "nameInRequest": "age", + "doc": "age of the Thing", + "type": { + "$id": "187", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "188", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "189", + "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": "190", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "apiVersions": [], + "parent": { + "$ref": "50" + } } - ], - "response": { - "$id": "231" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias" - } - ], - "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": "Parameters.Spread.Alias", - "apiVersions": [], - "parent": { - "$ref": "73" - } + ] } - ] - } - ] + ] } 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 08ee18779fc..356cc808fc0 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 @@ -1,797 +1,774 @@ { - "$id": "1", - "name": "Payload.ContentNegotiation", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "PngImageAsJsonContentType", - "namespace": "Payload.ContentNegotiation.DifferentBody", - "usage": "Output,Json", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "PngImageContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "PngImageContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "PngImageContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "JpegImageContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpeg", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "JpegImageContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpeg", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "JpegImageContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpeg", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "PngImageContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "PngImageContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "PngImageContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "PngImageAsJsonContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "PngImageAsJsonContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "PngImageAsJsonContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "28", - "kind": "model", - "name": "PngImageAsJson", - "namespace": "Payload.ContentNegotiation.DifferentBody", - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "name": "Payload.ContentNegotiation", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "29", - "kind": "header", - "name": "contentType", - "serializedName": "content-type", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson.contentType", - "correspondingMethodParams": [] + "$id": "1", + "kind": "constant", + "name": "PngImageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] }, { - "$id": "30", - "kind": "property", - "name": "content", - "serializedName": "content", - "type": { - "$id": "31", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "3", + "kind": "constant", + "name": "PngImageContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson.content", - "serializationOptions": { - "$id": "32", - "json": { - "$id": "33", - "name": "content" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "34", - "kind": "client", - "name": "ContentNegotiationClient", - "namespace": "Payload.ContentNegotiation", - "doc": "Test describing optionality of the request body.", - "methods": [], - "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" + "$id": "5", + "kind": "constant", + "name": "PngImageContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "7", + "kind": "constant", + "name": "JpegImageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "image/jpeg", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "JpegImageContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/jpeg", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "JpegImageContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/jpeg", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "PngImageContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "PngImageContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "PngImageContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "PngImageAsJsonContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "21", + "kind": "constant", + "name": "PngImageAsJsonContentType1", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "usage": "Output,Json", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "PngImageAsJsonContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "PngImageAsJsonContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "39", - "kind": "client", - "name": "SameBody", - "namespace": "Payload.ContentNegotiation.SameBody", - "methods": [ - { - "$id": "40", - "kind": "basic", - "name": "getAvatarAsPng", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "41", - "name": "getAvatarAsPng", - "resourceName": "SameBody", - "accessibility": "public", - "parameters": [ - { - "$id": "42", - "name": "accept", - "nameInRequest": "Accept", + "$id": "27", + "kind": "model", + "name": "PngImageAsJson", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "28", + "kind": "header", + "name": "contentType", + "serializedName": "content-type", "type": { - "$ref": "4" + "$ref": "21" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "43", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "44", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "45", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "6" - } - } - ], - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson.contentType", + "correspondingMethodParams": [] + }, { - "$id": "46", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "47", - "type": { - "$ref": "44" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng" - }, - { - "$id": "48", - "kind": "basic", - "name": "getAvatarAsJpeg", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "49", - "name": "getAvatarAsJpeg", - "resourceName": "SameBody", - "accessibility": "public", - "parameters": [ - { - "$id": "50", - "name": "accept", - "nameInRequest": "Accept", + "$id": "29", + "kind": "property", + "name": "content", + "serializedName": "content", "type": { - "$ref": "10" + "$id": "30", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "51", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "52", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "53", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "12" + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson.content", + "serializationOptions": { + "json": { + "name": "content" } - } - ], - "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": [] - }, - "parameters": [ - { - "$id": "54", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "55", - "type": { - "$ref": "52" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg" - } - ], - "parameters": [ - { - "$id": "56", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "57", - "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": "58", - "type": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", - "apiVersions": [], - "parent": { - "$ref": "34" - } - }, + ] + } + ], + "clients": [ { - "$id": "60", - "kind": "client", - "name": "DifferentBody", - "namespace": "Payload.ContentNegotiation.DifferentBody", - "methods": [ - { - "$id": "61", - "kind": "basic", - "name": "getAvatarAsPng", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "62", - "name": "getAvatarAsPng", - "resourceName": "DifferentBody", - "accessibility": "public", - "parameters": [ - { - "$id": "63", - "name": "accept", - "nameInRequest": "Accept", + "$id": "31", + "kind": "client", + "name": "ContentNegotiationClient", + "namespace": "Payload.ContentNegotiation", + "doc": "Test describing optionality of the request body.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "16" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "64", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "65", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "66", - "name": "contentType", - "nameInResponse": "content-type", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$ref": "18" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation", + "apiVersions": [], + "children": [ + { + "$id": "32", + "kind": "client", + "name": "SameBody", + "namespace": "Payload.ContentNegotiation.SameBody", + "methods": [ + { + "$id": "33", + "kind": "basic", + "name": "getAvatarAsPng", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "34", + "name": "getAvatarAsPng", + "resourceName": "SameBody", + "accessibility": "public", + "parameters": [ + { + "$id": "35", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "36", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "37", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "3" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "38", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "37" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng" + }, + { + "$id": "39", + "kind": "basic", + "name": "getAvatarAsJpeg", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "40", + "name": "getAvatarAsJpeg", + "resourceName": "SameBody", + "accessibility": "public", + "parameters": [ + { + "$id": "41", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "42", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "43", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "9" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "44", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "43" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "67", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "68", - "type": { - "$ref": "65" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng" - }, - { - "$id": "69", - "kind": "basic", - "name": "getAvatarAsJson", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "70", - "name": "getAvatarAsJson", - "resourceName": "DifferentBody", - "accessibility": "public", - "parameters": [ - { - "$id": "71", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "72", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", + "apiVersions": [], + "parent": { + "$ref": "31" + } + }, + { + "$id": "45", + "kind": "client", + "name": "DifferentBody", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "methods": [ + { + "$id": "46", + "kind": "basic", + "name": "getAvatarAsPng", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "47", + "name": "getAvatarAsPng", + "resourceName": "DifferentBody", + "accessibility": "public", + "parameters": [ + { + "$id": "48", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "49", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "50", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "15" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "51", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "50" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng" + }, + { + "$id": "52", + "kind": "basic", + "name": "getAvatarAsJson", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "53", + "name": "getAvatarAsJson", + "resourceName": "DifferentBody", + "accessibility": "public", + "parameters": [ + { + "$id": "54", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "55", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "27" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "23" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "56", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "27" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson" + } ], - "bodyType": { - "$ref": "28" - }, - "headers": [ - { - "$id": "73", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "24" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "74", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "75", - "type": { - "$ref": "28" + "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "apiVersions": [], + "parent": { + "$ref": "31" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson" - } - ], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", - "apiVersions": [], - "parent": { - "$ref": "34" - } + ] } - ] - } - ] + ] } 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 b2f8eac47b6..b89b215367f 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 @@ -1,1166 +1,1124 @@ { - "$id": "1", - "name": "Payload.JsonMergePatch", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "createResourceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "createResourceContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "UpdateResourceRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "updateResourceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "UpdateResourceRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "UpdateResourceRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "updateOptionalResourceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "UpdateResourceRequestContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - } - ], - "models": [ - { - "$id": "18", - "kind": "model", - "name": "Resource", - "namespace": "Payload.JsonMergePatch", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource", - "usage": "Input,Output,Json", - "doc": "Details about a resource.", - "decorators": [], - "properties": [ + "name": "Payload.JsonMergePatch", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "19", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.name", - "serializationOptions": { - "$id": "21", - "json": { - "$id": "22", - "name": "name" - } - } - }, - { - "$id": "23", - "kind": "property", - "name": "description", - "serializedName": "description", - "type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.description", - "serializationOptions": { - "$id": "25", - "json": { - "$id": "26", - "name": "description" - } - } - }, - { - "$id": "27", - "kind": "property", - "name": "map", - "serializedName": "map", - "type": { - "$id": "28", - "kind": "dict", - "keyType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "1", + "kind": "constant", + "name": "createResourceContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "30", - "kind": "model", - "name": "InnerModel", - "namespace": "Payload.JsonMergePatch", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "It is the model used by Resource model", - "decorators": [], - "properties": [ - { - "$id": "31", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel.name", - "serializationOptions": { - "$id": "33", - "json": { - "$id": "34", - "name": "name" - } - } - }, - { - "$id": "35", - "kind": "property", - "name": "description", - "serializedName": "description", - "type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel.description", - "serializationOptions": { - "$id": "37", - "json": { - "$id": "38", - "name": "description" - } - } - } - ] + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.map", - "serializationOptions": { - "$id": "39", - "json": { - "$id": "40", - "name": "map" - } - } }, { - "$id": "41", - "kind": "property", - "name": "array", - "serializedName": "array", - "type": { - "$id": "42", - "kind": "array", - "name": "ArrayInnerModel", + "$id": "3", + "kind": "constant", + "name": "createResourceContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "30" + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.array", - "serializationOptions": { - "$id": "43", - "json": { - "$id": "44", - "name": "array" - } - } }, { - "$id": "45", - "kind": "property", - "name": "intValue", - "serializedName": "intValue", - "type": { - "$id": "46", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.intValue", - "serializationOptions": { - "$id": "47", - "json": { - "$id": "48", - "name": "intValue" - } - } - }, - { - "$id": "49", - "kind": "property", - "name": "floatValue", - "serializedName": "floatValue", - "type": { - "$id": "50", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.floatValue", - "serializationOptions": { - "$id": "51", - "json": { - "$id": "52", - "name": "floatValue" - } - } - }, - { - "$id": "53", - "kind": "property", - "name": "innerModel", - "serializedName": "innerModel", - "type": { - "$ref": "30" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.innerModel", - "serializationOptions": { - "$id": "54", - "json": { - "$id": "55", - "name": "innerModel" - } - } - }, - { - "$id": "56", - "kind": "property", - "name": "intArray", - "serializedName": "intArray", - "type": { - "$id": "57", - "kind": "array", - "name": "Array", + "$id": "5", + "kind": "constant", + "name": "UpdateResourceRequestContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "58", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.intArray", - "serializationOptions": { - "$id": "59", - "json": { - "$id": "60", - "name": "intArray" - } - } - } - ] - }, - { - "$ref": "30" - }, - { - "$id": "61", - "kind": "model", - "name": "ResourcePatch", - "namespace": "Payload.JsonMergePatch", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch", - "usage": "Input,JsonMergePatch,Json", - "doc": "Details about a resource for patch operation.", - "decorators": [], - "properties": [ - { - "$id": "62", - "kind": "property", - "name": "description", - "serializedName": "description", - "type": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.description", - "serializationOptions": { - "$id": "64", - "json": { - "$id": "65", - "name": "description" - } - } }, { - "$id": "66", - "kind": "property", - "name": "map", - "serializedName": "map", - "type": { - "$id": "67", - "kind": "dict", - "keyType": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "7", + "kind": "constant", + "name": "updateResourceContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "30" + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.map", - "serializationOptions": { - "$id": "69", - "json": { - "$id": "70", - "name": "map" - } - } }, { - "$id": "71", - "kind": "property", - "name": "array", - "serializedName": "array", - "type": { - "$id": "72", - "kind": "array", - "name": "ArrayInnerModel", + "$id": "9", + "kind": "constant", + "name": "UpdateResourceRequestContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "30" + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.array", - "serializationOptions": { - "$id": "73", - "json": { - "$id": "74", - "name": "array" - } - } }, { - "$id": "75", - "kind": "property", - "name": "intValue", - "serializedName": "intValue", - "type": { - "$id": "76", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "11", + "kind": "constant", + "name": "UpdateResourceRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intValue", - "serializationOptions": { - "$id": "77", - "json": { - "$id": "78", - "name": "intValue" - } - } }, { - "$id": "79", - "kind": "property", - "name": "floatValue", - "serializedName": "floatValue", - "type": { - "$id": "80", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "13", + "kind": "constant", + "name": "updateOptionalResourceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.floatValue", - "serializationOptions": { - "$id": "81", - "json": { - "$id": "82", - "name": "floatValue" - } - } - }, - { - "$id": "83", - "kind": "property", - "name": "innerModel", - "serializedName": "innerModel", - "type": { - "$ref": "30" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.innerModel", - "serializationOptions": { - "$id": "84", - "json": { - "$id": "85", - "name": "innerModel" - } - } }, { - "$id": "86", - "kind": "property", - "name": "intArray", - "serializedName": "intArray", - "type": { - "$id": "87", - "kind": "array", - "name": "Array", + "$id": "15", + "kind": "constant", + "name": "UpdateResourceRequestContentType3", + "namespace": "", + "usage": "None", "valueType": { - "$id": "88", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intArray", - "serializationOptions": { - "$id": "89", - "json": { - "$id": "90", - "name": "intArray" - } - } } - ] - } - ], - "clients": [ - { - "$id": "91", - "kind": "client", - "name": "JsonMergePatchClient", - "namespace": "Payload.JsonMergePatch", - "doc": "Test for merge-patch+json content-type", - "methods": [ + ], + "models": [ { - "$id": "92", - "kind": "basic", - "name": "createResource", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: application/merge-patch+json with required body", - "operation": { - "$id": "93", - "name": "createResource", - "resourceName": "JsonMergePatch", - "doc": "Test content-type: application/merge-patch+json with required body", - "accessibility": "public", - "parameters": [ - { - "$id": "94", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" + "$id": "17", + "kind": "model", + "name": "Resource", + "namespace": "Payload.JsonMergePatch", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource", + "usage": "Input,Output,Json", + "doc": "Details about a resource.", + "decorators": [], + "properties": [ + { + "$id": "18", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "95", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" + { + "$id": "20", + "kind": "property", + "name": "description", + "serializedName": "description", + "type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.description", + "serializationOptions": { + "json": { + "name": "description" + } + } }, - "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": "18" + { + "$id": "22", + "kind": "property", + "name": "map", + "serializedName": "map", + "type": { + "$id": "23", + "kind": "dict", + "keyType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "25", + "kind": "model", + "name": "InnerModel", + "namespace": "Payload.JsonMergePatch", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "It is the model used by Resource model", + "decorators": [], + "properties": [ + { + "$id": "26", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "28", + "kind": "property", + "name": "description", + "serializedName": "description", + "type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + } + ] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.map", + "serializationOptions": { + "json": { + "name": "map" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "97", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" + { + "$id": "30", + "kind": "property", + "name": "array", + "serializedName": "array", + "type": { + "$id": "31", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "25" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.array", + "serializationOptions": { + "json": { + "name": "array" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/json-merge-patch/create/resource", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource", - "decorators": [] - }, - "parameters": [ - { - "$id": "98", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "18" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "99", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "100", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "101", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource" + { + "$id": "32", + "kind": "property", + "name": "intValue", + "serializedName": "intValue", + "type": { + "$id": "33", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.intValue", + "serializationOptions": { + "json": { + "name": "intValue" + } + } + }, + { + "$id": "34", + "kind": "property", + "name": "floatValue", + "serializedName": "floatValue", + "type": { + "$id": "35", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.floatValue", + "serializationOptions": { + "json": { + "name": "floatValue" + } + } + }, + { + "$id": "36", + "kind": "property", + "name": "innerModel", + "serializedName": "innerModel", + "type": { + "$ref": "25" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.innerModel", + "serializationOptions": { + "json": { + "name": "innerModel" + } + } + }, + { + "$id": "37", + "kind": "property", + "name": "intArray", + "serializedName": "intArray", + "type": { + "$id": "38", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "39", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.intArray", + "serializationOptions": { + "json": { + "name": "intArray" + } + } + } + ] }, { - "$id": "102", - "kind": "basic", - "name": "updateResource", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: application/merge-patch+json with required body", - "operation": { - "$id": "103", - "name": "updateResource", - "resourceName": "JsonMergePatch", - "doc": "Test content-type: application/merge-patch+json with required body", - "accessibility": "public", - "parameters": [ - { - "$id": "104", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "6" + "$ref": "25" + }, + { + "$id": "40", + "kind": "model", + "name": "ResourcePatch", + "namespace": "Payload.JsonMergePatch", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch", + "usage": "Input,JsonMergePatch,Json", + "doc": "Details about a resource for patch operation.", + "decorators": [], + "properties": [ + { + "$id": "41", + "kind": "property", + "name": "description", + "serializedName": "description", + "type": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.description", + "serializationOptions": { + "json": { + "name": "description" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "105", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" + { + "$id": "43", + "kind": "property", + "name": "map", + "serializedName": "map", + "type": { + "$id": "44", + "kind": "dict", + "keyType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "25" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.map", + "serializationOptions": { + "json": { + "name": "map" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "106", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" + { + "$id": "46", + "kind": "property", + "name": "array", + "serializedName": "array", + "type": { + "$id": "47", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "25" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.array", + "serializationOptions": { + "json": { + "name": "array" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "107", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" + { + "$id": "48", + "kind": "property", + "name": "intValue", + "serializedName": "intValue", + "type": { + "$id": "49", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intValue", + "serializationOptions": { + "json": { + "name": "intValue" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/json-merge-patch/update/resource", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource", - "decorators": [] - }, - "parameters": [ - { - "$id": "108", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "109", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "110", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "111", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource" - }, - { - "$id": "112", - "kind": "basic", - "name": "updateOptionalResource", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: application/merge-patch+json with optional body", - "operation": { - "$id": "113", - "name": "updateOptionalResource", - "resourceName": "JsonMergePatch", - "doc": "Test content-type: application/merge-patch+json with optional body", - "accessibility": "public", - "parameters": [ - { - "$id": "114", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "12" + { + "$id": "50", + "kind": "property", + "name": "floatValue", + "serializedName": "floatValue", + "type": { + "$id": "51", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.floatValue", + "serializationOptions": { + "json": { + "name": "floatValue" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "115", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" + { + "$id": "52", + "kind": "property", + "name": "innerModel", + "serializedName": "innerModel", + "type": { + "$ref": "25" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.innerModel", + "serializationOptions": { + "json": { + "name": "innerModel" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "116", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" + { + "$id": "53", + "kind": "property", + "name": "intArray", + "serializedName": "intArray", + "type": { + "$id": "54", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "55", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intArray", + "serializationOptions": { + "json": { + "name": "intArray" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "56", + "kind": "client", + "name": "JsonMergePatchClient", + "namespace": "Payload.JsonMergePatch", + "doc": "Test for merge-patch+json content-type", + "methods": [ + { + "$id": "57", + "kind": "basic", + "name": "createResource", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: application/merge-patch+json with required body", + "operation": { + "$id": "58", + "name": "createResource", + "resourceName": "JsonMergePatch", + "doc": "Test content-type: application/merge-patch+json with required body", + "accessibility": "public", + "parameters": [ + { + "$id": "59", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "60", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "61", + "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": "62", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "17" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/json-merge-patch/create/resource", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource", + "decorators": [] + }, + "parameters": [ + { + "$id": "63", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "17" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "64", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "65", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "17" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "117", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" + { + "$id": "66", + "kind": "basic", + "name": "updateResource", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: application/merge-patch+json with required body", + "operation": { + "$id": "67", + "name": "updateResource", + "resourceName": "JsonMergePatch", + "doc": "Test content-type: application/merge-patch+json with required body", + "accessibility": "public", + "parameters": [ + { + "$id": "68", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "69", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "70", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "71", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "17" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/json-merge-patch/update/resource", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource", + "decorators": [] + }, + "parameters": [ + { + "$id": "72", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "9" + }, + "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": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "74", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "17" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "75", + "kind": "basic", + "name": "updateOptionalResource", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: application/merge-patch+json with optional body", + "operation": { + "$id": "76", + "name": "updateOptionalResource", + "resourceName": "JsonMergePatch", + "doc": "Test content-type: application/merge-patch+json with optional body", + "accessibility": "public", + "parameters": [ + { + "$id": "77", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "78", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "79", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "80", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "17" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/json-merge-patch/update/resource/optional", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource", + "decorators": [] + }, + "parameters": [ + { + "$id": "81", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "15" + }, + "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": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "83", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "17" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource" + } ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/json-merge-patch/update/resource/optional", - "requestMediaTypes": [ - "application/merge-patch+json" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource", - "decorators": [] - }, - "parameters": [ - { - "$id": "118", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "16" - }, - "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": "61" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "120", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "121", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource" - } - ], - "parameters": [ - { - "$id": "122", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "123", - "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": "124", - "type": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch", - "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 92a29b8d488..b84daca5fda 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 @@ -1,668 +1,651 @@ { - "$id": "1", - "name": "Payload.MediaType", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "SendAsTextRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "SendAsTextRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "getAsTextContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "SendAsTextRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "SendAsJsonRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "SendAsJsonRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "getAsJsonContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "SendAsJsonRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [], - "clients": [ - { - "$id": "18", - "kind": "client", - "name": "MediaTypeClient", - "namespace": "Payload.MediaType", - "doc": "Test the payload with different media types and different types of the payload itself.", - "methods": [], - "parameters": [ + "name": "Payload.MediaType", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "19", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "21", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "1", + "kind": "constant", + "name": "SendAsTextRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType", - "apiVersions": [], - "children": [ + "value": "text/plain", + "decorators": [] + }, { - "$id": "23", - "kind": "client", - "name": "StringBody", - "namespace": "Payload.MediaType.StringBody", - "methods": [ - { - "$id": "24", - "kind": "basic", - "name": "sendAsText", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "25", - "name": "sendAsText", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "26", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "27", - "name": "text", - "nameInRequest": "text", - "type": { - "$id": "28", - "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": "29", - "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", + "$id": "3", + "kind": "constant", + "name": "SendAsTextRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "30", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "31", - "name": "text", - "nameInRequest": "text", - "type": { - "$id": "32", - "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 - } - ], - "response": { - "$id": "33" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText" }, - { - "$id": "34", - "kind": "basic", - "name": "getAsText", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "35", - "name": "getAsText", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "36", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ - { - "$id": "39", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "8" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "text/plain" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/media-type/string-body/getAsText", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", + "value": "text/plain", + "decorators": [] + }, + { + "$id": "5", + "kind": "constant", + "name": "getAsTextContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "40", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "41", - "type": { - "$ref": "38" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText" }, - { - "$id": "42", - "kind": "basic", - "name": "sendAsJson", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "43", - "name": "sendAsJson", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "44", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "45", - "name": "text", - "nameInRequest": "text", - "type": { - "$id": "46", - "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": "47", - "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", + "value": "text/plain", + "decorators": [] + }, + { + "$id": "7", + "kind": "constant", + "name": "SendAsTextRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "SendAsJsonRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "SendAsJsonRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "getAsJsonContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "48", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "49", - "name": "text", - "nameInRequest": "text", - "type": { - "$id": "50", - "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 - } - ], - "response": { - "$id": "51" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson" }, - { - "$id": "52", - "kind": "basic", - "name": "getAsJson", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "53", - "name": "getAsJson", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "54", - "name": "accept", - "nameInRequest": "Accept", + "value": "application/json", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "SendAsJsonRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [], + "clients": [ + { + "$id": "17", + "kind": "client", + "name": "MediaTypeClient", + "namespace": "Payload.MediaType", + "doc": "Test the payload with different media types and different types of the payload itself.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "14" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "55", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ - { - "$id": "57", - "name": "contentType", - "nameInResponse": "content-type", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$ref": "16" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MediaType", + "apiVersions": [], + "children": [ + { + "$id": "18", + "kind": "client", + "name": "StringBody", + "namespace": "Payload.MediaType.StringBody", + "methods": [ + { + "$id": "19", + "kind": "basic", + "name": "sendAsText", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "20", + "name": "sendAsText", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ + { + "$id": "21", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "22", + "name": "text", + "nameInRequest": "text", + "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": [ + 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": [] + }, + "parameters": [ + { + "$id": "25", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "26", + "name": "text", + "nameInRequest": "text", + "type": { + "$id": "27", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText" + }, + { + "$id": "28", + "kind": "basic", + "name": "getAsText", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "29", + "name": "getAsText", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ + { + "$id": "30", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "31", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "7" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "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": [] + }, + "parameters": [ + { + "$id": "33", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "32" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText" + }, + { + "$id": "34", + "kind": "basic", + "name": "sendAsJson", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "35", + "name": "sendAsJson", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ + { + "$id": "36", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "37", + "name": "text", + "nameInRequest": "text", + "type": { + "$id": "38", + "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": "39", + "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": [] + }, + "parameters": [ + { + "$id": "40", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "41", + "name": "text", + "nameInRequest": "text", + "type": { + "$id": "42", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson" + }, + { + "$id": "43", + "kind": "basic", + "name": "getAsJson", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "44", + "name": "getAsJson", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ + { + "$id": "45", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "46", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "15" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "48", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "47" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson" } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "58", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "59", - "type": { - "$ref": "56" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "apiVersions": [], + "parent": { + "$ref": "17" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson" - } - ], - "parameters": [ - { - "$id": "60", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "61", - "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": "62", - "type": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody", - "apiVersions": [], - "parent": { - "$ref": "18" - } + ] } - ] - } - ] + ] } 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 8e0fa0c3ca5..4f2f0c5948f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json @@ -1,3410 +1,3387 @@ { - "$id": "1", - "name": "Payload.MultiPart", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "FileSpecificContentTypeContentType", - "namespace": "Payload.MultiPart", - "usage": "Input", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpg", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "FloatRequestTemperatureContentType", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "usage": "Input", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "BasicRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "BasicRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "BasicRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "BasicRequestContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "BasicRequestContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "BasicRequestContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "BasicRequestContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "BasicRequestContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "BasicRequestContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "BasicRequestContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "BasicRequestContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "BasicRequestContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "BasicRequestContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "BasicRequestContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "BasicRequestContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "BasicRequestContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "BasicRequestContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "BasicRequestContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "BasicRequestContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "BasicRequestContentType19", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "BasicRequestContentType20", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "BasicRequestContentType21", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "BasicRequestContentType22", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "BasicRequestContentType23", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - } - ], - "models": [ - { - "$id": "54", - "kind": "model", - "name": "MultiPartRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + "name": "Payload.MultiPart", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "55", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "BasicRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest.id", - "serializationOptions": { - "$id": "57", - "multipart": { - "$id": "58", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "text/plain" - ], - "name": "id" - } - } }, { - "$id": "59", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "60", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "3", + "kind": "constant", + "name": "BasicRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest.profileImage", - "serializationOptions": { - "$id": "61", - "multipart": { - "$id": "62", - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "profileImage" - } - } - } - ] - }, - { - "$id": "63", - "kind": "model", - "name": "ComplexPartsRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, { - "$id": "64", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "constant", + "name": "BasicRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.id", - "serializationOptions": { - "$id": "66", - "multipart": { - "$id": "67", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "text/plain" - ], - "name": "id" - } - } }, { - "$id": "68", - "kind": "property", - "name": "address", - "serializedName": "address", - "type": { - "$id": "69", - "kind": "model", - "name": "Address", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.Address", - "usage": "Input", - "decorators": [], - "properties": [ - { - "$id": "70", - "kind": "property", - "name": "city", - "serializedName": "city", - "type": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.Address.city", - "serializationOptions": { - "$id": "72", - "json": { - "$id": "73", - "name": "city" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.address", - "serializationOptions": { - "$id": "74", - "multipart": { - "$id": "75", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "application/json" - ], - "name": "address" - } - } + "$id": "7", + "kind": "constant", + "name": "BasicRequestContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] }, { - "$id": "76", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "77", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "9", + "kind": "constant", + "name": "BasicRequestContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.profileImage", - "serializationOptions": { - "$id": "78", - "multipart": { - "$id": "79", - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "profileImage" - } - } }, { - "$id": "80", - "kind": "property", - "name": "pictures", - "serializedName": "pictures", - "type": { - "$id": "81", - "kind": "array", - "name": "ArrayHttpPart", + "$id": "11", + "kind": "constant", + "name": "BasicRequestContentType5", + "namespace": "", + "usage": "None", "valueType": { - "$id": "82", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.pictures", - "serializationOptions": { - "$id": "83", - "multipart": { - "$id": "84", - "isFilePart": true, - "isMulti": true, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "pictures" - } - } - } - ] - }, - { - "$ref": "69" - }, - { - "$id": "85", - "kind": "model", - "name": "JsonPartRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, { - "$id": "86", - "kind": "property", - "name": "address", - "serializedName": "address", - "type": { - "$ref": "69" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest.address", - "serializationOptions": { - "$id": "87", - "multipart": { - "$id": "88", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "application/json" - ], - "name": "address" - } - } + "$id": "13", + "kind": "constant", + "name": "BasicRequestContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] }, { - "$id": "89", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "90", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "15", + "kind": "constant", + "name": "BasicRequestContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest.profileImage", - "serializationOptions": { - "$id": "91", - "multipart": { - "$id": "92", - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "profileImage" - } - } - } - ] - }, - { - "$id": "93", - "kind": "model", - "name": "BinaryArrayPartsRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, { - "$id": "94", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "17", + "kind": "constant", + "name": "BasicRequestContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest.id", - "serializationOptions": { - "$id": "96", - "multipart": { - "$id": "97", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "text/plain" - ], - "name": "id" - } - } }, { - "$id": "98", - "kind": "property", - "name": "pictures", - "serializedName": "pictures", - "type": { - "$id": "99", - "kind": "array", - "name": "ArrayHttpPart1", + "$id": "19", + "kind": "constant", + "name": "BasicRequestContentType9", + "namespace": "", + "usage": "None", "valueType": { - "$id": "100", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest.pictures", - "serializationOptions": { - "$id": "101", - "multipart": { - "$id": "102", - "isFilePart": true, - "isMulti": true, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "pictures" - } - } - } - ] - }, - { - "$id": "103", - "kind": "model", - "name": "MultiBinaryPartsRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, { - "$id": "104", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "105", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "21", + "kind": "constant", + "name": "BasicRequestContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest.profileImage", - "serializationOptions": { - "$id": "106", - "multipart": { - "$id": "107", - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "profileImage" - } - } }, { - "$id": "108", - "kind": "property", - "name": "picture", - "serializedName": "picture", - "type": { - "$id": "109", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "23", + "kind": "constant", + "name": "BasicRequestContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest.picture", - "serializationOptions": { - "$id": "110", - "multipart": { - "$id": "111", - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "picture" - } - } - } - ] - }, - { - "$id": "112", - "kind": "model", - "name": "AnonymousModelRequest", - "namespace": "Payload.MultiPart.FormData", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.Request.anonymous", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, { - "$id": "113", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "114", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "25", + "kind": "constant", + "name": "BasicRequestContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.Request.anonymous.profileImage", - "serializationOptions": { - "$id": "115", - "multipart": { - "$id": "116", - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "profileImage" - } - } - } - ] - }, - { - "$id": "117", - "kind": "model", - "name": "ComplexHttpPartsModelRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, + { + "$id": "27", + "kind": "constant", + "name": "BasicRequestContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "BasicRequestContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, { - "$id": "118", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "31", + "kind": "constant", + "name": "BasicRequestContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.id", - "serializationOptions": { - "$id": "120", - "multipart": { - "$id": "121", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "text/plain" - ], - "name": "id" - } - } }, { - "$id": "122", - "kind": "property", - "name": "address", - "serializedName": "address", - "type": { - "$ref": "69" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.address", - "serializationOptions": { - "$id": "123", - "multipart": { - "$id": "124", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "application/json" - ], - "name": "address" - } - } + "$id": "33", + "kind": "constant", + "name": "BasicRequestContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] }, { - "$id": "125", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "126", - "kind": "model", - "name": "FileRequiredMetaData", + "$id": "35", + "kind": "constant", + "name": "FileSpecificContentTypeContentType", "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData", "usage": "Input", - "decorators": [], - "baseModel": { - "$id": "127", - "kind": "model", - "name": "File", - "namespace": "TypeSpec.Http", - "crossLanguageDefinitionId": "TypeSpec.Http.File", - "usage": "Input", - "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", - "summary": "A file in an HTTP request, response, or multipart payload.", - "decorators": [], - "properties": [ - { - "$id": "128", - "kind": "property", - "name": "contentType", - "serializedName": "contentType", - "summary": "The allowed media (MIME) types of the file contents.", - "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", - "type": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", - "serializationOptions": { - "$id": "130" - } - }, - { - "$id": "131", - "kind": "property", - "name": "filename", - "serializedName": "filename", - "summary": "The name of the file, if any.", - "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", - "type": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", - "serializationOptions": { - "$id": "133" - } - }, - { - "$id": "134", - "kind": "property", - "name": "contents", - "serializedName": "contents", - "summary": "The contents of the file.", - "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", - "type": { - "$id": "135", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", - "serializationOptions": { - "$id": "136" - } - } - ] + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "137", - "kind": "property", - "name": "filename", - "serializedName": "filename", - "type": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", - "serializationOptions": { - "$id": "139" - } - }, - { - "$id": "140", - "kind": "property", - "name": "contentType", - "serializedName": "contentType", - "type": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", - "serializationOptions": { - "$id": "142" - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.profileImage", - "serializationOptions": { - "$id": "143", - "multipart": { - "$id": "144", - "isFilePart": true, - "isMulti": false, - "filename": { - "$id": "145", - "apiVersions": [], - "type": { - "$id": "5290", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "filename", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "filename", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": { - "$ref": "139" - } - }, - "contentType": { - "$id": "5291", - "apiVersions": [], - "type": { - "$id": "5293", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "contentType", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "contentType", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": { - "$ref": "142" - } - }, - "defaultContentTypes": [ - "*/*" - ], - "name": "profileImage" - } - } + "value": "image/jpg", + "decorators": [] }, { - "$id": "5294", - "kind": "property", - "name": "previousAddresses", - "serializedName": "previousAddresses", - "type": { - "$id": "5295", - "kind": "array", - "name": "ArrayAddress", + "$id": "37", + "kind": "constant", + "name": "BasicRequestContentType17", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "69" + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.previousAddresses", - "serializationOptions": { - "$id": "5296", - "multipart": { - "$id": "5297", - "isFilePart": false, - "isMulti": false, - "defaultContentTypes": [ - "application/json" - ], - "name": "previousAddresses" - } - } }, { - "$id": "5298", - "kind": "property", - "name": "pictures", - "serializedName": "pictures", - "type": { - "$id": "5299", - "kind": "array", - "name": "ArrayHttpPart2", + "$id": "39", + "kind": "constant", + "name": "BasicRequestContentType18", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "126" + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.pictures", - "serializationOptions": { - "$id": "5300", - "multipart": { - "$id": "5301", - "isFilePart": true, - "isMulti": true, - "filename": { - "$ref": "145" - }, - "contentType": { - "$ref": "5291" - }, - "defaultContentTypes": [ - "*/*" - ], - "name": "pictures" - } - } - } - ] - }, - { - "$ref": "126" - }, - { - "$ref": "127" - }, - { - "$id": "5302", - "kind": "model", - "name": "FileWithHttpPartSpecificContentTypeRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + }, { - "$id": "5303", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "5304", - "kind": "model", - "name": "FileSpecificContentType", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType", - "usage": "Input", - "decorators": [], - "baseModel": { - "$ref": "127" + "$id": "41", + "kind": "constant", + "name": "BasicRequestContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "5305", - "kind": "property", - "name": "filename", - "serializedName": "filename", - "type": { - "$id": "5306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", - "serializationOptions": { - "$id": "5307" - } - }, - { - "$id": "5308", - "kind": "property", - "name": "contentType", - "serializedName": "contentType", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", - "serializationOptions": { - "$id": "5309" - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest.profileImage", - "serializationOptions": { - "$id": "5310", - "multipart": { - "$id": "5311", - "isFilePart": true, - "isMulti": false, - "filename": { - "$id": "5312", - "apiVersions": [], - "type": { - "$id": "5314", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "filename", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "filename", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": { - "$ref": "5307" - } - }, - "contentType": { - "$id": "5315", - "apiVersions": [], - "type": { - "$id": "5318", - "kind": "constant", - "decorators": [], - "value": "image/jpg", - "valueType": { - "$id": "5319", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "FileSpecificContentTypeContentType", - "isGeneratedName": true - }, - "name": "contentType", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "contentType", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": { - "$ref": "5309" - } - }, - "defaultContentTypes": [ - "image/jpg" - ], - "name": "profileImage" - } - } - } - ] - }, - { - "$ref": "5304" - }, - { - "$id": "5320", - "kind": "model", - "name": "FileWithHttpPartRequiredContentTypeRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + "value": "multipart/form-data", + "decorators": [] + }, { - "$id": "5321", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$ref": "126" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest.profileImage", - "serializationOptions": { - "$id": "5322", - "multipart": { - "$id": "5323", - "isFilePart": true, - "isMulti": false, - "filename": { - "$ref": "145" - }, - "contentType": { - "$ref": "5291" - }, - "defaultContentTypes": [ - "*/*" - ], - "name": "profileImage" - } - } - } - ] - }, - { - "$id": "5324", - "kind": "model", - "name": "FileWithHttpPartOptionalContentTypeRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + "$id": "43", + "kind": "constant", + "name": "BasicRequestContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, { - "$id": "5325", - "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", - "type": { - "$id": "5326", - "kind": "model", - "name": "FileOptionalContentType", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType", - "usage": "Input", - "decorators": [], - "baseModel": { - "$ref": "127" + "$id": "45", + "kind": "constant", + "name": "BasicRequestContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "5327", - "kind": "property", - "name": "filename", - "serializedName": "filename", - "type": { - "$id": "5328", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", - "serializationOptions": { - "$id": "5329" - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest.profileImage", - "serializationOptions": { - "$id": "5330", - "multipart": { - "$id": "5331", - "isFilePart": true, - "isMulti": false, - "filename": { - "$id": "5332", - "apiVersions": [], - "type": { - "$id": "5334", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "filename", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "filename", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": { - "$ref": "5329" - } - }, - "contentType": { - "$id": "5335", - "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", - "summary": "The allowed media (MIME) types of the file contents.", - "apiVersions": [], - "type": { - "$id": "5344", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "contentType", - "isGeneratedName": false, - "optional": true, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "contentType", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": { - "$ref": "130" - } - }, - "defaultContentTypes": [ - "*/*" - ], - "name": "profileImage" - } - } - } - ] - }, - { - "$ref": "5326" - }, - { - "$id": "5345", - "kind": "model", - "name": "FloatRequest", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous", - "usage": "Input,MultipartFormData", - "decorators": [], - "properties": [ + "value": "multipart/form-data", + "decorators": [] + }, { - "$id": "5346", - "kind": "property", - "name": "temperature", - "serializedName": "temperature", - "type": { - "$id": "5347", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", + "$id": "47", + "kind": "constant", + "name": "BasicRequestContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous.temperature", - "serializationOptions": { - "$id": "5348", - "multipart": { - "$id": "5349", - "isFilePart": false, - "isMulti": false, - "contentType": { - "$id": "5350", - "apiVersions": [], - "type": { - "$id": "6146", - "kind": "constant", - "decorators": [], - "value": "text/plain", - "valueType": { - "$id": "6147", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "FloatRequestTemperatureContentType", - "isGeneratedName": true - }, - "name": "contentType", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "correspondingMethodParams": [], - "kind": "header", - "serializedName": "content-type" - }, - "defaultContentTypes": [ - "text/plain" - ], - "name": "temperature" - } - } - } - ] - }, - { - "$id": "6148", - "kind": "model", - "name": "FloatRequestTemperature", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous", - "usage": "Input", - "decorators": [], - "properties": [ + }, { - "$id": "6149", - "kind": "header", - "name": "contentType", - "serializedName": "content-type", - "type": { - "$ref": "4" - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType", - "correspondingMethodParams": [] - } - ] - } - ], - "clients": [ - { - "$id": "6150", - "kind": "client", - "name": "MultiPartClient", - "namespace": "Payload.MultiPart", - "doc": "Test for multipart", - "methods": [], - "parameters": [ + "$id": "49", + "kind": "constant", + "name": "BasicRequestContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, { - "$id": "6151", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "6152", - "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": "6153", - "type": { - "$id": "6154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "51", + "kind": "constant", + "name": "FloatRequestTemperatureContentType", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "usage": "Input", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "text/plain", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "6155", - "kind": "client", - "name": "FormData", - "namespace": "Payload.MultiPart.FormData", - "methods": [ - { - "$id": "6156", - "kind": "basic", - "name": "basic", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data", - "operation": { - "$id": "6157", - "name": "basic", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "6158", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6159", - "name": "body", - "nameInRequest": "body", + "$id": "53", + "kind": "model", + "name": "MultiPartRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "54", + "kind": "property", + "name": "id", + "serializedName": "id", "type": { - "$ref": "54" + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6160", - "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": [] - }, - "parameters": [ - { - "$id": "6161", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest.id", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "id" + } + } }, { - "$id": "6162", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "54" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6163" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic" - }, - { - "$id": "6164", - "kind": "basic", - "name": "fileArrayAndBasic", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for mixed scenarios", - "operation": { - "$id": "6165", - "name": "fileArrayAndBasic", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for mixed scenarios", - "accessibility": "public", - "parameters": [ - { - "$id": "6166", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "56", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", "type": { - "$ref": "10" + "$id": "57", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6167", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "profileImage" + } + } + } + ] + }, + { + "$id": "58", + "kind": "model", + "name": "ComplexPartsRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "59", + "kind": "property", + "name": "id", + "serializedName": "id", "type": { - "$ref": "63" + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6168", - "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": [] - }, - "parameters": [ - { - "$id": "6169", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.id", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "id" + } + } }, { - "$id": "6170", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "63" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6171" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic" - }, - { - "$id": "6172", - "kind": "basic", - "name": "jsonPart", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", - "operation": { - "$id": "6173", - "name": "jsonPart", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", - "accessibility": "public", - "parameters": [ - { - "$id": "6174", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6175", - "name": "body", - "nameInRequest": "body", + "$id": "61", + "kind": "property", + "name": "address", + "serializedName": "address", "type": { - "$ref": "85" + "$id": "62", + "kind": "model", + "name": "Address", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.Address", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "63", + "kind": "property", + "name": "city", + "serializedName": "city", + "type": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.Address.city", + "serializationOptions": { + "json": { + "name": "city" + } + } + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6176", - "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": [] - }, - "parameters": [ - { - "$id": "6177", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.address", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "address" + } + } }, { - "$id": "6178", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "85" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6179" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart" - }, - { - "$id": "6180", - "kind": "basic", - "name": "binaryArrayParts", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "operation": { - "$id": "6181", - "name": "binaryArrayParts", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "accessibility": "public", - "parameters": [ - { - "$id": "6182", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "65", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", "type": { - "$ref": "18" + "$id": "66", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6183", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "profileImage" + } + } + }, + { + "$id": "67", + "kind": "property", + "name": "pictures", + "serializedName": "pictures", "type": { - "$ref": "93" + "$id": "68", + "kind": "array", + "name": "ArrayHttpPart", + "valueType": { + "$id": "69", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6184", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.pictures", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": true, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "pictures" + } + } + } + ] + }, + { + "$ref": "62" + }, + { + "$id": "70", + "kind": "model", + "name": "JsonPartRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ { - "$id": "6185", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "71", + "kind": "property", + "name": "address", + "serializedName": "address", + "type": { + "$ref": "62" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest.address", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "address" + } + } }, { - "$id": "6186", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "93" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6187" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts" - }, - { - "$id": "6188", - "kind": "basic", - "name": "multiBinaryParts", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "operation": { - "$id": "6189", - "name": "multiBinaryParts", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "accessibility": "public", - "parameters": [ - { - "$id": "6190", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "72", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", "type": { - "$ref": "22" + "$id": "73", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6191", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "profileImage" + } + } + } + ] + }, + { + "$id": "74", + "kind": "model", + "name": "BinaryArrayPartsRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "75", + "kind": "property", + "name": "id", + "serializedName": "id", "type": { - "$ref": "103" + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6192", - "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": [] - }, - "parameters": [ - { - "$id": "6193", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest.id", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "id" + } + } }, { - "$id": "6194", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "103" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6195" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts" - }, - { - "$id": "6196", - "kind": "basic", - "name": "checkFileNameAndContentType", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data", - "operation": { - "$id": "6197", - "name": "checkFileNameAndContentType", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "6198", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "77", + "kind": "property", + "name": "pictures", + "serializedName": "pictures", "type": { - "$ref": "26" + "$id": "78", + "kind": "array", + "name": "ArrayHttpPart1", + "valueType": { + "$id": "79", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6199", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest.pictures", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": true, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "pictures" + } + } + } + ] + }, + { + "$id": "80", + "kind": "model", + "name": "MultiBinaryPartsRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "81", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", "type": { - "$ref": "54" + "$id": "82", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6200", - "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": [] - }, - "parameters": [ - { - "$id": "6201", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "profileImage" + } + } }, { - "$id": "6202", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "54" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6203" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType" - }, - { - "$id": "6204", - "kind": "basic", - "name": "anonymousModel", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data", - "operation": { - "$id": "6205", - "name": "anonymousModel", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "6206", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "83", + "kind": "property", + "name": "picture", + "serializedName": "picture", "type": { - "$ref": "30" + "$id": "84", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6207", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest.picture", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "picture" + } + } + } + ] + }, + { + "$id": "85", + "kind": "model", + "name": "AnonymousModelRequest", + "namespace": "Payload.MultiPart.FormData", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.Request.anonymous", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "86", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", "type": { - "$ref": "112" + "$id": "87", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6208", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.Request.anonymous.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "profileImage" + } + } + } + ] + }, + { + "$id": "88", + "kind": "model", + "name": "ComplexHttpPartsModelRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ { - "$id": "6209", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "89", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.id", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "id" + } + } }, { - "$id": "6210", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "112" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "6211" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel" - } - ], - "parameters": [ - { - "$id": "6212", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "6213", - "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": "6214", - "type": { - "$id": "6215", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "91", + "kind": "property", + "name": "address", + "serializedName": "address", + "type": { + "$ref": "62" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.address", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "address" + } + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData", - "apiVersions": [], - "parent": { - "$ref": "6150" - }, - "children": [ - { - "$id": "6216", - "kind": "client", - "name": "HttpParts", - "namespace": "Payload.MultiPart.FormData.HttpParts", - "methods": [ { - "$id": "6217", - "kind": "basic", - "name": "jsonArrayAndFileArray", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for mixed scenarios", - "operation": { - "$id": "6218", - "name": "jsonArrayAndFileArray", - "resourceName": "HttpParts", - "doc": "Test content-type: multipart/form-data for mixed scenarios", - "accessibility": "public", - "parameters": [ - { - "$id": "6219", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "92", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", + "type": { + "$id": "93", + "kind": "model", + "name": "FileRequiredMetaData", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData", + "usage": "Input", "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6220", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "117" + "baseModel": { + "$id": "94", + "kind": "model", + "name": "File", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", + "usage": "Input", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", + "decorators": [], + "properties": [ + { + "$id": "95", + "kind": "property", + "name": "contentType", + "serializedName": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {} + }, + { + "$id": "97", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", + "serializationOptions": {} + }, + { + "$id": "99", + "kind": "property", + "name": "contents", + "serializedName": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "type": { + "$id": "100", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", + "serializationOptions": {} + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6221", - "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": [] - }, - "parameters": [ - { - "$id": "6222", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "properties": [ + { + "$id": "101", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "type": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", + "serializationOptions": {} + }, + { + "$id": "103", + "kind": "property", + "name": "contentType", + "serializedName": "contentType", + "type": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", + "serializationOptions": {} + } + ] }, - { - "$id": "6223", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "117" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "filename": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} + }, + "contentType": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "contentType", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "contentType", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} + }, + "defaultContentTypes": [ + "*/*" + ], + "name": "profileImage" + } } - ], - "response": { - "$id": "6224" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray" - } - ], - "parameters": [ + }, { - "$id": "6225", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "6226", - "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": "6227", + "$id": "105", + "kind": "property", + "name": "previousAddresses", + "serializedName": "previousAddresses", "type": { - "$id": "6228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "106", + "kind": "array", + "name": "ArrayAddress", + "valueType": { + "$ref": "62" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", - "apiVersions": [], - "parent": { - "$ref": "6155" - }, - "children": [ + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.previousAddresses", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "previousAddresses" + } + } + }, { - "$id": "6229", - "kind": "client", - "name": "ContentType", - "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", - "methods": [ - { - "$id": "6230", - "kind": "basic", - "name": "imageJpegContentType", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data", - "operation": { - "$id": "6231", - "name": "imageJpegContentType", - "resourceName": "ContentType", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "6232", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "38" + "$id": "107", + "kind": "property", + "name": "pictures", + "serializedName": "pictures", + "type": { + "$id": "108", + "kind": "array", + "name": "ArrayHttpPart2", + "valueType": { + "$ref": "93" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.pictures", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": true, + "filename": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6233", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5302" + "contentType": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "contentType", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "contentType", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6234", - "statusCodes": [ - 204 + "defaultContentTypes": [ + "*/*" ], - "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": [] - }, - "parameters": [ - { - "$id": "6235", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "name": "pictures" + } + } + } + ] + }, + { + "$ref": "93" + }, + { + "$ref": "94" + }, + { + "$id": "109", + "kind": "model", + "name": "FileWithHttpPartSpecificContentTypeRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "110", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", + "type": { + "$id": "111", + "kind": "model", + "name": "FileSpecificContentType", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType", + "usage": "Input", + "decorators": [], + "baseModel": { + "$ref": "94" }, - { - "$id": "6236", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5302" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "properties": [ + { + "$id": "112", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "type": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", + "serializationOptions": {} + }, + { + "$id": "114", + "kind": "property", + "name": "contentType", + "serializedName": "contentType", + "type": { + "$ref": "35" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "filename": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} + }, + "contentType": { + "apiVersions": [], + "type": { + "kind": "constant", + "decorators": [], + "value": "image/jpg", + "valueType": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "FileSpecificContentTypeContentType", + "isGeneratedName": true + }, + "name": "contentType", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "contentType", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} + }, + "defaultContentTypes": [ + "image/jpg" + ], + "name": "profileImage" } - ], - "response": { - "$id": "6237" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType" + } + } + ] + }, + { + "$ref": "111" + }, + { + "$id": "115", + "kind": "model", + "name": "FileWithHttpPartRequiredContentTypeRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "116", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", + "type": { + "$ref": "93" }, - { - "$id": "6238", - "kind": "basic", - "name": "requiredContentType", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data", - "operation": { - "$id": "6239", - "name": "requiredContentType", - "resourceName": "ContentType", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "6240", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "42" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "filename": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6241", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5320" + "contentType": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "contentType", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "contentType", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6242", - "statusCodes": [ - 204 + "defaultContentTypes": [ + "*/*" ], - "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": [] - }, - "parameters": [ - { - "$id": "6243", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6244", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5320" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "name": "profileImage" } - ], - "response": { - "$id": "6245" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType" + } + } + ] + }, + { + "$id": "117", + "kind": "model", + "name": "FileWithHttpPartOptionalContentTypeRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "118", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", + "type": { + "$id": "119", + "kind": "model", + "name": "FileOptionalContentType", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType", + "usage": "Input", + "decorators": [], + "baseModel": { + "$ref": "94" + }, + "properties": [ + { + "$id": "120", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "type": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", + "serializationOptions": {} + } + ] }, - { - "$id": "6246", - "kind": "basic", - "name": "optionalContentType", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for optional content type", - "operation": { - "$id": "6247", - "name": "optionalContentType", - "resourceName": "ContentType", - "doc": "Test content-type: multipart/form-data for optional content type", - "accessibility": "public", - "parameters": [ - { - "$id": "6248", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "46" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "filename": { + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6249", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5324" + "contentType": { + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "summary": "The allowed media (MIME) types of the file contents.", + "apiVersions": [], + "type": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "contentType", + "isGeneratedName": false, + "optional": true, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "kind": "property", + "discriminator": false, + "serializedName": "contentType", + "isMultipartFileInput": false, + "flatten": false, + "serializationOptions": {} }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6250", - "statusCodes": [ - 204 + "defaultContentTypes": [ + "*/*" ], - "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", + "name": "profileImage" + } + } + } + ] + }, + { + "$ref": "119" + }, + { + "$id": "122", + "kind": "model", + "name": "FloatRequest", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "123", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "type": { + "$id": "124", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", "decorators": [] - }, - "parameters": [ - { - "$id": "6251", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6252", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5324" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous.temperature", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "contentType": { + "apiVersions": [], + "type": { + "kind": "constant", + "decorators": [], + "value": "text/plain", + "valueType": { + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "FloatRequestTemperatureContentType", + "isGeneratedName": true + }, + "name": "contentType", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "correspondingMethodParams": [], + "kind": "header", + "serializedName": "content-type" + }, + "defaultContentTypes": [ + "text/plain" + ], + "name": "temperature" } - ], - "response": { - "$id": "6253" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType" } - ], - "parameters": [ - { - "$id": "6254", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "6255", + } + ] + }, + { + "$id": "125", + "kind": "model", + "name": "FloatRequestTemperature", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "126", + "kind": "header", + "name": "contentType", + "serializedName": "content-type", + "type": { + "$ref": "51" + }, + "optional": false, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType", + "correspondingMethodParams": [] + } + ] + } + ], + "clients": [ + { + "$id": "127", + "kind": "client", + "name": "MultiPartClient", + "namespace": "Payload.MultiPart", + "doc": "Test for multipart", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { "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": "6256", + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$id": "6257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" }, "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", - "apiVersions": [], - "parent": { - "$ref": "6216" - } - }, + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart", + "apiVersions": [], + "children": [ { - "$id": "6258", - "kind": "client", - "name": "NonString", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "methods": [ - { - "$id": "6259", - "kind": "basic", - "name": "float", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: multipart/form-data for non string", - "operation": { - "$id": "6260", - "name": "float", - "resourceName": "NonString", - "doc": "Test content-type: multipart/form-data for non string", - "accessibility": "public", - "parameters": [ - { - "$id": "6261", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "50" + "$id": "128", + "kind": "client", + "name": "FormData", + "namespace": "Payload.MultiPart.FormData", + "methods": [ + { + "$id": "129", + "kind": "basic", + "name": "basic", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data", + "operation": { + "$id": "130", + "name": "basic", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1" + }, + "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": "53" + }, + "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": "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": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "6262", - "name": "body", - "nameInRequest": "body", + "parameters": [ + { + "$id": "134", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "135", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic" + }, + { + "$id": "136", + "kind": "basic", + "name": "fileArrayAndBasic", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for mixed scenarios", + "operation": { + "$id": "137", + "name": "fileArrayAndBasic", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for mixed scenarios", + "accessibility": "public", + "parameters": [ + { + "$id": "138", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "139", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "58" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "140", + "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": [] + }, + "parameters": [ + { + "$id": "141", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "142", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "58" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic" + }, + { + "$id": "143", + "kind": "basic", + "name": "jsonPart", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", + "operation": { + "$id": "144", + "name": "jsonPart", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", + "accessibility": "public", + "parameters": [ + { + "$id": "145", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "146", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "70" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "147", + "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": [] + }, + "parameters": [ + { + "$id": "148", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "149", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "70" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart" + }, + { + "$id": "150", + "kind": "basic", + "name": "binaryArrayParts", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "operation": { + "$id": "151", + "name": "binaryArrayParts", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "accessibility": "public", + "parameters": [ + { + "$id": "152", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "153", + "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": "154", + "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": [] + }, + "parameters": [ + { + "$id": "155", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "156", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "74" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts" + }, + { + "$id": "157", + "kind": "basic", + "name": "multiBinaryParts", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "operation": { + "$id": "158", + "name": "multiBinaryParts", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "accessibility": "public", + "parameters": [ + { + "$id": "159", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "160", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "80" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "161", + "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": [] + }, + "parameters": [ + { + "$id": "162", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "163", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "80" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts" + }, + { + "$id": "164", + "kind": "basic", + "name": "checkFileNameAndContentType", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data", + "operation": { + "$id": "165", + "name": "checkFileNameAndContentType", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "166", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "167", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "168", + "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": [] + }, + "parameters": [ + { + "$id": "169", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "170", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType" + }, + { + "$id": "171", + "kind": "basic", + "name": "anonymousModel", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data", + "operation": { + "$id": "172", + "name": "anonymousModel", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "173", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "174", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "175", + "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": [] + }, + "parameters": [ + { + "$id": "176", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "177", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "5345" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "6263", - "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": [] - }, - "parameters": [ - { - "$id": "6264", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "apiVersions": [], + "parent": { + "$ref": "127" + }, + "children": [ { - "$id": "6265", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5345" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "178", + "kind": "client", + "name": "HttpParts", + "namespace": "Payload.MultiPart.FormData.HttpParts", + "methods": [ + { + "$id": "179", + "kind": "basic", + "name": "jsonArrayAndFileArray", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for mixed scenarios", + "operation": { + "$id": "180", + "name": "jsonArrayAndFileArray", + "resourceName": "HttpParts", + "doc": "Test content-type: multipart/form-data for mixed scenarios", + "accessibility": "public", + "parameters": [ + { + "$id": "181", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "182", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "88" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "184", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "185", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "88" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "apiVersions": [], + "parent": { + "$ref": "128" + }, + "children": [ + { + "$id": "186", + "kind": "client", + "name": "ContentType", + "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", + "methods": [ + { + "$id": "187", + "kind": "basic", + "name": "imageJpegContentType", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data", + "operation": { + "$id": "188", + "name": "imageJpegContentType", + "resourceName": "ContentType", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "189", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "190", + "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": "191", + "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": [] + }, + "parameters": [ + { + "$id": "192", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "193", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "109" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType" + }, + { + "$id": "194", + "kind": "basic", + "name": "requiredContentType", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data", + "operation": { + "$id": "195", + "name": "requiredContentType", + "resourceName": "ContentType", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "196", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "197", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "115" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "198", + "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": [] + }, + "parameters": [ + { + "$id": "199", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "200", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "115" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType" + }, + { + "$id": "201", + "kind": "basic", + "name": "optionalContentType", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for optional content type", + "operation": { + "$id": "202", + "name": "optionalContentType", + "resourceName": "ContentType", + "doc": "Test content-type: multipart/form-data for optional content type", + "accessibility": "public", + "parameters": [ + { + "$id": "203", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "43" + }, + "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": "117" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "205", + "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": [] + }, + "parameters": [ + { + "$id": "206", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "207", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "117" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", + "apiVersions": [], + "parent": { + "$ref": "178" + } + }, + { + "$id": "208", + "kind": "client", + "name": "NonString", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "methods": [ + { + "$id": "209", + "kind": "basic", + "name": "float", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: multipart/form-data for non string", + "operation": { + "$id": "210", + "name": "float", + "resourceName": "NonString", + "doc": "Test content-type: multipart/form-data for non string", + "accessibility": "public", + "parameters": [ + { + "$id": "211", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "212", + "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": "213", + "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": [] + }, + "parameters": [ + { + "$id": "214", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "215", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "122" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "apiVersions": [], + "parent": { + "$ref": "178" + } + } + ] } - ], - "response": { - "$id": "6266" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float" - } - ], - "parameters": [ - { - "$id": "6267", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "6268", - "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": "6269", - "type": { - "$id": "6270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", - "apiVersions": [], - "parent": { - "$ref": "6216" - } + ] } - ] - } - ] + ] } - ] - } - ] + ] } 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 e44d8dc690a..a1328b693ff 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 @@ -1,1654 +1,1604 @@ { - "$id": "1", - "name": "Payload.Pageable", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "linkContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "requestQueryResponseBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "requestHeaderResponseBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "requestQueryResponseHeaderContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "requestHeaderResponseHeaderContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "12", - "kind": "model", - "name": "LinkResponse", - "namespace": "Payload.Pageable.ServerDrivenPagination", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "name": "Payload.Pageable", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "13", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$id": "14", - "kind": "array", - "name": "ArrayPet", + "$id": "1", + "kind": "constant", + "name": "linkContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "15", - "kind": "model", - "name": "Pet", - "namespace": "Payload.Pageable", - "crossLanguageDefinitionId": "Payload.Pageable.Pet", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "16", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.Pet.id", - "serializationOptions": { - "$id": "18", - "json": { - "$id": "19", - "name": "id" - } - } - }, - { - "$id": "20", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.Pet.name", - "serializationOptions": { - "$id": "22", - "json": { - "$id": "23", - "name": "name" - } - } - } - ] + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous.pets", - "serializationOptions": { - "$id": "24", - "json": { - "$id": "25", - "name": "pets" - } - } }, { - "$id": "26", - "kind": "property", - "name": "next", - "serializedName": "next", - "type": { - "$id": "27", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous.next", - "serializationOptions": { - "$id": "28", - "json": { - "$id": "29", - "name": "next" - } - } - } - ] - }, - { - "$ref": "15" - }, - { - "$id": "30", - "kind": "model", - "name": "RequestQueryResponseBodyResponse", - "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "31", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$id": "32", - "kind": "array", - "name": "ArrayPet", + "$id": "3", + "kind": "constant", + "name": "requestQueryResponseBodyContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "15" + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous.pets", - "serializationOptions": { - "$id": "33", - "json": { - "$id": "34", - "name": "pets" - } - } }, { - "$id": "35", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "37", - "json": { - "$id": "38", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "39", - "kind": "model", - "name": "RequestHeaderResponseBodyResponse", - "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "40", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$id": "41", - "kind": "array", - "name": "ArrayPet", + "$id": "5", + "kind": "constant", + "name": "requestHeaderResponseBodyContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "15" + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.pets", - "serializationOptions": { - "$id": "42", - "json": { - "$id": "43", - "name": "pets" - } - } }, { - "$id": "44", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "46", - "json": { - "$id": "47", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "48", - "kind": "model", - "name": "RequestQueryResponseHeaderResponse", - "namespace": "", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "49", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$id": "50", - "kind": "array", - "name": "ArrayPet", + "$id": "7", + "kind": "constant", + "name": "requestQueryResponseHeaderContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "15" + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "requestQueryResponseHeader.Response.anonymous.pets", - "serializationOptions": { - "$id": "51", - "json": { - "$id": "52", - "name": "pets" - } - } - } - ] - }, - { - "$id": "53", - "kind": "model", - "name": "RequestHeaderResponseHeaderResponse", - "namespace": "", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "54", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$id": "55", - "kind": "array", - "name": "ArrayPet", + "$id": "9", + "kind": "constant", + "name": "requestHeaderResponseHeaderContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "15" + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "requestHeaderResponseHeader.Response.anonymous.pets", - "serializationOptions": { - "$id": "56", - "json": { - "$id": "57", - "name": "pets" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "58", - "kind": "client", - "name": "PageableClient", - "namespace": "Payload.Pageable", - "doc": "Test for pageable payload.", - "methods": [], - "parameters": [ - { - "$id": "59", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "60", - "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": "61", - "type": { - "$id": "62", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "63", - "kind": "client", - "name": "ServerDrivenPagination", - "namespace": "Payload.Pageable.ServerDrivenPagination", - "methods": [ - { - "$id": "64", - "kind": "paging", - "name": "link", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "65", - "name": "link", - "resourceName": "ServerDrivenPagination", - "accessibility": "public", - "parameters": [ - { - "$id": "66", - "name": "accept", - "nameInRequest": "Accept", + "$id": "11", + "kind": "model", + "name": "LinkResponse", + "namespace": "Payload.Pageable.ServerDrivenPagination", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "12", + "kind": "property", + "name": "pets", + "serializedName": "pets", "type": { - "$ref": "2" + "$id": "13", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$id": "14", + "kind": "model", + "name": "Pet", + "namespace": "Payload.Pageable", + "crossLanguageDefinitionId": "Payload.Pageable.Pet", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "15", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.Pet.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "17", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.Pet.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "67", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "12" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/link", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", - "decorators": [] - }, - "parameters": [ - { - "$id": "68", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "69", - "type": { - "$id": "70", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "15" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", - "pagingMetadata": { - "$id": "71", - "itemPropertySegments": [ - "pets" - ], - "nextLink": { - "$id": "72", - "responseSegments": [ - "next" - ], - "responseLocation": "Body" - } - } - } - ], - "parameters": [ - { - "$id": "73", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "74", - "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": "75", - "type": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", - "apiVersions": [], - "parent": { - "$ref": "58" - }, - "children": [ - { - "$id": "77", - "kind": "client", - "name": "ContinuationToken", - "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "methods": [ { - "$id": "78", - "kind": "paging", - "name": "requestQueryResponseBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "79", - "name": "requestQueryResponseBody", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "80", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "81", - "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": "82", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "84", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "85", - "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": "86", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "87", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "30" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", - "decorators": [] - }, - "parameters": [ - { - "$id": "88", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "89", - "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": "90", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "92", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "19", + "kind": "property", + "name": "next", + "serializedName": "next", + "type": { + "$id": "20", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false }, - { - "$id": "94", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous.next", + "serializationOptions": { + "json": { + "name": "next" + } } - ], - "response": { - "$id": "95", + } + ] + }, + { + "$ref": "14" + }, + { + "$id": "21", + "kind": "model", + "name": "RequestQueryResponseBodyResponse", + "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "22", + "kind": "property", + "name": "pets", + "serializedName": "pets", "type": { - "$id": "96", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "15" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "23", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", - "pagingMetadata": { - "$id": "97", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "98", - "parameter": { - "$ref": "80" - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } } - } }, { - "$id": "99", - "kind": "paging", - "name": "requestHeaderResponseBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "100", - "name": "requestHeaderResponseBody", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "101", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "103", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "105", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "106", - "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": "107", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "108", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "39" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", - "decorators": [] - }, - "parameters": [ - { - "$id": "109", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "111", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "113", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "114", + "$id": "24", + "kind": "property", + "name": "nextToken", + "serializedName": "nextToken", + "type": { + "$id": "25", "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": "115", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous.nextToken", + "serializationOptions": { + "json": { + "name": "nextToken" + } } - ], - "response": { - "$id": "116", + } + ] + }, + { + "$id": "26", + "kind": "model", + "name": "RequestHeaderResponseBodyResponse", + "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "27", + "kind": "property", + "name": "pets", + "serializedName": "pets", "type": { - "$id": "117", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "15" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "28", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", - "pagingMetadata": { - "$id": "118", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "119", - "parameter": { - "$ref": "101" - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } } - } }, { - "$id": "120", - "kind": "paging", - "name": "requestQueryResponseHeader", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "121", - "name": "requestQueryResponseHeader", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "122", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "123", - "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": "124", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "126", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "127", - "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": "128", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "129", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "48" - }, - "headers": [ - { - "$id": "130", - "name": "nextToken", - "nameInResponse": "next-token", - "type": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", - "decorators": [] - }, - "parameters": [ - { - "$id": "132", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "133", - "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": "134", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "136", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "137", + "$id": "29", + "kind": "property", + "name": "nextToken", + "serializedName": "nextToken", + "type": { + "$id": "30", "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": "138", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.nextToken", + "serializationOptions": { + "json": { + "name": "nextToken" + } } - ], - "response": { - "$id": "139", + } + ] + }, + { + "$id": "31", + "kind": "model", + "name": "RequestQueryResponseHeaderResponse", + "namespace": "", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "32", + "kind": "property", + "name": "pets", + "serializedName": "pets", "type": { - "$id": "140", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "15" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "33", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", - "pagingMetadata": { - "$id": "141", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "142", - "parameter": { - "$ref": "122" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "requestQueryResponseHeader.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } } - } - }, + } + ] + }, + { + "$id": "34", + "kind": "model", + "name": "RequestHeaderResponseHeaderResponse", + "namespace": "", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ { - "$id": "143", - "kind": "paging", - "name": "requestHeaderResponseHeader", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "144", - "name": "requestHeaderResponseHeader", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "145", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "147", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "148", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "149", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "150", - "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": "151", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "152", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "53" + "$id": "35", + "kind": "property", + "name": "pets", + "serializedName": "pets", + "type": { + "$id": "36", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" }, - "headers": [ - { - "$id": "153", - "name": "nextToken", - "nameInResponse": "next-token", - "type": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", - "decorators": [] - }, - "parameters": [ - { - "$id": "155", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false }, - { - "$id": "157", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "159", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "160", - "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": "161", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "requestHeaderResponseHeader.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } } - ], - "response": { - "$id": "162", + } + ] + } + ], + "clients": [ + { + "$id": "37", + "kind": "client", + "name": "PageableClient", + "namespace": "Payload.Pageable", + "doc": "Test for pageable payload.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "163", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "15" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", - "pagingMetadata": { - "$id": "164", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "165", - "parameter": { - "$ref": "145" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" } - } } - ], - "parameters": [ + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable", + "apiVersions": [], + "children": [ { - "$id": "166", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "167", - "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": "168", - "type": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "38", + "kind": "client", + "name": "ServerDrivenPagination", + "namespace": "Payload.Pageable.ServerDrivenPagination", + "methods": [ + { + "$id": "39", + "kind": "paging", + "name": "link", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "40", + "name": "link", + "resourceName": "ServerDrivenPagination", + "accessibility": "public", + "parameters": [ + { + "$id": "41", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "42", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "11" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/link", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", + "decorators": [] + }, + "parameters": [ + { + "$id": "43", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "44", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "nextLink": { + "responseSegments": [ + "next" + ], + "responseLocation": "Body" + } + } + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", + "apiVersions": [], + "parent": { + "$ref": "37" }, - "value": "http://localhost:3000" - } + "children": [ + { + "$id": "45", + "kind": "client", + "name": "ContinuationToken", + "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "methods": [ + { + "$id": "46", + "kind": "paging", + "name": "requestQueryResponseBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "47", + "name": "requestQueryResponseBody", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "48", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "49", + "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": "50", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "52", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "53", + "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": "54", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "55", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", + "decorators": [] + }, + "parameters": [ + { + "$id": "56", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "57", + "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": "58", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "60", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "61", + "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": "62", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "63", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "48" + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "64", + "kind": "paging", + "name": "requestHeaderResponseBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "65", + "name": "requestHeaderResponseBody", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "66", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "68", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "70", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "71", + "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": "72", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "73", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "26" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", + "decorators": [] + }, + "parameters": [ + { + "$id": "74", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "76", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "78", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "79", + "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": "80", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "81", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "66" + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "82", + "kind": "paging", + "name": "requestQueryResponseHeader", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "83", + "name": "requestQueryResponseHeader", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "84", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "85", + "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": "86", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "88", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "89", + "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": "90", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "91", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "31" + }, + "headers": [ + { + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", + "decorators": [] + }, + "parameters": [ + { + "$id": "93", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "94", + "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": "95", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "97", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "98", + "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": "99", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "100", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "84" + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + } + }, + { + "$id": "101", + "kind": "paging", + "name": "requestHeaderResponseHeader", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "102", + "name": "requestHeaderResponseHeader", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "103", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "105", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "107", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "108", + "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": "109", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "110", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "34" + }, + "headers": [ + { + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", + "decorators": [] + }, + "parameters": [ + { + "$id": "112", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "114", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "116", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "117", + "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": "118", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$id": "119", + "kind": "array", + "name": "ArrayPet", + "valueType": { + "$ref": "14" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "103" + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + } + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "apiVersions": [], + "parent": { + "$ref": "38" + } + } + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "apiVersions": [], - "parent": { - "$ref": "63" - } - } - ] + ] } - ] - } - ] + ] } 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 e817e279f29..a9fe535b86a 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 @@ -1,364 +1,347 @@ { - "$id": "1", - "name": "Resiliency.SrvDriven.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Version 1", - "decorators": [] - } - ], - "namespace": "Resiliency.ServiceDriven", - "doc": "Service versions.", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "6", - "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.", - "methods": [ - { - "$id": "7", - "kind": "basic", - "name": "fromNone", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "doc": "Test that currently accepts no parameters, will be updated in next spec to accept a new optional parameter as well", - "operation": { - "$id": "8", - "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", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "9", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}/resiliency/service-driven/client:v1/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-optional-param/from-none", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "10" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" - }, + "name": "Resiliency.SrvDriven.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "11", - "kind": "basic", - "name": "fromOneRequired", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", - "operation": { - "$id": "12", - "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": "13", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am a required parameter", - "type": { - "$id": "14", - "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": "15", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/resiliency/service-driven/client:v1/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-optional-param/from-one-required", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired", - "decorators": [] - }, - "parameters": [ - { - "$id": "16", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am a required parameter", - "type": { - "$id": "17", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.Versions", + "valueType": { + "$id": "2", "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 - } - ], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" - }, - { - "$id": "19", - "kind": "basic", - "name": "fromOneOptional", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", - "operation": { - "$id": "20", - "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": "21", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am an optional parameter", - "type": { - "$id": "22", - "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 - } - ], - "responses": [ - { - "$id": "23", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Version 1", + "decorators": [] + } ], - "httpMethod": "GET", - "uri": "{endpoint}/resiliency/service-driven/client:v1/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-optional-param/from-one-optional", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional", + "namespace": "Resiliency.ServiceDriven", + "doc": "Service versions.", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", "decorators": [] - }, - "parameters": [ - { - "$id": "24", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am an optional parameter", - "type": { - "$id": "25", - "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 - } - ], - "response": { - "$id": "26" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional" } - ], - "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" - }, + ], + "constants": [], + "models": [], + "clients": [ { - "$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 'v1'. This represents the API version of the service. Will grow up in the next deployment to be both 'v1' and 'v2'", - "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": "v1" - } + "$id": "4", + "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.", + "methods": [ + { + "$id": "5", + "kind": "basic", + "name": "fromNone", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "doc": "Test that currently accepts no parameters, will be updated in next spec to accept a new optional parameter as well", + "operation": { + "$id": "6", + "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", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "7", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}/resiliency/service-driven/client:v1/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-optional-param/from-none", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" + }, + { + "$id": "8", + "kind": "basic", + "name": "fromOneRequired", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", + "operation": { + "$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": "10", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am a required parameter", + "type": { + "$id": "11", + "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": "12", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/resiliency/service-driven/client:v1/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-optional-param/from-one-required", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired", + "decorators": [] + }, + "parameters": [ + { + "$id": "13", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am a required parameter", + "type": { + "$id": "14", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" + }, + { + "$id": "15", + "kind": "basic", + "name": "fromOneOptional", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", + "operation": { + "$id": "16", + "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": "17", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am an optional parameter", + "type": { + "$id": "18", + "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 + } + ], + "responses": [ + { + "$id": "19", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/resiliency/service-driven/client:v1/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-optional-param/from-one-optional", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional", + "decorators": [] + }, + "parameters": [ + { + "$id": "20", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am an optional parameter", + "type": { + "$id": "21", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "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": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "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, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "v1" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", + "apiVersions": [ + "v1" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven", - "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 de21b4eb57f..eebbf2a8cd7 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 @@ -1,565 +1,542 @@ { - "$id": "1", - "name": "Resiliency.SrvDriven.V2", - "apiVersions": [ - "v1", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Version 1", - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Version 2", - "decorators": [] - } - ], - "namespace": "Resiliency.ServiceDriven", - "doc": "Service versions", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "8", - "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", - "methods": [ - { - "$id": "9", - "kind": "basic", - "name": "addOperation", - "accessibility": "public", - "apiVersions": [ - "v2" - ], - "doc": "Added operation", - "operation": { - "$id": "10", - "name": "addOperation", - "resourceName": "ServiceDriven", - "doc": "Added operation", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "11", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-operation", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.addOperation", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "12" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.addOperation" - }, + "name": "Resiliency.SrvDriven.V2", + "apiVersions": [ + "v1", + "v2" + ], + "enums": [ { - "$id": "13", - "kind": "basic", - "name": "fromNone", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "doc": "Test that grew up from accepting no parameters to an optional input parameter", - "operation": { - "$id": "14", - "name": "fromNone", - "resourceName": "AddOptionalParam", - "doc": "Test that grew up from accepting no parameters to an optional input parameter", - "accessibility": "public", - "parameters": [ - { - "$id": "15", - "name": "new-parameter", - "nameInRequest": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "16", - "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 - } - ], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-optional-param/from-none", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone", - "decorators": [] - }, - "parameters": [ - { - "$id": "18", - "name": "new-parameter", - "nameInRequest": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "19", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.Versions", + "valueType": { + "$id": "2", "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 - } - ], - "response": { - "$id": "20" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" - }, - { - "$id": "21", - "kind": "basic", - "name": "fromOneRequired", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", - "operation": { - "$id": "22", - "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": "23", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am a required parameter", - "type": { - "$id": "24", - "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": "25", - "name": "new-parameter", - "nameInRequest": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Version 1", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "27", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "4", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Version 2", + "decorators": [] + } ], - "httpMethod": "GET", - "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-optional-param/from-one-required", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired", + "namespace": "Resiliency.ServiceDriven", + "doc": "Service versions", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", "decorators": [] - }, - "parameters": [ - { - "$id": "28", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am a required parameter", - "type": { - "$id": "29", - "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": "30", - "name": "new-parameter", - "nameInRequest": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "31", - "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 - } - ], - "response": { - "$id": "32" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" - }, + } + ], + "constants": [], + "models": [], + "clients": [ { - "$id": "33", - "kind": "basic", - "name": "fromOneOptional", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", - "operation": { - "$id": "34", - "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": "35", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am an optional parameter", - "type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5", + "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", + "methods": [ + { + "$id": "6", + "kind": "basic", + "name": "addOperation", + "accessibility": "public", + "apiVersions": [ + "v2" + ], + "doc": "Added operation", + "operation": { + "$id": "7", + "name": "addOperation", + "resourceName": "ServiceDriven", + "doc": "Added operation", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "8", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-operation", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.addOperation", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.addOperation" + }, + { + "$id": "9", + "kind": "basic", + "name": "fromNone", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "doc": "Test that grew up from accepting no parameters to an optional input parameter", + "operation": { + "$id": "10", + "name": "fromNone", + "resourceName": "AddOptionalParam", + "doc": "Test that grew up from accepting no parameters to an optional input parameter", + "accessibility": "public", + "parameters": [ + { + "$id": "11", + "name": "new-parameter", + "nameInRequest": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "12", + "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 + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-optional-param/from-none", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "new-parameter", + "nameInRequest": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "15", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "37", - "name": "new-parameter", - "nameInRequest": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "16", + "kind": "basic", + "name": "fromOneRequired", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", + "operation": { + "$id": "17", + "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": "18", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am a required parameter", + "type": { + "$id": "19", + "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": "20", + "name": "new-parameter", + "nameInRequest": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "21", + "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 + } + ], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-optional-param/from-one-required", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired", + "decorators": [] + }, + "parameters": [ + { + "$id": "23", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am a required parameter", + "type": { + "$id": "24", + "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": "25", + "name": "new-parameter", + "nameInRequest": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "26", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "27", + "kind": "basic", + "name": "fromOneOptional", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", + "operation": { + "$id": "28", + "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": "29", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am an optional parameter", + "type": { + "$id": "30", + "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": "31", + "name": "new-parameter", + "nameInRequest": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "32", + "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 + } + ], + "responses": [ + { + "$id": "33", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", + "path": "/add-optional-param/from-one-optional", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional", + "decorators": [] + }, + "parameters": [ + { + "$id": "34", + "name": "parameter", + "nameInRequest": "parameter", + "doc": "I am an optional parameter", + "type": { + "$id": "35", + "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": "36", + "name": "new-parameter", + "nameInRequest": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "37", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional" + } ], - "responses": [ - { - "$id": "39", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "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": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "apiVersion", + "nameInRequest": "apiVersion", + "doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", + "type": { + "$id": "39", + "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": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "v2" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}/resiliency/service-driven/client:v2/service:{serviceDeploymentVersion}/api-version:{apiVersion}", - "path": "/add-optional-param/from-one-optional", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional", - "decorators": [] - }, - "parameters": [ - { - "$id": "40", - "name": "parameter", - "nameInRequest": "parameter", - "doc": "I am an optional parameter", - "type": { - "$id": "41", - "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": "42", - "name": "new-parameter", - "nameInRequest": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "43", - "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 - } - ], - "response": { - "$id": "44" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional" - } - ], - "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": "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": "48", - "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": "49", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", - "type": { - "$id": "50", - "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": "51", - "type": { - "$id": "52", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "v2" - } + "decorators": [], + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", + "apiVersions": [ + "v1", + "v2" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven", - "apiVersions": [ - "v1", - "v2" - ] - } - ] + ] } 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 8dac1023378..9430e0cec89 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 @@ -1,440 +1,419 @@ { - "$id": "1", - "name": "Response.StatusCodeRange", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "errorResponseStatusCodeInRangeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "errorResponseStatusCode404ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "6", - "kind": "model", - "name": "ErrorInRange", - "namespace": "Response.StatusCodeRange", - "crossLanguageDefinitionId": "Response.StatusCodeRange.ErrorInRange", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + "name": "Response.StatusCodeRange", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "7", - "kind": "property", - "name": "code", - "serializedName": "code", - "type": { - "$id": "8", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "errorResponseStatusCodeInRangeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange.ErrorInRange.code", - "serializationOptions": { - "$id": "9", - "json": { - "$id": "10", - "name": "code" - } - } }, { - "$id": "11", - "kind": "property", - "name": "message", - "serializedName": "message", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "3", + "kind": "constant", + "name": "errorResponseStatusCode404ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange.ErrorInRange.message", - "serializationOptions": { - "$id": "13", - "json": { - "$id": "14", - "name": "message" - } - } } - ] - }, - { - "$id": "15", - "kind": "model", - "name": "DefaultError", - "namespace": "Response.StatusCodeRange", - "crossLanguageDefinitionId": "Response.StatusCodeRange.DefaultError", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + ], + "models": [ { - "$id": "16", - "kind": "property", - "name": "code", - "serializedName": "code", - "type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange.DefaultError.code", - "serializationOptions": { - "$id": "18", - "json": { - "$id": "19", - "name": "code" - } - } - } - ] - }, - { - "$id": "20", - "kind": "model", - "name": "NotFoundError", - "namespace": "Response.StatusCodeRange", - "crossLanguageDefinitionId": "Response.StatusCodeRange.NotFoundError", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + "$id": "5", + "kind": "model", + "name": "ErrorInRange", + "namespace": "Response.StatusCodeRange", + "crossLanguageDefinitionId": "Response.StatusCodeRange.ErrorInRange", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "6", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange.ErrorInRange.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "8", + "kind": "property", + "name": "message", + "serializedName": "message", + "type": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange.ErrorInRange.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, { - "$id": "21", - "kind": "property", - "name": "code", - "serializedName": "code", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange.NotFoundError.code", - "serializationOptions": { - "$id": "23", - "json": { - "$id": "24", - "name": "code" - } - } + "$id": "10", + "kind": "model", + "name": "DefaultError", + "namespace": "Response.StatusCodeRange", + "crossLanguageDefinitionId": "Response.StatusCodeRange.DefaultError", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "11", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange.DefaultError.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + } + ] }, { - "$id": "25", - "kind": "property", - "name": "resourceId", - "serializedName": "resourceId", - "type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange.NotFoundError.resourceId", - "serializationOptions": { - "$id": "27", - "json": { - "$id": "28", - "name": "resourceId" - } - } - } - ] - }, - { - "$id": "29", - "kind": "model", - "name": "Standard4XXError", - "namespace": "Response.StatusCodeRange", - "crossLanguageDefinitionId": "Response.StatusCodeRange.Standard4XXError", - "usage": "Json,Exception", - "decorators": [], - "properties": [ + "$id": "13", + "kind": "model", + "name": "NotFoundError", + "namespace": "Response.StatusCodeRange", + "crossLanguageDefinitionId": "Response.StatusCodeRange.NotFoundError", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "14", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange.NotFoundError.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "16", + "kind": "property", + "name": "resourceId", + "serializedName": "resourceId", + "type": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange.NotFoundError.resourceId", + "serializationOptions": { + "json": { + "name": "resourceId" + } + } + } + ] + }, { - "$id": "30", - "kind": "property", - "name": "code", - "serializedName": "code", - "type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange.Standard4XXError.code", - "serializationOptions": { - "$id": "32", - "json": { - "$id": "33", - "name": "code" - } - } + "$id": "18", + "kind": "model", + "name": "Standard4XXError", + "namespace": "Response.StatusCodeRange", + "crossLanguageDefinitionId": "Response.StatusCodeRange.Standard4XXError", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "19", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange.Standard4XXError.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + } + ] } - ] - } - ], - "clients": [ - { - "$id": "34", - "kind": "client", - "name": "StatusCodeRangeClient", - "namespace": "Response.StatusCodeRange", - "doc": "Test for range of status code.", - "methods": [ + ], + "clients": [ { - "$id": "35", - "kind": "basic", - "name": "errorResponseStatusCodeInRange", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "36", - "name": "errorResponseStatusCodeInRange", - "resourceName": "StatusCodeRange", - "accessibility": "public", - "parameters": [ - { - "$id": "37", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" + "$id": "21", + "kind": "client", + "name": "StatusCodeRangeClient", + "namespace": "Response.StatusCodeRange", + "doc": "Test for range of status code.", + "methods": [ + { + "$id": "22", + "kind": "basic", + "name": "errorResponseStatusCodeInRange", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "23", + "name": "errorResponseStatusCodeInRange", + "resourceName": "StatusCodeRange", + "accessibility": "public", + "parameters": [ + { + "$id": "24", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "25", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/response/status-code-range/error-response-status-code-in-range", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCodeInRange", + "decorators": [] + }, + "parameters": [ + { + "$id": "26", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCodeInRange" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "38", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "27", + "kind": "basic", + "name": "errorResponseStatusCode404", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "28", + "name": "errorResponseStatusCode404", + "resourceName": "StatusCodeRange", + "accessibility": "public", + "parameters": [ + { + "$id": "29", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/response/status-code-range/error-response-status-code-404", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCode404", + "decorators": [] + }, + "parameters": [ + { + "$id": "31", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCode404" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/response/status-code-range/error-response-status-code-in-range", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCodeInRange", - "decorators": [] - }, - "parameters": [ - { - "$id": "39", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "40" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCodeInRange" - }, - { - "$id": "41", - "kind": "basic", - "name": "errorResponseStatusCode404", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "42", - "name": "errorResponseStatusCode404", - "resourceName": "StatusCodeRange", - "accessibility": "public", "parameters": [ - { - "$id": "43", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "44", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/response/status-code-range/error-response-status-code-404", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCode404", - "decorators": [] - }, - "parameters": [ - { - "$id": "45", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "46" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCode404" - } - ], - "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" - } + "decorators": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange", - "apiVersions": [] - } - ] + ] } 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 d3c8fadb2ca..2104bcb60ec 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 @@ -1,373 +1,359 @@ { - "$id": "1", - "name": "Serialization.EncodedName.Json", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "sendContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "6", - "kind": "model", - "name": "JsonEncodedNameModel", - "namespace": "Serialization.EncodedName.Json.Property", - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.JsonEncodedNameModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Serialization.EncodedName.Json", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "7", - "kind": "property", - "name": "defaultName", - "serializedName": "wireName", - "doc": "Pass in true", - "type": { - "$id": "8", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "1", + "kind": "constant", + "name": "sendContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.JsonEncodedNameModel.defaultName", - "serializationOptions": { - "$id": "9", - "json": { - "$id": "10", - "name": "wireName" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "11", - "kind": "client", - "name": "JsonClient", - "namespace": "Serialization.EncodedName.Json", - "doc": "Encoded names", - "methods": [], - "parameters": [ + }, { - "$id": "12", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "13", - "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": "14", - "type": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "3", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "16", - "kind": "client", - "name": "Property", - "namespace": "Serialization.EncodedName.Json.Property", - "methods": [ - { - "$id": "17", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "18", - "name": "send", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "19", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "20", - "name": "body", - "nameInRequest": "body", + "$id": "5", + "kind": "model", + "name": "JsonEncodedNameModel", + "namespace": "Serialization.EncodedName.Json.Property", + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.JsonEncodedNameModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6", + "kind": "property", + "name": "defaultName", + "serializedName": "wireName", + "doc": "Pass in true", "type": { - "$ref": "6" + "$id": "7", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "21", - "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": [] - }, - "parameters": [ - { - "$id": "22", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "6" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "23", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.JsonEncodedNameModel.defaultName", + "serializationOptions": { + "json": { + "name": "wireName" + } + } } - ], - "response": { - "$id": "24" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send" - }, - { - "$id": "25", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "26", - "name": "get", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "27", - "name": "accept", - "nameInRequest": "Accept", + ] + } + ], + "clients": [ + { + "$id": "8", + "kind": "client", + "name": "JsonClient", + "namespace": "Serialization.EncodedName.Json", + "doc": "Encoded names", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "4" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "28", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "6" - }, - "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": [] - }, - "parameters": [ - { - "$id": "29", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - ], - "response": { - "$id": "30", - "type": { - "$ref": "6" + ], + "decorators": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json", + "apiVersions": [], + "children": [ + { + "$id": "9", + "kind": "client", + "name": "Property", + "namespace": "Serialization.EncodedName.Json.Property", + "methods": [ + { + "$id": "10", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "11", + "name": "send", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "12", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "13", + "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": "14", + "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": [] + }, + "parameters": [ + { + "$id": "15", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "16", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send" + }, + { + "$id": "17", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "18", + "name": "get", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "19", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "20", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5" + }, + "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": [] + }, + "parameters": [ + { + "$id": "21", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "apiVersions": [], + "parent": { + "$ref": "8" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get" - } - ], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", - "apiVersions": [], - "parent": { - "$ref": "11" - } + ] } - ] - } - ] + ] } 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 a449e20b6d2..92348475c45 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 @@ -1,84 +1,79 @@ { - "$id": "1", - "name": "Server.Endpoint.NotDefined", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "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.", - "methods": [ + "name": "Server.Endpoint.NotDefined", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "valid", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "4", - "name": "valid", - "resourceName": "NotDefined", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "5", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "1", + "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.", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3", + "name": "valid", + "resourceName": "NotDefined", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "4", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/endpoint/not-defined/valid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Endpoint.NotDefined.valid", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Endpoint.NotDefined.valid" + } ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/endpoint/not-defined/valid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Endpoint.NotDefined.valid", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "6" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Endpoint.NotDefined.valid" - } - ], - "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" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "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", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Server.Endpoint.NotDefined", - "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 c9816dc8cea..3af2ee29814 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 @@ -1,242 +1,228 @@ { - "$id": "1", - "name": "Server.Path.Multiple", - "apiVersions": [ - "v1.0" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Server.Path.Multiple.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Server.Path.Multiple", + "apiVersions": [ + "v1.0" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "v1_0", - "value": "v1.0", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Server.Path.Multiple.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1_0", + "value": "v1.0", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Version 1.0", + "decorators": [] + } + ], + "namespace": "Server.Path.Multiple", + "doc": "Service versions", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Version 1.0", - "decorators": [] } - ], - "namespace": "Server.Path.Multiple", - "doc": "Service versions", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "6", - "kind": "client", - "name": "MultipleClient", - "namespace": "Server.Path.Multiple", - "methods": [ + ], + "constants": [], + "models": [], + "clients": [ { - "$id": "7", - "kind": "basic", - "name": "noOperationParams", - "accessibility": "public", - "apiVersions": [ - "v1.0" - ], - "operation": { - "$id": "8", - "name": "noOperationParams", - "resourceName": "Multiple", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "9", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "4", + "kind": "client", + "name": "MultipleClient", + "namespace": "Server.Path.Multiple", + "methods": [ + { + "$id": "5", + "kind": "basic", + "name": "noOperationParams", + "accessibility": "public", + "apiVersions": [ + "v1.0" + ], + "operation": { + "$id": "6", + "name": "noOperationParams", + "resourceName": "Multiple", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "7", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/server/path/multiple/{apiVersion}", + "path": "/", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Path.Multiple.noOperationParams", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Path.Multiple.noOperationParams" + }, + { + "$id": "8", + "kind": "basic", + "name": "withOperationPathParam", + "accessibility": "public", + "apiVersions": [ + "v1.0" + ], + "operation": { + "$id": "9", + "name": "withOperationPathParam", + "resourceName": "Multiple", + "accessibility": "public", + "parameters": [ + { + "$id": "10", + "name": "keyword", + "nameInRequest": "keyword", + "type": { + "$id": "11", + "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": "12", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/server/path/multiple/{apiVersion}", + "path": "/{keyword}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam", + "decorators": [] + }, + "parameters": [ + { + "$id": "13", + "name": "keyword", + "nameInRequest": "keyword", + "type": { + "$id": "14", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam" + } ], - "httpMethod": "GET", - "uri": "{endpoint}/server/path/multiple/{apiVersion}", - "path": "/", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Path.Multiple.noOperationParams", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "10" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Path.Multiple.noOperationParams" - }, - { - "$id": "11", - "kind": "basic", - "name": "withOperationPathParam", - "accessibility": "public", - "apiVersions": [ - "v1.0" - ], - "operation": { - "$id": "12", - "name": "withOperationPathParam", - "resourceName": "Multiple", - "accessibility": "public", "parameters": [ - { - "$id": "13", - "name": "keyword", - "nameInRequest": "keyword", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Pass in http://localhost:3000 for endpoint.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "15", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "name": "apiVersion", + "nameInRequest": "apiVersion", + "doc": "Pass in v1.0 for API version.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": true, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "v1.0" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}/server/path/multiple/{apiVersion}", - "path": "/{keyword}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam", - "decorators": [] - }, - "parameters": [ - { - "$id": "16", - "name": "keyword", - "nameInRequest": "keyword", - "type": { - "$id": "17", - "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 - } - ], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam" + "decorators": [], + "crossLanguageDefinitionId": "Server.Path.Multiple", + "apiVersions": [ + "v1.0" + ] } - ], - "parameters": [ - { - "$id": "19", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Pass in http://localhost:3000 for endpoint.", - "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": "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": "22", - "type": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "v1.0" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Server.Path.Multiple", - "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 6d2c845ede7..984d07f18b2 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 @@ -1,84 +1,79 @@ { - "$id": "1", - "name": "Server.Path.Single", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "SingleClient", - "namespace": "Server.Path.Single", - "doc": "Illustrates server with a single path parameter @server", - "methods": [ + "name": "Server.Path.Single", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "myOp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "4", - "name": "myOp", - "resourceName": "Single", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "5", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } + "$id": "1", + "kind": "client", + "name": "SingleClient", + "namespace": "Server.Path.Single", + "doc": "Illustrates server with a single path parameter @server", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "myOp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3", + "name": "myOp", + "resourceName": "Single", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "4", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/path/single/myOp", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Path.Single.myOp", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Path.Single.myOp" + } ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/path/single/myOp", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Path.Single.myOp", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "6" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Path.Single.myOp" - } - ], - "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" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "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", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Server.Path.Single", - "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 a769583bafa..ec27fd8de1b 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 @@ -1,252 +1,243 @@ { - "$id": "1", - "name": "Server.Versions.NotVersioned", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "NotVersionedClient", - "namespace": "Server.Versions.NotVersioned", - "doc": "Illustrates not-versioned server.", - "methods": [ + "name": "Server.Versions.NotVersioned", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "withoutApiVersion", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "4", - "name": "withoutApiVersion", - "resourceName": "NotVersioned", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "5", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/not-versioned/without-api-version", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withoutApiVersion", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "6" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withoutApiVersion" - }, - { - "$id": "7", - "kind": "basic", - "name": "withQueryApiVersion", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "8", - "name": "withQueryApiVersion", - "resourceName": "NotVersioned", - "accessibility": "public", - "parameters": [ - { - "$id": "9", - "name": "apiVersion", - "nameInRequest": "api-version", - "type": { - "$id": "10", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "1", + "kind": "client", + "name": "NotVersionedClient", + "namespace": "Server.Versions.NotVersioned", + "doc": "Illustrates not-versioned server.", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "withoutApiVersion", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3", + "name": "withoutApiVersion", + "resourceName": "NotVersioned", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "4", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/not-versioned/without-api-version", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withoutApiVersion", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withoutApiVersion" }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "11", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/not-versioned/with-query-api-version", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion", - "decorators": [] - }, - "parameters": [ - { - "$id": "12", - "name": "apiVersion", - "nameInRequest": "api-version", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "14" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion" - }, - { - "$id": "15", - "kind": "basic", - "name": "withPathApiVersion", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "16", - "name": "withPathApiVersion", - "resourceName": "NotVersioned", - "accessibility": "public", - "parameters": [ - { - "$id": "17", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "type": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "5", + "kind": "basic", + "name": "withQueryApiVersion", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "6", + "name": "withQueryApiVersion", + "resourceName": "NotVersioned", + "accessibility": "public", + "parameters": [ + { + "$id": "7", + "name": "apiVersion", + "nameInRequest": "api-version", + "type": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "9", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/not-versioned/with-query-api-version", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion", + "decorators": [] + }, + "parameters": [ + { + "$id": "10", + "name": "apiVersion", + "nameInRequest": "api-version", + "type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion" }, - "location": "Path", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "12", + "kind": "basic", + "name": "withPathApiVersion", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "13", + "name": "withPathApiVersion", + "resourceName": "NotVersioned", + "accessibility": "public", + "parameters": [ + { + "$id": "14", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "type": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "16", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/not-versioned/with-path-api-version/{apiVersion}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion", + "decorators": [] + }, + "parameters": [ + { + "$id": "17", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "type": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion" + } ], - "responses": [ - { - "$id": "19", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/not-versioned/with-path-api-version/{apiVersion}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion", - "decorators": [] - }, - "parameters": [ - { - "$id": "20", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "22" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion" - } - ], - "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" + "decorators": [], + "crossLanguageDefinitionId": "Server.Versions.NotVersioned", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Server.Versions.NotVersioned", - "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 0bad8a8b773..beb910c3c3f 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 @@ -1,376 +1,351 @@ { - "$id": "1", - "name": "Server.Versions.Versioned", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Server.Versions.Versioned.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "v2021_01_01_preview", - "value": "2021-01-01-preview", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version 2022-12-01-preview.", - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version 2022-12-01-preview.", - "decorators": [] - } - ], - "namespace": "Server.Versions.Versioned", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "8", - "kind": "client", - "name": "VersionedClient", - "namespace": "Server.Versions.Versioned", - "doc": "Illustrates versioned server.", - "methods": [ - { - "$id": "9", - "kind": "basic", - "name": "withoutApiVersion", - "accessibility": "public", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ], - "operation": { - "$id": "10", - "name": "withoutApiVersion", - "resourceName": "Versioned", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "11", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/versioned/without-api-version", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withoutApiVersion", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "12" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withoutApiVersion" - }, + "name": "Server.Versions.Versioned", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ], + "enums": [ { - "$id": "13", - "kind": "basic", - "name": "withQueryApiVersion", - "accessibility": "public", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ], - "operation": { - "$id": "14", - "name": "withQueryApiVersion", - "resourceName": "Versioned", - "accessibility": "public", - "parameters": [ - { - "$id": "15", - "name": "apiVersion", - "nameInRequest": "api-version", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Server.Versions.Versioned.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v2021_01_01_preview", + "value": "2021-01-01-preview", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version 2022-12-01-preview.", + "decorators": [] }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "17", - "type": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2022-12-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "19", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "4", + "kind": "enumvalue", + "name": "v2022_12_01_preview", + "value": "2022-12-01-preview", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version 2022-12-01-preview.", + "decorators": [] + } ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/versioned/with-query-api-version", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion", + "namespace": "Server.Versions.Versioned", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", "decorators": [] - }, - "parameters": [], - "response": { - "$id": "20" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion" - }, + } + ], + "constants": [], + "models": [], + "clients": [ { - "$id": "21", - "kind": "basic", - "name": "withPathApiVersion", - "accessibility": "public", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ], - "operation": { - "$id": "22", - "name": "withPathApiVersion", - "resourceName": "Versioned", - "accessibility": "public", - "parameters": [ - { - "$id": "23", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "25", - "type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2022-12-01-preview" + "$id": "5", + "kind": "client", + "name": "VersionedClient", + "namespace": "Server.Versions.Versioned", + "doc": "Illustrates versioned server.", + "methods": [ + { + "$id": "6", + "kind": "basic", + "name": "withoutApiVersion", + "accessibility": "public", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ], + "operation": { + "$id": "7", + "name": "withoutApiVersion", + "resourceName": "Versioned", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "8", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/versioned/without-api-version", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withoutApiVersion", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withoutApiVersion" }, - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "27", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/versioned/with-path-api-version/{apiVersion}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "28" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion" - }, - { - "$id": "29", - "kind": "basic", - "name": "withQueryOldApiVersion", - "accessibility": "public", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ], - "operation": { - "$id": "30", - "name": "withQueryOldApiVersion", - "resourceName": "Versioned", - "accessibility": "public", - "parameters": [ - { - "$id": "31", - "name": "apiVersion", - "nameInRequest": "api-version", - "type": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "9", + "kind": "basic", + "name": "withQueryApiVersion", + "accessibility": "public", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ], + "operation": { + "$id": "10", + "name": "withQueryApiVersion", + "resourceName": "Versioned", + "accessibility": "public", + "parameters": [ + { + "$id": "11", + "name": "apiVersion", + "nameInRequest": "api-version", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2022-12-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/versioned/with-query-api-version", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion" }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "33", - "type": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2022-12-01-preview" + { + "$id": "14", + "kind": "basic", + "name": "withPathApiVersion", + "accessibility": "public", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ], + "operation": { + "$id": "15", + "name": "withPathApiVersion", + "resourceName": "Versioned", + "accessibility": "public", + "parameters": [ + { + "$id": "16", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "type": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2022-12-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "18", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/versioned/with-path-api-version/{apiVersion}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion" }, - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "19", + "kind": "basic", + "name": "withQueryOldApiVersion", + "accessibility": "public", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ], + "operation": { + "$id": "20", + "name": "withQueryOldApiVersion", + "resourceName": "Versioned", + "accessibility": "public", + "parameters": [ + { + "$id": "21", + "name": "apiVersion", + "nameInRequest": "api-version", + "type": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2022-12-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "23", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/server/versions/versioned/with-query-old-api-version", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryOldApiVersion", + "decorators": [] + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryOldApiVersion" + } ], - "responses": [ - { - "$id": "35", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/server/versions/versioned/with-query-old-api-version", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryOldApiVersion", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "36" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryOldApiVersion" + "decorators": [], + "crossLanguageDefinitionId": "Server.Versions.Versioned", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ] } - ], - "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" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Server.Versions.Versioned", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ] - } - ] + ] } 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 5b98c1b15c2..b2de06a19f2 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 @@ -1,438 +1,425 @@ { - "$id": "1", - "name": "SpecialHeaders.ConditionalRequest", - "apiVersions": [], - "enums": [], - "constants": [], - "models": [], - "clients": [ - { - "$id": "2", - "kind": "client", - "name": "ConditionalRequestClient", - "namespace": "SpecialHeaders.ConditionalRequest", - "doc": "Illustrates conditional request headers", - "methods": [ + "name": "SpecialHeaders.ConditionalRequest", + "apiVersions": [], + "enums": [], + "constants": [], + "models": [], + "clients": [ { - "$id": "3", - "kind": "basic", - "name": "postIfMatch", - "accessibility": "public", - "apiVersions": [], - "doc": "Check when only If-Match in header is defined.", - "operation": { - "$id": "4", - "name": "postIfMatch", - "resourceName": "ConditionalRequest", - "doc": "Check when only If-Match in header is defined.", - "accessibility": "public", - "parameters": [ - { - "$id": "5", - "name": "ifMatch", - "nameInRequest": "If-Match", - "doc": "The request should only proceed if an entity matches this string.", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "1", + "kind": "client", + "name": "ConditionalRequestClient", + "namespace": "SpecialHeaders.ConditionalRequest", + "doc": "Illustrates conditional request headers", + "methods": [ + { + "$id": "2", + "kind": "basic", + "name": "postIfMatch", + "accessibility": "public", + "apiVersions": [], + "doc": "Check when only If-Match in header is defined.", + "operation": { + "$id": "3", + "name": "postIfMatch", + "resourceName": "ConditionalRequest", + "doc": "Check when only If-Match in header is defined.", + "accessibility": "public", + "parameters": [ + { + "$id": "4", + "name": "ifMatch", + "nameInRequest": "If-Match", + "doc": "The request should only proceed if an entity matches this string.", + "type": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "6", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-headers/conditional-request/if-match", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "7", + "name": "ifMatch", + "nameInRequest": "If-Match", + "doc": "The request should only proceed if an entity matches this string.", + "type": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "7", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-headers/conditional-request/if-match", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch", - "decorators": [] - }, - "parameters": [ - { - "$id": "8", - "name": "ifMatch", - "nameInRequest": "If-Match", - "doc": "The request should only proceed if an entity matches this string.", - "type": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "10" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch" - }, - { - "$id": "11", - "kind": "basic", - "name": "postIfNoneMatch", - "accessibility": "public", - "apiVersions": [], - "doc": "Check when only If-None-Match in header is defined.", - "operation": { - "$id": "12", - "name": "postIfNoneMatch", - "resourceName": "ConditionalRequest", - "doc": "Check when only If-None-Match in header is defined.", - "accessibility": "public", - "parameters": [ - { - "$id": "13", - "name": "ifNoneMatch", - "nameInRequest": "If-None-Match", - "doc": "The request should only proceed if no entity matches this string.", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "9", + "kind": "basic", + "name": "postIfNoneMatch", + "accessibility": "public", + "apiVersions": [], + "doc": "Check when only If-None-Match in header is defined.", + "operation": { + "$id": "10", + "name": "postIfNoneMatch", + "resourceName": "ConditionalRequest", + "doc": "Check when only If-None-Match in header is defined.", + "accessibility": "public", + "parameters": [ + { + "$id": "11", + "name": "ifNoneMatch", + "nameInRequest": "If-None-Match", + "doc": "The request should only proceed if no entity matches this string.", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-headers/conditional-request/if-none-match", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "ifNoneMatch", + "nameInRequest": "If-None-Match", + "doc": "The request should only proceed if no entity matches this string.", + "type": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "15", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-headers/conditional-request/if-none-match", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch", - "decorators": [] - }, - "parameters": [ - { - "$id": "16", - "name": "ifNoneMatch", - "nameInRequest": "If-None-Match", - "doc": "The request should only proceed if no entity matches this string.", - "type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "18" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch" - }, - { - "$id": "19", - "kind": "basic", - "name": "headIfModifiedSince", - "accessibility": "public", - "apiVersions": [], - "doc": "Check when only If-Modified-Since in header is defined.", - "operation": { - "$id": "20", - "name": "headIfModifiedSince", - "resourceName": "ConditionalRequest", - "doc": "Check when only If-Modified-Since in header is defined.", - "accessibility": "public", - "parameters": [ - { - "$id": "21", - "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": "22", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + { + "$id": "16", + "kind": "basic", + "name": "headIfModifiedSince", + "accessibility": "public", + "apiVersions": [], + "doc": "Check when only If-Modified-Since in header is defined.", + "operation": { + "$id": "17", + "name": "headIfModifiedSince", + "resourceName": "ConditionalRequest", + "doc": "Check when only If-Modified-Since in header is defined.", + "accessibility": "public", + "parameters": [ + { + "$id": "18", + "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": "19", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "20", + "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": "21", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/special-headers/conditional-request/if-modified-since", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince", + "decorators": [] + }, + "parameters": [ + { + "$id": "22", + "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": "23", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "24", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "25", + "kind": "basic", + "name": "postIfUnmodifiedSince", + "accessibility": "public", + "apiVersions": [], + "doc": "Check when only If-Unmodified-Since in header is defined.", + "operation": { + "$id": "26", + "name": "postIfUnmodifiedSince", + "resourceName": "ConditionalRequest", + "doc": "Check when only If-Unmodified-Since in header is defined.", + "accessibility": "public", + "parameters": [ + { + "$id": "27", + "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": "28", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "29", + "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": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-headers/conditional-request/if-unmodified-since", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince", + "decorators": [] + }, + "parameters": [ + { + "$id": "31", + "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": "32", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "33", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince" + } ], - "responses": [ - { - "$id": "24", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/special-headers/conditional-request/if-modified-since", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince", - "decorators": [] - }, - "parameters": [ - { - "$id": "25", - "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": "26", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "27", - "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 - } - ], - "response": { - "$id": "28" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince" - }, - { - "$id": "29", - "kind": "basic", - "name": "postIfUnmodifiedSince", - "accessibility": "public", - "apiVersions": [], - "doc": "Check when only If-Unmodified-Since in header is defined.", - "operation": { - "$id": "30", - "name": "postIfUnmodifiedSince", - "resourceName": "ConditionalRequest", - "doc": "Check when only If-Unmodified-Since in header is defined.", - "accessibility": "public", "parameters": [ - { - "$id": "31", - "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": "32", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "33", - "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 - } + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "responses": [ - { - "$id": "34", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-headers/conditional-request/if-unmodified-since", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince", - "decorators": [] - }, - "parameters": [ - { - "$id": "35", - "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": "36", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "37", - "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 - } - ], - "response": { - "$id": "38" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince" - } - ], - "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" - } + "decorators": [], + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest", - "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 03de2eb2720..8c489b28d96 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 @@ -1,263 +1,247 @@ { - "$id": "1", - "name": "SpecialHeaders.Repeatability", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "ImmediateSuccessResponseRepeatabilityResult", - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.ResponseRepeatabilityResult.anonymous", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "SpecialHeaders.Repeatability", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "accepted", - "value": "accepted", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "rejected", - "value": "rejected", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Output", - "decorators": [] - } - ], - "constants": [], - "models": [], - "clients": [ - { - "$id": "8", - "kind": "client", - "name": "RepeatabilityClient", - "namespace": "SpecialHeaders.Repeatability", - "doc": "Illustrates OASIS repeatability headers", - "methods": [ - { - "$id": "9", - "kind": "basic", - "name": "immediateSuccess", - "accessibility": "public", - "apiVersions": [], - "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", - "operation": { - "$id": "10", - "name": "immediateSuccess", - "resourceName": "Repeatability", - "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", - "accessibility": "public", - "parameters": [ - { - "$id": "11", - "name": "repeatabilityRequestID", - "nameInRequest": "Repeatability-Request-ID", - "type": { - "$id": "12", - "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": "13", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "14", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "15", - "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": "16", - "statusCodes": [ - 204 - ], - "headers": [ - { - "$id": "17", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "2" - } - } - ], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-headers/repeatability/immediateSuccess", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess", - "decorators": [] - }, - "parameters": [ - { - "$id": "18", - "name": "repeatabilityRequestID", - "nameInRequest": "Repeatability-Request-ID", - "type": { - "$id": "19", + "$id": "1", + "kind": "enum", + "name": "ImmediateSuccessResponseRepeatabilityResult", + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.ResponseRepeatabilityResult.anonymous", + "valueType": { + "$id": "2", "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": "20", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "21", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "accepted", + "value": "accepted", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "23" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess" + { + "$id": "4", + "kind": "enumvalue", + "name": "rejected", + "value": "rejected", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] } - ], - "parameters": [ + ], + "constants": [], + "models": [], + "clients": [ { - "$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" - } + "$id": "5", + "kind": "client", + "name": "RepeatabilityClient", + "namespace": "SpecialHeaders.Repeatability", + "doc": "Illustrates OASIS repeatability headers", + "methods": [ + { + "$id": "6", + "kind": "basic", + "name": "immediateSuccess", + "accessibility": "public", + "apiVersions": [], + "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", + "operation": { + "$id": "7", + "name": "immediateSuccess", + "resourceName": "Repeatability", + "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", + "accessibility": "public", + "parameters": [ + { + "$id": "8", + "name": "repeatabilityRequestID", + "nameInRequest": "Repeatability-Request-ID", + "type": { + "$id": "9", + "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": "10", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "type": { + "$id": "11", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "12", + "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": "13", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "1" + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-headers/repeatability/immediateSuccess", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess", + "decorators": [] + }, + "parameters": [ + { + "$id": "14", + "name": "repeatabilityRequestID", + "nameInRequest": "Repeatability-Request-ID", + "type": { + "$id": "15", + "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": "16", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "type": { + "$id": "17", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "18", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability", - "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 31d4e13f319..bc99df92ea6 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 @@ -2,10 +2,555 @@ "name": "SpecialWords", "apiVersions": [], "enums": [], - "constants": [], - "models": [ + "constants": [ { "$id": "1", + "kind": "constant", + "name": "withAndContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "3", + "kind": "constant", + "name": "withAsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "5", + "kind": "constant", + "name": "withAssertContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "7", + "kind": "constant", + "name": "withAsyncContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "withAwaitContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "withBreakContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "withClassContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "withConstructorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "withContinueContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "withDefContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "21", + "kind": "constant", + "name": "withDelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "withElifContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "withElseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "withExceptContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "withExecContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "withFinallyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "33", + "kind": "constant", + "name": "withForContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "35", + "kind": "constant", + "name": "withFromContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "37", + "kind": "constant", + "name": "withGlobalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "withIfContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "withImportContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "43", + "kind": "constant", + "name": "withInContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "45", + "kind": "constant", + "name": "withIsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", + "name": "withLambdaContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "49", + "kind": "constant", + "name": "withNotContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "51", + "kind": "constant", + "name": "withOrContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "53", + "kind": "constant", + "name": "withPassContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "55", + "kind": "constant", + "name": "withRaiseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "57", + "kind": "constant", + "name": "withReturnContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "59", + "kind": "constant", + "name": "withTryContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "61", + "kind": "constant", + "name": "withWhileContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "63", + "kind": "constant", + "name": "withWithContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "65", + "kind": "constant", + "name": "withYieldContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "67", + "kind": "constant", + "name": "sameAsModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "69", "kind": "model", "name": "and", "namespace": "SpecialWords.Models", @@ -14,12 +559,12 @@ "decorators": [], "properties": [ { - "$id": "2", + "$id": "70", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "3", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -40,7 +585,7 @@ ] }, { - "$id": "4", + "$id": "72", "kind": "model", "name": "as", "namespace": "SpecialWords.Models", @@ -49,12 +594,12 @@ "decorators": [], "properties": [ { - "$id": "5", + "$id": "73", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "6", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -75,7 +620,7 @@ ] }, { - "$id": "7", + "$id": "75", "kind": "model", "name": "assert", "namespace": "SpecialWords.Models", @@ -84,12 +629,12 @@ "decorators": [], "properties": [ { - "$id": "8", + "$id": "76", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "9", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -110,7 +655,7 @@ ] }, { - "$id": "10", + "$id": "78", "kind": "model", "name": "async", "namespace": "SpecialWords.Models", @@ -119,12 +664,12 @@ "decorators": [], "properties": [ { - "$id": "11", + "$id": "79", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "12", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -145,7 +690,7 @@ ] }, { - "$id": "13", + "$id": "81", "kind": "model", "name": "await", "namespace": "SpecialWords.Models", @@ -154,12 +699,12 @@ "decorators": [], "properties": [ { - "$id": "14", + "$id": "82", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "15", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -180,7 +725,7 @@ ] }, { - "$id": "16", + "$id": "84", "kind": "model", "name": "break", "namespace": "SpecialWords.Models", @@ -189,12 +734,12 @@ "decorators": [], "properties": [ { - "$id": "17", + "$id": "85", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "18", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -215,7 +760,7 @@ ] }, { - "$id": "19", + "$id": "87", "kind": "model", "name": "class", "namespace": "SpecialWords.Models", @@ -224,12 +769,12 @@ "decorators": [], "properties": [ { - "$id": "20", + "$id": "88", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "21", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -250,7 +795,7 @@ ] }, { - "$id": "22", + "$id": "90", "kind": "model", "name": "constructor", "namespace": "SpecialWords.Models", @@ -259,12 +804,12 @@ "decorators": [], "properties": [ { - "$id": "23", + "$id": "91", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "24", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -285,7 +830,7 @@ ] }, { - "$id": "25", + "$id": "93", "kind": "model", "name": "continue", "namespace": "SpecialWords.Models", @@ -294,12 +839,12 @@ "decorators": [], "properties": [ { - "$id": "26", + "$id": "94", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "27", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -320,7 +865,7 @@ ] }, { - "$id": "28", + "$id": "96", "kind": "model", "name": "def", "namespace": "SpecialWords.Models", @@ -329,12 +874,12 @@ "decorators": [], "properties": [ { - "$id": "29", + "$id": "97", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "30", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -355,7 +900,7 @@ ] }, { - "$id": "31", + "$id": "99", "kind": "model", "name": "del", "namespace": "SpecialWords.Models", @@ -364,12 +909,12 @@ "decorators": [], "properties": [ { - "$id": "32", + "$id": "100", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "33", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -390,7 +935,7 @@ ] }, { - "$id": "34", + "$id": "102", "kind": "model", "name": "elif", "namespace": "SpecialWords.Models", @@ -399,12 +944,12 @@ "decorators": [], "properties": [ { - "$id": "35", + "$id": "103", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "36", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -425,7 +970,7 @@ ] }, { - "$id": "37", + "$id": "105", "kind": "model", "name": "else", "namespace": "SpecialWords.Models", @@ -434,12 +979,12 @@ "decorators": [], "properties": [ { - "$id": "38", + "$id": "106", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "39", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -460,7 +1005,7 @@ ] }, { - "$id": "40", + "$id": "108", "kind": "model", "name": "except", "namespace": "SpecialWords.Models", @@ -469,12 +1014,12 @@ "decorators": [], "properties": [ { - "$id": "41", + "$id": "109", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "42", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -495,7 +1040,7 @@ ] }, { - "$id": "43", + "$id": "111", "kind": "model", "name": "exec", "namespace": "SpecialWords.Models", @@ -504,12 +1049,12 @@ "decorators": [], "properties": [ { - "$id": "44", + "$id": "112", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "45", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -530,7 +1075,7 @@ ] }, { - "$id": "46", + "$id": "114", "kind": "model", "name": "finally", "namespace": "SpecialWords.Models", @@ -539,12 +1084,12 @@ "decorators": [], "properties": [ { - "$id": "47", + "$id": "115", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "48", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -565,7 +1110,7 @@ ] }, { - "$id": "49", + "$id": "117", "kind": "model", "name": "for", "namespace": "SpecialWords.Models", @@ -574,12 +1119,12 @@ "decorators": [], "properties": [ { - "$id": "50", + "$id": "118", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "51", + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -600,7 +1145,7 @@ ] }, { - "$id": "52", + "$id": "120", "kind": "model", "name": "from", "namespace": "SpecialWords.Models", @@ -609,12 +1154,12 @@ "decorators": [], "properties": [ { - "$id": "53", + "$id": "121", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "54", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -635,7 +1180,7 @@ ] }, { - "$id": "55", + "$id": "123", "kind": "model", "name": "global", "namespace": "SpecialWords.Models", @@ -644,12 +1189,12 @@ "decorators": [], "properties": [ { - "$id": "56", + "$id": "124", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "57", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -670,7 +1215,7 @@ ] }, { - "$id": "58", + "$id": "126", "kind": "model", "name": "if", "namespace": "SpecialWords.Models", @@ -679,12 +1224,12 @@ "decorators": [], "properties": [ { - "$id": "59", + "$id": "127", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "60", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -705,7 +1250,7 @@ ] }, { - "$id": "61", + "$id": "129", "kind": "model", "name": "import", "namespace": "SpecialWords.Models", @@ -714,12 +1259,12 @@ "decorators": [], "properties": [ { - "$id": "62", + "$id": "130", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "63", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -740,7 +1285,7 @@ ] }, { - "$id": "64", + "$id": "132", "kind": "model", "name": "in", "namespace": "SpecialWords.Models", @@ -749,12 +1294,12 @@ "decorators": [], "properties": [ { - "$id": "65", + "$id": "133", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "66", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -775,7 +1320,7 @@ ] }, { - "$id": "67", + "$id": "135", "kind": "model", "name": "is", "namespace": "SpecialWords.Models", @@ -784,12 +1329,12 @@ "decorators": [], "properties": [ { - "$id": "68", + "$id": "136", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "69", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -810,7 +1355,7 @@ ] }, { - "$id": "70", + "$id": "138", "kind": "model", "name": "lambda", "namespace": "SpecialWords.Models", @@ -819,12 +1364,12 @@ "decorators": [], "properties": [ { - "$id": "71", + "$id": "139", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "72", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -845,7 +1390,7 @@ ] }, { - "$id": "73", + "$id": "141", "kind": "model", "name": "not", "namespace": "SpecialWords.Models", @@ -854,12 +1399,12 @@ "decorators": [], "properties": [ { - "$id": "74", + "$id": "142", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "75", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -880,7 +1425,7 @@ ] }, { - "$id": "76", + "$id": "144", "kind": "model", "name": "or", "namespace": "SpecialWords.Models", @@ -889,12 +1434,12 @@ "decorators": [], "properties": [ { - "$id": "77", + "$id": "145", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "78", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -915,7 +1460,7 @@ ] }, { - "$id": "79", + "$id": "147", "kind": "model", "name": "pass", "namespace": "SpecialWords.Models", @@ -924,12 +1469,12 @@ "decorators": [], "properties": [ { - "$id": "80", + "$id": "148", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "81", + "$id": "149", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -950,7 +1495,7 @@ ] }, { - "$id": "82", + "$id": "150", "kind": "model", "name": "raise", "namespace": "SpecialWords.Models", @@ -959,12 +1504,12 @@ "decorators": [], "properties": [ { - "$id": "83", + "$id": "151", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "84", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -985,7 +1530,7 @@ ] }, { - "$id": "85", + "$id": "153", "kind": "model", "name": "return", "namespace": "SpecialWords.Models", @@ -994,12 +1539,12 @@ "decorators": [], "properties": [ { - "$id": "86", + "$id": "154", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "87", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1020,7 +1565,7 @@ ] }, { - "$id": "88", + "$id": "156", "kind": "model", "name": "try", "namespace": "SpecialWords.Models", @@ -1029,12 +1574,12 @@ "decorators": [], "properties": [ { - "$id": "89", + "$id": "157", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "90", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1055,7 +1600,7 @@ ] }, { - "$id": "91", + "$id": "159", "kind": "model", "name": "while", "namespace": "SpecialWords.Models", @@ -1064,12 +1609,12 @@ "decorators": [], "properties": [ { - "$id": "92", + "$id": "160", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "93", + "$id": "161", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1090,7 +1635,7 @@ ] }, { - "$id": "94", + "$id": "162", "kind": "model", "name": "with", "namespace": "SpecialWords.Models", @@ -1099,12 +1644,12 @@ "decorators": [], "properties": [ { - "$id": "95", + "$id": "163", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "96", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1125,7 +1670,7 @@ ] }, { - "$id": "97", + "$id": "165", "kind": "model", "name": "yield", "namespace": "SpecialWords.Models", @@ -1134,12 +1679,12 @@ "decorators": [], "properties": [ { - "$id": "98", + "$id": "166", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "99", + "$id": "167", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1160,7 +1705,7 @@ ] }, { - "$id": "100", + "$id": "168", "kind": "model", "name": "SameAsModel", "namespace": "SpecialWords.ModelProperties", @@ -1169,12 +1714,12 @@ "decorators": [], "properties": [ { - "$id": "101", + "$id": "169", "kind": "property", "name": "SameAsModel", "serializedName": "SameAsModel", "type": { - "$id": "102", + "$id": "170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1197,7 +1742,7 @@ ], "clients": [ { - "$id": "103", + "$id": "171", "kind": "client", "name": "SpecialWordsClient", "namespace": "SpecialWords", @@ -1236,44 +1781,31 @@ "apiVersions": [], "children": [ { - "$id": "104", + "$id": "172", "kind": "client", "name": "Models", "namespace": "SpecialWords.Models", "doc": "Verify model names", "methods": [ { - "$id": "105", + "$id": "173", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "106", + "$id": "174", "name": "withAnd", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "107", + "$id": "175", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "108", - "kind": "constant", - "name": "withAndContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "1" }, "location": "Header", "isApiVersion": false, @@ -1286,11 +1818,11 @@ "skipUrlEncoding": false }, { - "$id": "110", + "$id": "176", "name": "body", "nameInRequest": "body", "type": { - "$ref": "1" + "$ref": "69" }, "location": "Body", "isApiVersion": false, @@ -1305,7 +1837,7 @@ ], "responses": [ { - "$id": "111", + "$id": "177", "statusCodes": [ 204 ], @@ -1327,11 +1859,11 @@ }, "parameters": [ { - "$id": "112", + "$id": "178", "name": "body", "nameInRequest": "body", "type": { - "$ref": "1" + "$ref": "69" }, "location": "Body", "isApiVersion": false, @@ -1344,12 +1876,12 @@ "skipUrlEncoding": false }, { - "$id": "113", + "$id": "179", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "108" + "$ref": "1" }, "location": "Header", "isApiVersion": false, @@ -1369,37 +1901,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd" }, { - "$id": "114", + "$id": "180", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "115", + "$id": "181", "name": "withAs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "116", + "$id": "182", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "117", - "kind": "constant", - "name": "withAsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "3" }, "location": "Header", "isApiVersion": false, @@ -1412,11 +1931,11 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "183", "name": "body", "nameInRequest": "body", "type": { - "$ref": "4" + "$ref": "72" }, "location": "Body", "isApiVersion": false, @@ -1431,7 +1950,7 @@ ], "responses": [ { - "$id": "120", + "$id": "184", "statusCodes": [ 204 ], @@ -1453,11 +1972,11 @@ }, "parameters": [ { - "$id": "121", + "$id": "185", "name": "body", "nameInRequest": "body", "type": { - "$ref": "4" + "$ref": "72" }, "location": "Body", "isApiVersion": false, @@ -1470,12 +1989,12 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "186", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "3" }, "location": "Header", "isApiVersion": false, @@ -1495,37 +2014,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs" }, { - "$id": "123", + "$id": "187", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "124", + "$id": "188", "name": "withAssert", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "125", + "$id": "189", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "126", - "kind": "constant", - "name": "withAssertContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "5" }, "location": "Header", "isApiVersion": false, @@ -1538,11 +2044,11 @@ "skipUrlEncoding": false }, { - "$id": "128", + "$id": "190", "name": "body", "nameInRequest": "body", "type": { - "$ref": "7" + "$ref": "75" }, "location": "Body", "isApiVersion": false, @@ -1557,7 +2063,7 @@ ], "responses": [ { - "$id": "129", + "$id": "191", "statusCodes": [ 204 ], @@ -1579,11 +2085,11 @@ }, "parameters": [ { - "$id": "130", + "$id": "192", "name": "body", "nameInRequest": "body", "type": { - "$ref": "7" + "$ref": "75" }, "location": "Body", "isApiVersion": false, @@ -1596,12 +2102,12 @@ "skipUrlEncoding": false }, { - "$id": "131", + "$id": "193", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "126" + "$ref": "5" }, "location": "Header", "isApiVersion": false, @@ -1621,37 +2127,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert" }, { - "$id": "132", + "$id": "194", "kind": "basic", "name": "withAsync", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "133", + "$id": "195", "name": "withAsync", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "134", + "$id": "196", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "135", - "kind": "constant", - "name": "withAsyncContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -1664,11 +2157,11 @@ "skipUrlEncoding": false }, { - "$id": "137", + "$id": "197", "name": "body", "nameInRequest": "body", "type": { - "$ref": "10" + "$ref": "78" }, "location": "Body", "isApiVersion": false, @@ -1683,7 +2176,7 @@ ], "responses": [ { - "$id": "138", + "$id": "198", "statusCodes": [ 204 ], @@ -1705,11 +2198,11 @@ }, "parameters": [ { - "$id": "139", + "$id": "199", "name": "body", "nameInRequest": "body", "type": { - "$ref": "10" + "$ref": "78" }, "location": "Body", "isApiVersion": false, @@ -1722,12 +2215,12 @@ "skipUrlEncoding": false }, { - "$id": "140", + "$id": "200", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "135" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -1747,37 +2240,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync" }, { - "$id": "141", + "$id": "201", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "142", + "$id": "202", "name": "withAwait", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "203", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "144", - "kind": "constant", - "name": "withAwaitContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -1790,11 +2270,11 @@ "skipUrlEncoding": false }, { - "$id": "146", + "$id": "204", "name": "body", "nameInRequest": "body", "type": { - "$ref": "13" + "$ref": "81" }, "location": "Body", "isApiVersion": false, @@ -1809,7 +2289,7 @@ ], "responses": [ { - "$id": "147", + "$id": "205", "statusCodes": [ 204 ], @@ -1831,11 +2311,11 @@ }, "parameters": [ { - "$id": "148", + "$id": "206", "name": "body", "nameInRequest": "body", "type": { - "$ref": "13" + "$ref": "81" }, "location": "Body", "isApiVersion": false, @@ -1848,12 +2328,12 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "207", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "144" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -1873,37 +2353,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait" }, { - "$id": "150", + "$id": "208", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "151", + "$id": "209", "name": "withBreak", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "152", + "$id": "210", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "153", - "kind": "constant", - "name": "withBreakContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -1916,11 +2383,11 @@ "skipUrlEncoding": false }, { - "$id": "155", + "$id": "211", "name": "body", "nameInRequest": "body", "type": { - "$ref": "16" + "$ref": "84" }, "location": "Body", "isApiVersion": false, @@ -1935,7 +2402,7 @@ ], "responses": [ { - "$id": "156", + "$id": "212", "statusCodes": [ 204 ], @@ -1957,11 +2424,11 @@ }, "parameters": [ { - "$id": "157", + "$id": "213", "name": "body", "nameInRequest": "body", "type": { - "$ref": "16" + "$ref": "84" }, "location": "Body", "isApiVersion": false, @@ -1974,12 +2441,12 @@ "skipUrlEncoding": false }, { - "$id": "158", + "$id": "214", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "153" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -1999,37 +2466,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak" }, { - "$id": "159", + "$id": "215", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "160", + "$id": "216", "name": "withClass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "161", + "$id": "217", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "162", - "kind": "constant", - "name": "withClassContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "163", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -2042,11 +2496,11 @@ "skipUrlEncoding": false }, { - "$id": "164", + "$id": "218", "name": "body", "nameInRequest": "body", "type": { - "$ref": "19" + "$ref": "87" }, "location": "Body", "isApiVersion": false, @@ -2061,7 +2515,7 @@ ], "responses": [ { - "$id": "165", + "$id": "219", "statusCodes": [ 204 ], @@ -2083,11 +2537,11 @@ }, "parameters": [ { - "$id": "166", + "$id": "220", "name": "body", "nameInRequest": "body", "type": { - "$ref": "19" + "$ref": "87" }, "location": "Body", "isApiVersion": false, @@ -2100,12 +2554,12 @@ "skipUrlEncoding": false }, { - "$id": "167", + "$id": "221", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "162" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -2125,37 +2579,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass" }, { - "$id": "168", + "$id": "222", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "169", + "$id": "223", "name": "withConstructor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "170", + "$id": "224", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "171", - "kind": "constant", - "name": "withConstructorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -2168,11 +2609,11 @@ "skipUrlEncoding": false }, { - "$id": "173", + "$id": "225", "name": "body", "nameInRequest": "body", "type": { - "$ref": "22" + "$ref": "90" }, "location": "Body", "isApiVersion": false, @@ -2187,7 +2628,7 @@ ], "responses": [ { - "$id": "174", + "$id": "226", "statusCodes": [ 204 ], @@ -2209,11 +2650,11 @@ }, "parameters": [ { - "$id": "175", + "$id": "227", "name": "body", "nameInRequest": "body", "type": { - "$ref": "22" + "$ref": "90" }, "location": "Body", "isApiVersion": false, @@ -2226,12 +2667,12 @@ "skipUrlEncoding": false }, { - "$id": "176", + "$id": "228", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "171" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -2251,37 +2692,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor" }, { - "$id": "177", + "$id": "229", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "178", + "$id": "230", "name": "withContinue", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "179", + "$id": "231", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "180", - "kind": "constant", - "name": "withContinueContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "181", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -2294,11 +2722,11 @@ "skipUrlEncoding": false }, { - "$id": "182", + "$id": "232", "name": "body", "nameInRequest": "body", "type": { - "$ref": "25" + "$ref": "93" }, "location": "Body", "isApiVersion": false, @@ -2313,7 +2741,7 @@ ], "responses": [ { - "$id": "183", + "$id": "233", "statusCodes": [ 204 ], @@ -2335,11 +2763,11 @@ }, "parameters": [ { - "$id": "184", + "$id": "234", "name": "body", "nameInRequest": "body", "type": { - "$ref": "25" + "$ref": "93" }, "location": "Body", "isApiVersion": false, @@ -2352,12 +2780,12 @@ "skipUrlEncoding": false }, { - "$id": "185", + "$id": "235", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "180" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -2377,37 +2805,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue" }, { - "$id": "186", + "$id": "236", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "187", + "$id": "237", "name": "withDef", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "188", + "$id": "238", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "189", - "kind": "constant", - "name": "withDefContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -2420,11 +2835,11 @@ "skipUrlEncoding": false }, { - "$id": "191", + "$id": "239", "name": "body", "nameInRequest": "body", "type": { - "$ref": "28" + "$ref": "96" }, "location": "Body", "isApiVersion": false, @@ -2439,7 +2854,7 @@ ], "responses": [ { - "$id": "192", + "$id": "240", "statusCodes": [ 204 ], @@ -2461,11 +2876,11 @@ }, "parameters": [ { - "$id": "193", + "$id": "241", "name": "body", "nameInRequest": "body", "type": { - "$ref": "28" + "$ref": "96" }, "location": "Body", "isApiVersion": false, @@ -2478,12 +2893,12 @@ "skipUrlEncoding": false }, { - "$id": "194", + "$id": "242", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "189" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -2503,37 +2918,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef" }, { - "$id": "195", + "$id": "243", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "196", + "$id": "244", "name": "withDel", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "197", + "$id": "245", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "198", - "kind": "constant", - "name": "withDelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -2546,11 +2948,11 @@ "skipUrlEncoding": false }, { - "$id": "200", + "$id": "246", "name": "body", "nameInRequest": "body", "type": { - "$ref": "31" + "$ref": "99" }, "location": "Body", "isApiVersion": false, @@ -2565,7 +2967,7 @@ ], "responses": [ { - "$id": "201", + "$id": "247", "statusCodes": [ 204 ], @@ -2587,11 +2989,11 @@ }, "parameters": [ { - "$id": "202", + "$id": "248", "name": "body", "nameInRequest": "body", "type": { - "$ref": "31" + "$ref": "99" }, "location": "Body", "isApiVersion": false, @@ -2604,12 +3006,12 @@ "skipUrlEncoding": false }, { - "$id": "203", + "$id": "249", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "198" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -2629,37 +3031,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel" }, { - "$id": "204", + "$id": "250", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "205", + "$id": "251", "name": "withElif", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "206", + "$id": "252", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "207", - "kind": "constant", - "name": "withElifContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -2672,11 +3061,11 @@ "skipUrlEncoding": false }, { - "$id": "209", + "$id": "253", "name": "body", "nameInRequest": "body", "type": { - "$ref": "34" + "$ref": "102" }, "location": "Body", "isApiVersion": false, @@ -2691,7 +3080,7 @@ ], "responses": [ { - "$id": "210", + "$id": "254", "statusCodes": [ 204 ], @@ -2713,11 +3102,11 @@ }, "parameters": [ { - "$id": "211", + "$id": "255", "name": "body", "nameInRequest": "body", "type": { - "$ref": "34" + "$ref": "102" }, "location": "Body", "isApiVersion": false, @@ -2730,12 +3119,12 @@ "skipUrlEncoding": false }, { - "$id": "212", + "$id": "256", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "207" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -2755,37 +3144,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif" }, { - "$id": "213", + "$id": "257", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "214", + "$id": "258", "name": "withElse", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "215", + "$id": "259", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "216", - "kind": "constant", - "name": "withElseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -2798,11 +3174,11 @@ "skipUrlEncoding": false }, { - "$id": "218", + "$id": "260", "name": "body", "nameInRequest": "body", "type": { - "$ref": "37" + "$ref": "105" }, "location": "Body", "isApiVersion": false, @@ -2817,7 +3193,7 @@ ], "responses": [ { - "$id": "219", + "$id": "261", "statusCodes": [ 204 ], @@ -2839,11 +3215,11 @@ }, "parameters": [ { - "$id": "220", + "$id": "262", "name": "body", "nameInRequest": "body", "type": { - "$ref": "37" + "$ref": "105" }, "location": "Body", "isApiVersion": false, @@ -2856,12 +3232,12 @@ "skipUrlEncoding": false }, { - "$id": "221", + "$id": "263", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "216" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -2881,37 +3257,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse" }, { - "$id": "222", + "$id": "264", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "223", + "$id": "265", "name": "withExcept", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "266", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "225", - "kind": "constant", - "name": "withExceptContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -2924,11 +3287,11 @@ "skipUrlEncoding": false }, { - "$id": "227", + "$id": "267", "name": "body", "nameInRequest": "body", "type": { - "$ref": "40" + "$ref": "108" }, "location": "Body", "isApiVersion": false, @@ -2943,7 +3306,7 @@ ], "responses": [ { - "$id": "228", + "$id": "268", "statusCodes": [ 204 ], @@ -2965,11 +3328,11 @@ }, "parameters": [ { - "$id": "229", + "$id": "269", "name": "body", "nameInRequest": "body", "type": { - "$ref": "40" + "$ref": "108" }, "location": "Body", "isApiVersion": false, @@ -2982,12 +3345,12 @@ "skipUrlEncoding": false }, { - "$id": "230", + "$id": "270", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "225" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -3007,37 +3370,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept" }, { - "$id": "231", + "$id": "271", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "232", + "$id": "272", "name": "withExec", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "273", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "234", - "kind": "constant", - "name": "withExecContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "235", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -3050,11 +3400,11 @@ "skipUrlEncoding": false }, { - "$id": "236", + "$id": "274", "name": "body", "nameInRequest": "body", "type": { - "$ref": "43" + "$ref": "111" }, "location": "Body", "isApiVersion": false, @@ -3069,7 +3419,7 @@ ], "responses": [ { - "$id": "237", + "$id": "275", "statusCodes": [ 204 ], @@ -3091,11 +3441,11 @@ }, "parameters": [ { - "$id": "238", + "$id": "276", "name": "body", "nameInRequest": "body", "type": { - "$ref": "43" + "$ref": "111" }, "location": "Body", "isApiVersion": false, @@ -3108,12 +3458,12 @@ "skipUrlEncoding": false }, { - "$id": "239", + "$id": "277", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "234" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -3133,37 +3483,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec" }, { - "$id": "240", + "$id": "278", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "241", + "$id": "279", "name": "withFinally", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "242", + "$id": "280", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "243", - "kind": "constant", - "name": "withFinallyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -3176,11 +3513,11 @@ "skipUrlEncoding": false }, { - "$id": "245", + "$id": "281", "name": "body", "nameInRequest": "body", "type": { - "$ref": "46" + "$ref": "114" }, "location": "Body", "isApiVersion": false, @@ -3195,7 +3532,7 @@ ], "responses": [ { - "$id": "246", + "$id": "282", "statusCodes": [ 204 ], @@ -3217,11 +3554,11 @@ }, "parameters": [ { - "$id": "247", + "$id": "283", "name": "body", "nameInRequest": "body", "type": { - "$ref": "46" + "$ref": "114" }, "location": "Body", "isApiVersion": false, @@ -3234,12 +3571,12 @@ "skipUrlEncoding": false }, { - "$id": "248", + "$id": "284", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "243" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -3259,37 +3596,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally" }, { - "$id": "249", + "$id": "285", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "250", + "$id": "286", "name": "withFor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "251", + "$id": "287", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "252", - "kind": "constant", - "name": "withForContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -3302,11 +3626,11 @@ "skipUrlEncoding": false }, { - "$id": "254", + "$id": "288", "name": "body", "nameInRequest": "body", "type": { - "$ref": "49" + "$ref": "117" }, "location": "Body", "isApiVersion": false, @@ -3321,7 +3645,7 @@ ], "responses": [ { - "$id": "255", + "$id": "289", "statusCodes": [ 204 ], @@ -3343,11 +3667,11 @@ }, "parameters": [ { - "$id": "256", + "$id": "290", "name": "body", "nameInRequest": "body", "type": { - "$ref": "49" + "$ref": "117" }, "location": "Body", "isApiVersion": false, @@ -3360,12 +3684,12 @@ "skipUrlEncoding": false }, { - "$id": "257", + "$id": "291", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "252" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -3385,37 +3709,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor" }, { - "$id": "258", + "$id": "292", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "259", + "$id": "293", "name": "withFrom", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "260", + "$id": "294", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "261", - "kind": "constant", - "name": "withFromContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -3428,11 +3739,11 @@ "skipUrlEncoding": false }, { - "$id": "263", + "$id": "295", "name": "body", "nameInRequest": "body", "type": { - "$ref": "52" + "$ref": "120" }, "location": "Body", "isApiVersion": false, @@ -3447,7 +3758,7 @@ ], "responses": [ { - "$id": "264", + "$id": "296", "statusCodes": [ 204 ], @@ -3469,11 +3780,11 @@ }, "parameters": [ { - "$id": "265", + "$id": "297", "name": "body", "nameInRequest": "body", "type": { - "$ref": "52" + "$ref": "120" }, "location": "Body", "isApiVersion": false, @@ -3486,12 +3797,12 @@ "skipUrlEncoding": false }, { - "$id": "266", + "$id": "298", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "261" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -3511,37 +3822,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom" }, { - "$id": "267", + "$id": "299", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "268", + "$id": "300", "name": "withGlobal", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "269", + "$id": "301", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "270", - "kind": "constant", - "name": "withGlobalContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "271", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -3554,11 +3852,11 @@ "skipUrlEncoding": false }, { - "$id": "272", + "$id": "302", "name": "body", "nameInRequest": "body", "type": { - "$ref": "55" + "$ref": "123" }, "location": "Body", "isApiVersion": false, @@ -3573,7 +3871,7 @@ ], "responses": [ { - "$id": "273", + "$id": "303", "statusCodes": [ 204 ], @@ -3595,11 +3893,11 @@ }, "parameters": [ { - "$id": "274", + "$id": "304", "name": "body", "nameInRequest": "body", "type": { - "$ref": "55" + "$ref": "123" }, "location": "Body", "isApiVersion": false, @@ -3612,12 +3910,12 @@ "skipUrlEncoding": false }, { - "$id": "275", + "$id": "305", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "270" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -3637,37 +3935,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal" }, { - "$id": "276", + "$id": "306", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "277", + "$id": "307", "name": "withIf", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "278", + "$id": "308", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "279", - "kind": "constant", - "name": "withIfContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "280", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -3680,11 +3965,11 @@ "skipUrlEncoding": false }, { - "$id": "281", + "$id": "309", "name": "body", "nameInRequest": "body", "type": { - "$ref": "58" + "$ref": "126" }, "location": "Body", "isApiVersion": false, @@ -3699,7 +3984,7 @@ ], "responses": [ { - "$id": "282", + "$id": "310", "statusCodes": [ 204 ], @@ -3721,11 +4006,11 @@ }, "parameters": [ { - "$id": "283", + "$id": "311", "name": "body", "nameInRequest": "body", "type": { - "$ref": "58" + "$ref": "126" }, "location": "Body", "isApiVersion": false, @@ -3738,12 +4023,12 @@ "skipUrlEncoding": false }, { - "$id": "284", + "$id": "312", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "279" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -3763,37 +4048,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf" }, { - "$id": "285", + "$id": "313", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "286", + "$id": "314", "name": "withImport", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "315", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "288", - "kind": "constant", - "name": "withImportContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -3806,11 +4078,11 @@ "skipUrlEncoding": false }, { - "$id": "290", + "$id": "316", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "129" }, "location": "Body", "isApiVersion": false, @@ -3825,7 +4097,7 @@ ], "responses": [ { - "$id": "291", + "$id": "317", "statusCodes": [ 204 ], @@ -3847,11 +4119,11 @@ }, "parameters": [ { - "$id": "292", + "$id": "318", "name": "body", "nameInRequest": "body", "type": { - "$ref": "61" + "$ref": "129" }, "location": "Body", "isApiVersion": false, @@ -3864,12 +4136,12 @@ "skipUrlEncoding": false }, { - "$id": "293", + "$id": "319", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "288" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -3889,37 +4161,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport" }, { - "$id": "294", + "$id": "320", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "295", + "$id": "321", "name": "withIn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "296", + "$id": "322", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "297", - "kind": "constant", - "name": "withInContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "298", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -3932,11 +4191,11 @@ "skipUrlEncoding": false }, { - "$id": "299", + "$id": "323", "name": "body", "nameInRequest": "body", "type": { - "$ref": "64" + "$ref": "132" }, "location": "Body", "isApiVersion": false, @@ -3951,7 +4210,7 @@ ], "responses": [ { - "$id": "300", + "$id": "324", "statusCodes": [ 204 ], @@ -3973,11 +4232,11 @@ }, "parameters": [ { - "$id": "301", + "$id": "325", "name": "body", "nameInRequest": "body", "type": { - "$ref": "64" + "$ref": "132" }, "location": "Body", "isApiVersion": false, @@ -3990,12 +4249,12 @@ "skipUrlEncoding": false }, { - "$id": "302", + "$id": "326", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "297" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -4015,37 +4274,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn" }, { - "$id": "303", + "$id": "327", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "304", + "$id": "328", "name": "withIs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "305", + "$id": "329", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "306", - "kind": "constant", - "name": "withIsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "307", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -4058,11 +4304,11 @@ "skipUrlEncoding": false }, { - "$id": "308", + "$id": "330", "name": "body", "nameInRequest": "body", "type": { - "$ref": "67" + "$ref": "135" }, "location": "Body", "isApiVersion": false, @@ -4077,7 +4323,7 @@ ], "responses": [ { - "$id": "309", + "$id": "331", "statusCodes": [ 204 ], @@ -4099,11 +4345,11 @@ }, "parameters": [ { - "$id": "310", + "$id": "332", "name": "body", "nameInRequest": "body", "type": { - "$ref": "67" + "$ref": "135" }, "location": "Body", "isApiVersion": false, @@ -4116,12 +4362,12 @@ "skipUrlEncoding": false }, { - "$id": "311", + "$id": "333", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "306" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -4141,37 +4387,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs" }, { - "$id": "312", + "$id": "334", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "313", + "$id": "335", "name": "withLambda", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "314", + "$id": "336", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "315", - "kind": "constant", - "name": "withLambdaContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -4184,11 +4417,11 @@ "skipUrlEncoding": false }, { - "$id": "317", + "$id": "337", "name": "body", "nameInRequest": "body", "type": { - "$ref": "70" + "$ref": "138" }, "location": "Body", "isApiVersion": false, @@ -4203,7 +4436,7 @@ ], "responses": [ { - "$id": "318", + "$id": "338", "statusCodes": [ 204 ], @@ -4225,11 +4458,11 @@ }, "parameters": [ { - "$id": "319", + "$id": "339", "name": "body", "nameInRequest": "body", "type": { - "$ref": "70" + "$ref": "138" }, "location": "Body", "isApiVersion": false, @@ -4242,12 +4475,12 @@ "skipUrlEncoding": false }, { - "$id": "320", + "$id": "340", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "315" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -4267,37 +4500,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda" }, { - "$id": "321", + "$id": "341", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "322", + "$id": "342", "name": "withNot", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "323", + "$id": "343", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "324", - "kind": "constant", - "name": "withNotContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -4310,11 +4530,11 @@ "skipUrlEncoding": false }, { - "$id": "326", + "$id": "344", "name": "body", "nameInRequest": "body", "type": { - "$ref": "73" + "$ref": "141" }, "location": "Body", "isApiVersion": false, @@ -4329,7 +4549,7 @@ ], "responses": [ { - "$id": "327", + "$id": "345", "statusCodes": [ 204 ], @@ -4351,11 +4571,11 @@ }, "parameters": [ { - "$id": "328", + "$id": "346", "name": "body", "nameInRequest": "body", "type": { - "$ref": "73" + "$ref": "141" }, "location": "Body", "isApiVersion": false, @@ -4368,12 +4588,12 @@ "skipUrlEncoding": false }, { - "$id": "329", + "$id": "347", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "324" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -4393,37 +4613,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot" }, { - "$id": "330", + "$id": "348", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "331", + "$id": "349", "name": "withOr", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "332", + "$id": "350", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "333", - "kind": "constant", - "name": "withOrContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -4436,11 +4643,11 @@ "skipUrlEncoding": false }, { - "$id": "335", + "$id": "351", "name": "body", "nameInRequest": "body", "type": { - "$ref": "76" + "$ref": "144" }, "location": "Body", "isApiVersion": false, @@ -4455,7 +4662,7 @@ ], "responses": [ { - "$id": "336", + "$id": "352", "statusCodes": [ 204 ], @@ -4477,11 +4684,11 @@ }, "parameters": [ { - "$id": "337", + "$id": "353", "name": "body", "nameInRequest": "body", "type": { - "$ref": "76" + "$ref": "144" }, "location": "Body", "isApiVersion": false, @@ -4494,12 +4701,12 @@ "skipUrlEncoding": false }, { - "$id": "338", + "$id": "354", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "333" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -4519,37 +4726,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr" }, { - "$id": "339", + "$id": "355", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "340", + "$id": "356", "name": "withPass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "341", + "$id": "357", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "342", - "kind": "constant", - "name": "withPassContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -4562,11 +4756,11 @@ "skipUrlEncoding": false }, { - "$id": "344", + "$id": "358", "name": "body", "nameInRequest": "body", "type": { - "$ref": "79" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -4581,7 +4775,7 @@ ], "responses": [ { - "$id": "345", + "$id": "359", "statusCodes": [ 204 ], @@ -4603,11 +4797,11 @@ }, "parameters": [ { - "$id": "346", + "$id": "360", "name": "body", "nameInRequest": "body", "type": { - "$ref": "79" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -4620,12 +4814,12 @@ "skipUrlEncoding": false }, { - "$id": "347", + "$id": "361", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "342" + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -4645,37 +4839,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass" }, { - "$id": "348", + "$id": "362", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "349", + "$id": "363", "name": "withRaise", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "350", + "$id": "364", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "351", - "kind": "constant", - "name": "withRaiseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "352", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -4688,11 +4869,11 @@ "skipUrlEncoding": false }, { - "$id": "353", + "$id": "365", "name": "body", "nameInRequest": "body", "type": { - "$ref": "82" + "$ref": "150" }, "location": "Body", "isApiVersion": false, @@ -4707,7 +4888,7 @@ ], "responses": [ { - "$id": "354", + "$id": "366", "statusCodes": [ 204 ], @@ -4729,11 +4910,11 @@ }, "parameters": [ { - "$id": "355", + "$id": "367", "name": "body", "nameInRequest": "body", "type": { - "$ref": "82" + "$ref": "150" }, "location": "Body", "isApiVersion": false, @@ -4746,12 +4927,12 @@ "skipUrlEncoding": false }, { - "$id": "356", + "$id": "368", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "351" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -4771,37 +4952,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise" }, { - "$id": "357", + "$id": "369", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "358", + "$id": "370", "name": "withReturn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "359", + "$id": "371", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "360", - "kind": "constant", - "name": "withReturnContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -4814,11 +4982,11 @@ "skipUrlEncoding": false }, { - "$id": "362", + "$id": "372", "name": "body", "nameInRequest": "body", "type": { - "$ref": "85" + "$ref": "153" }, "location": "Body", "isApiVersion": false, @@ -4833,7 +5001,7 @@ ], "responses": [ { - "$id": "363", + "$id": "373", "statusCodes": [ 204 ], @@ -4855,11 +5023,11 @@ }, "parameters": [ { - "$id": "364", + "$id": "374", "name": "body", "nameInRequest": "body", "type": { - "$ref": "85" + "$ref": "153" }, "location": "Body", "isApiVersion": false, @@ -4872,12 +5040,12 @@ "skipUrlEncoding": false }, { - "$id": "365", + "$id": "375", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "360" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -4897,37 +5065,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn" }, { - "$id": "366", + "$id": "376", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "367", + "$id": "377", "name": "withTry", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "368", + "$id": "378", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "369", - "kind": "constant", - "name": "withTryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "370", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -4940,11 +5095,11 @@ "skipUrlEncoding": false }, { - "$id": "371", + "$id": "379", "name": "body", "nameInRequest": "body", "type": { - "$ref": "88" + "$ref": "156" }, "location": "Body", "isApiVersion": false, @@ -4959,7 +5114,7 @@ ], "responses": [ { - "$id": "372", + "$id": "380", "statusCodes": [ 204 ], @@ -4981,11 +5136,11 @@ }, "parameters": [ { - "$id": "373", + "$id": "381", "name": "body", "nameInRequest": "body", "type": { - "$ref": "88" + "$ref": "156" }, "location": "Body", "isApiVersion": false, @@ -4998,12 +5153,12 @@ "skipUrlEncoding": false }, { - "$id": "374", + "$id": "382", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "369" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -5023,37 +5178,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry" }, { - "$id": "375", + "$id": "383", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "376", + "$id": "384", "name": "withWhile", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "377", + "$id": "385", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "378", - "kind": "constant", - "name": "withWhileContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -5066,11 +5208,11 @@ "skipUrlEncoding": false }, { - "$id": "380", + "$id": "386", "name": "body", "nameInRequest": "body", "type": { - "$ref": "91" + "$ref": "159" }, "location": "Body", "isApiVersion": false, @@ -5085,7 +5227,7 @@ ], "responses": [ { - "$id": "381", + "$id": "387", "statusCodes": [ 204 ], @@ -5107,11 +5249,11 @@ }, "parameters": [ { - "$id": "382", + "$id": "388", "name": "body", "nameInRequest": "body", "type": { - "$ref": "91" + "$ref": "159" }, "location": "Body", "isApiVersion": false, @@ -5124,12 +5266,12 @@ "skipUrlEncoding": false }, { - "$id": "383", + "$id": "389", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "378" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -5149,37 +5291,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile" }, { - "$id": "384", + "$id": "390", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "385", + "$id": "391", "name": "withWith", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "386", + "$id": "392", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "387", - "kind": "constant", - "name": "withWithContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -5192,11 +5321,11 @@ "skipUrlEncoding": false }, { - "$id": "389", + "$id": "393", "name": "body", "nameInRequest": "body", "type": { - "$ref": "94" + "$ref": "162" }, "location": "Body", "isApiVersion": false, @@ -5211,7 +5340,7 @@ ], "responses": [ { - "$id": "390", + "$id": "394", "statusCodes": [ 204 ], @@ -5233,11 +5362,11 @@ }, "parameters": [ { - "$id": "391", + "$id": "395", "name": "body", "nameInRequest": "body", "type": { - "$ref": "94" + "$ref": "162" }, "location": "Body", "isApiVersion": false, @@ -5250,12 +5379,12 @@ "skipUrlEncoding": false }, { - "$id": "392", + "$id": "396", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "387" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -5275,37 +5404,24 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith" }, { - "$id": "393", + "$id": "397", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "394", + "$id": "398", "name": "withYield", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "395", + "$id": "399", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "396", - "kind": "constant", - "name": "withYieldContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "397", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -5318,11 +5434,11 @@ "skipUrlEncoding": false }, { - "$id": "398", + "$id": "400", "name": "body", "nameInRequest": "body", "type": { - "$ref": "97" + "$ref": "165" }, "location": "Body", "isApiVersion": false, @@ -5337,7 +5453,7 @@ ], "responses": [ { - "$id": "399", + "$id": "401", "statusCodes": [ 204 ], @@ -5359,11 +5475,11 @@ }, "parameters": [ { - "$id": "400", + "$id": "402", "name": "body", "nameInRequest": "body", "type": { - "$ref": "97" + "$ref": "165" }, "location": "Body", "isApiVersion": false, @@ -5376,12 +5492,12 @@ "skipUrlEncoding": false }, { - "$id": "401", + "$id": "403", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "396" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -5433,48 +5549,35 @@ "crossLanguageDefinitionId": "SpecialWords.Models", "apiVersions": [], "parent": { - "$ref": "103" + "$ref": "171" } }, { - "$id": "402", + "$id": "404", "kind": "client", "name": "ModelProperties", "namespace": "SpecialWords.ModelProperties", "doc": "Verify model names", "methods": [ { - "$id": "403", + "$id": "405", "kind": "basic", "name": "sameAsModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "404", + "$id": "406", "name": "sameAsModel", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "405", + "$id": "407", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "406", - "kind": "constant", - "name": "sameAsModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "407", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -5491,7 +5594,7 @@ "name": "body", "nameInRequest": "body", "type": { - "$ref": "100" + "$ref": "168" }, "location": "Body", "isApiVersion": false, @@ -5532,7 +5635,7 @@ "name": "body", "nameInRequest": "body", "type": { - "$ref": "100" + "$ref": "168" }, "location": "Body", "isApiVersion": false, @@ -5550,7 +5653,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "406" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -5602,7 +5705,7 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties", "apiVersions": [], "parent": { - "$ref": "103" + "$ref": "171" } }, { @@ -6899,7 +7002,7 @@ "crossLanguageDefinitionId": "SpecialWords.Operations", "apiVersions": [], "parent": { - "$ref": "103" + "$ref": "171" } }, { @@ -9730,7 +9833,7 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters", "apiVersions": [], "parent": { - "$ref": "103" + "$ref": "171" } } ] 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 00194c9bd37..462eab6b18e 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 @@ -1,4510 +1,4403 @@ { - "$id": "1", - "name": "Type.Array", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "putContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "putContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "getContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "putContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "getContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "putContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "getContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "putContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "getContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "putContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "getContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "putContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "getContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "putContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "getContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "putContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "getContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "putContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "getContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "putContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "getContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "putContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "54", - "kind": "constant", - "name": "getContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "putContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "58", - "kind": "model", - "name": "InnerModel", - "namespace": "Type.Array", - "crossLanguageDefinitionId": "Type.Array.InnerModel", - "usage": "Input,Output,Json", - "doc": "Array inner model", - "decorators": [], - "properties": [ + "name": "Type.Array", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "59", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Required string property", - "type": { - "$id": "60", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.InnerModel.property", - "serializationOptions": { - "$id": "61", - "json": { - "$id": "62", - "name": "property" - } - } }, { - "$id": "63", - "kind": "property", - "name": "children", - "serializedName": "children", - "type": { - "$id": "64", - "kind": "array", - "name": "ArrayInnerModel", + "$id": "3", + "kind": "constant", + "name": "putContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "58" + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.InnerModel.children", - "serializationOptions": { - "$id": "65", - "json": { - "$id": "66", - "name": "children" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "67", - "kind": "client", - "name": "ArrayClient", - "namespace": "Type.Array", - "doc": "Illustrates various types of arrays.", - "methods": [], - "parameters": [ + }, { - "$id": "68", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "70", - "type": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "5", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "72", - "kind": "client", - "name": "Int32Value", - "namespace": "Type.Array", - "doc": "Array of int32 values", - "methods": [ - { - "$id": "73", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "74", - "name": "get", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "75", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "76", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "77", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "78", - "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", + "$id": "7", + "kind": "constant", + "name": "putContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "79", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "80", - "type": { - "$ref": "77" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int32Value.get" }, - { - "$id": "81", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "82", - "name": "put", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "83", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "84", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "85", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "86", - "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": "87", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "88", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "89", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "90", - "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 - }, - { - "$id": "91", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "92" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int32Value.put" - } - ], - "parameters": [ - { - "$id": "93", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "94", - "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": "95", - "type": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int32Value", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "97", - "kind": "client", - "name": "Int64Value", - "namespace": "Type.Array", - "doc": "Array of int64 values", - "methods": [ - { - "$id": "98", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "99", - "name": "get", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "100", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "101", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "102", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "103", - "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", + "$id": "11", + "kind": "constant", + "name": "putContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "104", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "105", - "type": { - "$ref": "102" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int64Value.get" }, - { - "$id": "106", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "107", - "name": "put", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "108", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "109", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "110", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "111", - "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": "112", - "statusCodes": [ - 204 - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "113", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "114", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "115", - "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 - }, - { - "$id": "116", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "117" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int64Value.put" - } - ], - "parameters": [ - { - "$id": "118", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "119", - "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": "120", - "type": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int64Value", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "122", - "kind": "client", - "name": "BooleanValue", - "namespace": "Type.Array", - "doc": "Array of boolean values", - "methods": [ - { - "$id": "123", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "124", - "name": "get", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "125", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "126", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "127", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "128", - "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", + "$id": "15", + "kind": "constant", + "name": "putContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "129", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "130", - "type": { - "$ref": "127" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.get" }, - { - "$id": "131", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "132", - "name": "put", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "133", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "134", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "135", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "136", - "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": "137", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "138", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "139", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "140", - "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 - }, - { - "$id": "141", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "142" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put" - } - ], - "parameters": [ - { - "$id": "143", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "144", - "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": "145", - "type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.BooleanValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "147", - "kind": "client", - "name": "StringValue", - "namespace": "Type.Array", - "doc": "Array of string values", - "methods": [ - { - "$id": "148", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "149", - "name": "get", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "150", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "151", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "152", - "kind": "array", - "name": "Array3", - "valueType": { - "$id": "153", - "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", + "$id": "19", + "kind": "constant", + "name": "putContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "154", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "155", - "type": { - "$ref": "152" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.StringValue.get" }, - { - "$id": "156", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "157", - "name": "put", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "158", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "159", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "160", - "kind": "array", - "name": "Array3", - "valueType": { - "$id": "161", - "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": "162", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "21", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "163", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "164", - "kind": "array", - "name": "Array3", - "valueType": { - "$id": "165", - "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 - }, - { - "$id": "166", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "167" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.StringValue.put" - } - ], - "parameters": [ - { - "$id": "168", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "169", - "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": "170", - "type": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.StringValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "172", - "kind": "client", - "name": "Float32Value", - "namespace": "Type.Array", - "doc": "Array of float values", - "methods": [ - { - "$id": "173", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "174", - "name": "get", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "175", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "176", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "177", - "kind": "array", - "name": "Array4", - "valueType": { - "$id": "178", - "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", + "$id": "23", + "kind": "constant", + "name": "putContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "179", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "180", - "type": { - "$ref": "177" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Float32Value.get" }, - { - "$id": "181", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "182", - "name": "put", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "183", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "184", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "185", - "kind": "array", - "name": "Array4", - "valueType": { - "$id": "186", - "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 - } - ], - "responses": [ - { - "$id": "187", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "getContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "188", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "189", - "kind": "array", - "name": "Array4", - "valueType": { - "$id": "190", - "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 - }, - { - "$id": "191", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "192" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Float32Value.put" - } - ], - "parameters": [ - { - "$id": "193", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "194", - "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": "195", - "type": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Float32Value", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "197", - "kind": "client", - "name": "DatetimeValue", - "namespace": "Type.Array", - "doc": "Array of datetime values", - "methods": [ - { - "$id": "198", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "199", - "name": "get", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "200", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "201", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "202", - "kind": "array", - "name": "Array5", - "valueType": { - "$id": "203", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "204", - "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", + "$id": "27", + "kind": "constant", + "name": "putContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "205", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "206", - "type": { - "$ref": "202" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get" }, - { - "$id": "207", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "208", - "name": "put", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "209", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "210", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "211", - "kind": "array", - "name": "Array5", - "valueType": { - "$id": "212", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "213", - "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": "214", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "getContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "215", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "216", - "kind": "array", - "name": "Array5", - "valueType": { - "$id": "217", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "218", - "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 - }, - { - "$id": "219", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "220" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put" - } - ], - "parameters": [ - { - "$id": "221", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "222", - "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": "223", - "type": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DatetimeValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "225", - "kind": "client", - "name": "DurationValue", - "namespace": "Type.Array", - "doc": "Array of duration values", - "methods": [ - { - "$id": "226", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "227", - "name": "get", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "228", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "229", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "230", - "kind": "array", - "name": "Array6", - "valueType": { - "$id": "231", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "232", - "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", + "$id": "31", + "kind": "constant", + "name": "putContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "233", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "234", - "type": { - "$ref": "230" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DurationValue.get" }, - { - "$id": "235", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "236", - "name": "put", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "237", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "238", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "239", - "kind": "array", - "name": "Array6", - "valueType": { - "$id": "240", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "241", - "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": "242", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "33", + "kind": "constant", + "name": "getContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "243", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "244", - "kind": "array", - "name": "Array6", - "valueType": { - "$id": "245", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "246", - "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 - }, - { - "$id": "247", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "248" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DurationValue.put" - } - ], - "parameters": [ - { - "$id": "249", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "250", - "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": "251", - "type": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DurationValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "253", - "kind": "client", - "name": "UnknownValue", - "namespace": "Type.Array", - "doc": "Array of unknown values", - "methods": [ - { - "$id": "254", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "255", - "name": "get", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "256", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "257", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "258", - "kind": "array", - "name": "Array7", - "valueType": { - "$id": "259", - "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", + "$id": "35", + "kind": "constant", + "name": "putContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "260", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "261", - "type": { - "$ref": "258" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.get" }, - { - "$id": "262", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "263", - "name": "put", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "264", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "265", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "266", - "kind": "array", - "name": "Array7", - "valueType": { - "$id": "267", - "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": "268", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "37", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "269", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "270", - "kind": "array", - "name": "Array7", - "valueType": { - "$id": "271", - "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 - }, - { - "$id": "272", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "273" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put" - } - ], - "parameters": [ - { - "$id": "274", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "275", - "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": "276", - "type": { - "$id": "277", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.UnknownValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "278", - "kind": "client", - "name": "ModelValue", - "namespace": "Type.Array", - "doc": "Array of model values", - "methods": [ - { - "$id": "279", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "280", - "name": "get", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "281", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "282", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "283", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "58" - }, - "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", + "$id": "39", + "kind": "constant", + "name": "putContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "284", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "285", - "type": { - "$ref": "283" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.ModelValue.get" }, - { - "$id": "286", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "287", - "name": "put", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "288", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "289", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "290", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "58" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "291", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "43", + "kind": "constant", + "name": "putContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "45", + "kind": "constant", + "name": "getContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "292", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "293", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "58" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "294", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "295" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.ModelValue.put" - } - ], - "parameters": [ - { - "$id": "296", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "297", - "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": "298", - "type": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.ModelValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "300", - "kind": "client", - "name": "NullableFloatValue", - "namespace": "Type.Array", - "doc": "Array of nullable float values", - "methods": [ - { - "$id": "301", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "302", - "name": "get", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "303", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "304", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "305", - "kind": "array", - "name": "Array8", - "valueType": { - "$id": "306", - "kind": "nullable", - "type": { - "$id": "307", - "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", + "$id": "47", + "kind": "constant", + "name": "putContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "308", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "309", - "type": { - "$ref": "305" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" }, - { - "$id": "310", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "311", - "name": "put", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "312", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "313", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "314", - "kind": "array", - "name": "Array8", - "valueType": { - "$ref": "306" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "315", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "49", + "kind": "constant", + "name": "getContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "316", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "317", - "kind": "array", - "name": "Array8", - "valueType": { - "$ref": "306" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "318", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "319" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put" - } - ], - "parameters": [ - { - "$id": "320", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "321", - "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": "322", - "type": { - "$id": "323", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "324", - "kind": "client", - "name": "NullableInt32Value", - "namespace": "Type.Array", - "doc": "Array of nullable int32 values", - "methods": [ - { - "$id": "325", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "326", - "name": "get", - "resourceName": "NullableInt32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "327", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "328", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "329", - "kind": "array", - "name": "Array9", - "valueType": { - "$id": "330", - "kind": "nullable", - "type": { - "$id": "331", - "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", + "$id": "51", + "kind": "constant", + "name": "putContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "332", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "333", - "type": { - "$ref": "329" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" }, - { - "$id": "334", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "335", - "name": "put", - "resourceName": "NullableInt32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "336", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "337", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "338", - "kind": "array", - "name": "Array9", - "valueType": { - "$ref": "330" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "339", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "53", + "kind": "constant", + "name": "getContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "340", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "341", - "kind": "array", - "name": "Array9", - "valueType": { - "$ref": "330" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "342", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "343" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put" - } - ], - "parameters": [ - { - "$id": "344", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "345", - "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": "346", - "type": { - "$id": "347", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "348", - "kind": "client", - "name": "NullableBooleanValue", - "namespace": "Type.Array", - "doc": "Array of nullable boolean values", - "methods": [ - { - "$id": "349", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "350", - "name": "get", - "resourceName": "NullableBooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "351", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "352", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "353", - "kind": "array", - "name": "Array10", - "valueType": { - "$id": "354", - "kind": "nullable", - "type": { - "$id": "355", - "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", + "$id": "55", + "kind": "constant", + "name": "putContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "356", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "357", - "type": { - "$ref": "353" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" }, - { - "$id": "358", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "359", - "name": "put", - "resourceName": "NullableBooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "360", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "57", + "kind": "model", + "name": "InnerModel", + "namespace": "Type.Array", + "crossLanguageDefinitionId": "Type.Array.InnerModel", + "usage": "Input,Output,Json", + "doc": "Array inner model", + "decorators": [], + "properties": [ + { + "$id": "58", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Required string property", "type": { - "$ref": "48" + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "361", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Array.InnerModel.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + }, + { + "$id": "60", + "kind": "property", + "name": "children", + "serializedName": "children", "type": { - "$id": "362", - "kind": "array", - "name": "Array10", - "valueType": { - "$ref": "354" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "61", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "57" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "363", - "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": [] - }, - "parameters": [ - { - "$id": "364", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "365", - "kind": "array", - "name": "Array10", - "valueType": { - "$ref": "354" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "366", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Array.InnerModel.children", + "serializationOptions": { + "json": { + "name": "children" + } + } } - ], - "response": { - "$id": "367" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put" - } - ], - "parameters": [ - { - "$id": "368", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "369", - "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": "370", - "type": { - "$id": "371", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } - }, + ] + } + ], + "clients": [ { - "$id": "372", - "kind": "client", - "name": "NullableStringValue", - "namespace": "Type.Array", - "doc": "Array of nullable string values", - "methods": [ - { - "$id": "373", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "374", - "name": "get", - "resourceName": "NullableStringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "375", - "name": "accept", - "nameInRequest": "Accept", + "$id": "62", + "kind": "client", + "name": "ArrayClient", + "namespace": "Type.Array", + "doc": "Illustrates various types of arrays.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "50" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "376", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "377", - "kind": "array", - "name": "Array11", - "valueType": { - "$id": "378", - "kind": "nullable", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" }, - "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": [] - }, - "parameters": [ - { - "$id": "380", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "381", - "type": { - "$ref": "377" + "value": "http://localhost:3000" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" - }, - { - "$id": "382", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "383", - "name": "put", - "resourceName": "NullableStringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "384", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array", + "apiVersions": [], + "children": [ + { + "$id": "63", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Array", + "doc": "Array of int32 values", + "methods": [ + { + "$id": "64", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "65", + "name": "get", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "66", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "67", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "68", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "69", + "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": [] + }, + "parameters": [ + { + "$id": "70", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "68" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Int32Value.get" + }, + { + "$id": "71", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "72", + "name": "put", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "73", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "74", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "75", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "76", + "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": "77", + "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": [] + }, + "parameters": [ + { + "$id": "78", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "79", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "80", + "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 + }, + { + "$id": "81", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Int32Value.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "385", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "386", - "kind": "array", - "name": "Array11", - "valueType": { - "$ref": "378" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Array.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, + { + "$id": "82", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Array", + "doc": "Array of int64 values", + "methods": [ + { + "$id": "83", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "84", + "name": "get", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "85", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "86", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "87", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "88", + "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": [] + }, + "parameters": [ + { + "$id": "89", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "87" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Int64Value.get" + }, + { + "$id": "90", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "91", + "name": "put", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "92", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "93", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "94", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "95", + "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": "96", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "97", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "98", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "99", + "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 + }, + { + "$id": "100", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Int64Value.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "387", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Array.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, + { + "$id": "101", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Array", + "doc": "Array of boolean values", + "methods": [ + { + "$id": "102", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "103", + "name": "get", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "104", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "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": "Array2", + "valueType": { + "$id": "107", + "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": [] + }, + "parameters": [ + { + "$id": "108", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "106" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.BooleanValue.get" + }, + { + "$id": "109", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "110", + "name": "put", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "111", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "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": "Array2", + "valueType": { + "$id": "114", + "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": "115", + "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": [] + }, + "parameters": [ + { + "$id": "116", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "117", + "kind": "array", + "name": "Array2", + "valueType": { + "$id": "118", + "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 + }, + { + "$id": "119", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.BooleanValue.put" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.BooleanValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, { - "$id": "388", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "389", - "kind": "array", - "name": "Array11", - "valueType": { - "$ref": "378" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "120", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Array", + "doc": "Array of string values", + "methods": [ + { + "$id": "121", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "122", + "name": "get", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "123", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "124", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "125", + "kind": "array", + "name": "Array3", + "valueType": { + "$id": "126", + "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": [] + }, + "parameters": [ + { + "$id": "127", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "125" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.StringValue.get" + }, + { + "$id": "128", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "129", + "name": "put", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "130", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "131", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "132", + "kind": "array", + "name": "Array3", + "valueType": { + "$id": "133", + "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": "134", + "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": [] + }, + "parameters": [ + { + "$id": "135", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "136", + "kind": "array", + "name": "Array3", + "valueType": { + "$id": "137", + "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 + }, + { + "$id": "138", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.StringValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.StringValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } }, { - "$id": "390", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "391" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put" - } - ], - "parameters": [ - { - "$id": "392", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "393", - "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": "394", - "type": { - "$id": "395", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "139", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Array", + "doc": "Array of float values", + "methods": [ + { + "$id": "140", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "141", + "name": "get", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "142", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "143", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "144", + "kind": "array", + "name": "Array4", + "valueType": { + "$id": "145", + "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": [] + }, + "parameters": [ + { + "$id": "146", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "144" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Float32Value.get" + }, + { + "$id": "147", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "148", + "name": "put", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "149", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "150", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "151", + "kind": "array", + "name": "Array4", + "valueType": { + "$id": "152", + "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 + } + ], + "responses": [ + { + "$id": "153", + "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": [] + }, + "parameters": [ + { + "$id": "154", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "155", + "kind": "array", + "name": "Array4", + "valueType": { + "$id": "156", + "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 + }, + { + "$id": "157", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Float32Value.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Float32Value", + "apiVersions": [], + "parent": { + "$ref": "62" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableStringValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } - }, - { - "$id": "396", - "kind": "client", - "name": "NullableModelValue", - "namespace": "Type.Array", - "doc": "Array of nullable model values", - "methods": [ - { - "$id": "397", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "398", - "name": "get", - "resourceName": "NullableModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "399", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "158", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Array", + "doc": "Array of datetime values", + "methods": [ + { + "$id": "159", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "160", + "name": "get", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "161", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "162", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "163", + "kind": "array", + "name": "Array5", + "valueType": { + "$id": "164", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "165", + "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": [] + }, + "parameters": [ + { + "$id": "166", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "163" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get" + }, + { + "$id": "167", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "168", + "name": "put", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "169", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "170", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "171", + "kind": "array", + "name": "Array5", + "valueType": { + "$id": "172", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "173", + "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": "174", + "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": [] + }, + "parameters": [ + { + "$id": "175", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "176", + "kind": "array", + "name": "Array5", + "valueType": { + "$id": "177", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "178", + "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 + }, + { + "$id": "179", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "400", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, + { + "$id": "180", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Array", + "doc": "Array of duration values", + "methods": [ + { + "$id": "181", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "182", + "name": "get", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "183", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "184", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "185", + "kind": "array", + "name": "Array6", + "valueType": { + "$id": "186", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "187", + "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": [] + }, + "parameters": [ + { + "$id": "188", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "185" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.DurationValue.get" + }, + { + "$id": "189", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "190", + "name": "put", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "191", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "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": "array", + "name": "Array6", + "valueType": { + "$id": "194", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "195", + "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": "196", + "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": [] + }, + "parameters": [ + { + "$id": "197", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "198", + "kind": "array", + "name": "Array6", + "valueType": { + "$id": "199", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "200", + "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 + }, + { + "$id": "201", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.DurationValue.put" + } ], - "bodyType": { - "$id": "401", - "kind": "array", - "name": "Array12", - "valueType": { - "$id": "402", - "kind": "nullable", - "type": { - "$ref": "58" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, + { + "$id": "202", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Array", + "doc": "Array of unknown values", + "methods": [ + { + "$id": "203", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "204", + "name": "get", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "205", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "29" + }, + "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": "array", + "name": "Array7", + "valueType": { + "$id": "208", + "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": [] + }, + "parameters": [ + { + "$id": "209", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "207" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.UnknownValue.get" }, - "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": [] - }, - "parameters": [ + { + "$id": "210", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "211", + "name": "put", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "212", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "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": "array", + "name": "Array7", + "valueType": { + "$id": "215", + "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": "216", + "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": [] + }, + "parameters": [ + { + "$id": "217", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "218", + "kind": "array", + "name": "Array7", + "valueType": { + "$id": "219", + "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 + }, + { + "$id": "220", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.UnknownValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, { - "$id": "403", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "404", - "type": { - "$ref": "401" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" - }, - { - "$id": "405", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "406", - "name": "put", - "resourceName": "NullableModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "407", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "221", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Array", + "doc": "Array of model values", + "methods": [ + { + "$id": "222", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "223", + "name": "get", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "224", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "225", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "226", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "57" + }, + "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": [] + }, + "parameters": [ + { + "$id": "227", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "226" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.ModelValue.get" + }, + { + "$id": "228", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "229", + "name": "put", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "230", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "231", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "232", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "57" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "233", + "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": [] + }, + "parameters": [ + { + "$id": "234", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "235", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "57" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "236", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.ModelValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "408", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "409", - "kind": "array", - "name": "Array12", - "valueType": { - "$ref": "402" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Array.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, + { + "$id": "237", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Array", + "doc": "Array of nullable float values", + "methods": [ + { + "$id": "238", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "239", + "name": "get", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "240", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "241", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "242", + "kind": "array", + "name": "Array8", + "valueType": { + "$id": "243", + "kind": "nullable", + "type": { + "$id": "244", + "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": [] + }, + "parameters": [ + { + "$id": "245", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "242" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" + }, + { + "$id": "246", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "247", + "name": "put", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "249", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "250", + "kind": "array", + "name": "Array8", + "valueType": { + "$ref": "243" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "251", + "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": [] + }, + "parameters": [ + { + "$id": "252", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "253", + "kind": "array", + "name": "Array8", + "valueType": { + "$ref": "243" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "254", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "410", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, + { + "$id": "255", + "kind": "client", + "name": "NullableInt32Value", + "namespace": "Type.Array", + "doc": "Array of nullable int32 values", + "methods": [ + { + "$id": "256", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "257", + "name": "get", + "resourceName": "NullableInt32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "258", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "259", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "260", + "kind": "array", + "name": "Array9", + "valueType": { + "$id": "261", + "kind": "nullable", + "type": { + "$id": "262", + "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": [] + }, + "parameters": [ + { + "$id": "263", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "260" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" + }, + { + "$id": "264", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "265", + "name": "put", + "resourceName": "NullableInt32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "267", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "268", + "kind": "array", + "name": "Array9", + "valueType": { + "$ref": "261" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "269", + "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": [] + }, + "parameters": [ + { + "$id": "270", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "271", + "kind": "array", + "name": "Array9", + "valueType": { + "$ref": "261" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "272", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/nullable-model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put", - "decorators": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", + "apiVersions": [], + "parent": { + "$ref": "62" + } + }, { - "$id": "411", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "412", - "kind": "array", - "name": "Array12", - "valueType": { - "$ref": "402" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "273", + "kind": "client", + "name": "NullableBooleanValue", + "namespace": "Type.Array", + "doc": "Array of nullable boolean values", + "methods": [ + { + "$id": "274", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "275", + "name": "get", + "resourceName": "NullableBooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "276", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "277", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "278", + "kind": "array", + "name": "Array10", + "valueType": { + "$id": "279", + "kind": "nullable", + "type": { + "$id": "280", + "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": [] + }, + "parameters": [ + { + "$id": "281", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "278" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" + }, + { + "$id": "282", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "283", + "name": "put", + "resourceName": "NullableBooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "284", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "285", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "286", + "kind": "array", + "name": "Array10", + "valueType": { + "$ref": "279" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "287", + "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": [] + }, + "parameters": [ + { + "$id": "288", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "289", + "kind": "array", + "name": "Array10", + "valueType": { + "$ref": "279" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "290", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } }, { - "$id": "413", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "414" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put" - } - ], - "parameters": [ - { - "$id": "415", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "416", - "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": "417", - "type": { - "$id": "418", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "291", + "kind": "client", + "name": "NullableStringValue", + "namespace": "Type.Array", + "doc": "Array of nullable string values", + "methods": [ + { + "$id": "292", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "293", + "name": "get", + "resourceName": "NullableStringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "294", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "295", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "296", + "kind": "array", + "name": "Array11", + "valueType": { + "$id": "297", + "kind": "nullable", + "type": { + "$id": "298", + "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": [] + }, + "parameters": [ + { + "$id": "299", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "296" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" + }, + { + "$id": "300", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "301", + "name": "put", + "resourceName": "NullableStringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "302", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "303", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "304", + "kind": "array", + "name": "Array11", + "valueType": { + "$ref": "297" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "305", + "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": [] + }, + "parameters": [ + { + "$id": "306", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "307", + "kind": "array", + "name": "Array11", + "valueType": { + "$ref": "297" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "308", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableStringValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableModelValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + { + "$id": "309", + "kind": "client", + "name": "NullableModelValue", + "namespace": "Type.Array", + "doc": "Array of nullable model values", + "methods": [ + { + "$id": "310", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "311", + "name": "get", + "resourceName": "NullableModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "312", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "313", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "314", + "kind": "array", + "name": "Array12", + "valueType": { + "$id": "315", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "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": [] + }, + "parameters": [ + { + "$id": "316", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "314" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" + }, + { + "$id": "317", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "318", + "name": "put", + "resourceName": "NullableModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "319", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "320", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "321", + "kind": "array", + "name": "Array12", + "valueType": { + "$ref": "315" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "322", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "323", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "324", + "kind": "array", + "name": "Array12", + "valueType": { + "$ref": "315" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "325", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "apiVersions": [], + "parent": { + "$ref": "62" + } + } + ] } - ] - } - ] + ] } 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 10de09189ed..0f3d4e915af 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 @@ -1,3748 +1,3662 @@ { - "$id": "1", - "name": "Type.Dictionary", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "putContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "putContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "getContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "putContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "getContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "putContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "getContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "putContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "getContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "putContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "getContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "putContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "getContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "putContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "getContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "putContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "getContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "putContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "46", - "kind": "model", - "name": "InnerModel", - "namespace": "Type.Dictionary", - "crossLanguageDefinitionId": "Type.Dictionary.InnerModel", - "usage": "Input,Output,Json", - "doc": "Dictionary inner model", - "decorators": [], - "properties": [ + "name": "Type.Dictionary", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "47", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Required string property", - "type": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.InnerModel.property", - "serializationOptions": { - "$id": "49", - "json": { - "$id": "50", - "name": "property" - } - } }, { - "$id": "51", - "kind": "property", - "name": "children", - "serializedName": "children", - "type": { - "$id": "52", - "kind": "dict", - "keyType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "3", + "kind": "constant", + "name": "putContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "46" + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.InnerModel.children", - "serializationOptions": { - "$id": "54", - "json": { - "$id": "55", - "name": "children" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "56", - "kind": "client", - "name": "DictionaryClient", - "namespace": "Type.Dictionary", - "doc": "Illustrates various of dictionaries.", - "methods": [], - "parameters": [ + }, { - "$id": "57", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "59", - "type": { - "$id": "60", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "5", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "61", - "kind": "client", - "name": "Int32Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of int32 values", - "methods": [ - { - "$id": "62", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "63", - "name": "get", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "64", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" - }, - "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": "dict", - "keyType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "68", - "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", + "$id": "7", + "kind": "constant", + "name": "putContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "69", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "70", - "type": { - "$ref": "66" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get" }, - { - "$id": "71", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "72", - "name": "put", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "73", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "74", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "75", - "kind": "dict", - "keyType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "77", - "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": "78", - "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": [] - }, - "parameters": [ - { - "$id": "79", - "name": "body", - "nameInRequest": "body", - "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": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "83", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "84" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put" - } - ], - "parameters": [ - { - "$id": "85", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "86", - "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": "87", - "type": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", - "apiVersions": [], - "parent": { - "$ref": "56" - } + "value": "application/json", + "decorators": [] }, { - "$id": "89", - "kind": "client", - "name": "Int64Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of int64 values", - "methods": [ - { - "$id": "90", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "91", - "name": "get", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "92", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "93", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "94", - "kind": "dict", - "keyType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "96", - "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", + "$id": "9", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "97", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "98", - "type": { - "$ref": "94" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get" }, - { - "$id": "99", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "100", - "name": "put", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "101", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "102", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "103", - "kind": "dict", - "keyType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "105", - "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": "106", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/int64", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "putContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "107", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "108", - "kind": "dict", - "keyType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "110", - "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 - }, - { - "$id": "111", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "112" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put" - } - ], - "parameters": [ - { - "$id": "113", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "114", - "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": "115", - "type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "117", - "kind": "client", - "name": "BooleanValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of boolean values", - "methods": [ - { - "$id": "118", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "119", - "name": "get", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "120", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "121", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "122", - "kind": "dict", - "keyType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "124", - "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", + "$id": "13", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "125", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "126", - "type": { - "$ref": "122" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get" }, - { - "$id": "127", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "128", - "name": "put", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "129", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "130", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "131", - "kind": "dict", - "keyType": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "133", - "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": "134", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "putContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "135", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "136", - "kind": "dict", - "keyType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "138", - "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 - }, - { - "$id": "139", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "140" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put" - } - ], - "parameters": [ - { - "$id": "141", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "142", - "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": "143", - "type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "145", - "kind": "client", - "name": "StringValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of string values", - "methods": [ - { - "$id": "146", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "147", - "name": "get", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "148", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "149", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "150", - "kind": "dict", - "keyType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "152", - "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", + "$id": "17", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "153", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "154", - "type": { - "$ref": "150" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get" }, - { - "$id": "155", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "156", - "name": "put", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "157", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "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": "dict", - "keyType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "161", - "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": "162", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "putContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "163", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "164", - "kind": "dict", - "keyType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "166", - "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 - }, - { - "$id": "167", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "168" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put" - } - ], - "parameters": [ - { - "$id": "169", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "170", - "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": "171", - "type": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.StringValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "173", - "kind": "client", - "name": "Float32Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of float values", - "methods": [ - { - "$id": "174", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "175", - "name": "get", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "176", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "177", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "178", - "kind": "dict", - "keyType": { - "$id": "179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "180", - "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", + "$id": "21", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "181", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "182", - "type": { - "$ref": "178" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get" }, - { - "$id": "183", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "184", - "name": "put", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "185", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "186", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "187", - "kind": "dict", - "keyType": { - "$id": "188", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "189", - "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": "190", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "putContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "191", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "192", - "kind": "dict", - "keyType": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "194", - "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 - }, - { - "$id": "195", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "196" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put" - } - ], - "parameters": [ - { - "$id": "197", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "198", - "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": "199", - "type": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "201", - "kind": "client", - "name": "DatetimeValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of datetime values", - "methods": [ - { - "$id": "202", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "203", - "name": "get", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "204", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "205", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "206", - "kind": "dict", - "keyType": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "208", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "209", - "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", + "$id": "25", + "kind": "constant", + "name": "getContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "210", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "211", - "type": { - "$ref": "206" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get" }, - { - "$id": "212", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "213", - "name": "put", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "214", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "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": "dict", - "keyType": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "218", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "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": "220", - "statusCodes": [ - 204 - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "putContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "221", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "222", - "kind": "dict", - "keyType": { - "$id": "223", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "224", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "225", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "226", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "227" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put" - } - ], - "parameters": [ - { - "$id": "228", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "229", - "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": "230", - "type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "232", - "kind": "client", - "name": "DurationValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of duration values", - "methods": [ - { - "$id": "233", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "234", - "name": "get", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "235", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "236", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "237", - "kind": "dict", - "keyType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "239", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "240", - "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", + "$id": "29", + "kind": "constant", + "name": "getContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "241", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "242", - "type": { - "$ref": "237" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get" }, - { - "$id": "243", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "244", - "name": "put", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "246", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "247", - "kind": "dict", - "keyType": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "249", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "250", - "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": "251", - "statusCodes": [ - 204 - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "putContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "252", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "253", - "kind": "dict", - "keyType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "255", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "256", - "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 - }, - { - "$id": "257", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "258" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put" - } - ], - "parameters": [ - { - "$id": "259", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "260", - "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": "261", - "type": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "263", - "kind": "client", - "name": "UnknownValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of unknown values", - "methods": [ - { - "$id": "264", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "265", - "name": "get", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "266", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "267", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "268", - "kind": "dict", - "keyType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "270", - "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", + "$id": "33", + "kind": "constant", + "name": "getContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "271", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "272", - "type": { - "$ref": "268" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get" }, - { - "$id": "273", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "274", - "name": "put", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "275", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "276", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "277", - "kind": "dict", - "keyType": { - "$id": "278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "279", - "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": "280", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "35", + "kind": "constant", + "name": "putContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "281", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "282", - "kind": "dict", - "keyType": { - "$id": "283", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "284", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "285", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "286" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put" - } - ], - "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" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "291", - "kind": "client", - "name": "ModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", - "methods": [ - { - "$id": "292", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "293", - "name": "get", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "294", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "295", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "296", - "kind": "dict", - "keyType": { - "$id": "297", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "46" - }, - "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", + "$id": "37", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "298", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "299", - "type": { - "$ref": "296" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" }, - { - "$id": "300", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "301", - "name": "put", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "302", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "303", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "304", - "kind": "dict", - "keyType": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "46" - }, - "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 - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "putContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "307", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "308", - "kind": "dict", - "keyType": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "46" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "310", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "311" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put" - } - ], - "parameters": [ - { - "$id": "312", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "313", - "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": "314", - "type": { - "$id": "315", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "316", - "kind": "client", - "name": "RecursiveModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", - "methods": [ - { - "$id": "317", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "318", - "name": "get", - "resourceName": "RecursiveModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "319", - "name": "accept", - "nameInRequest": "Accept", + "$id": "43", + "kind": "constant", + "name": "putContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "45", + "kind": "model", + "name": "InnerModel", + "namespace": "Type.Dictionary", + "crossLanguageDefinitionId": "Type.Dictionary.InnerModel", + "usage": "Input,Output,Json", + "doc": "Dictionary inner model", + "decorators": [], + "properties": [ + { + "$id": "46", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Required string property", "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "320", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "321", - "kind": "dict", - "keyType": { - "$id": "322", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "valueType": { - "$ref": "46" - }, - "decorators": [] }, - "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": [] - }, - "parameters": [ + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.InnerModel.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + }, { - "$id": "323", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "324", - "type": { - "$ref": "321" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" - }, - { - "$id": "325", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "326", - "name": "put", - "resourceName": "RecursiveModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "327", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "48", + "kind": "property", + "name": "children", + "serializedName": "children", "type": { - "$ref": "40" + "$id": "49", + "kind": "dict", + "keyType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "328", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Dictionary.InnerModel.children", + "serializationOptions": { + "json": { + "name": "children" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "51", + "kind": "client", + "name": "DictionaryClient", + "namespace": "Type.Dictionary", + "doc": "Illustrates various of dictionaries.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "329", - "kind": "dict", - "keyType": { - "$id": "330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "46" - }, - "decorators": [] + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "331", - "statusCodes": [ - 204 + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary", + "apiVersions": [], + "children": [ + { + "$id": "52", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int32 values", + "methods": [ + { + "$id": "53", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "54", + "name": "get", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "55", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "56", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "57", + "kind": "dict", + "keyType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "59", + "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": [] + }, + "parameters": [ + { + "$id": "60", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "57" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get" + }, + { + "$id": "61", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "62", + "name": "put", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "63", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "64", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "65", + "kind": "dict", + "keyType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "67", + "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": "68", + "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": [] + }, + "parameters": [ + { + "$id": "69", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "70", + "kind": "dict", + "keyType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "72", + "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 + }, + { + "$id": "73", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, { - "$id": "332", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "333", - "kind": "dict", - "keyType": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "46" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "74", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int64 values", + "methods": [ + { + "$id": "75", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "76", + "name": "get", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "77", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "78", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "79", + "kind": "dict", + "keyType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "81", + "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": [] + }, + "parameters": [ + { + "$id": "82", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "79" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get" + }, + { + "$id": "83", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "84", + "name": "put", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "85", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "86", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "87", + "kind": "dict", + "keyType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "89", + "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": "90", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/int64", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "91", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "92", + "kind": "dict", + "keyType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "94", + "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 + }, + { + "$id": "95", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "51" + } }, { - "$id": "335", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "336" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put" - } - ], - "parameters": [ - { - "$id": "337", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "338", - "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": "339", - "type": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "96", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of boolean values", + "methods": [ + { + "$id": "97", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "98", + "name": "get", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "99", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "100", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "101", + "kind": "dict", + "keyType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "103", + "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": [] + }, + "parameters": [ + { + "$id": "104", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "101" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get" + }, + { + "$id": "105", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "106", + "name": "put", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "107", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "108", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "109", + "kind": "dict", + "keyType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "111", + "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": "112", + "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": [] + }, + "parameters": [ + { + "$id": "113", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "114", + "kind": "dict", + "keyType": { + "$id": "115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "116", + "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 + }, + { + "$id": "117", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } - }, - { - "$id": "341", - "kind": "client", - "name": "NullableFloatValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of nullable float values", - "methods": [ - { - "$id": "342", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "343", - "name": "get", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "344", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "118", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of string values", + "methods": [ + { + "$id": "119", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "120", + "name": "get", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "121", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "122", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "123", + "kind": "dict", + "keyType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "125", + "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": [] + }, + "parameters": [ + { + "$id": "126", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "123" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get" + }, + { + "$id": "127", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "128", + "name": "put", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "129", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "130", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "131", + "kind": "dict", + "keyType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "133", + "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": "134", + "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": [] + }, + "parameters": [ + { + "$id": "135", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "136", + "kind": "dict", + "keyType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "138", + "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 + }, + { + "$id": "139", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "345", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, + { + "$id": "140", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of float values", + "methods": [ + { + "$id": "141", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "142", + "name": "get", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "143", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "144", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "145", + "kind": "dict", + "keyType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "147", + "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": [] + }, + "parameters": [ + { + "$id": "148", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "145" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get" + }, + { + "$id": "149", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "150", + "name": "put", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "151", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "152", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "153", + "kind": "dict", + "keyType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "155", + "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": "156", + "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": [] + }, + "parameters": [ + { + "$id": "157", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "158", + "kind": "dict", + "keyType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "160", + "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 + }, + { + "$id": "161", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put" + } ], - "bodyType": { - "$id": "346", - "kind": "dict", - "keyType": { - "$id": "347", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "348", - "kind": "nullable", - "type": { - "$id": "349", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, + { + "$id": "162", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of datetime values", + "methods": [ + { + "$id": "163", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "164", + "name": "get", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "165", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "166", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "167", + "kind": "dict", + "keyType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "169", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "170", + "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": [] + }, + "parameters": [ + { + "$id": "171", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "167" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get" }, - "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": [] - }, - "parameters": [ + { + "$id": "172", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "173", + "name": "put", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "174", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "175", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "176", + "kind": "dict", + "keyType": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "178", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "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": "180", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "181", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "182", + "kind": "dict", + "keyType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "184", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "186", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, { - "$id": "350", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "351", - "type": { - "$ref": "346" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" - }, - { - "$id": "352", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "353", - "name": "put", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "354", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "187", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of duration values", + "methods": [ + { + "$id": "188", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "189", + "name": "get", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "190", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "191", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "192", + "kind": "dict", + "keyType": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "194", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "195", + "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": [] + }, + "parameters": [ + { + "$id": "196", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "192" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get" + }, + { + "$id": "197", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "198", + "name": "put", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "199", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "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": "dict", + "keyType": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "203", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "204", + "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": "205", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "206", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "207", + "kind": "dict", + "keyType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "209", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "210", + "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 + }, + { + "$id": "211", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "355", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "356", - "kind": "dict", - "keyType": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "348" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, + { + "$id": "212", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of unknown values", + "methods": [ + { + "$id": "213", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "214", + "name": "get", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "215", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "216", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "217", + "kind": "dict", + "keyType": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "219", + "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": [] + }, + "parameters": [ + { + "$id": "220", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "217" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get" + }, + { + "$id": "221", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "222", + "name": "put", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "223", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "224", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "225", + "kind": "dict", + "keyType": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "227", + "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": "228", + "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": [] + }, + "parameters": [ + { + "$id": "229", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "230", + "kind": "dict", + "keyType": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "232", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "233", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "358", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, + { + "$id": "234", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "methods": [ + { + "$id": "235", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "236", + "name": "get", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "237", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "238", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "239", + "kind": "dict", + "keyType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "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": [] + }, + "parameters": [ + { + "$id": "241", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "239" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" + }, + { + "$id": "242", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "243", + "name": "put", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "244", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "245", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "246", + "kind": "dict", + "keyType": { + "$id": "247", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "248", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "249", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "250", + "kind": "dict", + "keyType": { + "$id": "251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "252", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } + }, { - "$id": "359", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "360", - "kind": "dict", - "keyType": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "348" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "253", + "kind": "client", + "name": "RecursiveModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "methods": [ + { + "$id": "254", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "255", + "name": "get", + "resourceName": "RecursiveModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "256", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "257", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "258", + "kind": "dict", + "keyType": { + "$id": "259", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] + }, + "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": [] + }, + "parameters": [ + { + "$id": "260", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "258" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" + }, + { + "$id": "261", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "262", + "name": "put", + "resourceName": "RecursiveModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "263", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "264", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "265", + "kind": "dict", + "keyType": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "267", + "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": [] + }, + "parameters": [ + { + "$id": "268", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "269", + "kind": "dict", + "keyType": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "271", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } }, { - "$id": "362", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "272", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of nullable float values", + "methods": [ + { + "$id": "273", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "274", + "name": "get", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "275", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "276", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "277", + "kind": "dict", + "keyType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "279", + "kind": "nullable", + "type": { + "$id": "280", + "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": [] + }, + "parameters": [ + { + "$id": "281", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "277" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" + }, + { + "$id": "282", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "283", + "name": "put", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "284", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "285", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "286", + "kind": "dict", + "keyType": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "279" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "288", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "289", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "290", + "kind": "dict", + "keyType": { + "$id": "291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "279" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "292", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "apiVersions": [], + "parent": { + "$ref": "51" + } } - ], - "response": { - "$id": "363" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put" - } - ], - "parameters": [ - { - "$id": "364", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "365", - "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": "366", - "type": { - "$id": "367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } + ] } - ] - } - ] + ] } 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 2491aed7aaa..07996bea3bc 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 @@ -1,791 +1,746 @@ { - "$id": "1", - "name": "Type.Enum.Extensible", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "DaysOfWeekExtensibleEnum", - "crossLanguageDefinitionId": "Type.Enum.Extensible.DaysOfWeekExtensibleEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Type.Enum.Extensible", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Monday", - "value": "Monday", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "DaysOfWeekExtensibleEnum", + "crossLanguageDefinitionId": "Type.Enum.Extensible.DaysOfWeekExtensibleEnum", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Monday", + "value": "Monday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Monday.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "Tuesday", + "value": "Tuesday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Tuesday.", + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "Wednesday", + "value": "Wednesday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Wednesday.", + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "Thursday", + "value": "Thursday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Thursday.", + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "Friday", + "value": "Friday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Friday.", + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "Saturday", + "value": "Saturday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Saturday.", + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "Sunday", + "value": "Sunday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Sunday.", + "decorators": [] + } + ], + "namespace": "Type.Enum.Extensible", + "doc": "Days of the week", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + } + ], + "constants": [ + { + "$id": "10", + "kind": "constant", + "name": "getKnownValueContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Monday.", - "decorators": [] }, { - "$id": "6", - "kind": "enumvalue", - "name": "Tuesday", - "value": "Tuesday", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "12", + "kind": "constant", + "name": "GetKnownValueResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Tuesday.", - "decorators": [] }, { - "$id": "8", - "kind": "enumvalue", - "name": "Wednesday", - "value": "Wednesday", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "14", + "kind": "constant", + "name": "getUnknownValueContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Wednesday.", - "decorators": [] }, { - "$id": "10", - "kind": "enumvalue", - "name": "Thursday", - "value": "Thursday", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "16", + "kind": "constant", + "name": "GetKnownValueResponseContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Thursday.", - "decorators": [] }, { - "$id": "12", - "kind": "enumvalue", - "name": "Friday", - "value": "Friday", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "18", + "kind": "constant", + "name": "GetKnownValueResponseContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Friday.", - "decorators": [] }, { - "$id": "14", - "kind": "enumvalue", - "name": "Saturday", - "value": "Saturday", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "20", + "kind": "constant", + "name": "GetKnownValueResponseContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Saturday.", - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "Sunday", - "value": "Sunday", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "22", + "kind": "constant", + "name": "GetKnownValueResponseContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Sunday.", - "decorators": [] - } - ], - "namespace": "Type.Enum.Extensible", - "doc": "Days of the week", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - } - ], - "constants": [ - { - "$id": "18", - "kind": "constant", - "name": "getKnownValueContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "GetKnownValueResponseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "getUnknownValueContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "GetKnownValueResponseContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "GetKnownValueResponseContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "GetKnownValueResponseContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "GetKnownValueResponseContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "GetKnownValueResponseContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [], - "clients": [ - { - "$id": "34", - "kind": "client", - "name": "ExtensibleClient", - "namespace": "Type.Enum.Extensible", - "methods": [], - "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" + "$id": "24", + "kind": "constant", + "name": "GetKnownValueResponseContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible", - "apiVersions": [], - "children": [ + ], + "models": [], + "clients": [ { - "$id": "39", - "kind": "client", - "name": "String", - "namespace": "Type.Enum.Extensible", - "methods": [ - { - "$id": "40", - "kind": "basic", - "name": "getKnownValue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "41", - "name": "getKnownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ - { - "$id": "42", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "43", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [ - { - "$id": "44", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "20" - } - } - ], - "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": [] - }, - "parameters": [ + "$id": "26", + "kind": "client", + "name": "ExtensibleClient", + "namespace": "Type.Enum.Extensible", + "methods": [], + "parameters": [ { - "$id": "45", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "46", - "type": { - "$ref": "2" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue" - }, - { - "$id": "47", - "kind": "basic", - "name": "getUnknownValue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "48", - "name": "getUnknownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ - { - "$id": "49", - "name": "accept", - "nameInRequest": "Accept", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "22" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "50", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [ - { - "$id": "51", - "name": "contentType", - "nameInResponse": "content-type", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$ref": "24" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible", + "apiVersions": [], + "children": [ + { + "$id": "27", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Extensible", + "methods": [ + { + "$id": "28", + "kind": "basic", + "name": "getKnownValue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "29", + "name": "getKnownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ + { + "$id": "30", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "31", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "12" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "32", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "1" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue" + }, + { + "$id": "33", + "kind": "basic", + "name": "getUnknownValue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "34", + "name": "getUnknownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ + { + "$id": "35", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "36", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "16" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "37", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "1" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue" + }, + { + "$id": "38", + "kind": "basic", + "name": "putKnownValue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "39", + "name": "putKnownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ + { + "$id": "40", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "41", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "1" + }, + "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 + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "43", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "44", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue" + }, + { + "$id": "45", + "kind": "basic", + "name": "putUnknownValue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "46", + "name": "putUnknownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ + { + "$id": "47", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "22" + }, + "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": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": 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": [] + }, + "parameters": [ + { + "$id": "50", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "24" + }, + "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": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue" } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "52", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "53", - "type": { - "$ref": "2" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue" - }, - { - "$id": "54", - "kind": "basic", - "name": "putKnownValue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "55", - "name": "putKnownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ - { - "$id": "56", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "57", - "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": "58", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "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": [] - }, - "parameters": [ - { - "$id": "59", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "60", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "61" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue" - }, - { - "$id": "62", - "kind": "basic", - "name": "putUnknownValue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "63", - "name": "putUnknownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ - { - "$id": "64", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "65", - "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": "66", - "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": [] - }, - "parameters": [ - { - "$id": "67", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "68", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "apiVersions": [], + "parent": { + "$ref": "26" + } } - ], - "response": { - "$id": "69" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue" - } - ], - "parameters": [ - { - "$id": "70", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "71", - "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": "72", - "type": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String", - "apiVersions": [], - "parent": { - "$ref": "34" - } + ] } - ] - } - ] + ] } 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 414cb962680..b4e8c54247b 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 @@ -1,675 +1,632 @@ { - "$id": "1", - "name": "Type.Enum.Fixed", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "DaysOfWeekEnum", - "crossLanguageDefinitionId": "Type.Enum.Fixed.DaysOfWeekEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Type.Enum.Fixed", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Monday", - "value": "Monday", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "DaysOfWeekEnum", + "crossLanguageDefinitionId": "Type.Enum.Fixed.DaysOfWeekEnum", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Monday", + "value": "Monday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Monday.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "Tuesday", + "value": "Tuesday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Tuesday.", + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "Wednesday", + "value": "Wednesday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Wednesday.", + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "Thursday", + "value": "Thursday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Thursday.", + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "Friday", + "value": "Friday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Friday.", + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "Saturday", + "value": "Saturday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Saturday.", + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "Sunday", + "value": "Sunday", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Sunday.", + "decorators": [] + } + ], + "namespace": "Type.Enum.Fixed", + "doc": "Days of the week", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Monday.", - "decorators": [] - }, + } + ], + "constants": [ { - "$id": "6", - "kind": "enumvalue", - "name": "Tuesday", - "value": "Tuesday", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "10", + "kind": "constant", + "name": "getKnownValueContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Tuesday.", - "decorators": [] }, { - "$id": "8", - "kind": "enumvalue", - "name": "Wednesday", - "value": "Wednesday", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "12", + "kind": "constant", + "name": "GetKnownValueResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Wednesday.", - "decorators": [] }, { - "$id": "10", - "kind": "enumvalue", - "name": "Thursday", - "value": "Thursday", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "14", + "kind": "constant", + "name": "GetKnownValueResponseContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Thursday.", - "decorators": [] }, { - "$id": "12", - "kind": "enumvalue", - "name": "Friday", - "value": "Friday", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "16", + "kind": "constant", + "name": "GetKnownValueResponseContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Friday.", - "decorators": [] }, { - "$id": "14", - "kind": "enumvalue", - "name": "Saturday", - "value": "Saturday", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "18", + "kind": "constant", + "name": "GetKnownValueResponseContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Saturday.", - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "Sunday", - "value": "Sunday", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Sunday.", - "decorators": [] - } - ], - "namespace": "Type.Enum.Fixed", - "doc": "Days of the week", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - } - ], - "constants": [ - { - "$id": "18", - "kind": "constant", - "name": "getKnownValueContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "GetKnownValueResponseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "GetKnownValueResponseContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "GetKnownValueResponseContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "GetKnownValueResponseContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "GetKnownValueResponseContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [], - "clients": [ - { - "$id": "30", - "kind": "client", - "name": "FixedClient", - "namespace": "Type.Enum.Fixed", - "methods": [], - "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" + "$id": "20", + "kind": "constant", + "name": "GetKnownValueResponseContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed", - "apiVersions": [], - "children": [ + ], + "models": [], + "clients": [ { - "$id": "35", - "kind": "client", - "name": "String", - "namespace": "Type.Enum.Fixed", - "methods": [ - { - "$id": "36", - "kind": "basic", - "name": "getKnownValue", - "accessibility": "public", - "apiVersions": [], - "doc": "getKnownValue", - "operation": { - "$id": "37", - "name": "getKnownValue", - "resourceName": "String", - "doc": "getKnownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "38", - "name": "accept", - "nameInRequest": "Accept", + "$id": "22", + "kind": "client", + "name": "FixedClient", + "namespace": "Type.Enum.Fixed", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "18" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "39", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [ - { - "$id": "40", - "name": "contentType", - "nameInResponse": "content-type", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$ref": "20" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed", + "apiVersions": [], + "children": [ + { + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Fixed", + "methods": [ + { + "$id": "24", + "kind": "basic", + "name": "getKnownValue", + "accessibility": "public", + "apiVersions": [], + "doc": "getKnownValue", + "operation": { + "$id": "25", + "name": "getKnownValue", + "resourceName": "String", + "doc": "getKnownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "26", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "27", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "12" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "28", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "1" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue" + }, + { + "$id": "29", + "kind": "basic", + "name": "putKnownValue", + "accessibility": "public", + "apiVersions": [], + "doc": "putKnownValue", + "operation": { + "$id": "30", + "name": "putKnownValue", + "resourceName": "String", + "doc": "putKnownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "31", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "32", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "33", + "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": [] + }, + "parameters": [ + { + "$id": "34", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "35", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue" + }, + { + "$id": "36", + "kind": "basic", + "name": "putUnknownValue", + "accessibility": "public", + "apiVersions": [], + "doc": "putUnknownValue", + "operation": { + "$id": "37", + "name": "putUnknownValue", + "resourceName": "String", + "doc": "putUnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "38", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "39", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "40", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "41", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "42", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue" } - } ], - "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": [] - }, - "parameters": [ - { - "$id": "41", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "42", - "type": { - "$ref": "2" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue" - }, - { - "$id": "43", - "kind": "basic", - "name": "putKnownValue", - "accessibility": "public", - "apiVersions": [], - "doc": "putKnownValue", - "operation": { - "$id": "44", - "name": "putKnownValue", - "resourceName": "String", - "doc": "putKnownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "45", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "46", - "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": "47", - "statusCodes": [ - 204 + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "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": [] - }, - "parameters": [ - { - "$id": "48", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "49", - "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 - } - ], - "response": { - "$id": "50" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue" - }, - { - "$id": "51", - "kind": "basic", - "name": "putUnknownValue", - "accessibility": "public", - "apiVersions": [], - "doc": "putUnknownValue", - "operation": { - "$id": "52", - "name": "putUnknownValue", - "resourceName": "String", - "doc": "putUnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "53", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "54", - "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": "55", - "statusCodes": [ - 204 - ], - "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": [] - }, - "parameters": [ - { - "$id": "56", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "57", - "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 + "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "apiVersions": [], + "parent": { + "$ref": "22" + } } - ], - "response": { - "$id": "58" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue" - } - ], - "parameters": [ - { - "$id": "59", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "60", - "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": "61", - "type": { - "$id": "62", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed.String", - "apiVersions": [], - "parent": { - "$ref": "30" - } + ] } - ] - } - ] + ] } 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 3c5079404a5..3c772e73d5b 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 @@ -1,511 +1,502 @@ { - "$id": "1", - "name": "Type.Model.Empty", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "putEmptyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "getEmptyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "postRoundTripEmptyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "postRoundTripEmptyContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "10", - "kind": "model", - "name": "EmptyInput", - "namespace": "Type.Model.Empty", - "crossLanguageDefinitionId": "Type.Model.Empty.EmptyInput", - "usage": "Input,Json", - "doc": "Empty model used in operation parameters", - "decorators": [], - "properties": [] - }, - { - "$id": "11", - "kind": "model", - "name": "EmptyOutput", - "namespace": "Type.Model.Empty", - "crossLanguageDefinitionId": "Type.Model.Empty.EmptyOutput", - "usage": "Output,Json", - "doc": "Empty model used in operation return type", - "decorators": [], - "properties": [] - }, - { - "$id": "12", - "kind": "model", - "name": "EmptyInputOutput", - "namespace": "Type.Model.Empty", - "crossLanguageDefinitionId": "Type.Model.Empty.EmptyInputOutput", - "usage": "Input,Output,Json", - "doc": "Empty model used in both parameter and return type", - "decorators": [], - "properties": [] - } - ], - "clients": [ - { - "$id": "13", - "kind": "client", - "name": "EmptyClient", - "namespace": "Type.Model.Empty", - "doc": "Illustrates usage of empty model used in operation's parameters and responses.", - "methods": [ + "name": "Type.Model.Empty", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "14", - "kind": "basic", - "name": "putEmpty", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "15", - "name": "putEmpty", - "resourceName": "Empty", - "accessibility": "public", - "parameters": [ - { - "$id": "16", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "17", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "18", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/empty/alone", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty", + "$id": "1", + "kind": "constant", + "name": "putEmptyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "19", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + }, + { + "$id": "3", + "kind": "constant", + "name": "getEmptyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "20", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "21" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty" + "value": "application/json", + "decorators": [] }, { - "$id": "22", - "kind": "basic", - "name": "getEmpty", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "23", - "name": "getEmpty", - "resourceName": "Empty", - "accessibility": "public", - "parameters": [ - { - "$id": "24", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "25", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "11" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/empty/alone", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty", + "$id": "5", + "kind": "constant", + "name": "postRoundTripEmptyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "26", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "27", - "type": { - "$ref": "11" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty" }, { - "$id": "28", - "kind": "basic", - "name": "postRoundTripEmpty", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "29", - "name": "postRoundTripEmpty", - "resourceName": "Empty", - "accessibility": "public", - "parameters": [ - { - "$id": "30", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "31", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "32", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "12" + "$id": "7", + "kind": "constant", + "name": "postRoundTripEmptyContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "9", + "kind": "model", + "name": "EmptyInput", + "namespace": "Type.Model.Empty", + "crossLanguageDefinitionId": "Type.Model.Empty.EmptyInput", + "usage": "Input,Json", + "doc": "Empty model used in operation parameters", + "decorators": [], + "properties": [] + }, + { + "$id": "10", + "kind": "model", + "name": "EmptyOutput", + "namespace": "Type.Model.Empty", + "crossLanguageDefinitionId": "Type.Model.Empty.EmptyOutput", + "usage": "Output,Json", + "doc": "Empty model used in operation return type", + "decorators": [], + "properties": [] + }, + { + "$id": "11", + "kind": "model", + "name": "EmptyInputOutput", + "namespace": "Type.Model.Empty", + "crossLanguageDefinitionId": "Type.Model.Empty.EmptyInputOutput", + "usage": "Input,Output,Json", + "doc": "Empty model used in both parameter and return type", + "decorators": [], + "properties": [] + } + ], + "clients": [ + { + "$id": "12", + "kind": "client", + "name": "EmptyClient", + "namespace": "Type.Model.Empty", + "doc": "Illustrates usage of empty model used in operation's parameters and responses.", + "methods": [ + { + "$id": "13", + "kind": "basic", + "name": "putEmpty", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "14", + "name": "putEmpty", + "resourceName": "Empty", + "accessibility": "public", + "parameters": [ + { + "$id": "15", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "16", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "17", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/empty/alone", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty", + "decorators": [] + }, + "parameters": [ + { + "$id": "18", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "19", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "33", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "12" + { + "$id": "20", + "kind": "basic", + "name": "getEmpty", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "21", + "name": "getEmpty", + "resourceName": "Empty", + "accessibility": "public", + "parameters": [ + { + "$id": "22", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "23", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "10" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/empty/alone", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty", + "decorators": [] + }, + "parameters": [ + { + "$id": "24", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "10" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "25", + "kind": "basic", + "name": "postRoundTripEmpty", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "26", + "name": "postRoundTripEmpty", + "resourceName": "Empty", + "accessibility": "public", + "parameters": [ + { + "$id": "27", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "28", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "29", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "11" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/model/empty/round-trip", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty", + "decorators": [] + }, + "parameters": [ + { + "$id": "31", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "32", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "33", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "11" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty" + } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/model/empty/round-trip", - "requestMediaTypes": [ - "application/json" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty", - "decorators": [] - }, - "parameters": [ - { - "$id": "34", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "35", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "36", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "37", - "type": { - "$ref": "12" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty" - } - ], - "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.Empty", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Empty", - "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 31c2b5eae90..6141cf8f567 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 @@ -1,1273 +1,1217 @@ { - "$id": "1", - "name": "Type.Model.Inheritance.EnumDiscriminator", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "DogKind", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.DogKind", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Type.Model.Inheritance.EnumDiscriminator", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "Golden", - "value": "golden", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "DogKind", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.DogKind", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Golden", + "value": "golden", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Species golden", + "decorators": [] + } + ], + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "doc": "extensible enum type for discriminator", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "4", + "kind": "enum", + "name": "SnakeKind", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.SnakeKind", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "Cobra", + "value": "cobra", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "doc": "Species cobra", + "decorators": [] + } + ], + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "doc": "fixed enum type for discriminator", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Species golden", - "decorators": [] } - ], - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "doc": "extensible enum type for discriminator", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "SnakeKind", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.SnakeKind", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + ], + "constants": [ + { + "$id": "7", + "kind": "constant", + "name": "getExtensibleModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "8", - "kind": "enumvalue", - "name": "Cobra", - "value": "cobra", - "valueType": { "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "constant", + "name": "putExtensibleModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "doc": "Species cobra", - "decorators": [] - } - ], - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "doc": "fixed enum type for discriminator", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - } - ], - "constants": [ - { - "$id": "10", - "kind": "constant", - "name": "getExtensibleModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "putExtensibleModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "getExtensibleModelMissingDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "getExtensibleModelWrongDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "getFixedModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "putFixedModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "getFixedModelMissingDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "getFixedModelWrongDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "26", - "kind": "model", - "name": "Dog", - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog", - "usage": "Input,Output,Json", - "doc": "Test extensible enum type for discriminator", - "decorators": [], - "discriminatorProperty": { - "$id": "27", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "discriminator property", - "type": { - "$ref": "2" }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog.kind", - "serializationOptions": { - "$id": "28", - "json": { - "$id": "29", - "name": "kind" - } - } - }, - "properties": [ { - "$ref": "27" + "$id": "11", + "kind": "constant", + "name": "getExtensibleModelMissingDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "30", - "kind": "property", - "name": "weight", - "serializedName": "weight", - "doc": "Weight of the dog", - "type": { - "$id": "31", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "13", + "kind": "constant", + "name": "getExtensibleModelWrongDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog.weight", - "serializationOptions": { - "$id": "32", - "json": { - "$id": "33", - "name": "weight" - } - } - } - ], - "discriminatedSubtypes": { - "$id": "34", - "golden": { - "$id": "35", - "kind": "model", - "name": "Golden", - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Golden", - "usage": "Input,Output,Json", - "doc": "Golden dog model", - "discriminatorValue": "golden", - "decorators": [], - "baseModel": { - "$ref": "26" - }, - "properties": [ - { - "$id": "36", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "discriminator property", - "type": { - "$id": "37", - "kind": "enumvalue", - "name": "Golden", - "value": "golden", - "valueType": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Species golden", + }, + { + "$id": "15", + "kind": "constant", + "name": "getFixedModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Golden.kind", - "serializationOptions": { - "$id": "39", - "json": { - "$id": "40", - "name": "kind" - } - } - } - ] - } - } - }, - { - "$ref": "35" - }, - { - "$id": "41", - "kind": "model", - "name": "Snake", - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake", - "usage": "Input,Output,Json", - "doc": "Test fixed enum type for discriminator", - "decorators": [], - "discriminatorProperty": { - "$id": "42", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "discriminator property", - "type": { - "$ref": "6" + }, + "value": "application/json", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake.kind", - "serializationOptions": { - "$id": "43", - "json": { - "$id": "44", - "name": "kind" - } - } - }, - "properties": [ { - "$ref": "42" + "$id": "17", + "kind": "constant", + "name": "putFixedModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "45", - "kind": "property", - "name": "length", - "serializedName": "length", - "doc": "Length of the snake", - "type": { - "$id": "46", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "19", + "kind": "constant", + "name": "getFixedModelMissingDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake.length", - "serializationOptions": { - "$id": "47", - "json": { - "$id": "48", - "name": "length" - } - } - } - ], - "discriminatedSubtypes": { - "$id": "49", - "cobra": { - "$id": "50", - "kind": "model", - "name": "Cobra", - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Cobra", - "usage": "Input,Output,Json", - "doc": "Cobra model", - "discriminatorValue": "cobra", - "decorators": [], - "baseModel": { - "$ref": "41" - }, - "properties": [ - { - "$id": "51", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "discriminator property", - "type": { - "$id": "52", - "kind": "enumvalue", - "name": "Cobra", - "value": "cobra", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "doc": "Species cobra", + }, + { + "$id": "21", + "kind": "constant", + "name": "getFixedModelWrongDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Cobra.kind", - "serializationOptions": { - "$id": "54", - "json": { - "$id": "55", - "name": "kind" - } - } - } - ] + }, + "value": "application/json", + "decorators": [] } - } - }, - { - "$ref": "50" - } - ], - "clients": [ - { - "$id": "56", - "kind": "client", - "name": "EnumDiscriminatorClient", - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "doc": "Illustrates inheritance with enum discriminator.", - "methods": [ + ], + "models": [ { - "$id": "57", - "kind": "basic", - "name": "getExtensibleModel", - "accessibility": "public", - "apiVersions": [], - "doc": "Receive model with extensible enum discriminator type.", - "operation": { - "$id": "58", - "name": "getExtensibleModel", - "resourceName": "EnumDiscriminator", - "doc": "Receive model with extensible enum discriminator type.", - "accessibility": "public", - "parameters": [ - { - "$id": "59", - "name": "accept", - "nameInRequest": "Accept", + "$id": "23", + "kind": "model", + "name": "Dog", + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog", + "usage": "Input,Output,Json", + "doc": "Test extensible enum type for discriminator", + "decorators": [], + "discriminatorProperty": { + "$id": "24", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "discriminator property", "type": { - "$ref": "10" + "$ref": "1" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "60", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "24" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "25", + "kind": "property", + "name": "weight", + "serializedName": "weight", + "doc": "Weight of the dog", + "type": { + "$id": "26", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog.weight", + "serializationOptions": { + "json": { + "name": "weight" + } + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/extensible-enum", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "61", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "62", - "type": { - "$ref": "26" + "discriminatedSubtypes": { + "golden": { + "$id": "27", + "kind": "model", + "name": "Golden", + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Golden", + "usage": "Input,Output,Json", + "doc": "Golden dog model", + "discriminatorValue": "golden", + "decorators": [], + "baseModel": { + "$ref": "23" + }, + "properties": [ + { + "$id": "28", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "discriminator property", + "type": { + "$ref": "3" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Golden.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel" }, { - "$id": "63", - "kind": "basic", - "name": "putExtensibleModel", - "accessibility": "public", - "apiVersions": [], - "doc": "Send model with extensible enum discriminator type.", - "operation": { - "$id": "64", - "name": "putExtensibleModel", - "resourceName": "EnumDiscriminator", - "doc": "Send model with extensible enum discriminator type.", - "accessibility": "public", - "parameters": [ - { - "$id": "65", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "66", - "name": "input", - "nameInRequest": "input", - "doc": "Dog to create", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "67", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/extensible-enum", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "68", - "name": "input", - "nameInRequest": "input", - "doc": "Dog to create", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "69", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "70" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel" + "$ref": "27" }, { - "$id": "71", - "kind": "basic", - "name": "getExtensibleModelMissingDiscriminator", - "accessibility": "public", - "apiVersions": [], - "doc": "Get a model omitting the discriminator.", - "operation": { - "$id": "72", - "name": "getExtensibleModelMissingDiscriminator", - "resourceName": "EnumDiscriminator", - "doc": "Get a model omitting the discriminator.", - "accessibility": "public", - "parameters": [ - { - "$id": "73", - "name": "accept", - "nameInRequest": "Accept", + "$id": "29", + "kind": "model", + "name": "Snake", + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake", + "usage": "Input,Output,Json", + "doc": "Test fixed enum type for discriminator", + "decorators": [], + "discriminatorProperty": { + "$id": "30", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "discriminator property", "type": { - "$ref": "14" + "$ref": "4" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "74", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "30" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "31", + "kind": "property", + "name": "length", + "serializedName": "length", + "doc": "Length of the snake", + "type": { + "$id": "32", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake.length", + "serializationOptions": { + "json": { + "name": "length" + } + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/extensible-enum/missingdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "75", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "76", - "type": { - "$ref": "26" + "discriminatedSubtypes": { + "cobra": { + "$id": "33", + "kind": "model", + "name": "Cobra", + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Cobra", + "usage": "Input,Output,Json", + "doc": "Cobra model", + "discriminatorValue": "cobra", + "decorators": [], + "baseModel": { + "$ref": "29" + }, + "properties": [ + { + "$id": "34", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "discriminator property", + "type": { + "$id": "35", + "kind": "enumvalue", + "name": "Cobra", + "value": "cobra", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "doc": "Species cobra", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Cobra.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator" }, { - "$id": "77", - "kind": "basic", - "name": "getExtensibleModelWrongDiscriminator", - "accessibility": "public", - "apiVersions": [], - "doc": "Get a model containing discriminator value never defined.", - "operation": { - "$id": "78", - "name": "getExtensibleModelWrongDiscriminator", - "resourceName": "EnumDiscriminator", - "doc": "Get a model containing discriminator value never defined.", - "accessibility": "public", - "parameters": [ - { - "$id": "79", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "80", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/extensible-enum/wrongdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "81", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "82", - "type": { - "$ref": "26" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator" - }, + "$ref": "33" + } + ], + "clients": [ { - "$id": "83", - "kind": "basic", - "name": "getFixedModel", - "accessibility": "public", - "apiVersions": [], - "doc": "Receive model with fixed enum discriminator type.", - "operation": { - "$id": "84", - "name": "getFixedModel", - "resourceName": "EnumDiscriminator", - "doc": "Receive model with fixed enum discriminator type.", - "accessibility": "public", - "parameters": [ - { - "$id": "85", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" + "$id": "36", + "kind": "client", + "name": "EnumDiscriminatorClient", + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "doc": "Illustrates inheritance with enum discriminator.", + "methods": [ + { + "$id": "37", + "kind": "basic", + "name": "getExtensibleModel", + "accessibility": "public", + "apiVersions": [], + "doc": "Receive model with extensible enum discriminator type.", + "operation": { + "$id": "38", + "name": "getExtensibleModel", + "resourceName": "EnumDiscriminator", + "doc": "Receive model with extensible enum discriminator type.", + "accessibility": "public", + "parameters": [ + { + "$id": "39", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "40", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "23" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/extensible-enum", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "41", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "23" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "86", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "41" + { + "$id": "42", + "kind": "basic", + "name": "putExtensibleModel", + "accessibility": "public", + "apiVersions": [], + "doc": "Send model with extensible enum discriminator type.", + "operation": { + "$id": "43", + "name": "putExtensibleModel", + "resourceName": "EnumDiscriminator", + "doc": "Send model with extensible enum discriminator type.", + "accessibility": "public", + "parameters": [ + { + "$id": "44", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "45", + "name": "input", + "nameInRequest": "input", + "doc": "Dog to create", + "type": { + "$ref": "23" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "46", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/extensible-enum", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "47", + "name": "input", + "nameInRequest": "input", + "doc": "Dog to create", + "type": { + "$ref": "23" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "48", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/fixed-enum", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "87", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "88", - "type": { - "$ref": "41" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel" - }, - { - "$id": "89", - "kind": "basic", - "name": "putFixedModel", - "accessibility": "public", - "apiVersions": [], - "doc": "Send model with fixed enum discriminator type.", - "operation": { - "$id": "90", - "name": "putFixedModel", - "resourceName": "EnumDiscriminator", - "doc": "Send model with fixed enum discriminator type.", - "accessibility": "public", - "parameters": [ - { - "$id": "91", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" + { + "$id": "49", + "kind": "basic", + "name": "getExtensibleModelMissingDiscriminator", + "accessibility": "public", + "apiVersions": [], + "doc": "Get a model omitting the discriminator.", + "operation": { + "$id": "50", + "name": "getExtensibleModelMissingDiscriminator", + "resourceName": "EnumDiscriminator", + "doc": "Get a model omitting the discriminator.", + "accessibility": "public", + "parameters": [ + { + "$id": "51", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "52", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "23" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/extensible-enum/missingdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "53", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "23" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "92", - "name": "input", - "nameInRequest": "input", - "doc": "Snake to create", - "type": { - "$ref": "41" + { + "$id": "54", + "kind": "basic", + "name": "getExtensibleModelWrongDiscriminator", + "accessibility": "public", + "apiVersions": [], + "doc": "Get a model containing discriminator value never defined.", + "operation": { + "$id": "55", + "name": "getExtensibleModelWrongDiscriminator", + "resourceName": "EnumDiscriminator", + "doc": "Get a model containing discriminator value never defined.", + "accessibility": "public", + "parameters": [ + { + "$id": "56", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "57", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "23" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/extensible-enum/wrongdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "58", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "23" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "93", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/fixed-enum", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "94", - "name": "input", - "nameInRequest": "input", - "doc": "Snake to create", - "type": { - "$ref": "41" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "95", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "96" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel" - }, - { - "$id": "97", - "kind": "basic", - "name": "getFixedModelMissingDiscriminator", - "accessibility": "public", - "apiVersions": [], - "doc": "Get a model omitting the discriminator.", - "operation": { - "$id": "98", - "name": "getFixedModelMissingDiscriminator", - "resourceName": "EnumDiscriminator", - "doc": "Get a model omitting the discriminator.", - "accessibility": "public", - "parameters": [ - { - "$id": "99", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "22" + { + "$id": "59", + "kind": "basic", + "name": "getFixedModel", + "accessibility": "public", + "apiVersions": [], + "doc": "Receive model with fixed enum discriminator type.", + "operation": { + "$id": "60", + "name": "getFixedModel", + "resourceName": "EnumDiscriminator", + "doc": "Receive model with fixed enum discriminator type.", + "accessibility": "public", + "parameters": [ + { + "$id": "61", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "62", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/fixed-enum", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "63", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "100", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "41" + { + "$id": "64", + "kind": "basic", + "name": "putFixedModel", + "accessibility": "public", + "apiVersions": [], + "doc": "Send model with fixed enum discriminator type.", + "operation": { + "$id": "65", + "name": "putFixedModel", + "resourceName": "EnumDiscriminator", + "doc": "Send model with fixed enum discriminator type.", + "accessibility": "public", + "parameters": [ + { + "$id": "66", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "67", + "name": "input", + "nameInRequest": "input", + "doc": "Snake to create", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "68", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/fixed-enum", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "69", + "name": "input", + "nameInRequest": "input", + "doc": "Snake to create", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "70", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/fixed-enum/missingdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "101", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "102", - "type": { - "$ref": "41" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator" - }, - { - "$id": "103", - "kind": "basic", - "name": "getFixedModelWrongDiscriminator", - "accessibility": "public", - "apiVersions": [], - "doc": "Get a model containing discriminator value never defined.", - "operation": { - "$id": "104", - "name": "getFixedModelWrongDiscriminator", - "resourceName": "EnumDiscriminator", - "doc": "Get a model containing discriminator value never defined.", - "accessibility": "public", - "parameters": [ - { - "$id": "105", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" + { + "$id": "71", + "kind": "basic", + "name": "getFixedModelMissingDiscriminator", + "accessibility": "public", + "apiVersions": [], + "doc": "Get a model omitting the discriminator.", + "operation": { + "$id": "72", + "name": "getFixedModelMissingDiscriminator", + "resourceName": "EnumDiscriminator", + "doc": "Get a model omitting the discriminator.", + "accessibility": "public", + "parameters": [ + { + "$id": "73", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "74", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/fixed-enum/missingdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "75", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "76", + "kind": "basic", + "name": "getFixedModelWrongDiscriminator", + "accessibility": "public", + "apiVersions": [], + "doc": "Get a model containing discriminator value never defined.", + "operation": { + "$id": "77", + "name": "getFixedModelWrongDiscriminator", + "resourceName": "EnumDiscriminator", + "doc": "Get a model containing discriminator value never defined.", + "accessibility": "public", + "parameters": [ + { + "$id": "78", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "79", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/enum-discriminator/fixed-enum/wrongdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "80", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator" + } ], - "responses": [ - { - "$id": "106", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "41" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/enum-discriminator/fixed-enum/wrongdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "107", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "108", - "type": { - "$ref": "41" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator" - } - ], - "parameters": [ - { - "$id": "109", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "110", - "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": "111", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator", - "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 a9f85f8cb7e..adf2efcac8a 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 @@ -1,1138 +1,1103 @@ { - "$id": "1", - "name": "Type.Model.Inheritance.NestedDiscriminator", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "SharkKind", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "shark", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "SawSharkSharktype", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "saw", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "GoblinSharkSharktype", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "goblin", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "SalmonKind", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "salmon", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "getModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "putModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "getRecursiveModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "putRecursiveModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "getMissingDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "getWrongDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "22", - "kind": "model", - "name": "Fish", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish", - "usage": "Input,Output,Json", - "doc": "This is base model for polymorphic multiple levels inheritance with a discriminator.", - "decorators": [], - "discriminatorProperty": { - "$id": "23", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Discriminator property for Fish.", - "type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "name": "Type.Model.Inheritance.NestedDiscriminator", + "apiVersions": [], + "enums": [], + "constants": [ + { + "$id": "1", + "kind": "constant", + "name": "getModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish.kind", - "serializationOptions": { - "$id": "25", - "json": { - "$id": "26", - "name": "kind" - } - } - }, - "properties": [ { - "$ref": "23" + "$id": "3", + "kind": "constant", + "name": "SharkKind", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "shark", + "decorators": [] }, { - "$id": "27", - "kind": "property", - "name": "age", - "serializedName": "age", - "type": { - "$id": "28", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "5", + "kind": "constant", + "name": "SawSharkSharktype", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "saw", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish.age", - "serializationOptions": { - "$id": "29", - "json": { - "$id": "30", - "name": "age" - } - } - } - ], - "discriminatedSubtypes": { - "$id": "31", - "shark": { - "$id": "32", - "kind": "model", - "name": "Shark", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark", - "usage": "Input,Output,Json", - "doc": "The second level model in polymorphic multiple levels inheritance and it defines a new discriminator.", - "discriminatorValue": "shark", - "decorators": [], - "discriminatorProperty": { - "$id": "33", - "kind": "property", - "name": "sharktype", - "serializedName": "sharktype", - "type": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + }, + { + "$id": "7", + "kind": "constant", + "name": "GoblinSharkSharktype", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark.sharktype", - "serializationOptions": { - "$id": "35", - "json": { - "$id": "36", - "name": "sharktype" - } - } - }, - "baseModel": { - "$ref": "22" - }, - "properties": [ - { - "$id": "37", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark.kind", - "serializationOptions": { - "$id": "38", - "json": { - "$id": "39", - "name": "kind" - } - } + "value": "goblin", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "SalmonKind", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$ref": "33" - } - ], - "discriminatedSubtypes": { - "$id": "40", - "saw": { - "$id": "41", - "kind": "model", - "name": "SawShark", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.SawShark", - "usage": "Input,Output,Json", - "doc": "The third level model SawShark in polymorphic multiple levels inheritance.", - "discriminatorValue": "saw", - "decorators": [], - "baseModel": { - "$ref": "32" - }, - "properties": [ - { - "$id": "42", - "kind": "property", - "name": "sharktype", - "serializedName": "sharktype", - "type": { - "$ref": "4" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.SawShark.sharktype", - "serializationOptions": { - "$id": "43", - "json": { - "$id": "44", - "name": "sharktype" - } - } - } - ] + "value": "salmon", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "putModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "goblin": { - "$id": "45", - "kind": "model", - "name": "GoblinShark", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.GoblinShark", - "usage": "Input,Output,Json", - "doc": "The third level model GoblinShark in polymorphic multiple levels inheritance.", - "discriminatorValue": "goblin", - "decorators": [], - "baseModel": { - "$ref": "32" - }, - "properties": [ - { - "$id": "46", - "kind": "property", - "name": "sharktype", - "serializedName": "sharktype", - "type": { - "$ref": "6" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.GoblinShark.sharktype", - "serializationOptions": { - "$id": "47", - "json": { - "$id": "48", - "name": "sharktype" - } - } - } - ] - } - } + "value": "application/json", + "decorators": [] }, - "salmon": { - "$id": "49", - "kind": "model", - "name": "Salmon", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon", - "usage": "Input,Output,Json", - "doc": "The second level model in polymorphic multiple levels inheritance which contains references to other polymorphic instances.", - "discriminatorValue": "salmon", - "decorators": [], - "baseModel": { - "$ref": "22" - }, - "properties": [ - { - "$id": "50", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "8" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.kind", - "serializationOptions": { - "$id": "51", - "json": { - "$id": "52", - "name": "kind" - } - } + { + "$id": "13", + "kind": "constant", + "name": "getRecursiveModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "53", - "kind": "property", - "name": "friends", - "serializedName": "friends", - "type": { - "$id": "54", - "kind": "array", - "name": "ArrayFish", - "valueType": { - "$ref": "22" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", + "decorators": [] + }, + { + "$id": "15", + "kind": "constant", + "name": "putRecursiveModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.friends", - "serializationOptions": { - "$id": "55", - "json": { - "$id": "56", - "name": "friends" - } - } }, - { - "$id": "57", - "kind": "property", - "name": "hate", - "serializedName": "hate", - "type": { - "$id": "58", - "kind": "dict", - "keyType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "22" - }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "getMissingDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.hate", - "serializationOptions": { - "$id": "60", - "json": { - "$id": "61", - "name": "hate" - } - } }, - { - "$id": "62", - "kind": "property", - "name": "partner", - "serializedName": "partner", - "type": { - "$ref": "22" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.partner", - "serializationOptions": { - "$id": "63", - "json": { - "$id": "64", - "name": "partner" - } - } - } - ] + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "getWrongDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } - } - }, - { - "$ref": "32" - }, - { - "$ref": "41" - }, - { - "$ref": "45" - }, - { - "$ref": "49" - } - ], - "clients": [ - { - "$id": "65", - "kind": "client", - "name": "NestedDiscriminatorClient", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "doc": "Illustrates multiple level inheritance with multiple discriminators.", - "methods": [ + ], + "models": [ { - "$id": "66", - "kind": "basic", - "name": "getModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "67", - "name": "getModel", - "resourceName": "NestedDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "68", - "name": "accept", - "nameInRequest": "Accept", + "$id": "21", + "kind": "model", + "name": "Fish", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish", + "usage": "Input,Output,Json", + "doc": "This is base model for polymorphic multiple levels inheritance with a discriminator.", + "decorators": [], + "discriminatorProperty": { + "$id": "22", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Discriminator property for Fish.", "type": { - "$ref": "10" + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "69", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "22" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "22" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "24", + "kind": "property", + "name": "age", + "serializedName": "age", + "type": { + "$id": "25", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish.age", + "serializationOptions": { + "json": { + "name": "age" + } + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/nested-discriminator/model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "70", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "71", - "type": { - "$ref": "22" + "discriminatedSubtypes": { + "shark": { + "$id": "26", + "kind": "model", + "name": "Shark", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark", + "usage": "Input,Output,Json", + "doc": "The second level model in polymorphic multiple levels inheritance and it defines a new discriminator.", + "discriminatorValue": "shark", + "decorators": [], + "discriminatorProperty": { + "$id": "27", + "kind": "property", + "name": "sharktype", + "serializedName": "sharktype", + "type": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark.sharktype", + "serializationOptions": { + "json": { + "name": "sharktype" + } + } + }, + "baseModel": { + "$ref": "21" + }, + "properties": [ + { + "$id": "29", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "3" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$ref": "27" + } + ], + "discriminatedSubtypes": { + "saw": { + "$id": "30", + "kind": "model", + "name": "SawShark", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.SawShark", + "usage": "Input,Output,Json", + "doc": "The third level model SawShark in polymorphic multiple levels inheritance.", + "discriminatorValue": "saw", + "decorators": [], + "baseModel": { + "$ref": "26" + }, + "properties": [ + { + "$id": "31", + "kind": "property", + "name": "sharktype", + "serializedName": "sharktype", + "type": { + "$ref": "5" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.SawShark.sharktype", + "serializationOptions": { + "json": { + "name": "sharktype" + } + } + } + ] + }, + "goblin": { + "$id": "32", + "kind": "model", + "name": "GoblinShark", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.GoblinShark", + "usage": "Input,Output,Json", + "doc": "The third level model GoblinShark in polymorphic multiple levels inheritance.", + "discriminatorValue": "goblin", + "decorators": [], + "baseModel": { + "$ref": "26" + }, + "properties": [ + { + "$id": "33", + "kind": "property", + "name": "sharktype", + "serializedName": "sharktype", + "type": { + "$ref": "7" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.GoblinShark.sharktype", + "serializationOptions": { + "json": { + "name": "sharktype" + } + } + } + ] + } + } + }, + "salmon": { + "$id": "34", + "kind": "model", + "name": "Salmon", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon", + "usage": "Input,Output,Json", + "doc": "The second level model in polymorphic multiple levels inheritance which contains references to other polymorphic instances.", + "discriminatorValue": "salmon", + "decorators": [], + "baseModel": { + "$ref": "21" + }, + "properties": [ + { + "$id": "35", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "9" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "36", + "kind": "property", + "name": "friends", + "serializedName": "friends", + "type": { + "$id": "37", + "kind": "array", + "name": "ArrayFish", + "valueType": { + "$ref": "21" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.friends", + "serializationOptions": { + "json": { + "name": "friends" + } + } + }, + { + "$id": "38", + "kind": "property", + "name": "hate", + "serializedName": "hate", + "type": { + "$id": "39", + "kind": "dict", + "keyType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "21" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.hate", + "serializationOptions": { + "json": { + "name": "hate" + } + } + }, + { + "$id": "41", + "kind": "property", + "name": "partner", + "serializedName": "partner", + "type": { + "$ref": "21" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.partner", + "serializationOptions": { + "json": { + "name": "partner" + } + } + } + ] + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel" }, { - "$id": "72", - "kind": "basic", - "name": "putModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "73", - "name": "putModel", - "resourceName": "NestedDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "74", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "75", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "22" - }, - "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": "/type/model/inheritance/nested-discriminator/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "77", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "22" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "78", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "79" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel" + "$ref": "26" }, { - "$id": "80", - "kind": "basic", - "name": "getRecursiveModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "81", - "name": "getRecursiveModel", - "resourceName": "NestedDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "82", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "83", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "22" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/nested-discriminator/recursivemodel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "84", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "85", - "type": { - "$ref": "22" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel" + "$ref": "30" }, { - "$id": "86", - "kind": "basic", - "name": "putRecursiveModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "87", - "name": "putRecursiveModel", - "resourceName": "NestedDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "88", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "89", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "22" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "90", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/nested-discriminator/recursivemodel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "91", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "22" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "92", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "93" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel" + "$ref": "32" }, { - "$id": "94", - "kind": "basic", - "name": "getMissingDiscriminator", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "95", - "name": "getMissingDiscriminator", - "resourceName": "NestedDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "96", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" + "$ref": "34" + } + ], + "clients": [ + { + "$id": "42", + "kind": "client", + "name": "NestedDiscriminatorClient", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "doc": "Illustrates multiple level inheritance with multiple discriminators.", + "methods": [ + { + "$id": "43", + "kind": "basic", + "name": "getModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "44", + "name": "getModel", + "resourceName": "NestedDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "45", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "46", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/nested-discriminator/model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "47", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "97", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "22" + { + "$id": "48", + "kind": "basic", + "name": "putModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "49", + "name": "putModel", + "resourceName": "NestedDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "50", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "51", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "52", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/nested-discriminator/model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "53", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "54", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/nested-discriminator/missingdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "98", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "99", - "type": { - "$ref": "22" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator" - }, - { - "$id": "100", - "kind": "basic", - "name": "getWrongDiscriminator", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "101", - "name": "getWrongDiscriminator", - "resourceName": "NestedDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "102", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "20" + { + "$id": "55", + "kind": "basic", + "name": "getRecursiveModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "56", + "name": "getRecursiveModel", + "resourceName": "NestedDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "57", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "58", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/nested-discriminator/recursivemodel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "59", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "103", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "22" + { + "$id": "60", + "kind": "basic", + "name": "putRecursiveModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "61", + "name": "putRecursiveModel", + "resourceName": "NestedDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "62", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "63", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "64", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/nested-discriminator/recursivemodel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "65", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "66", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "67", + "kind": "basic", + "name": "getMissingDiscriminator", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "68", + "name": "getMissingDiscriminator", + "resourceName": "NestedDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "69", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "70", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/nested-discriminator/missingdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "71", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator" + }, + { + "$id": "72", + "kind": "basic", + "name": "getWrongDiscriminator", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "73", + "name": "getWrongDiscriminator", + "resourceName": "NestedDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "74", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "75", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/nested-discriminator/wrongdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "76", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/nested-discriminator/wrongdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "104", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "105", - "type": { - "$ref": "22" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator" - } - ], - "parameters": [ - { - "$id": "106", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "107", - "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": "108", - "type": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator", - "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 cee1315b390..62176ec9303 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 @@ -1,598 +1,583 @@ { - "$id": "1", - "name": "Type.Model.Inheritance.NotDiscriminated", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "postValidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "getValidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "putValidContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "putValidContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "10", - "kind": "model", - "name": "Siamese", - "namespace": "Type.Model.Inheritance.NotDiscriminated", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Siamese", - "usage": "Input,Output,Json", - "doc": "The third level model in the normal multiple levels inheritance.", - "decorators": [], - "baseModel": { - "$id": "11", - "kind": "model", - "name": "Cat", - "namespace": "Type.Model.Inheritance.NotDiscriminated", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Cat", - "usage": "Input,Output,Json", - "doc": "The second level model in the normal multiple levels inheritance.", - "decorators": [], - "baseModel": { - "$id": "12", - "kind": "model", - "name": "Pet", - "namespace": "Type.Model.Inheritance.NotDiscriminated", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Pet", - "usage": "Input,Output,Json", - "doc": "This is base model for not-discriminated normal multiple levels inheritance.", - "decorators": [], - "properties": [ - { - "$id": "13", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "14", + "name": "Type.Model.Inheritance.NotDiscriminated", + "apiVersions": [], + "enums": [], + "constants": [ + { + "$id": "1", + "kind": "constant", + "name": "postValidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Pet.name", - "serializationOptions": { - "$id": "15", - "json": { - "$id": "16", - "name": "name" - } - } - } - ] + }, + "value": "application/json", + "decorators": [] }, - "properties": [ - { - "$id": "17", - "kind": "property", - "name": "age", - "serializedName": "age", - "type": { - "$id": "18", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + { + "$id": "3", + "kind": "constant", + "name": "getValidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Cat.age", - "serializationOptions": { - "$id": "19", - "json": { - "$id": "20", - "name": "age" - } - } - } - ] - }, - "properties": [ + "value": "application/json", + "decorators": [] + }, + { + "$id": "5", + "kind": "constant", + "name": "putValidContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "21", - "kind": "property", - "name": "smart", - "serializedName": "smart", - "type": { - "$id": "22", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "7", + "kind": "constant", + "name": "putValidContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Siamese.smart", - "serializationOptions": { - "$id": "23", - "json": { - "$id": "24", - "name": "smart" - } - } } - ] - }, - { - "$ref": "11" - }, - { - "$ref": "12" - } - ], - "clients": [ - { - "$id": "25", - "kind": "client", - "name": "NotDiscriminatedClient", - "namespace": "Type.Model.Inheritance.NotDiscriminated", - "doc": "Illustrates not-discriminated inheritance model.", - "methods": [ + ], + "models": [ { - "$id": "26", - "kind": "basic", - "name": "postValid", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "27", - "name": "postValid", - "resourceName": "NotDiscriminated", - "accessibility": "public", - "parameters": [ - { - "$id": "28", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "9", + "kind": "model", + "name": "Siamese", + "namespace": "Type.Model.Inheritance.NotDiscriminated", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Siamese", + "usage": "Input,Output,Json", + "doc": "The third level model in the normal multiple levels inheritance.", + "decorators": [], + "baseModel": { + "$id": "10", + "kind": "model", + "name": "Cat", + "namespace": "Type.Model.Inheritance.NotDiscriminated", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Cat", + "usage": "Input,Output,Json", + "doc": "The second level model in the normal multiple levels inheritance.", "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "29", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" + "baseModel": { + "$id": "11", + "kind": "model", + "name": "Pet", + "namespace": "Type.Model.Inheritance.NotDiscriminated", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Pet", + "usage": "Input,Output,Json", + "doc": "This is base model for not-discriminated normal multiple levels inheritance.", + "decorators": [], + "properties": [ + { + "$id": "12", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Pet.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "30", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/model/inheritance/not-discriminated/valid", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid", - "decorators": [] - }, - "parameters": [ - { - "$id": "31", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "properties": [ + { + "$id": "14", + "kind": "property", + "name": "age", + "serializedName": "age", + "type": { + "$id": "15", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Cat.age", + "serializationOptions": { + "json": { + "name": "age" + } + } + } + ] }, - { - "$id": "32", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "33" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid" + "properties": [ + { + "$id": "16", + "kind": "property", + "name": "smart", + "serializedName": "smart", + "type": { + "$id": "17", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Siamese.smart", + "serializationOptions": { + "json": { + "name": "smart" + } + } + } + ] }, { - "$id": "34", - "kind": "basic", - "name": "getValid", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "35", - "name": "getValid", - "resourceName": "NotDiscriminated", - "accessibility": "public", - "parameters": [ - { - "$id": "36", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "10" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/not-discriminated/valid", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid", - "decorators": [] - }, - "parameters": [ - { - "$id": "38", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "39", - "type": { - "$ref": "10" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid" + "$ref": "10" }, { - "$id": "40", - "kind": "basic", - "name": "putValid", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "41", - "name": "putValid", - "resourceName": "NotDiscriminated", - "accessibility": "public", - "parameters": [ - { - "$id": "42", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "43", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "44", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" + "$ref": "11" + } + ], + "clients": [ + { + "$id": "18", + "kind": "client", + "name": "NotDiscriminatedClient", + "namespace": "Type.Model.Inheritance.NotDiscriminated", + "doc": "Illustrates not-discriminated inheritance model.", + "methods": [ + { + "$id": "19", + "kind": "basic", + "name": "postValid", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "20", + "name": "postValid", + "resourceName": "NotDiscriminated", + "accessibility": "public", + "parameters": [ + { + "$id": "21", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "22", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "23", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/model/inheritance/not-discriminated/valid", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid", + "decorators": [] + }, + "parameters": [ + { + "$id": "24", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "25", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "45", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "10" + { + "$id": "26", + "kind": "basic", + "name": "getValid", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "27", + "name": "getValid", + "resourceName": "NotDiscriminated", + "accessibility": "public", + "parameters": [ + { + "$id": "28", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "29", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "9" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/not-discriminated/valid", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid", + "decorators": [] + }, + "parameters": [ + { + "$id": "30", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "9" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "31", + "kind": "basic", + "name": "putValid", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "32", + "name": "putValid", + "resourceName": "NotDiscriminated", + "accessibility": "public", + "parameters": [ + { + "$id": "33", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "34", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "35", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "36", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "9" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/not-discriminated/valid", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid", + "decorators": [] + }, + "parameters": [ + { + "$id": "37", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "38", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "39", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "9" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid" + } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/not-discriminated/valid", - "requestMediaTypes": [ - "application/json" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid", - "decorators": [] - }, - "parameters": [ - { - "$id": "46", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "47", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "48", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "49", - "type": { - "$ref": "10" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid" - } - ], - "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": "Type.Model.Inheritance.NotDiscriminated", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated", - "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 e80cc520d10..fb23b1fef7c 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 @@ -1,370 +1,358 @@ { - "$id": "1", - "name": "Type.Model.Inheritance.Recursive", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "6", - "kind": "model", - "name": "Extension", - "namespace": "Type.Model.Inheritance.Recursive", - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Extension", - "usage": "Input,Output,Json", - "doc": "extension", - "decorators": [], - "baseModel": { - "$id": "7", - "kind": "model", - "name": "Element", - "namespace": "Type.Model.Inheritance.Recursive", - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Element", - "usage": "Input,Output,Json", - "doc": "element", - "decorators": [], - "properties": [ - { - "$id": "8", - "kind": "property", - "name": "extension", - "serializedName": "extension", - "type": { - "$id": "9", - "kind": "array", - "name": "ArrayExtension", - "valueType": { - "$ref": "6" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "name": "Type.Model.Inheritance.Recursive", + "apiVersions": [], + "enums": [], + "constants": [ + { + "$id": "1", + "kind": "constant", + "name": "putContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Element.extension", - "serializationOptions": { - "$id": "10", - "json": { - "$id": "11", - "name": "extension" - } - } - } - ] - }, - "properties": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "12", - "kind": "property", - "name": "level", - "serializedName": "level", - "type": { - "$id": "13", - "kind": "int8", - "name": "int8", - "crossLanguageDefinitionId": "TypeSpec.int8", + "$id": "3", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Extension.level", - "serializationOptions": { - "$id": "14", - "json": { - "$id": "15", - "name": "level" - } - } } - ] - }, - { - "$ref": "7" - } - ], - "clients": [ - { - "$id": "16", - "kind": "client", - "name": "RecursiveClient", - "namespace": "Type.Model.Inheritance.Recursive", - "doc": "Illustrates inheritance recursion", - "methods": [ + ], + "models": [ { - "$id": "17", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "18", - "name": "put", - "resourceName": "Recursive", - "accessibility": "public", - "parameters": [ - { - "$id": "19", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "20", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "6" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "$id": "5", + "kind": "model", + "name": "Extension", + "namespace": "Type.Model.Inheritance.Recursive", + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Extension", + "usage": "Input,Output,Json", + "doc": "extension", + "decorators": [], + "baseModel": { + "$id": "6", + "kind": "model", + "name": "Element", + "namespace": "Type.Model.Inheritance.Recursive", + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Element", + "usage": "Input,Output,Json", + "doc": "element", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "21", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/recursive", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put", - "decorators": [] - }, - "parameters": [ - { - "$id": "22", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "6" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "properties": [ + { + "$id": "7", + "kind": "property", + "name": "extension", + "serializedName": "extension", + "type": { + "$id": "8", + "kind": "array", + "name": "ArrayExtension", + "valueType": { + "$ref": "5" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Element.extension", + "serializationOptions": { + "json": { + "name": "extension" + } + } + } + ] }, - { - "$id": "23", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "24" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put" + "properties": [ + { + "$id": "9", + "kind": "property", + "name": "level", + "serializedName": "level", + "type": { + "$id": "10", + "kind": "int8", + "name": "int8", + "crossLanguageDefinitionId": "TypeSpec.int8", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Extension.level", + "serializationOptions": { + "json": { + "name": "level" + } + } + } + ] }, { - "$id": "25", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "26", - "name": "get", - "resourceName": "Recursive", - "accessibility": "public", - "parameters": [ - { - "$id": "27", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" + "$ref": "6" + } + ], + "clients": [ + { + "$id": "11", + "kind": "client", + "name": "RecursiveClient", + "namespace": "Type.Model.Inheritance.Recursive", + "doc": "Illustrates inheritance recursion", + "methods": [ + { + "$id": "12", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "13", + "name": "put", + "resourceName": "Recursive", + "accessibility": "public", + "parameters": [ + { + "$id": "14", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "15", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "16", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/recursive", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "17", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "18", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "19", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "20", + "name": "get", + "resourceName": "Recursive", + "accessibility": "public", + "parameters": [ + { + "$id": "21", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/recursive", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get", + "decorators": [] + }, + "parameters": [ + { + "$id": "23", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get" + } ], - "responses": [ - { - "$id": "28", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "6" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/recursive", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get", - "decorators": [] - }, - "parameters": [ - { - "$id": "29", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "30", - "type": { - "$ref": "6" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get" - } - ], - "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" - } + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive", - "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 48e4812dff8..7e5ec14c823 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 @@ -1,1334 +1,1294 @@ { - "$id": "1", - "name": "Type.Model.Inheritance.SingleDiscriminator", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "SeaGullKind", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "seagull", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "SparrowKind", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "sparrow", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "GooseKind", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "goose", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "EagleKind", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Input,Output,Json", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "eagle", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "TRexKind", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Output,Json", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "t-rex", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "getModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "putModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "getRecursiveModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "putRecursiveModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "getMissingDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "getWrongDiscriminatorContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "getLegacyModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "26", - "kind": "model", - "name": "Bird", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird", - "usage": "Input,Output,Json", - "doc": "This is base model for polymorphic single level inheritance with a discriminator.", - "decorators": [], - "discriminatorProperty": { - "$id": "27", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird.kind", - "serializationOptions": { - "$id": "29", - "json": { - "$id": "30", - "name": "kind" - } - } - }, - "properties": [ + "name": "Type.Model.Inheritance.SingleDiscriminator", + "apiVersions": [], + "enums": [], + "constants": [ { - "$ref": "27" + "$id": "1", + "kind": "constant", + "name": "getModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "31", - "kind": "property", - "name": "wingspan", - "serializedName": "wingspan", - "type": { - "$id": "32", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "3", + "kind": "constant", + "name": "SeaGullKind", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "seagull", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird.wingspan", - "serializationOptions": { - "$id": "33", - "json": { - "$id": "34", - "name": "wingspan" - } - } - } - ], - "discriminatedSubtypes": { - "$id": "35", - "seagull": { - "$id": "36", - "kind": "model", - "name": "SeaGull", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.SeaGull", - "usage": "Input,Output,Json", - "doc": "The second level model in polymorphic single level inheritance.", - "discriminatorValue": "seagull", - "decorators": [], - "baseModel": { - "$ref": "26" - }, - "properties": [ - { - "$id": "37", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.SeaGull.kind", - "serializationOptions": { - "$id": "38", - "json": { - "$id": "39", - "name": "kind" - } - } - } - ] }, - "sparrow": { - "$id": "40", - "kind": "model", - "name": "Sparrow", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Sparrow", - "usage": "Input,Output,Json", - "doc": "The second level model in polymorphic single level inheritance.", - "discriminatorValue": "sparrow", - "decorators": [], - "baseModel": { - "$ref": "26" - }, - "properties": [ - { - "$id": "41", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "4" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Sparrow.kind", - "serializationOptions": { - "$id": "42", - "json": { - "$id": "43", - "name": "kind" - } - } - } - ] - }, - "goose": { - "$id": "44", - "kind": "model", - "name": "Goose", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Goose", - "usage": "Input,Output,Json", - "doc": "The second level model in polymorphic single level inheritance.", - "discriminatorValue": "goose", - "decorators": [], - "baseModel": { - "$ref": "26" - }, - "properties": [ - { - "$id": "45", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "6" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Goose.kind", - "serializationOptions": { - "$id": "46", - "json": { - "$id": "47", - "name": "kind" - } - } - } - ] - }, - "eagle": { - "$id": "48", - "kind": "model", - "name": "Eagle", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle", - "usage": "Input,Output,Json", - "doc": "The second level model in polymorphic single levels inheritance which contains references to other polymorphic instances.", - "discriminatorValue": "eagle", - "decorators": [], - "baseModel": { - "$ref": "26" - }, - "properties": [ - { - "$id": "49", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "8" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.kind", - "serializationOptions": { - "$id": "50", - "json": { - "$id": "51", - "name": "kind" - } - } - }, - { - "$id": "52", - "kind": "property", - "name": "friends", - "serializedName": "friends", - "type": { - "$id": "53", - "kind": "array", - "name": "ArrayBird", - "valueType": { - "$ref": "26" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", + { + "$id": "5", + "kind": "constant", + "name": "SparrowKind", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.friends", - "serializationOptions": { - "$id": "54", - "json": { - "$id": "55", - "name": "friends" - } - } }, - { - "$id": "56", - "kind": "property", - "name": "hate", - "serializedName": "hate", - "type": { - "$id": "57", - "kind": "dict", - "keyType": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "26" - }, + "value": "sparrow", + "decorators": [] + }, + { + "$id": "7", + "kind": "constant", + "name": "GooseKind", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.hate", - "serializationOptions": { - "$id": "59", - "json": { - "$id": "60", - "name": "hate" - } - } }, - { - "$id": "61", - "kind": "property", - "name": "partner", - "serializedName": "partner", - "type": { - "$ref": "26" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.partner", - "serializationOptions": { - "$id": "62", - "json": { - "$id": "63", - "name": "partner" - } - } - } - ] - } - } - }, - { - "$ref": "36" - }, - { - "$ref": "40" - }, - { - "$ref": "44" - }, - { - "$ref": "48" - }, - { - "$id": "64", - "kind": "model", - "name": "Dinosaur", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur", - "usage": "Output,Json", - "doc": "Define a base class in the legacy way. Discriminator property is not explicitly defined in the model.", - "decorators": [], - "discriminatorProperty": { - "$id": "65", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Discriminator property for Dinosaur.", - "type": { - "$id": "66", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "value": "goose", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur.kind", - "serializationOptions": { - "$id": "67", - "json": { - "$id": "68", - "name": "kind" - } - } - }, - "properties": [ { - "$ref": "65" + "$id": "9", + "kind": "constant", + "name": "EagleKind", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "usage": "Input,Output,Json", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "eagle", + "decorators": [] }, { - "$id": "69", - "kind": "property", - "name": "size", - "serializedName": "size", - "type": { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "11", + "kind": "constant", + "name": "putModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur.size", - "serializationOptions": { - "$id": "71", - "json": { - "$id": "72", - "name": "size" - } - } - } - ], - "discriminatedSubtypes": { - "$id": "73", - "t-rex": { - "$id": "74", - "kind": "model", - "name": "TRex", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.TRex", - "usage": "Output,Json", - "doc": "The second level legacy model in polymorphic single level inheritance.", - "discriminatorValue": "t-rex", - "decorators": [], - "baseModel": { - "$ref": "64" - }, - "properties": [ - { - "$id": "75", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "10" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.TRex.kind", - "serializationOptions": { - "$id": "76", - "json": { - "$id": "77", - "name": "kind" - } - } - } - ] - } - } - }, - { - "$ref": "74" - } - ], - "clients": [ - { - "$id": "78", - "kind": "client", - "name": "SingleDiscriminatorClient", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "doc": "Illustrates inheritance with single discriminator.", - "methods": [ + }, { - "$id": "79", - "kind": "basic", - "name": "getModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "80", - "name": "getModel", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "81", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "82", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel", + "$id": "13", + "kind": "constant", + "name": "getRecursiveModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "83", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "84", - "type": { - "$ref": "26" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel" }, { - "$id": "85", - "kind": "basic", - "name": "putModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "86", - "name": "putModel", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "87", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "88", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "89", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "90", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "15", + "kind": "constant", + "name": "putRecursiveModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "91", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "92" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel" + "value": "application/json", + "decorators": [] }, { - "$id": "93", - "kind": "basic", - "name": "getRecursiveModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "94", - "name": "getRecursiveModel", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "96", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/recursivemodel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel", + "$id": "17", + "kind": "constant", + "name": "getMissingDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "97", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "98", - "type": { - "$ref": "26" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel" }, { - "$id": "99", - "kind": "basic", - "name": "putRecursiveModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "100", - "name": "putRecursiveModel", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "101", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "102", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "103", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/recursivemodel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel", + "$id": "19", + "kind": "constant", + "name": "getWrongDiscriminatorContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "104", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + }, + { + "$id": "21", + "kind": "constant", + "name": "getLegacyModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "105", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "106" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel" + "value": "application/json", + "decorators": [] }, { - "$id": "107", - "kind": "basic", - "name": "getMissingDiscriminator", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "108", - "name": "getMissingDiscriminator", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "109", - "name": "accept", - "nameInRequest": "Accept", + "$id": "23", + "kind": "constant", + "name": "TRexKind", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "usage": "Output,Json", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "t-rex", + "decorators": [] + } + ], + "models": [ + { + "$id": "25", + "kind": "model", + "name": "Bird", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird", + "usage": "Input,Output,Json", + "doc": "This is base model for polymorphic single level inheritance with a discriminator.", + "decorators": [], + "discriminatorProperty": { + "$id": "26", + "kind": "property", + "name": "kind", + "serializedName": "kind", "type": { - "$ref": "20" + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "110", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "26" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "28", + "kind": "property", + "name": "wingspan", + "serializedName": "wingspan", + "type": { + "$id": "29", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird.wingspan", + "serializationOptions": { + "json": { + "name": "wingspan" + } + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/missingdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "111", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "112", - "type": { - "$ref": "26" + "discriminatedSubtypes": { + "seagull": { + "$id": "30", + "kind": "model", + "name": "SeaGull", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.SeaGull", + "usage": "Input,Output,Json", + "doc": "The second level model in polymorphic single level inheritance.", + "discriminatorValue": "seagull", + "decorators": [], + "baseModel": { + "$ref": "25" + }, + "properties": [ + { + "$id": "31", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "3" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.SeaGull.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + }, + "sparrow": { + "$id": "32", + "kind": "model", + "name": "Sparrow", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Sparrow", + "usage": "Input,Output,Json", + "doc": "The second level model in polymorphic single level inheritance.", + "discriminatorValue": "sparrow", + "decorators": [], + "baseModel": { + "$ref": "25" + }, + "properties": [ + { + "$id": "33", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "5" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Sparrow.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + }, + "goose": { + "$id": "34", + "kind": "model", + "name": "Goose", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Goose", + "usage": "Input,Output,Json", + "doc": "The second level model in polymorphic single level inheritance.", + "discriminatorValue": "goose", + "decorators": [], + "baseModel": { + "$ref": "25" + }, + "properties": [ + { + "$id": "35", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "7" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Goose.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + }, + "eagle": { + "$id": "36", + "kind": "model", + "name": "Eagle", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle", + "usage": "Input,Output,Json", + "doc": "The second level model in polymorphic single levels inheritance which contains references to other polymorphic instances.", + "discriminatorValue": "eagle", + "decorators": [], + "baseModel": { + "$ref": "25" + }, + "properties": [ + { + "$id": "37", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "9" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "38", + "kind": "property", + "name": "friends", + "serializedName": "friends", + "type": { + "$id": "39", + "kind": "array", + "name": "ArrayBird", + "valueType": { + "$ref": "25" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.friends", + "serializationOptions": { + "json": { + "name": "friends" + } + } + }, + { + "$id": "40", + "kind": "property", + "name": "hate", + "serializedName": "hate", + "type": { + "$id": "41", + "kind": "dict", + "keyType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "25" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.hate", + "serializationOptions": { + "json": { + "name": "hate" + } + } + }, + { + "$id": "43", + "kind": "property", + "name": "partner", + "serializedName": "partner", + "type": { + "$ref": "25" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.partner", + "serializationOptions": { + "json": { + "name": "partner" + } + } + } + ] + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator" }, { - "$id": "113", - "kind": "basic", - "name": "getWrongDiscriminator", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "114", - "name": "getWrongDiscriminator", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "115", - "name": "accept", - "nameInRequest": "Accept", + "$ref": "30" + }, + { + "$ref": "32" + }, + { + "$ref": "34" + }, + { + "$ref": "36" + }, + { + "$id": "44", + "kind": "model", + "name": "Dinosaur", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur", + "usage": "Output,Json", + "doc": "Define a base class in the legacy way. Discriminator property is not explicitly defined in the model.", + "decorators": [], + "discriminatorProperty": { + "$id": "45", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Discriminator property for Dinosaur.", "type": { - "$ref": "22" + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "116", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "26" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "45" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "47", + "kind": "property", + "name": "size", + "serializedName": "size", + "type": { + "$id": "48", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur.size", + "serializationOptions": { + "json": { + "name": "size" + } + } + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/wrongdiscriminator", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator", - "decorators": [] - }, - "parameters": [ - { - "$id": "117", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "118", - "type": { - "$ref": "26" + "discriminatedSubtypes": { + "t-rex": { + "$id": "49", + "kind": "model", + "name": "TRex", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.TRex", + "usage": "Output,Json", + "doc": "The second level legacy model in polymorphic single level inheritance.", + "discriminatorValue": "t-rex", + "decorators": [], + "baseModel": { + "$ref": "44" + }, + "properties": [ + { + "$id": "50", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "23" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.TRex.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator" }, { - "$id": "119", - "kind": "basic", - "name": "getLegacyModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "120", - "name": "getLegacyModel", - "resourceName": "SingleDiscriminator", - "accessibility": "public", - "parameters": [ - { - "$id": "121", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" + "$ref": "49" + } + ], + "clients": [ + { + "$id": "51", + "kind": "client", + "name": "SingleDiscriminatorClient", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "doc": "Illustrates inheritance with single discriminator.", + "methods": [ + { + "$id": "52", + "kind": "basic", + "name": "getModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "53", + "name": "getModel", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "54", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "55", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "56", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "122", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "64" + { + "$id": "57", + "kind": "basic", + "name": "putModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "58", + "name": "putModel", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "59", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "60", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "61", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "62", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "63", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel" + }, + { + "$id": "64", + "kind": "basic", + "name": "getRecursiveModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "65", + "name": "getRecursiveModel", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "66", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "67", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/recursivemodel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "68", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "69", + "kind": "basic", + "name": "putRecursiveModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "70", + "name": "putRecursiveModel", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "71", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "72", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "73", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/recursivemodel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "74", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "75", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel" + }, + { + "$id": "76", + "kind": "basic", + "name": "getMissingDiscriminator", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "77", + "name": "getMissingDiscriminator", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "78", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "79", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/missingdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "80", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator" + }, + { + "$id": "81", + "kind": "basic", + "name": "getWrongDiscriminator", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "82", + "name": "getWrongDiscriminator", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "83", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "84", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/wrongdiscriminator", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator", + "decorators": [] + }, + "parameters": [ + { + "$id": "85", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator" + }, + { + "$id": "86", + "kind": "basic", + "name": "getLegacyModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "87", + "name": "getLegacyModel", + "resourceName": "SingleDiscriminator", + "accessibility": "public", + "parameters": [ + { + "$id": "88", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "89", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "44" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/inheritance/single-discriminator/legacy-model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "90", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "44" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/inheritance/single-discriminator/legacy-model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "123", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "124", - "type": { - "$ref": "64" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel" - } - ], - "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" - } + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator", - "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 152b88361ce..700b52eb15a 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 @@ -1,592 +1,577 @@ { - "$id": "1", - "name": "Type.Model.Usage", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "inputContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "outputContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "inputAndOutputContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "inputAndOutputContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "10", - "kind": "model", - "name": "InputRecord", - "namespace": "Type.Model.Usage", - "crossLanguageDefinitionId": "Type.Model.Usage.InputRecord", - "usage": "Input,Json", - "doc": "Record used in operation parameters", - "decorators": [], - "properties": [ + "name": "Type.Model.Usage", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "11", - "kind": "property", - "name": "requiredProp", - "serializedName": "requiredProp", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "inputContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.InputRecord.requiredProp", - "serializationOptions": { - "$id": "13", - "json": { - "$id": "14", - "name": "requiredProp" - } - } - } - ] - }, - { - "$id": "15", - "kind": "model", - "name": "OutputRecord", - "namespace": "Type.Model.Usage", - "crossLanguageDefinitionId": "Type.Model.Usage.OutputRecord", - "usage": "Output,Json", - "doc": "Record used in operation return type", - "decorators": [], - "properties": [ + }, { - "$id": "16", - "kind": "property", - "name": "requiredProp", - "serializedName": "requiredProp", - "type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "3", + "kind": "constant", + "name": "outputContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.OutputRecord.requiredProp", - "serializationOptions": { - "$id": "18", - "json": { - "$id": "19", - "name": "requiredProp" - } - } - } - ] - }, - { - "$id": "20", - "kind": "model", - "name": "InputOutputRecord", - "namespace": "Type.Model.Usage", - "crossLanguageDefinitionId": "Type.Model.Usage.InputOutputRecord", - "usage": "Input,Output,Json", - "doc": "Record used both as operation parameter and return type", - "decorators": [], - "properties": [ + }, { - "$id": "21", - "kind": "property", - "name": "requiredProp", - "serializedName": "requiredProp", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "constant", + "name": "inputAndOutputContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.InputOutputRecord.requiredProp", - "serializationOptions": { - "$id": "23", - "json": { - "$id": "24", - "name": "requiredProp" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "25", - "kind": "client", - "name": "UsageClient", - "namespace": "Type.Model.Usage", - "doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).", - "methods": [ + }, { - "$id": "26", - "kind": "basic", - "name": "input", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "27", - "name": "input", - "resourceName": "Usage", - "accessibility": "public", - "parameters": [ - { - "$id": "28", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "29", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "30", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/model/usage/input", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Usage.input", - "decorators": [] - }, - "parameters": [ - { - "$id": "31", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "7", + "kind": "constant", + "name": "inputAndOutputContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "32", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "33" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Usage.input" + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "9", + "kind": "model", + "name": "InputRecord", + "namespace": "Type.Model.Usage", + "crossLanguageDefinitionId": "Type.Model.Usage.InputRecord", + "usage": "Input,Json", + "doc": "Record used in operation parameters", + "decorators": [], + "properties": [ + { + "$id": "10", + "kind": "property", + "name": "requiredProp", + "serializedName": "requiredProp", + "type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Usage.InputRecord.requiredProp", + "serializationOptions": { + "json": { + "name": "requiredProp" + } + } + } + ] }, { - "$id": "34", - "kind": "basic", - "name": "output", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "35", - "name": "output", - "resourceName": "Usage", - "accessibility": "public", - "parameters": [ - { - "$id": "36", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "15" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/usage/output", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Usage.output", - "decorators": [] - }, - "parameters": [ - { - "$id": "38", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "39", - "type": { - "$ref": "15" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Usage.output" + "$id": "12", + "kind": "model", + "name": "OutputRecord", + "namespace": "Type.Model.Usage", + "crossLanguageDefinitionId": "Type.Model.Usage.OutputRecord", + "usage": "Output,Json", + "doc": "Record used in operation return type", + "decorators": [], + "properties": [ + { + "$id": "13", + "kind": "property", + "name": "requiredProp", + "serializedName": "requiredProp", + "type": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Usage.OutputRecord.requiredProp", + "serializationOptions": { + "json": { + "name": "requiredProp" + } + } + } + ] }, { - "$id": "40", - "kind": "basic", - "name": "inputAndOutput", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "41", - "name": "inputAndOutput", - "resourceName": "Usage", - "accessibility": "public", - "parameters": [ - { - "$id": "42", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "43", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "44", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" + "$id": "15", + "kind": "model", + "name": "InputOutputRecord", + "namespace": "Type.Model.Usage", + "crossLanguageDefinitionId": "Type.Model.Usage.InputOutputRecord", + "usage": "Input,Output,Json", + "doc": "Record used both as operation parameter and return type", + "decorators": [], + "properties": [ + { + "$id": "16", + "kind": "property", + "name": "requiredProp", + "serializedName": "requiredProp", + "type": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Usage.InputOutputRecord.requiredProp", + "serializationOptions": { + "json": { + "name": "requiredProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "18", + "kind": "client", + "name": "UsageClient", + "namespace": "Type.Model.Usage", + "doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).", + "methods": [ + { + "$id": "19", + "kind": "basic", + "name": "input", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "20", + "name": "input", + "resourceName": "Usage", + "accessibility": "public", + "parameters": [ + { + "$id": "21", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "22", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "23", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/model/usage/input", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Usage.input", + "decorators": [] + }, + "parameters": [ + { + "$id": "24", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "25", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Usage.input" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "45", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "20" + { + "$id": "26", + "kind": "basic", + "name": "output", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "27", + "name": "output", + "resourceName": "Usage", + "accessibility": "public", + "parameters": [ + { + "$id": "28", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "29", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "12" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/usage/output", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Usage.output", + "decorators": [] + }, + "parameters": [ + { + "$id": "30", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "12" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Usage.output" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "31", + "kind": "basic", + "name": "inputAndOutput", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "32", + "name": "inputAndOutput", + "resourceName": "Usage", + "accessibility": "public", + "parameters": [ + { + "$id": "33", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "34", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "35", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "36", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "15" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/model/usage/input-output", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput", + "decorators": [] + }, + "parameters": [ + { + "$id": "37", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "38", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "39", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "15" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput" + } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/model/usage/input-output", - "requestMediaTypes": [ - "application/json" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput", - "decorators": [] - }, - "parameters": [ - { - "$id": "46", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "47", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "48", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "49", - "type": { - "$ref": "20" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput" - } - ], - "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": "Type.Model.Usage", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage", - "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 794a0ce3703..bbd37d6e1e4 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 @@ -1,1378 +1,1349 @@ { - "$id": "1", - "name": "Type.Model.Visibility", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "getModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "getModelContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "headModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "putModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "patchModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "postModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "deleteModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "putReadOnlyModelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "putReadOnlyModelContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "20", - "kind": "model", - "name": "VisibilityModel", - "namespace": "Type.Model.Visibility", - "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel", - "usage": "Input,Output,Json", - "doc": "Output model with visibility properties.", - "decorators": [], - "properties": [ + "name": "Type.Model.Visibility", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "21", - "kind": "property", - "name": "readProp", - "serializedName": "readProp", - "doc": "Required string, illustrating a readonly property.", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "getModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.readProp", - "serializationOptions": { - "$id": "23", - "json": { - "$id": "24", - "name": "readProp" - } - } }, { - "$id": "25", - "kind": "query", - "name": "queryProp", - "serializedName": "queryProp", - "doc": "Required int32, illustrating a query property.", - "type": { - "$id": "26", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "3", + "kind": "constant", + "name": "getModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.queryProp", - "correspondingMethodParams": [] }, { - "$id": "27", - "kind": "property", - "name": "createProp", - "serializedName": "createProp", - "doc": "Required string[], illustrating a create property.", - "type": { - "$id": "28", - "kind": "array", - "name": "Array", + "$id": "5", + "kind": "constant", + "name": "headModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.createProp", - "serializationOptions": { - "$id": "30", - "json": { - "$id": "31", - "name": "createProp" - } - } }, { - "$id": "32", - "kind": "property", - "name": "updateProp", - "serializedName": "updateProp", - "doc": "Required int32[], illustrating a update property.", - "type": { - "$id": "33", - "kind": "array", - "name": "Array1", + "$id": "7", + "kind": "constant", + "name": "putModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "34", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.updateProp", - "serializationOptions": { - "$id": "35", - "json": { - "$id": "36", - "name": "updateProp" - } - } }, { - "$id": "37", - "kind": "property", - "name": "deleteProp", - "serializedName": "deleteProp", - "doc": "Required bool, illustrating a delete property.", - "type": { - "$id": "38", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "9", + "kind": "constant", + "name": "patchModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.deleteProp", - "serializationOptions": { - "$id": "39", - "json": { - "$id": "40", - "name": "deleteProp" - } - } - } - ] - }, - { - "$id": "41", - "kind": "model", - "name": "ReadOnlyModel", - "namespace": "Type.Model.Visibility", - "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel", - "usage": "Input,Output,Json", - "doc": "RoundTrip model with readonly optional properties.", - "decorators": [], - "properties": [ + }, { - "$id": "42", - "kind": "property", - "name": "optionalNullableIntList", - "serializedName": "optionalNullableIntList", - "doc": "Optional readonly nullable int list.", - "type": { - "$id": "43", - "kind": "nullable", - "type": { - "$id": "44", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "45", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "11", + "kind": "constant", + "name": "postModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "namespace": "" - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalNullableIntList", - "serializationOptions": { - "$id": "46", - "json": { - "$id": "47", - "name": "optionalNullableIntList" - } - } + "value": "application/json", + "decorators": [] }, { - "$id": "48", - "kind": "property", - "name": "optionalStringRecord", - "serializedName": "optionalStringRecord", - "doc": "Optional readonly string dictionary.", - "type": { - "$id": "49", - "kind": "dict", - "keyType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "13", + "kind": "constant", + "name": "deleteModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalStringRecord", - "serializationOptions": { - "$id": "52", - "json": { - "$id": "53", - "name": "optionalStringRecord" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "54", - "kind": "client", - "name": "VisibilityClient", - "namespace": "Type.Model.Visibility", - "doc": "Illustrates models with visibility properties.", - "methods": [ + }, { - "$id": "55", - "kind": "basic", - "name": "getModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "56", - "name": "getModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "57", - "name": "queryProp", - "nameInRequest": "queryProp", - "doc": "Required int32, illustrating a query property.", - "type": { - "$id": "58", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "59", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "60", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "61", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "62", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "20" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/model/visibility", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "63", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "64", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "15", + "kind": "constant", + "name": "putReadOnlyModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "65", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "66", - "type": { - "$ref": "20" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel" + "value": "application/json", + "decorators": [] }, { - "$id": "67", - "kind": "basic", - "name": "headModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "68", - "name": "headModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "69", - "name": "queryProp", - "nameInRequest": "queryProp", - "doc": "Required int32, illustrating a query property.", - "type": { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "71", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "72", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "73", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{endpoint}", - "path": "/type/model/visibility", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "74", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "17", + "kind": "constant", + "name": "putReadOnlyModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "75", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "76" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel" - }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ { - "$id": "77", - "kind": "basic", - "name": "putModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "78", - "name": "putModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "79", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" + "$id": "19", + "kind": "model", + "name": "VisibilityModel", + "namespace": "Type.Model.Visibility", + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel", + "usage": "Input,Output,Json", + "doc": "Output model with visibility properties.", + "decorators": [], + "properties": [ + { + "$id": "20", + "kind": "property", + "name": "readProp", + "serializedName": "readProp", + "doc": "Required string, illustrating a readonly property.", + "type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.readProp", + "serializationOptions": { + "json": { + "name": "readProp" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "80", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" + { + "$id": "22", + "kind": "query", + "name": "queryProp", + "serializedName": "queryProp", + "doc": "Required int32, illustrating a query property.", + "type": { + "$id": "23", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.queryProp", + "correspondingMethodParams": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "81", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/visibility", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.putModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "82", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "83", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "84" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.putModel" - }, - { - "$id": "85", - "kind": "basic", - "name": "patchModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "86", - "name": "patchModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "87", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" + { + "$id": "24", + "kind": "property", + "name": "createProp", + "serializedName": "createProp", + "doc": "Required string[], illustrating a create property.", + "type": { + "$id": "25", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.createProp", + "serializationOptions": { + "json": { + "name": "createProp" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "88", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" + { + "$id": "27", + "kind": "property", + "name": "updateProp", + "serializedName": "updateProp", + "doc": "Required int32[], illustrating a update property.", + "type": { + "$id": "28", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "29", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.updateProp", + "serializationOptions": { + "json": { + "name": "updateProp" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "89", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/model/visibility", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "90", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "91", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "92" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel" + { + "$id": "30", + "kind": "property", + "name": "deleteProp", + "serializedName": "deleteProp", + "doc": "Required bool, illustrating a delete property.", + "type": { + "$id": "31", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.deleteProp", + "serializationOptions": { + "json": { + "name": "deleteProp" + } + } + } + ] }, { - "$id": "93", - "kind": "basic", - "name": "postModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "94", - "name": "postModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "96", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" + "$id": "32", + "kind": "model", + "name": "ReadOnlyModel", + "namespace": "Type.Model.Visibility", + "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel", + "usage": "Input,Output,Json", + "doc": "RoundTrip model with readonly optional properties.", + "decorators": [], + "properties": [ + { + "$id": "33", + "kind": "property", + "name": "optionalNullableIntList", + "serializedName": "optionalNullableIntList", + "doc": "Optional readonly nullable int list.", + "type": { + "$id": "34", + "kind": "nullable", + "type": { + "$id": "35", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "36", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalNullableIntList", + "serializationOptions": { + "json": { + "name": "optionalNullableIntList" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "97", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/model/visibility", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "98", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "99", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "100" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel" - }, + { + "$id": "37", + "kind": "property", + "name": "optionalStringRecord", + "serializedName": "optionalStringRecord", + "doc": "Optional readonly string dictionary.", + "type": { + "$id": "38", + "kind": "dict", + "keyType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalStringRecord", + "serializationOptions": { + "json": { + "name": "optionalStringRecord" + } + } + } + ] + } + ], + "clients": [ { - "$id": "101", - "kind": "basic", - "name": "deleteModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "102", - "name": "deleteModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "103", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" + "$id": "41", + "kind": "client", + "name": "VisibilityClient", + "namespace": "Type.Model.Visibility", + "doc": "Illustrates models with visibility properties.", + "methods": [ + { + "$id": "42", + "kind": "basic", + "name": "getModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "43", + "name": "getModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "44", + "name": "queryProp", + "nameInRequest": "queryProp", + "doc": "Required int32, illustrating a query property.", + "type": { + "$id": "45", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "46", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "47", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "48", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "49", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "19" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/model/visibility", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "50", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "51", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "52", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "19" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "104", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" + { + "$id": "53", + "kind": "basic", + "name": "headModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "54", + "name": "headModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "55", + "name": "queryProp", + "nameInRequest": "queryProp", + "doc": "Required int32, illustrating a query property.", + "type": { + "$id": "56", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "57", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "58", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "59", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{endpoint}", + "path": "/type/model/visibility", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.headModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "60", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "61", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.headModel" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "105", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}", - "path": "/type/model/visibility", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "106", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "107", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "108" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel" - }, - { - "$id": "109", - "kind": "basic", - "name": "putReadOnlyModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "110", - "name": "putReadOnlyModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "111", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" + { + "$id": "62", + "kind": "basic", + "name": "putModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "63", + "name": "putModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "64", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "65", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "66", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/visibility", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.putModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "67", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "68", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.putModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "112", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" + { + "$id": "69", + "kind": "basic", + "name": "patchModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "70", + "name": "patchModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "71", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "72", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "73", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/model/visibility", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "74", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "75", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "113", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "41" + { + "$id": "76", + "kind": "basic", + "name": "postModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "77", + "name": "postModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "78", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "79", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "80", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/model/visibility", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.postModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "81", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "82", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.postModel" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "114", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "41" + { + "$id": "83", + "kind": "basic", + "name": "deleteModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "84", + "name": "deleteModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "85", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "86", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "87", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/type/model/visibility", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "88", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "89", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "90", + "kind": "basic", + "name": "putReadOnlyModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "91", + "name": "putReadOnlyModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "92", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "93", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "94", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "32" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "95", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "32" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/model/visibility/readonlyroundtrip", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "96", + "name": "input", + "nameInRequest": "input", + "type": { + "$ref": "32" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "97", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "98", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "32" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel" + } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/model/visibility/readonlyroundtrip", - "requestMediaTypes": [ - "application/json" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "115", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "41" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "116", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "117", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "118", - "type": { - "$ref": "41" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel" - } - ], - "parameters": [ - { - "$id": "119", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "120", - "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": "121", - "type": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + "decorators": [], + "crossLanguageDefinitionId": "Type.Model.Visibility", + "apiVersions": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility", - "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 bf7aa86d627..a6124198e7c 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 @@ -1,10957 +1,10635 @@ { - "$id": "1", - "name": "Type.Property.AdditionalProperties", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerivedKind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "derived", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "IsUnknownAdditionalPropertiesDiscriminatedDerivedKind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "derived", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "WidgetData0Kind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "kind0", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "WidgetData1Kind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "kind1", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "WidgetData2Kind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "kind1", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "putContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "putContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "getContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "putContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "getContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "putContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "getContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "putContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "getContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "putContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "getContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "putContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "getContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "putContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "getContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "putContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "getContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "54", - "kind": "constant", - "name": "putContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "getContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "58", - "kind": "constant", - "name": "putContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "60", - "kind": "constant", - "name": "getContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "62", - "kind": "constant", - "name": "putContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "64", - "kind": "constant", - "name": "getContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "66", - "kind": "constant", - "name": "putContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "68", - "kind": "constant", - "name": "getContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "70", - "kind": "constant", - "name": "putContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "72", - "kind": "constant", - "name": "getContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "putContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "getContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "putContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "getContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "putContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "getContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "86", - "kind": "constant", - "name": "putContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "88", - "kind": "constant", - "name": "getContentType19", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "90", - "kind": "constant", - "name": "putContentType19", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "92", - "kind": "constant", - "name": "getContentType20", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "94", - "kind": "constant", - "name": "putContentType20", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "96", - "kind": "constant", - "name": "getContentType21", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "98", - "kind": "constant", - "name": "putContentType21", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "100", - "kind": "constant", - "name": "getContentType22", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "102", - "kind": "constant", - "name": "putContentType22", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "104", - "kind": "constant", - "name": "getContentType23", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "106", - "kind": "constant", - "name": "putContentType23", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "108", - "kind": "constant", - "name": "getContentType24", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "name": "putContentType24", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "name": "getContentType25", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "name": "putContentType25", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "116", - "kind": "constant", - "name": "getContentType26", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "118", - "kind": "constant", - "name": "putContentType26", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "name": "getContentType27", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "name": "putContentType27", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "name": "getContentType28", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "126", - "kind": "constant", - "name": "putContentType28", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "128", - "kind": "constant", - "name": "getContentType29", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "name": "putContentType29", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "name": "getContentType30", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "name": "putContentType30", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "136", - "kind": "model", - "name": "ExtendsUnknownAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model extends from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "137", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "properties": [ + "name": "Type.Property.AdditionalProperties", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "138", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalProperties.name", - "serializationOptions": { - "$id": "140", - "json": { - "$id": "141", - "name": "name" - } - } - } - ] - }, - { - "$id": "142", - "kind": "model", - "name": "ExtendsUnknownAdditionalPropertiesDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived", - "usage": "Input,Output,Json", - "doc": "The model extends from a type that extends from Record.", - "decorators": [], - "baseModel": { - "$ref": "136" - }, - "properties": [ + }, { - "$id": "143", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "144", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "3", + "kind": "constant", + "name": "putContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.index", - "serializationOptions": { - "$id": "145", - "json": { - "$id": "146", - "name": "index" - } - } }, { - "$id": "147", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "148", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "5", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.age", - "serializationOptions": { - "$id": "149", - "json": { - "$id": "150", - "name": "age" - } - } - } - ] - }, - { - "$id": "151", - "kind": "model", - "name": "ExtendsUnknownAdditionalPropertiesDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated", - "usage": "Input,Output,Json", - "doc": "The model extends from Record with a discriminator.", - "decorators": [], - "additionalProperties": { - "$id": "152", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "discriminatorProperty": { - "$id": "153", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The discriminator", - "type": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.kind", - "serializationOptions": { - "$id": "155", - "json": { - "$id": "156", - "name": "kind" - } - } - }, - "properties": [ { - "$id": "157", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "7", + "kind": "constant", + "name": "putContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.name", - "serializationOptions": { - "$id": "159", - "json": { - "$id": "160", - "name": "name" - } - } }, { - "$ref": "153" - } - ], - "discriminatedSubtypes": { - "$id": "161", - "derived": { - "$id": "162", - "kind": "model", - "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived", - "usage": "Input,Output,Json", - "doc": "The derived discriminated type", - "discriminatorValue": "derived", - "decorators": [], - "baseModel": { - "$ref": "151" - }, - "properties": [ - { - "$id": "163", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.kind", - "serializationOptions": { - "$id": "164", - "json": { - "$id": "165", - "name": "kind" - } - } + "$id": "9", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "166", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "167", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "value": "application/json", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerivedKind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.index", - "serializationOptions": { - "$id": "168", - "json": { - "$id": "169", - "name": "index" - } - } }, - { - "$id": "170", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "171", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "value": "derived", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "putContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.age", - "serializationOptions": { - "$id": "172", - "json": { - "$id": "173", - "name": "age" - } - } - } - ] - } - } - }, - { - "$ref": "162" - }, - { - "$id": "174", - "kind": "model", - "name": "IsUnknownAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model is from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "175", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "properties": [ + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "176", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "177", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "15", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalProperties.name", - "serializationOptions": { - "$id": "178", - "json": { - "$id": "179", - "name": "name" - } - } - } - ] - }, - { - "$id": "180", - "kind": "model", - "name": "IsUnknownAdditionalPropertiesDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived", - "usage": "Input,Output,Json", - "doc": "The model extends from a type that is Record type", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ + }, { - "$id": "181", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "182", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "17", + "kind": "constant", + "name": "putContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.index", - "serializationOptions": { - "$id": "183", - "json": { - "$id": "184", - "name": "index" - } - } }, { - "$id": "185", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "186", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "19", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.age", - "serializationOptions": { - "$id": "187", - "json": { - "$id": "188", - "name": "age" - } - } - } - ] - }, - { - "$id": "189", - "kind": "model", - "name": "IsUnknownAdditionalPropertiesDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated", - "usage": "Input,Output,Json", - "doc": "The model is Record with a discriminator.", - "decorators": [], - "additionalProperties": { - "$id": "190", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "discriminatorProperty": { - "$id": "191", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The discriminator", - "type": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.kind", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "kind" - } - } - }, - "properties": [ { - "$id": "195", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "21", + "kind": "constant", + "name": "putContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.name", - "serializationOptions": { - "$id": "197", - "json": { - "$id": "198", - "name": "name" - } - } }, { - "$ref": "191" - } - ], - "discriminatedSubtypes": { - "$id": "199", - "derived": { - "$id": "200", - "kind": "model", - "name": "IsUnknownAdditionalPropertiesDiscriminatedDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived", - "usage": "Input,Output,Json", - "doc": "The derived discriminated type", - "discriminatorValue": "derived", - "decorators": [], - "baseModel": { - "$ref": "189" - }, - "properties": [ - { - "$id": "201", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "4" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.kind", - "serializationOptions": { - "$id": "202", - "json": { - "$id": "203", - "name": "kind" - } - } + "$id": "23", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "204", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "205", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "value": "application/json", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "IsUnknownAdditionalPropertiesDiscriminatedDerivedKind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.index", - "serializationOptions": { - "$id": "206", - "json": { - "$id": "207", - "name": "index" - } - } }, - { - "$id": "208", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "209", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "value": "derived", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "putContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.age", - "serializationOptions": { - "$id": "210", - "json": { - "$id": "211", - "name": "age" - } - } - } - ] - } - } - }, - { - "$ref": "200" - }, - { - "$id": "212", - "kind": "model", - "name": "ExtendsStringAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsStringAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model extends from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "214", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "215", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "29", + "kind": "constant", + "name": "getContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsStringAdditionalProperties.name", - "serializationOptions": { - "$id": "216", - "json": { - "$id": "217", - "name": "name" - } - } - } - ] - }, - { - "$id": "218", - "kind": "model", - "name": "IsStringAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsStringAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model is from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, { - "$id": "220", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "31", + "kind": "constant", + "name": "putContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsStringAdditionalProperties.name", - "serializationOptions": { - "$id": "222", - "json": { - "$id": "223", - "name": "name" - } - } - } - ] - }, - { - "$id": "224", - "kind": "model", - "name": "SpreadStringRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadStringRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the same known property type", - "decorators": [], - "additionalProperties": { - "$id": "225", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, { - "$id": "226", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "227", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "33", + "kind": "constant", + "name": "getContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadStringRecord.name", - "serializationOptions": { - "$id": "228", - "json": { - "$id": "229", - "name": "name" - } - } - } - ] - }, - { - "$id": "230", - "kind": "model", - "name": "ExtendsFloatAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloatAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model extends from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "231", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "232", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The id property", - "type": { - "$id": "233", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "35", + "kind": "constant", + "name": "putContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloatAdditionalProperties.id", - "serializationOptions": { - "$id": "234", - "json": { - "$id": "235", - "name": "id" - } - } - } - ] - }, - { - "$id": "236", - "kind": "model", - "name": "IsFloatAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloatAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model is from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "237", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "238", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The id property", - "type": { - "$id": "239", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "37", + "kind": "constant", + "name": "getContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloatAdditionalProperties.id", - "serializationOptions": { - "$id": "240", - "json": { - "$id": "241", - "name": "id" - } - } - } - ] - }, - { - "$id": "242", - "kind": "model", - "name": "SpreadFloatRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloatRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the same known property type", - "decorators": [], - "additionalProperties": { - "$id": "243", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "244", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The id property", - "type": { - "$id": "245", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "39", + "kind": "constant", + "name": "putContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloatRecord.id", - "serializationOptions": { - "$id": "246", - "json": { - "$id": "247", - "name": "id" - } - } - } - ] - }, - { - "$id": "248", - "kind": "model", - "name": "ExtendsModelAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model extends from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "249", - "kind": "model", - "name": "ModelForRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord", - "usage": "Input,Output,Json", - "doc": "model for record", - "decorators": [], - "properties": [ - { - "$id": "250", - "kind": "property", - "name": "state", - "serializedName": "state", - "doc": "The state property", - "type": { - "$id": "251", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord.state", - "serializationOptions": { - "$id": "252", - "json": { - "$id": "253", - "name": "state" - } - } - } - ] - }, - "properties": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "254", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "249" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "255", - "json": { - "$id": "256", - "name": "knownProp" - } - } - } - ] - }, - { - "$ref": "249" - }, - { - "$id": "257", - "kind": "model", - "name": "IsModelAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model is from Record type.", - "decorators": [], - "additionalProperties": { - "$ref": "249" - }, - "properties": [ + "$id": "43", + "kind": "constant", + "name": "putContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "258", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "249" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "259", - "json": { - "$id": "260", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "261", - "kind": "model", - "name": "SpreadModelRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the same known property type", - "decorators": [], - "additionalProperties": { - "$ref": "249" - }, - "properties": [ + "$id": "45", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "262", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "249" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelRecord.knownProp", - "serializationOptions": { - "$id": "263", - "json": { - "$id": "264", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "265", - "kind": "model", - "name": "ExtendsModelArrayAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model extends from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "266", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "249" + "$id": "47", + "kind": "constant", + "name": "putContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "properties": [ { - "$id": "267", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "268", - "kind": "array", - "name": "ArrayModelForRecord", + "$id": "49", + "kind": "constant", + "name": "getContentType11", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "249" + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "269", - "json": { - "$id": "270", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "271", - "kind": "model", - "name": "IsModelArrayAdditionalProperties", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties", - "usage": "Input,Output,Json", - "doc": "The model is from Record type.", - "decorators": [], - "additionalProperties": { - "$id": "272", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "249" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "properties": [ { - "$id": "273", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "274", - "kind": "array", - "name": "ArrayModelForRecord", + "$id": "51", + "kind": "constant", + "name": "putContentType11", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "249" + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "275", - "json": { - "$id": "276", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "277", - "kind": "model", - "name": "SpreadModelArrayRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord", - "usage": "Input,Output,Json", - "decorators": [], - "additionalProperties": { - "$id": "278", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "249" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "properties": [ { - "$id": "279", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "280", - "kind": "array", - "name": "ArrayModelForRecord", + "$id": "53", + "kind": "constant", + "name": "getContentType12", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "249" + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord.knownProp", - "serializationOptions": { - "$id": "281", - "json": { - "$id": "282", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "283", - "kind": "model", - "name": "DifferentSpreadStringRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the different known property type", - "decorators": [], - "additionalProperties": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, { - "$id": "285", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The name property", - "type": { - "$id": "286", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "55", + "kind": "constant", + "name": "putContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringRecord.id", - "serializationOptions": { - "$id": "287", - "json": { - "$id": "288", - "name": "id" - } - } - } - ] - }, - { - "$id": "289", - "kind": "model", - "name": "DifferentSpreadFloatRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the different known property type", - "decorators": [], - "additionalProperties": { - "$id": "290", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "291", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The id property", - "type": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "57", + "kind": "constant", + "name": "getContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatRecord.name", - "serializationOptions": { - "$id": "293", - "json": { - "$id": "294", - "name": "name" - } - } - } - ] - }, - { - "$id": "295", - "kind": "model", - "name": "DifferentSpreadModelRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the different known property type", - "decorators": [], - "additionalProperties": { - "$ref": "249" - }, - "properties": [ + }, { - "$id": "296", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "297", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "59", + "kind": "constant", + "name": "putContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelRecord.knownProp", - "serializationOptions": { - "$id": "298", - "json": { - "$id": "299", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "300", - "kind": "model", - "name": "DifferentSpreadModelArrayRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record with the different known property type", - "decorators": [], - "additionalProperties": { - "$id": "301", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "249" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "properties": [ { - "$id": "302", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "303", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "61", + "kind": "constant", + "name": "getContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayRecord.knownProp", - "serializationOptions": { - "$id": "304", - "json": { - "$id": "305", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "306", - "kind": "model", - "name": "DifferentSpreadStringDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringDerived", - "usage": "Input,Output,Json", - "doc": "The model extends from a model that spread Record with the different known property type", - "decorators": [], - "baseModel": { - "$ref": "283" - }, - "properties": [ + }, { - "$id": "307", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "63", + "kind": "constant", + "name": "putContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringDerived.derivedProp", - "serializationOptions": { - "$id": "309", - "json": { - "$id": "310", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "311", - "kind": "model", - "name": "DifferentSpreadFloatDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatDerived", - "usage": "Input,Output,Json", - "doc": "The model extends from a model that spread Record with the different known property type", - "decorators": [], - "baseModel": { - "$ref": "289" - }, - "properties": [ + }, { - "$id": "312", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$id": "313", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "65", + "kind": "constant", + "name": "getContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatDerived.derivedProp", - "serializationOptions": { - "$id": "314", - "json": { - "$id": "315", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "316", - "kind": "model", - "name": "DifferentSpreadModelDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelDerived", - "usage": "Input,Output,Json", - "doc": "The model extends from a model that spread Record with the different known property type", - "decorators": [], - "baseModel": { - "$ref": "295" - }, - "properties": [ + }, { - "$id": "317", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$ref": "249" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelDerived.derivedProp", - "serializationOptions": { - "$id": "318", - "json": { - "$id": "319", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "320", - "kind": "model", - "name": "DifferentSpreadModelArrayDerived", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived", - "usage": "Input,Output,Json", - "doc": "The model extends from a model that spread Record with the different known property type", - "decorators": [], - "baseModel": { - "$ref": "300" - }, - "properties": [ + "$id": "67", + "kind": "constant", + "name": "putContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "321", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$id": "322", - "kind": "array", - "name": "ArrayModelForRecord", + "$id": "69", + "kind": "constant", + "name": "getContentType16", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "249" + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived.derivedProp", - "serializationOptions": { - "$id": "323", - "json": { - "$id": "324", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "325", - "kind": "model", - "name": "MultipleSpreadRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpreadRecord", - "usage": "Input,Output,Json", - "doc": "The model spread Record and Record", - "decorators": [], - "additionalProperties": { - "$id": "326", - "kind": "union", - "name": "MultipleSpreadRecordAdditionalProperty", - "variantTypes": [ - { - "$id": "327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + }, + { + "$id": "71", + "kind": "constant", + "name": "putContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - { - "$id": "328", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + }, + { + "$id": "73", + "kind": "constant", + "name": "getContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ + }, { - "$id": "329", - "kind": "property", - "name": "flag", - "serializedName": "flag", - "doc": "The name property", - "type": { - "$id": "330", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "75", + "kind": "constant", + "name": "putContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpreadRecord.flag", - "serializationOptions": { - "$id": "331", - "json": { - "$id": "332", - "name": "flag" - } - } - } - ] - }, - { - "$id": "333", - "kind": "model", - "name": "SpreadRecordForUnion", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForUnion", - "usage": "Input,Output,Json", - "doc": "The model spread Record", - "decorators": [], - "additionalProperties": { - "$id": "334", - "kind": "union", - "name": "SpreadRecordForUnionAdditionalProperty", - "variantTypes": [ - { - "$id": "335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + }, + { + "$id": "77", + "kind": "constant", + "name": "getContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - { - "$id": "336", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + }, + { + "$id": "79", + "kind": "constant", + "name": "putContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ + }, { - "$id": "337", - "kind": "property", - "name": "flag", - "serializedName": "flag", - "doc": "The name property", - "type": { - "$id": "338", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "81", + "kind": "constant", + "name": "getContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForUnion.flag", - "serializationOptions": { - "$id": "339", - "json": { - "$id": "340", - "name": "flag" - } - } - } - ] - }, - { - "$id": "341", - "kind": "model", - "name": "SpreadRecordForNonDiscriminatedUnion", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion", - "usage": "Input,Output,Json", - "doc": "The model spread Record", - "decorators": [], - "additionalProperties": { - "$id": "342", - "kind": "union", - "name": "SpreadRecordForNonDiscriminatedUnionAdditionalProperty", - "variantTypes": [ - { - "$id": "343", - "kind": "model", - "name": "WidgetData0", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "344", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "6" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0.kind", - "serializationOptions": { - "$id": "345", - "json": { - "$id": "346", - "name": "kind" - } - } - }, - { - "$id": "347", - "kind": "property", - "name": "fooProp", - "serializedName": "fooProp", - "type": { - "$id": "348", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0.fooProp", - "serializationOptions": { - "$id": "349", - "json": { - "$id": "350", - "name": "fooProp" - } - } - } - ] - }, - { - "$id": "351", - "kind": "model", - "name": "WidgetData1", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "352", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "8" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.kind", - "serializationOptions": { - "$id": "353", - "json": { - "$id": "354", - "name": "kind" - } - } - }, - { - "$id": "355", - "kind": "property", - "name": "start", - "serializedName": "start", - "type": { - "$id": "356", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.start", - "serializationOptions": { - "$id": "358", - "json": { - "$id": "359", - "name": "start" - } - } - }, - { - "$id": "360", - "kind": "property", - "name": "end", - "serializedName": "end", - "type": { - "$id": "361", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.end", - "serializationOptions": { - "$id": "363", - "json": { - "$id": "364", - "name": "end" - } - } - } - ] - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ + }, { - "$id": "365", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "83", + "kind": "constant", + "name": "putContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion.name", - "serializationOptions": { - "$id": "367", - "json": { - "$id": "368", - "name": "name" - } - } - } - ] - }, - { - "$ref": "343" - }, - { - "$ref": "351" - }, - { - "$id": "369", - "kind": "model", - "name": "SpreadRecordForNonDiscriminatedUnion2", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion2", - "usage": "Input,Output,Json", - "doc": "The model spread Record", - "decorators": [], - "additionalProperties": { - "$id": "370", - "kind": "union", - "name": "SpreadRecordForNonDiscriminatedUnion2AdditionalProperty", - "variantTypes": [ - { - "$id": "371", - "kind": "model", - "name": "WidgetData2", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "372", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "type": { - "$ref": "10" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2.kind", - "serializationOptions": { - "$id": "373", - "json": { - "$id": "374", - "name": "kind" - } - } - }, - { - "$id": "375", - "kind": "property", - "name": "start", - "serializedName": "start", - "type": { - "$id": "376", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2.start", - "serializationOptions": { - "$id": "377", - "json": { - "$id": "378", - "name": "start" - } - } - } - ] - }, - { - "$ref": "351" - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ + }, { - "$id": "379", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "380", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion2.name", - "serializationOptions": { - "$id": "381", - "json": { - "$id": "382", - "name": "name" - } - } - } - ] - }, - { - "$ref": "371" - }, - { - "$id": "383", - "kind": "model", - "name": "SpreadRecordForNonDiscriminatedUnion3", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3", - "usage": "Input,Output,Json", - "doc": "The model spread Record", - "decorators": [], - "additionalProperties": { - "$id": "384", - "kind": "union", - "name": "SpreadRecordForNonDiscriminatedUnion3AdditionalProperty", - "variantTypes": [ - { - "$id": "385", - "kind": "array", - "name": "ArrayWidgetData2", + "$id": "85", + "kind": "constant", + "name": "getContentType20", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "371" + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - { - "$ref": "351" - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ + }, { - "$id": "386", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "387", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "87", + "kind": "constant", + "name": "putContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3.name", - "serializationOptions": { - "$id": "388", - "json": { - "$id": "389", - "name": "name" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "390", - "kind": "client", - "name": "AdditionalPropertiesClient", - "namespace": "Type.Property.AdditionalProperties", - "doc": "Tests for additional properties of models", - "methods": [], - "parameters": [ + }, { - "$id": "391", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "392", - "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": "393", - "type": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "89", + "kind": "constant", + "name": "getContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "395", - "kind": "client", - "name": "ExtendsUnknown", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "396", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "397", - "name": "get", - "resourceName": "ExtendsUnknown", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "398", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "399", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "136" - }, - "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", + "$id": "91", + "kind": "constant", + "name": "putContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "400", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "401", - "type": { - "$ref": "136" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get" }, - { - "$id": "402", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "403", - "name": "put", - "resourceName": "ExtendsUnknown", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "404", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "405", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "136" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "406", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "93", + "kind": "constant", + "name": "getContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "407", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "136" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "408", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "409" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put" - } - ], - "parameters": [ - { - "$id": "410", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "411", - "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": "412", - "type": { - "$id": "413", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "414", - "kind": "client", - "name": "ExtendsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "415", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "416", - "name": "get", - "resourceName": "ExtendsUnknownDerived", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "417", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "418", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "142" - }, - "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", + "$id": "95", + "kind": "constant", + "name": "putContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "419", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "420", - "type": { - "$ref": "142" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get" }, - { - "$id": "421", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "422", - "name": "put", - "resourceName": "ExtendsUnknownDerived", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "423", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "424", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "142" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "425", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "97", + "kind": "constant", + "name": "getContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "426", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "142" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "427", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "428" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put" - } - ], - "parameters": [ - { - "$id": "429", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "430", - "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": "431", - "type": { - "$id": "432", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "433", - "kind": "client", - "name": "ExtendsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "434", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "435", - "name": "get", - "resourceName": "ExtendsUnknownDiscriminated", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "436", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "437", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "151" - }, - "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", + "$id": "99", + "kind": "constant", + "name": "putContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "438", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "439", - "type": { - "$ref": "151" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get" }, - { - "$id": "440", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "441", - "name": "put", - "resourceName": "ExtendsUnknownDiscriminated", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "442", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "443", - "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": "444", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "101", + "kind": "constant", + "name": "getContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "445", - "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 - }, - { - "$id": "446", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "447" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put" - } - ], - "parameters": [ - { - "$id": "448", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "449", - "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": "450", - "type": { - "$id": "451", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "452", - "kind": "client", - "name": "IsUnknown", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "453", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "454", - "name": "get", - "resourceName": "IsUnknown", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "455", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "456", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "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": [] - }, - "parameters": [ - { - "$id": "457", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "458", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get" - }, - { - "$id": "459", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "460", - "name": "put", - "resourceName": "IsUnknown", - "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": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "462", - "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": "463", - "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": [] - }, - "parameters": [ - { - "$id": "464", - "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 - }, - { - "$id": "465", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "466" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put" - } - ], - "parameters": [ - { - "$id": "467", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "468", - "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": "469", - "type": { - "$id": "470", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "471", - "kind": "client", - "name": "IsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "472", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "473", - "name": "get", - "resourceName": "IsUnknownDerived", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "474", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "475", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "180" - }, - "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": [] - }, - "parameters": [ - { - "$id": "476", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "477", - "type": { - "$ref": "180" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get" - }, - { - "$id": "478", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "479", - "name": "put", - "resourceName": "IsUnknownDerived", - "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": { - "$ref": "30" - }, - "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": "180" - }, - "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/isRecordUnknownDerived", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", - "decorators": [] - }, - "parameters": [ - { - "$id": "483", - "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 - }, - { - "$id": "484", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "485" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put" - } - ], - "parameters": [ - { - "$id": "486", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "487", - "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": "488", - "type": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "490", - "kind": "client", - "name": "IsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "491", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "492", - "name": "get", - "resourceName": "IsUnknownDiscriminated", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "493", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "494", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "189" - }, - "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": [] - }, - "parameters": [ - { - "$id": "495", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "496", - "type": { - "$ref": "189" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get" - }, - { - "$id": "497", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "498", - "name": "put", - "resourceName": "IsUnknownDiscriminated", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "499", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "500", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "189" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "501", - "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": [] - }, - "parameters": [ - { - "$id": "502", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "189" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "503", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "504" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put" - } - ], - "parameters": [ - { - "$id": "505", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "506", - "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": "507", - "type": { - "$id": "508", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "509", - "kind": "client", - "name": "ExtendsString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "510", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "511", - "name": "get", - "resourceName": "ExtendsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "512", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "513", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "212" - }, - "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", + "$id": "103", + "kind": "constant", + "name": "putContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "514", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "515", - "type": { - "$ref": "212" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get" }, - { - "$id": "516", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "517", - "name": "put", - "resourceName": "ExtendsString", - "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": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "519", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "212" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "520", - "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": [] - }, - "parameters": [ - { - "$id": "521", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "212" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "522", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "523" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put" - } - ], - "parameters": [ - { - "$id": "524", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "525", - "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": "526", - "type": { - "$id": "527", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", - "apiVersions": [], - "parent": { - "$ref": "390" - } + "value": "application/json", + "decorators": [] }, { - "$id": "528", - "kind": "client", - "name": "IsString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "529", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "530", - "name": "get", - "resourceName": "IsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "531", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "532", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "218" - }, - "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", + "$id": "105", + "kind": "constant", + "name": "getContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "533", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "534", - "type": { - "$ref": "218" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get" }, - { - "$id": "535", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "536", - "name": "put", - "resourceName": "IsString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "537", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "538", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "218" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "539", - "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": [] - }, - "parameters": [ - { - "$id": "540", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "218" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "541", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "542" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put" - } - ], - "parameters": [ - { - "$id": "543", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "544", - "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": "545", - "type": { - "$id": "546", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", - "apiVersions": [], - "parent": { - "$ref": "390" - } + "value": "application/json", + "decorators": [] }, { - "$id": "547", - "kind": "client", - "name": "SpreadString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "548", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "549", - "name": "get", - "resourceName": "SpreadString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "550", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "551", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "224" - }, - "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", + "$id": "107", + "kind": "constant", + "name": "putContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "552", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "553", - "type": { - "$ref": "224" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get" }, - { - "$id": "554", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "555", - "name": "put", - "resourceName": "SpreadString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "556", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "557", - "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": "558", - "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": [] - }, - "parameters": [ - { - "$id": "559", - "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 - }, - { - "$id": "560", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "561" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put" - } - ], - "parameters": [ - { - "$id": "562", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "563", - "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": "564", - "type": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", - "apiVersions": [], - "parent": { - "$ref": "390" - } + "value": "application/json", + "decorators": [] }, { - "$id": "566", - "kind": "client", - "name": "ExtendsFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "567", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "568", - "name": "get", - "resourceName": "ExtendsFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "569", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "570", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "230" - }, - "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", + "$id": "109", + "kind": "constant", + "name": "getContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "571", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "572", - "type": { - "$ref": "230" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get" }, - { - "$id": "573", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "574", - "name": "put", - "resourceName": "ExtendsFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "575", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "576", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "230" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "577", - "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": [] - }, - "parameters": [ - { - "$id": "578", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "230" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "579", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "580" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put" - } - ], - "parameters": [ - { - "$id": "581", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "582", - "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": "583", - "type": { - "$id": "584", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "585", - "kind": "client", - "name": "IsFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "586", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "587", - "name": "get", - "resourceName": "IsFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "588", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "589", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "236" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "111", + "kind": "constant", + "name": "putContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "590", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "591", - "type": { - "$ref": "236" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get" }, - { - "$id": "592", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "593", - "name": "put", - "resourceName": "IsFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "594", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "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": "236" - }, - "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/additionalProperties/isRecordFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "113", + "kind": "constant", + "name": "getContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "597", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "236" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "598", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "599" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put" - } - ], - "parameters": [ - { - "$id": "600", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "601", - "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": "602", - "type": { - "$id": "603", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "604", - "kind": "client", - "name": "SpreadFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "605", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "606", - "name": "get", - "resourceName": "SpreadFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "607", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "608", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "242" - }, - "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", + "$id": "115", + "kind": "constant", + "name": "putContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "609", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "610", - "type": { - "$ref": "242" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get" }, - { - "$id": "611", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "612", - "name": "put", - "resourceName": "SpreadFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "613", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "614", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "242" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "615", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "117", + "kind": "constant", + "name": "getContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "616", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "242" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "617", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "618" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put" - } - ], - "parameters": [ - { - "$id": "619", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "620", - "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": "621", - "type": { - "$id": "622", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "623", - "kind": "client", - "name": "ExtendsModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "624", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "625", - "name": "get", - "resourceName": "ExtendsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "626", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "627", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "248" - }, - "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", + "$id": "119", + "kind": "constant", + "name": "WidgetData0Kind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "628", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "629", - "type": { - "$ref": "248" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get" }, - { - "$id": "630", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "631", - "name": "put", - "resourceName": "ExtendsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "632", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "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": "248" - }, - "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/extendsRecordModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", + "value": "kind0", + "decorators": [] + }, + { + "$id": "121", + "kind": "constant", + "name": "WidgetData1Kind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", + "valueType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "635", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "248" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "636", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "637" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put" - } - ], - "parameters": [ - { - "$id": "638", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "639", - "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": "640", - "type": { - "$id": "641", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "kind1", + "decorators": [] }, { - "$id": "642", - "kind": "client", - "name": "IsModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "643", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "644", - "name": "get", - "resourceName": "IsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "645", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "646", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "257" - }, - "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", + "$id": "123", + "kind": "constant", + "name": "putContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "647", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "648", - "type": { - "$ref": "257" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get" }, - { - "$id": "649", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "650", - "name": "put", - "resourceName": "IsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "651", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "652", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "257" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "653", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "125", + "kind": "constant", + "name": "getContentType29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "654", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "257" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "655", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "656" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put" - } - ], - "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.AdditionalProperties.IsModel", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "661", - "kind": "client", - "name": "SpreadModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "662", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "663", - "name": "get", - "resourceName": "SpreadModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "664", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "665", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "261" - }, - "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", + "$id": "127", + "kind": "constant", + "name": "WidgetData2Kind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "666", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "667", - "type": { - "$ref": "261" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get" }, - { - "$id": "668", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "669", - "name": "put", - "resourceName": "SpreadModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "670", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "671", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "261" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "672", - "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", + "value": "kind1", + "decorators": [] + }, + { + "$id": "129", + "kind": "constant", + "name": "putContentType29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "673", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "261" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "674", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "675" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put" - } - ], - "parameters": [ - { - "$id": "676", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "677", - "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": "678", - "type": { - "$id": "679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", - "apiVersions": [], - "parent": { - "$ref": "390" - } + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "131", + "kind": "constant", + "name": "getContentType30", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "680", - "kind": "client", - "name": "ExtendsModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "681", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "682", - "name": "get", - "resourceName": "ExtendsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "683", - "name": "accept", - "nameInRequest": "Accept", + "$id": "133", + "kind": "constant", + "name": "putContentType30", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "135", + "kind": "model", + "name": "ExtendsUnknownAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model extends from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "136", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "properties": [ + { + "$id": "137", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "72" + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "684", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "265" - }, - "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": [] - }, - "parameters": [ - { - "$id": "685", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "686", - "type": { - "$ref": "265" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get" + ] + }, + { + "$id": "139", + "kind": "model", + "name": "ExtendsUnknownAdditionalPropertiesDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived", + "usage": "Input,Output,Json", + "doc": "The model extends from a type that extends from Record.", + "decorators": [], + "baseModel": { + "$ref": "135" }, - { - "$id": "687", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "688", - "name": "put", - "resourceName": "ExtendsModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "689", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "140", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", "type": { - "$ref": "74" + "$id": "141", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "690", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "142", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", "type": { - "$ref": "265" + "$id": "143", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "691", - "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": [] - }, - "parameters": [ - { - "$id": "692", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "265" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "693", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.age", + "serializationOptions": { + "json": { + "name": "age" + } + } } - ], - "response": { - "$id": "694" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put" - } - ], - "parameters": [ - { - "$id": "695", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "696", - "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": "697", - "type": { - "$id": "698", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "699", - "kind": "client", - "name": "IsModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "700", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "701", - "name": "get", - "resourceName": "IsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "702", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "703", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "271" - }, - "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", + "$id": "144", + "kind": "model", + "name": "ExtendsUnknownAdditionalPropertiesDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated", + "usage": "Input,Output,Json", + "doc": "The model extends from Record with a discriminator.", + "decorators": [], + "additionalProperties": { + "$id": "145", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", "decorators": [] - }, - "parameters": [ - { - "$id": "704", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "705", + }, + "discriminatorProperty": { + "$id": "146", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The discriminator", "type": { - "$ref": "271" + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.kind", + "serializationOptions": { + "json": { + "name": "kind" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get" }, - { - "$id": "706", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "707", - "name": "put", - "resourceName": "IsModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "708", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "709", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "properties": [ + { + "$id": "148", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "271" + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "710", - "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": [] - }, - "parameters": [ - { - "$id": "711", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "271" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, { - "$id": "712", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$ref": "146" + } + ], + "discriminatedSubtypes": { + "derived": { + "$id": "150", + "kind": "model", + "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived", + "usage": "Input,Output,Json", + "doc": "The derived discriminated type", + "discriminatorValue": "derived", + "decorators": [], + "baseModel": { + "$ref": "144" + }, + "properties": [ + { + "$id": "151", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "11" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "152", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", + "type": { + "$id": "153", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "154", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", + "type": { + "$id": "155", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.age", + "serializationOptions": { + "json": { + "name": "age" + } + } + } + ] } - ], - "response": { - "$id": "713" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put" - } - ], - "parameters": [ - { - "$id": "714", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "715", - "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": "716", - "type": { - "$id": "717", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", - "apiVersions": [], - "parent": { - "$ref": "390" - } }, { - "$id": "718", - "kind": "client", - "name": "SpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "719", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "720", - "name": "get", - "resourceName": "SpreadModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "721", - "name": "accept", - "nameInRequest": "Accept", + "$ref": "150" + }, + { + "$id": "156", + "kind": "model", + "name": "IsUnknownAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model is from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "157", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "properties": [ + { + "$id": "158", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "80" + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "722", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "277" - }, - "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": [] - }, - "parameters": [ - { - "$id": "723", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "724", - "type": { - "$ref": "277" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get" + ] + }, + { + "$id": "160", + "kind": "model", + "name": "IsUnknownAdditionalPropertiesDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived", + "usage": "Input,Output,Json", + "doc": "The model extends from a type that is Record type", + "decorators": [], + "baseModel": { + "$ref": "156" }, - { - "$id": "725", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "726", - "name": "put", - "resourceName": "SpreadModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "727", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "161", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", "type": { - "$ref": "82" + "$id": "162", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "728", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "163", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", "type": { - "$ref": "277" + "$id": "164", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "729", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ - { - "$id": "730", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "277" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "731", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.age", + "serializationOptions": { + "json": { + "name": "age" + } + } } - ], - "response": { - "$id": "732" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put" - } - ], - "parameters": [ - { - "$id": "733", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "734", - "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": "735", - "type": { - "$id": "736", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "737", - "kind": "client", - "name": "SpreadDifferentString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "738", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "739", - "name": "get", - "resourceName": "SpreadDifferentString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "740", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "741", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "283" - }, - "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", + "$id": "165", + "kind": "model", + "name": "IsUnknownAdditionalPropertiesDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated", + "usage": "Input,Output,Json", + "doc": "The model is Record with a discriminator.", + "decorators": [], + "additionalProperties": { + "$id": "166", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", "decorators": [] - }, - "parameters": [ - { - "$id": "742", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "743", + }, + "discriminatorProperty": { + "$id": "167", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The discriminator", "type": { - "$ref": "283" + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.kind", + "serializationOptions": { + "json": { + "name": "kind" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get" }, - { - "$id": "744", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "745", - "name": "put", - "resourceName": "SpreadDifferentString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "746", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "747", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "properties": [ + { + "$id": "169", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "283" + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "748", - "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": [] - }, - "parameters": [ - { - "$id": "749", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "283" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, { - "$id": "750", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$ref": "167" } - ], - "response": { - "$id": "751" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put" - } - ], - "parameters": [ - { - "$id": "752", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "753", - "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": "754", - "type": { - "$id": "755", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "756", - "kind": "client", - "name": "SpreadDifferentFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "757", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "758", - "name": "get", - "resourceName": "SpreadDifferentFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "759", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + ], + "discriminatedSubtypes": { + "derived": { + "$id": "171", + "kind": "model", + "name": "IsUnknownAdditionalPropertiesDiscriminatedDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived", + "usage": "Input,Output,Json", + "doc": "The derived discriminated type", + "discriminatorValue": "derived", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "760", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "289" + "baseModel": { + "$ref": "165" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" + "properties": [ + { + "$id": "172", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "25" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "173", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", + "type": { + "$id": "174", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "175", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", + "type": { + "$id": "176", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.age", + "serializationOptions": { + "json": { + "name": "age" + } + } + } ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", - "decorators": [] - }, - "parameters": [ - { - "$id": "761", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "762", - "type": { - "$ref": "289" } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get" + } + }, + { + "$ref": "171" + }, + { + "$id": "177", + "kind": "model", + "name": "ExtendsStringAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsStringAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model extends from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "763", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "764", - "name": "put", - "resourceName": "SpreadDifferentFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "765", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "179", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "90" + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "766", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsStringAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "181", + "kind": "model", + "name": "IsStringAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsStringAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model is from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "properties": [ + { + "$id": "183", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "289" + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "767", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ - { - "$id": "768", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "289" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "769", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsStringAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "770" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put" - } - ], - "parameters": [ - { - "$id": "771", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "772", - "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": "773", - "type": { - "$id": "774", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "775", - "kind": "client", - "name": "SpreadDifferentModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "776", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "777", - "name": "get", - "resourceName": "SpreadDifferentModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "778", - "name": "accept", - "nameInRequest": "Accept", + "$id": "185", + "kind": "model", + "name": "SpreadStringRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadStringRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the same known property type", + "decorators": [], + "additionalProperties": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "properties": [ + { + "$id": "187", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "92" + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "779", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "295" - }, - "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": [] - }, - "parameters": [ - { - "$id": "780", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "781", - "type": { - "$ref": "295" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadStringRecord.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get" + ] + }, + { + "$id": "189", + "kind": "model", + "name": "ExtendsFloatAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloatAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model extends from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "190", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - { - "$id": "782", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "783", - "name": "put", - "resourceName": "SpreadDifferentModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "784", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "191", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The id property", "type": { - "$ref": "94" + "$id": "192", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "785", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloatAdditionalProperties.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + { + "$id": "193", + "kind": "model", + "name": "IsFloatAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloatAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model is from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "194", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "properties": [ + { + "$id": "195", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The id property", "type": { - "$ref": "295" + "$id": "196", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "786", - "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": [] - }, - "parameters": [ - { - "$id": "787", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "295" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "788", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloatAdditionalProperties.id", + "serializationOptions": { + "json": { + "name": "id" + } + } } - ], - "response": { - "$id": "789" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put" - } - ], - "parameters": [ - { - "$id": "790", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "791", - "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": "792", - "type": { - "$id": "793", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "794", - "kind": "client", - "name": "SpreadDifferentModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "795", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "796", - "name": "get", - "resourceName": "SpreadDifferentModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "797", - "name": "accept", - "nameInRequest": "Accept", + "$id": "197", + "kind": "model", + "name": "SpreadFloatRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloatRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the same known property type", + "decorators": [], + "additionalProperties": { + "$id": "198", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "properties": [ + { + "$id": "199", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The id property", "type": { - "$ref": "96" + "$id": "200", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "798", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "300" - }, - "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": [] - }, - "parameters": [ - { - "$id": "799", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "800", - "type": { - "$ref": "300" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloatRecord.id", + "serializationOptions": { + "json": { + "name": "id" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get" + ] + }, + { + "$id": "201", + "kind": "model", + "name": "ExtendsModelAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model extends from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "202", + "kind": "model", + "name": "ModelForRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord", + "usage": "Input,Output,Json", + "doc": "model for record", + "decorators": [], + "properties": [ + { + "$id": "203", + "kind": "property", + "name": "state", + "serializedName": "state", + "doc": "The state property", + "type": { + "$id": "204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord.state", + "serializationOptions": { + "json": { + "name": "state" + } + } + } + ] }, - { - "$id": "801", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "802", - "name": "put", - "resourceName": "SpreadDifferentModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "803", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "205", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "98" + "$ref": "202" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "804", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$ref": "202" + }, + { + "$id": "206", + "kind": "model", + "name": "IsModelAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model is from Record type.", + "decorators": [], + "additionalProperties": { + "$ref": "202" + }, + "properties": [ + { + "$id": "207", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "300" + "$ref": "202" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "805", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ - { - "$id": "806", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "300" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "807", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - ], - "response": { - "$id": "808" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put" - } - ], - "parameters": [ - { - "$id": "809", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "810", - "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": "811", - "type": { - "$id": "812", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "813", - "kind": "client", - "name": "ExtendsDifferentSpreadString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "814", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "815", - "name": "get", - "resourceName": "ExtendsDifferentSpreadString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "816", - "name": "accept", - "nameInRequest": "Accept", + "$id": "208", + "kind": "model", + "name": "SpreadModelRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the same known property type", + "decorators": [], + "additionalProperties": { + "$ref": "202" + }, + "properties": [ + { + "$id": "209", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "100" + "$ref": "202" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "817", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "306" - }, - "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": [] - }, - "parameters": [ - { - "$id": "818", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "819", - "type": { - "$ref": "306" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get" + ] + }, + { + "$id": "210", + "kind": "model", + "name": "ExtendsModelArrayAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model extends from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "211", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - { - "$id": "820", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "821", - "name": "put", - "resourceName": "ExtendsDifferentSpreadString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "822", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "212", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "102" + "$id": "213", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "823", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$id": "214", + "kind": "model", + "name": "IsModelArrayAdditionalProperties", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties", + "usage": "Input,Output,Json", + "doc": "The model is from Record type.", + "decorators": [], + "additionalProperties": { + "$id": "215", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "properties": [ + { + "$id": "216", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "306" + "$id": "217", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "824", - "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": [] - }, - "parameters": [ - { - "$id": "825", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "306" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$id": "218", + "kind": "model", + "name": "SpreadModelArrayRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord", + "usage": "Input,Output,Json", + "decorators": [], + "additionalProperties": { + "$id": "219", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "properties": [ { - "$id": "826", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "220", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", + "type": { + "$id": "221", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - ], - "response": { - "$id": "827" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put" - } - ], - "parameters": [ - { - "$id": "828", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "829", - "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": "830", - "type": { - "$id": "831", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "832", - "kind": "client", - "name": "ExtendsDifferentSpreadFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "833", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "834", - "name": "get", - "resourceName": "ExtendsDifferentSpreadFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "835", - "name": "accept", - "nameInRequest": "Accept", + "$id": "222", + "kind": "model", + "name": "DifferentSpreadStringRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the different known property type", + "decorators": [], + "additionalProperties": { + "$id": "223", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "properties": [ + { + "$id": "224", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The name property", "type": { - "$ref": "104" + "$id": "225", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "836", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "311" - }, - "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", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringRecord.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + { + "$id": "226", + "kind": "model", + "name": "DifferentSpreadFloatRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the different known property type", + "decorators": [], + "additionalProperties": { + "$id": "227", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] - }, - "parameters": [ - { - "$id": "837", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "838", - "type": { - "$ref": "311" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get" }, - { - "$id": "839", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "840", - "name": "put", - "resourceName": "ExtendsDifferentSpreadFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "841", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "228", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The id property", "type": { - "$ref": "106" + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "842", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatRecord.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "230", + "kind": "model", + "name": "DifferentSpreadModelRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the different known property type", + "decorators": [], + "additionalProperties": { + "$ref": "202" + }, + "properties": [ + { + "$id": "231", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "311" + "$id": "232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "843", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ - { - "$id": "844", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "311" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "845", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - ], - "response": { - "$id": "846" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put" - } - ], - "parameters": [ - { - "$id": "847", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "848", - "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": "849", - "type": { - "$id": "850", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "851", - "kind": "client", - "name": "ExtendsDifferentSpreadModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "852", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "853", - "name": "get", - "resourceName": "ExtendsDifferentSpreadModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "854", - "name": "accept", - "nameInRequest": "Accept", + "$id": "233", + "kind": "model", + "name": "DifferentSpreadModelArrayRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record with the different known property type", + "decorators": [], + "additionalProperties": { + "$id": "234", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "properties": [ + { + "$id": "235", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "108" + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "855", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "316" - }, - "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": [] - }, - "parameters": [ - { - "$id": "856", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "857", - "type": { - "$ref": "316" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get" + ] + }, + { + "$id": "237", + "kind": "model", + "name": "DifferentSpreadStringDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringDerived", + "usage": "Input,Output,Json", + "doc": "The model extends from a model that spread Record with the different known property type", + "decorators": [], + "baseModel": { + "$ref": "222" }, - { - "$id": "858", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "859", - "name": "put", - "resourceName": "ExtendsDifferentSpreadModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "860", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "238", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "110" + "$id": "239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "861", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } + } + ] + }, + { + "$id": "240", + "kind": "model", + "name": "DifferentSpreadFloatDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatDerived", + "usage": "Input,Output,Json", + "doc": "The model extends from a model that spread Record with the different known property type", + "decorators": [], + "baseModel": { + "$ref": "226" + }, + "properties": [ + { + "$id": "241", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "316" + "$id": "242", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "862", - "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": [] - }, - "parameters": [ - { - "$id": "863", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "316" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "864", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } } - ], - "response": { - "$id": "865" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put" - } - ], - "parameters": [ - { - "$id": "866", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "867", - "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": "868", - "type": { - "$id": "869", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "870", - "kind": "client", - "name": "ExtendsDifferentSpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "871", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "872", - "name": "get", - "resourceName": "ExtendsDifferentSpreadModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "873", - "name": "accept", - "nameInRequest": "Accept", + "$id": "243", + "kind": "model", + "name": "DifferentSpreadModelDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelDerived", + "usage": "Input,Output,Json", + "doc": "The model extends from a model that spread Record with the different known property type", + "decorators": [], + "baseModel": { + "$ref": "230" + }, + "properties": [ + { + "$id": "244", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "112" + "$ref": "202" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "874", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "320" - }, - "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": [] - }, - "parameters": [ - { - "$id": "875", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } } - ], - "response": { - "$id": "876", - "type": { - "$ref": "320" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get" + ] + }, + { + "$id": "245", + "kind": "model", + "name": "DifferentSpreadModelArrayDerived", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived", + "usage": "Input,Output,Json", + "doc": "The model extends from a model that spread Record with the different known property type", + "decorators": [], + "baseModel": { + "$ref": "233" }, - { - "$id": "877", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "878", - "name": "put", - "resourceName": "ExtendsDifferentSpreadModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "879", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "246", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "114" + "$id": "247", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "202" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "880", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "320" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } + } + ] + }, + { + "$id": "248", + "kind": "model", + "name": "MultipleSpreadRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpreadRecord", + "usage": "Input,Output,Json", + "doc": "The model spread Record and Record", + "decorators": [], + "additionalProperties": { + "$id": "249", + "kind": "union", + "name": "MultipleSpreadRecordAdditionalProperty", + "variantTypes": [ + { + "$id": "250", + "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": "881", - "statusCodes": [ - 204 - ], - "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", + { + "$id": "251", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", "decorators": [] - }, - "parameters": [ - { - "$id": "882", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "320" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + }, + "properties": [ { - "$id": "883", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "252", + "kind": "property", + "name": "flag", + "serializedName": "flag", + "doc": "The name property", + "type": { + "$id": "253", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpreadRecord.flag", + "serializationOptions": { + "json": { + "name": "flag" + } + } } - ], - "response": { - "$id": "884" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put" - } - ], - "parameters": [ - { - "$id": "885", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "886", - "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": "887", - "type": { - "$id": "888", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", - "apiVersions": [], - "parent": { - "$ref": "390" - } + ] }, { - "$id": "889", - "kind": "client", - "name": "MultipleSpread", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "890", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "891", - "name": "get", - "resourceName": "MultipleSpread", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "892", - "name": "accept", - "nameInRequest": "Accept", + "$id": "254", + "kind": "model", + "name": "SpreadRecordForUnion", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForUnion", + "usage": "Input,Output,Json", + "doc": "The model spread Record", + "decorators": [], + "additionalProperties": { + "$id": "255", + "kind": "union", + "name": "SpreadRecordForUnionAdditionalProperty", + "variantTypes": [ + { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "257", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "properties": [ + { + "$id": "258", + "kind": "property", + "name": "flag", + "serializedName": "flag", + "doc": "The name property", "type": { - "$ref": "116" + "$id": "259", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "893", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "325" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForUnion.flag", + "serializationOptions": { + "json": { + "name": "flag" + } + } + } + ] + }, + { + "$id": "260", + "kind": "model", + "name": "SpreadRecordForNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion", + "usage": "Input,Output,Json", + "doc": "The model spread Record", + "decorators": [], + "additionalProperties": { + "$id": "261", + "kind": "union", + "name": "SpreadRecordForNonDiscriminatedUnionAdditionalProperty", + "variantTypes": [ + { + "$id": "262", + "kind": "model", + "name": "WidgetData0", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "263", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "119" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "264", + "kind": "property", + "name": "fooProp", + "serializedName": "fooProp", + "type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0.fooProp", + "serializationOptions": { + "json": { + "name": "fooProp" + } + } + } + ] }, - "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", + { + "$id": "266", + "kind": "model", + "name": "WidgetData1", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "267", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "121" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "268", + "kind": "property", + "name": "start", + "serializedName": "start", + "type": { + "$id": "269", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.start", + "serializationOptions": { + "json": { + "name": "start" + } + } + }, + { + "$id": "271", + "kind": "property", + "name": "end", + "serializedName": "end", + "type": { + "$id": "272", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.end", + "serializationOptions": { + "json": { + "name": "end" + } + } + } + ] + } + ], + "namespace": "", "decorators": [] - }, - "parameters": [ - { - "$id": "894", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "895", - "type": { - "$ref": "325" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get" }, - { - "$id": "896", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "897", - "name": "put", - "resourceName": "MultipleSpread", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "898", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "274", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "118" + "$id": "275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "899", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "325" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$ref": "262" + }, + { + "$ref": "266" + }, + { + "$id": "276", + "kind": "model", + "name": "SpreadRecordForNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion2", + "usage": "Input,Output,Json", + "doc": "The model spread Record", + "decorators": [], + "additionalProperties": { + "$id": "277", + "kind": "union", + "name": "SpreadRecordForNonDiscriminatedUnion2AdditionalProperty", + "variantTypes": [ + { + "$id": "278", + "kind": "model", + "name": "WidgetData2", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "279", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "type": { + "$ref": "127" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "280", + "kind": "property", + "name": "start", + "serializedName": "start", + "type": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2.start", + "serializationOptions": { + "json": { + "name": "start" + } + } + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "900", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/multipleSpreadRecord", - "requestMediaTypes": [ - "application/json" + { + "$ref": "266" + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", + "namespace": "", "decorators": [] - }, - "parameters": [ - { - "$id": "901", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "325" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + }, + "properties": [ { - "$id": "902", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "118" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "903" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put" - } - ], - "parameters": [ - { - "$id": "904", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "905", - "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": "906", - "type": { - "$id": "907", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "908", - "kind": "client", - "name": "SpreadRecordUnion", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "909", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "910", - "name": "get", - "resourceName": "SpreadRecordUnion", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "911", - "name": "accept", - "nameInRequest": "Accept", + "$id": "282", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "120" + "$id": "283", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "912", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "333" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion2.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$ref": "278" + }, + { + "$id": "284", + "kind": "model", + "name": "SpreadRecordForNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3", + "usage": "Input,Output,Json", + "doc": "The model spread Record", + "decorators": [], + "additionalProperties": { + "$id": "285", + "kind": "union", + "name": "SpreadRecordForNonDiscriminatedUnion3AdditionalProperty", + "variantTypes": [ + { + "$id": "286", + "kind": "array", + "name": "ArrayWidgetData2", + "valueType": { + "$ref": "278" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$ref": "266" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordUnion", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", + "namespace": "", "decorators": [] - }, - "parameters": [ - { - "$id": "913", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "914", - "type": { - "$ref": "333" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get" }, - { - "$id": "915", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "916", - "name": "put", - "resourceName": "SpreadRecordUnion", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "917", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "287", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "122" + "$id": "288", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "918", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "289", + "kind": "client", + "name": "AdditionalPropertiesClient", + "namespace": "Type.Property.AdditionalProperties", + "doc": "Tests for additional properties of models", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "333" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", + "apiVersions": [], + "children": [ + { + "$id": "290", + "kind": "client", + "name": "ExtendsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "291", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "292", + "name": "get", + "resourceName": "ExtendsUnknown", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "293", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "294", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "135" + }, + "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": [] + }, + "parameters": [ + { + "$id": "295", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "135" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get" + }, + { + "$id": "296", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "297", + "name": "put", + "resourceName": "ExtendsUnknown", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "298", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "299", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "135" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "300", + "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": [] + }, + "parameters": [ + { + "$id": "301", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "135" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "302", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "919", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "303", + "kind": "client", + "name": "ExtendsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "304", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "305", + "name": "get", + "resourceName": "ExtendsUnknownDerived", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "306", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "307", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "139" + }, + "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": [] + }, + "parameters": [ + { + "$id": "308", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "139" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get" + }, + { + "$id": "309", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "310", + "name": "put", + "resourceName": "ExtendsUnknownDerived", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "311", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "312", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "139" + }, + "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": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "314", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "139" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "315", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "920", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "333" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "316", + "kind": "client", + "name": "ExtendsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "317", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "318", + "name": "get", + "resourceName": "ExtendsUnknownDiscriminated", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "319", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "320", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "144" + }, + "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": [] + }, + "parameters": [ + { + "$id": "321", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "144" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get" + }, + { + "$id": "322", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "323", + "name": "put", + "resourceName": "ExtendsUnknownDiscriminated", + "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": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "325", + "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": "326", + "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": [] + }, + "parameters": [ + { + "$id": "327", + "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 + }, + { + "$id": "328", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, { - "$id": "921", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "922" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put" - } - ], - "parameters": [ - { - "$id": "923", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "924", - "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": "925", - "type": { - "$id": "926", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "329", + "kind": "client", + "name": "IsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "330", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "331", + "name": "get", + "resourceName": "IsUnknown", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "332", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "333", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "156" + }, + "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": [] + }, + "parameters": [ + { + "$id": "334", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "156" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get" + }, + { + "$id": "335", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "336", + "name": "put", + "resourceName": "IsUnknown", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "337", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "338", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "156" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "339", + "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": [] + }, + "parameters": [ + { + "$id": "340", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "156" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "341", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "927", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "928", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "929", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "930", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "342", + "kind": "client", + "name": "IsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "343", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "344", + "name": "get", + "resourceName": "IsUnknownDerived", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "345", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "346", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "160" + }, + "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": [] + }, + "parameters": [ + { + "$id": "347", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "160" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get" + }, + { + "$id": "348", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "349", + "name": "put", + "resourceName": "IsUnknownDerived", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "350", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "351", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "160" + }, + "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": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordUnknownDerived", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "353", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "160" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "354", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "931", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "355", + "kind": "client", + "name": "IsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "356", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "357", + "name": "get", + "resourceName": "IsUnknownDiscriminated", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "358", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "359", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "165" + }, + "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": [] + }, + "parameters": [ + { + "$id": "360", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "165" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get" + }, + { + "$id": "361", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "362", + "name": "put", + "resourceName": "IsUnknownDiscriminated", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "363", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "364", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "165" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "365", + "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": [] + }, + "parameters": [ + { + "$id": "366", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "165" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "367", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put" + } ], - "bodyType": { - "$ref": "341" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "932", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "933", - "type": { - "$ref": "341" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get" - }, - { - "$id": "934", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "935", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "936", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "368", + "kind": "client", + "name": "ExtendsString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "369", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "370", + "name": "get", + "resourceName": "ExtendsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "371", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "372", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "177" + }, + "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": [] + }, + "parameters": [ + { + "$id": "373", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "177" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get" + }, + { + "$id": "374", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "375", + "name": "put", + "resourceName": "ExtendsString", + "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": { + "$ref": "31" + }, + "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": "177" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "378", + "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": [] + }, + "parameters": [ + { + "$id": "379", + "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 + }, + { + "$id": "380", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "937", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "341" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "381", + "kind": "client", + "name": "IsString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "382", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "383", + "name": "get", + "resourceName": "IsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "384", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "385", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "181" + }, + "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": [] + }, + "parameters": [ + { + "$id": "386", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "181" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get" + }, + { + "$id": "387", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "388", + "name": "put", + "resourceName": "IsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "389", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "390", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "181" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "391", + "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": [] + }, + "parameters": [ + { + "$id": "392", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "181" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "393", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "938", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "394", + "kind": "client", + "name": "SpreadString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "395", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "396", + "name": "get", + "resourceName": "SpreadString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "397", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "398", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "185" + }, + "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": [] + }, + "parameters": [ + { + "$id": "399", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "185" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get" + }, + { + "$id": "400", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "401", + "name": "put", + "resourceName": "SpreadString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "402", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "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": "185" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "404", + "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": [] + }, + "parameters": [ + { + "$id": "405", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "185" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "406", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "939", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "341" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "407", + "kind": "client", + "name": "ExtendsFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "408", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "409", + "name": "get", + "resourceName": "ExtendsFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "410", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "411", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "189" + }, + "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": [] + }, + "parameters": [ + { + "$id": "412", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "189" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get" + }, + { + "$id": "413", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "414", + "name": "put", + "resourceName": "ExtendsFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "415", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "416", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "189" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "417", + "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": [] + }, + "parameters": [ + { + "$id": "418", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "189" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "419", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, { - "$id": "940", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "941" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put" - } - ], - "parameters": [ - { - "$id": "942", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "943", - "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": "944", - "type": { - "$id": "945", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "420", + "kind": "client", + "name": "IsFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "421", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "422", + "name": "get", + "resourceName": "IsFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "423", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "424", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "193" + }, + "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": [] + }, + "parameters": [ + { + "$id": "425", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "193" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get" + }, + { + "$id": "426", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "427", + "name": "put", + "resourceName": "IsFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "428", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "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": "193" + }, + "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/additionalProperties/isRecordFloat", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "431", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "193" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "432", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "946", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion2", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "947", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "948", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion2", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "949", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "433", + "kind": "client", + "name": "SpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "434", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "435", + "name": "get", + "resourceName": "SpreadFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "436", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "437", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "197" + }, + "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": [] + }, + "parameters": [ + { + "$id": "438", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "197" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get" + }, + { + "$id": "439", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "440", + "name": "put", + "resourceName": "SpreadFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "441", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "442", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "197" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "443", + "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": [] + }, + "parameters": [ + { + "$id": "444", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "197" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "445", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "950", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "446", + "kind": "client", + "name": "ExtendsModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "447", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "448", + "name": "get", + "resourceName": "ExtendsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "449", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "450", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "201" + }, + "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": [] + }, + "parameters": [ + { + "$id": "451", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "201" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get" + }, + { + "$id": "452", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "453", + "name": "put", + "resourceName": "ExtendsModel", + "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": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "455", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "201" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "456", + "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": [] + }, + "parameters": [ + { + "$id": "457", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "201" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "458", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put" + } ], - "bodyType": { - "$ref": "369" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "951", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "952", - "type": { - "$ref": "369" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get" - }, - { - "$id": "953", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "954", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion2", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "955", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "459", + "kind": "client", + "name": "IsModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "460", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "461", + "name": "get", + "resourceName": "IsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "462", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "463", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "206" + }, + "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": [] + }, + "parameters": [ + { + "$id": "464", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "206" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get" + }, + { + "$id": "465", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "466", + "name": "put", + "resourceName": "IsModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "467", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "468", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "206" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "469", + "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": [] + }, + "parameters": [ + { + "$id": "470", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "206" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "471", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "956", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "369" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "472", + "kind": "client", + "name": "SpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "473", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "474", + "name": "get", + "resourceName": "SpreadModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "475", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "476", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "208" + }, + "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": [] + }, + "parameters": [ + { + "$id": "477", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "208" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get" + }, + { + "$id": "478", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "479", + "name": "put", + "resourceName": "SpreadModel", + "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": { + "$ref": "63" + }, + "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": "208" + }, + "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/spreadRecordModel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "483", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "208" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "484", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "957", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "485", + "kind": "client", + "name": "ExtendsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "486", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "487", + "name": "get", + "resourceName": "ExtendsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "488", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "489", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "210" + }, + "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": [] + }, + "parameters": [ + { + "$id": "490", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "210" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get" + }, + { + "$id": "491", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "492", + "name": "put", + "resourceName": "ExtendsModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "493", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "494", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "210" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "495", + "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": [] + }, + "parameters": [ + { + "$id": "496", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "210" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "497", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "958", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "369" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "498", + "kind": "client", + "name": "IsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "499", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "500", + "name": "get", + "resourceName": "IsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "501", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "502", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "214" + }, + "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": [] + }, + "parameters": [ + { + "$id": "503", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "214" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get" + }, + { + "$id": "504", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "505", + "name": "put", + "resourceName": "IsModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "506", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "507", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "214" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "508", + "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": [] + }, + "parameters": [ + { + "$id": "509", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "214" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "510", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, { - "$id": "959", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "960" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put" - } - ], - "parameters": [ - { - "$id": "961", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "962", - "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": "963", - "type": { - "$id": "964", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "511", + "kind": "client", + "name": "SpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "512", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "513", + "name": "get", + "resourceName": "SpreadModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "514", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "515", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "218" + }, + "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": [] + }, + "parameters": [ + { + "$id": "516", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "218" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get" + }, + { + "$id": "517", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "518", + "name": "put", + "resourceName": "SpreadModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "519", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "520", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "218" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "521", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "522", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "218" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "523", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", - "apiVersions": [], - "parent": { - "$ref": "390" - } - }, - { - "$id": "965", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion3", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "966", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "967", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion3", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "968", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "524", + "kind": "client", + "name": "SpreadDifferentString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "525", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "526", + "name": "get", + "resourceName": "SpreadDifferentString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "527", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "528", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "222" + }, + "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": [] + }, + "parameters": [ + { + "$id": "529", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "222" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get" + }, + { + "$id": "530", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "531", + "name": "put", + "resourceName": "SpreadDifferentString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "532", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "533", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "222" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "534", + "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": [] + }, + "parameters": [ + { + "$id": "535", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "222" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "536", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "969", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "537", + "kind": "client", + "name": "SpreadDifferentFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "538", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "539", + "name": "get", + "resourceName": "SpreadDifferentFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "540", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "541", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "226" + }, + "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": [] + }, + "parameters": [ + { + "$id": "542", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "226" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get" + }, + { + "$id": "543", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "544", + "name": "put", + "resourceName": "SpreadDifferentFloat", + "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": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "546", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "226" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "547", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "548", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "226" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "549", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put" + } ], - "bodyType": { - "$ref": "383" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "970", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "971", - "type": { - "$ref": "383" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get" - }, - { - "$id": "972", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "973", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion3", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "974", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "550", + "kind": "client", + "name": "SpreadDifferentModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "551", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "552", + "name": "get", + "resourceName": "SpreadDifferentModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "553", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "554", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "230" + }, + "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": [] + }, + "parameters": [ + { + "$id": "555", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "230" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get" + }, + { + "$id": "556", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "557", + "name": "put", + "resourceName": "SpreadDifferentModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "558", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "559", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "230" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "560", + "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": [] + }, + "parameters": [ + { + "$id": "561", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "230" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "562", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "975", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "383" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "563", + "kind": "client", + "name": "SpreadDifferentModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "564", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "565", + "name": "get", + "resourceName": "SpreadDifferentModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "566", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "567", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "233" + }, + "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": [] + }, + "parameters": [ + { + "$id": "568", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "233" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get" + }, + { + "$id": "569", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "570", + "name": "put", + "resourceName": "SpreadDifferentModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "571", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "572", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "233" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "573", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "574", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "233" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "575", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "976", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "576", + "kind": "client", + "name": "ExtendsDifferentSpreadString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "577", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "578", + "name": "get", + "resourceName": "ExtendsDifferentSpreadString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "579", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "580", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "237" + }, + "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": [] + }, + "parameters": [ + { + "$id": "581", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "237" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get" + }, + { + "$id": "582", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "583", + "name": "put", + "resourceName": "ExtendsDifferentSpreadString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "584", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "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": "237" + }, + "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/extendsDifferentSpreadString", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "587", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "237" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "588", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, { - "$id": "977", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "383" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "589", + "kind": "client", + "name": "ExtendsDifferentSpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "590", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "591", + "name": "get", + "resourceName": "ExtendsDifferentSpreadFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "592", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "593", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "240" + }, + "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": [] + }, + "parameters": [ + { + "$id": "594", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "240" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get" + }, + { + "$id": "595", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "596", + "name": "put", + "resourceName": "ExtendsDifferentSpreadFloat", + "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": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "598", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "240" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "599", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "600", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "240" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "601", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, { - "$id": "978", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "979" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put" - } - ], - "parameters": [ - { - "$id": "980", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "981", - "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": "982", - "type": { - "$id": "983", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "602", + "kind": "client", + "name": "ExtendsDifferentSpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "603", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "604", + "name": "get", + "resourceName": "ExtendsDifferentSpreadModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "605", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "606", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "243" + }, + "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": [] + }, + "parameters": [ + { + "$id": "607", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "243" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get" + }, + { + "$id": "608", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "609", + "name": "put", + "resourceName": "ExtendsDifferentSpreadModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "610", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "103" + }, + "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": "243" + }, + "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/additionalProperties/extendsDifferentSpreadModel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "613", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "243" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "614", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", + "apiVersions": [], + "parent": { + "$ref": "289" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", - "apiVersions": [], - "parent": { - "$ref": "390" - } + { + "$id": "615", + "kind": "client", + "name": "ExtendsDifferentSpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "616", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "617", + "name": "get", + "resourceName": "ExtendsDifferentSpreadModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "618", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "619", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "245" + }, + "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": [] + }, + "parameters": [ + { + "$id": "620", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "245" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get" + }, + { + "$id": "621", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "622", + "name": "put", + "resourceName": "ExtendsDifferentSpreadModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "623", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "624", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "245" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "625", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "626", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "245" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "627", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "628", + "kind": "client", + "name": "MultipleSpread", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "629", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "630", + "name": "get", + "resourceName": "MultipleSpread", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "631", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "109" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "632", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "248" + }, + "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": [] + }, + "parameters": [ + { + "$id": "633", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "109" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "248" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get" + }, + { + "$id": "634", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "635", + "name": "put", + "resourceName": "MultipleSpread", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "636", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "637", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "248" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "638", + "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": [] + }, + "parameters": [ + { + "$id": "639", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "248" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "640", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "641", + "kind": "client", + "name": "SpreadRecordUnion", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "642", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "643", + "name": "get", + "resourceName": "SpreadRecordUnion", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "644", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "645", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "254" + }, + "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": [] + }, + "parameters": [ + { + "$id": "646", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "254" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get" + }, + { + "$id": "647", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "648", + "name": "put", + "resourceName": "SpreadRecordUnion", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "649", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "650", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "254" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "651", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "652", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "254" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "653", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "654", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "655", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "656", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "657", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "658", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "260" + }, + "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": [] + }, + "parameters": [ + { + "$id": "659", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "260" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get" + }, + { + "$id": "660", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "661", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion", + "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": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "663", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "260" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "664", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "665", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "260" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "666", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "667", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "668", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "669", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion2", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "670", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "671", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "276" + }, + "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": [] + }, + "parameters": [ + { + "$id": "672", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "276" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get" + }, + { + "$id": "673", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "674", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion2", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "675", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "676", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "276" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "677", + "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": [] + }, + "parameters": [ + { + "$id": "678", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "276" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "679", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", + "apiVersions": [], + "parent": { + "$ref": "289" + } + }, + { + "$id": "680", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "681", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "682", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion3", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "683", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "684", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "284" + }, + "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": [] + }, + "parameters": [ + { + "$id": "685", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "284" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get" + }, + { + "$id": "686", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "687", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion3", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "688", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "689", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "284" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "690", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "691", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "284" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "692", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "apiVersions": [], + "parent": { + "$ref": "289" + } + } + ] } - ] - } - ] + ] } 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 eb675bd24f5..c0309656f70 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 @@ -1,4478 +1,4373 @@ { - "$id": "1", - "name": "Type.Property.Nullable", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "getNonNullContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "getNullContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "PatchNonNullRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "PatchNonNullRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "PatchNonNullRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "PatchNonNullRequestContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "getNonNullContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "getNullContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "PatchNonNullRequestContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "PatchNonNullRequestContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "PatchNonNullRequestContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "PatchNonNullRequestContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "getNonNullContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "getNullContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "PatchNonNullRequestContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "PatchNonNullRequestContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "PatchNonNullRequestContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "PatchNonNullRequestContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "getNonNullContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "getNullContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "PatchNonNullRequestContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "PatchNonNullRequestContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "PatchNonNullRequestContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "PatchNonNullRequestContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "getNonNullContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "getNullContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "54", - "kind": "constant", - "name": "PatchNonNullRequestContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "PatchNonNullRequestContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "58", - "kind": "constant", - "name": "PatchNonNullRequestContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "60", - "kind": "constant", - "name": "PatchNonNullRequestContentType19", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "62", - "kind": "constant", - "name": "getNonNullContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "64", - "kind": "constant", - "name": "getNullContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "66", - "kind": "constant", - "name": "PatchNonNullRequestContentType20", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "68", - "kind": "constant", - "name": "PatchNonNullRequestContentType21", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "70", - "kind": "constant", - "name": "PatchNonNullRequestContentType22", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "72", - "kind": "constant", - "name": "PatchNonNullRequestContentType23", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "getNonNullContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "getNullContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "PatchNonNullRequestContentType24", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "PatchNonNullRequestContentType25", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "PatchNonNullRequestContentType26", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "PatchNonNullRequestContentType27", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - } - ], - "models": [ - { - "$id": "86", - "kind": "model", - "name": "StringProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Template type for testing models with nullable property. Pass in the type of the property you are looking for", - "decorators": [], - "properties": [ + "name": "Type.Property.Nullable", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "87", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "getNonNullContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty.requiredProperty", - "serializationOptions": { - "$id": "89", - "json": { - "$id": "90", - "name": "requiredProperty" - } - } }, { - "$id": "91", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "92", - "kind": "nullable", - "type": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "3", + "kind": "constant", + "name": "getNullContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty.nullableProperty", - "serializationOptions": { - "$id": "94", - "json": { - "$id": "95", - "name": "nullableProperty" - } - } - } - ] - }, - { - "$id": "96", - "kind": "model", - "name": "BytesProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Template type for testing models with nullable property. Pass in the type of the property you are looking for", - "decorators": [], - "properties": [ - { - "$id": "97", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty.requiredProperty", - "serializationOptions": { - "$id": "99", - "json": { - "$id": "100", - "name": "requiredProperty" - } - } }, { - "$id": "101", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "102", - "kind": "nullable", - "type": { - "$id": "103", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "5", + "kind": "constant", + "name": "PatchNonNullRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty.nullableProperty", - "serializationOptions": { - "$id": "104", - "json": { - "$id": "105", - "name": "nullableProperty" - } - } - } - ] - }, - { - "$id": "106", - "kind": "model", - "name": "DatetimeProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Model with a datetime property", - "decorators": [], - "properties": [ - { - "$id": "107", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty.requiredProperty", - "serializationOptions": { - "$id": "109", - "json": { - "$id": "110", - "name": "requiredProperty" - } - } }, { - "$id": "111", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "112", - "kind": "nullable", - "type": { - "$id": "113", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "114", + "$id": "7", + "kind": "constant", + "name": "PatchNonNullRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty.nullableProperty", - "serializationOptions": { - "$id": "115", - "json": { - "$id": "116", - "name": "nullableProperty" - } - } - } - ] - }, - { - "$id": "117", - "kind": "model", - "name": "DurationProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Model with a duration property", - "decorators": [], - "properties": [ - { - "$id": "118", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty.requiredProperty", - "serializationOptions": { - "$id": "120", - "json": { - "$id": "121", - "name": "requiredProperty" - } - } }, { - "$id": "122", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "123", - "kind": "nullable", - "type": { - "$id": "124", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "125", + "$id": "9", + "kind": "constant", + "name": "PatchNonNullRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty.nullableProperty", - "serializationOptions": { - "$id": "126", - "json": { - "$id": "127", - "name": "nullableProperty" - } - } - } - ] - }, - { - "$id": "128", - "kind": "model", - "name": "CollectionsByteProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Model with collection bytes properties", - "decorators": [], - "properties": [ + "value": "application/merge-patch+json", + "decorators": [] + }, { - "$id": "129", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "11", + "kind": "constant", + "name": "PatchNonNullRequestContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty.requiredProperty", - "serializationOptions": { - "$id": "131", - "json": { - "$id": "132", - "name": "requiredProperty" - } - } }, { - "$id": "133", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "134", - "kind": "nullable", - "type": { - "$id": "135", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "136", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "13", + "kind": "constant", + "name": "getNonNullContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty.nullableProperty", - "serializationOptions": { - "$id": "137", - "json": { - "$id": "138", - "name": "nullableProperty" - } - } - } - ] - }, - { - "$id": "139", - "kind": "model", - "name": "CollectionsModelProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Model with collection models properties", - "decorators": [], - "properties": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "140", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "15", + "kind": "constant", + "name": "getNullContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty.requiredProperty", - "serializationOptions": { - "$id": "142", - "json": { - "$id": "143", - "name": "requiredProperty" - } - } }, { - "$id": "144", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "145", - "kind": "nullable", - "type": { - "$id": "146", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$id": "147", - "kind": "model", - "name": "InnerModel", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.InnerModel", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Inner model used in collections model property", - "decorators": [], - "properties": [ - { - "$id": "148", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Inner model property", - "type": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.InnerModel.property", - "serializationOptions": { - "$id": "150", - "json": { - "$id": "151", - "name": "property" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "17", + "kind": "constant", + "name": "PatchNonNullRequestContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty.nullableProperty", - "serializationOptions": { - "$id": "152", - "json": { - "$id": "153", - "name": "nullableProperty" - } - } - } - ] - }, - { - "$ref": "147" - }, - { - "$id": "154", - "kind": "model", - "name": "CollectionsStringProperty", - "namespace": "Type.Property.Nullable", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty", - "usage": "Input,Output,JsonMergePatch,Json", - "doc": "Model with collection string properties", - "decorators": [], - "properties": [ + "value": "application/merge-patch+json", + "decorators": [] + }, { - "$id": "155", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "Required property", - "type": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "19", + "kind": "constant", + "name": "PatchNonNullRequestContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty.requiredProperty", - "serializationOptions": { - "$id": "157", - "json": { - "$id": "158", - "name": "requiredProperty" - } - } }, { - "$id": "159", - "kind": "property", - "name": "nullableProperty", - "serializedName": "nullableProperty", - "doc": "Property", - "type": { - "$id": "160", - "kind": "nullable", - "type": { - "$id": "161", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "162", + "$id": "21", + "kind": "constant", + "name": "PatchNonNullRequestContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty.nullableProperty", - "serializationOptions": { - "$id": "163", - "json": { - "$id": "164", - "name": "nullableProperty" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "165", - "kind": "client", - "name": "NullableClient", - "namespace": "Type.Property.Nullable", - "doc": "Illustrates models with nullable properties.", - "methods": [], - "parameters": [ + "value": "application/merge-patch+json", + "decorators": [] + }, { - "$id": "166", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "167", - "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": "168", - "type": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "23", + "kind": "constant", + "name": "PatchNonNullRequestContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable", - "apiVersions": [], - "children": [ + "value": "application/merge-patch+json", + "decorators": [] + }, { - "$id": "170", - "kind": "client", - "name": "String", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "171", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "172", - "name": "getNonNull", - "resourceName": "String", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "173", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "174", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "86" - }, - "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", + "$id": "25", + "kind": "constant", + "name": "getNonNullContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "175", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "176", - "type": { - "$ref": "86" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull" }, - { - "$id": "177", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "178", - "name": "getNull", - "resourceName": "String", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "179", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "180", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "86" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "getNullContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "181", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "182", - "type": { - "$ref": "86" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull" }, - { - "$id": "183", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "184", - "name": "patchNonNull", - "resourceName": "String", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "185", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "6" - }, - "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": "86" - }, - "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/string/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", + "value": "application/json", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "PatchNonNullRequestContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "188", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "189", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "190" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull" }, - { - "$id": "191", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "192", - "name": "patchNull", - "resourceName": "String", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "193", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "194", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "195", - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "PatchNonNullRequestContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "196", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "197", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "198" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull" - } - ], - "parameters": [ - { - "$id": "199", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "200", - "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": "201", - "type": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String", - "apiVersions": [], - "parent": { - "$ref": "165" - } + }, + "value": "application/merge-patch+json", + "decorators": [] }, { - "$id": "203", - "kind": "client", - "name": "Bytes", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "204", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "205", - "name": "getNonNull", - "resourceName": "Bytes", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "206", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "207", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "96" - }, - "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", + "$id": "33", + "kind": "constant", + "name": "PatchNonNullRequestContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "208", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "209", - "type": { - "$ref": "96" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull" }, - { - "$id": "210", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "211", - "name": "getNull", - "resourceName": "Bytes", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "212", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "213", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "96" - }, - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "35", + "kind": "constant", + "name": "PatchNonNullRequestContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "214", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "215", - "type": { - "$ref": "96" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull" }, - { - "$id": "216", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "217", - "name": "patchNonNull", - "resourceName": "Bytes", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "218", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "18" - }, - "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": "96" - }, - "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/bytes/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "37", + "kind": "constant", + "name": "getNonNullContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "221", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "222", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "96" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "223" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull" }, - { - "$id": "224", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "225", - "name": "patchNull", - "resourceName": "Bytes", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "226", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "227", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "96" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "228", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "getNullContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "229", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "230", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "96" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "231" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull" - } - ], - "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": "Type.Property.Nullable.Bytes", - "apiVersions": [], - "parent": { - "$ref": "165" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "236", - "kind": "client", - "name": "Datetime", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "237", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "238", - "name": "getNonNull", - "resourceName": "Datetime", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "239", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "240", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "106" - }, - "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", + "$id": "41", + "kind": "constant", + "name": "PatchNonNullRequestContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "241", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "242", - "type": { - "$ref": "106" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull" }, - { - "$id": "243", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "244", - "name": "getNull", - "resourceName": "Datetime", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "246", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "106" - }, - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "43", + "kind": "constant", + "name": "PatchNonNullRequestContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "247", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "248", - "type": { - "$ref": "106" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull" }, - { - "$id": "249", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "250", - "name": "patchNonNull", - "resourceName": "Datetime", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "251", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "30" - }, - "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": "106" - }, - "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": "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "45", + "kind": "constant", + "name": "PatchNonNullRequestContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "254", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "255", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "106" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "256" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull" }, - { - "$id": "257", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "258", - "name": "patchNull", - "resourceName": "Datetime", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "259", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "260", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "106" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "261", - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", + "name": "PatchNonNullRequestContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "262", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "263", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "106" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "264" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull" - } - ], - "parameters": [ - { - "$id": "265", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "266", - "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": "267", - "type": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", - "apiVersions": [], - "parent": { - "$ref": "165" - } + }, + "value": "application/merge-patch+json", + "decorators": [] }, { - "$id": "269", - "kind": "client", - "name": "Duration", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "270", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "271", - "name": "getNonNull", - "resourceName": "Duration", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "272", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "273", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "117" - }, - "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", + "$id": "49", + "kind": "constant", + "name": "getNonNullContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "274", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "275", - "type": { - "$ref": "117" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull" }, - { - "$id": "276", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "277", - "name": "getNull", - "resourceName": "Duration", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "278", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "279", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "117" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "51", + "kind": "constant", + "name": "getNullContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "280", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "281", - "type": { - "$ref": "117" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull" }, - { - "$id": "282", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "283", - "name": "patchNonNull", - "resourceName": "Duration", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "284", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "285", - "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": "286", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "53", + "kind": "constant", + "name": "PatchNonNullRequestContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "287", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "288", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "117" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "289" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull" }, - { - "$id": "290", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "291", - "name": "patchNull", - "resourceName": "Duration", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "292", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "293", - "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": "294", - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "55", + "kind": "constant", + "name": "PatchNonNullRequestContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "295", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "296", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "117" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "297" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull" - } - ], - "parameters": [ - { - "$id": "298", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "299", - "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": "300", - "type": { - "$id": "301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", - "apiVersions": [], - "parent": { - "$ref": "165" - } + }, + "value": "application/merge-patch+json", + "decorators": [] }, { - "$id": "302", - "kind": "client", - "name": "CollectionsByte", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "303", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "304", - "name": "getNonNull", - "resourceName": "CollectionsByte", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "305", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "306", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "128" - }, - "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", + "$id": "57", + "kind": "constant", + "name": "PatchNonNullRequestContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "307", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "308", - "type": { - "$ref": "128" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull" }, - { - "$id": "309", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "310", - "name": "getNull", - "resourceName": "CollectionsByte", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "311", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "312", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "128" - }, - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "59", + "kind": "constant", + "name": "PatchNonNullRequestContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "313", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "314", - "type": { - "$ref": "128" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull" }, - { - "$id": "315", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "316", - "name": "patchNonNull", - "resourceName": "CollectionsByte", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "317", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "54" - }, - "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": "128" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "319", - "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", + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "61", + "kind": "constant", + "name": "getNonNullContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "320", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "321", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "128" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "322" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull" }, - { - "$id": "323", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "324", - "name": "patchNull", - "resourceName": "CollectionsByte", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "325", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "326", - "name": "body", - "nameInRequest": "body", + "value": "application/json", + "decorators": [] + }, + { + "$id": "63", + "kind": "constant", + "name": "getNullContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "65", + "kind": "constant", + "name": "PatchNonNullRequestContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "67", + "kind": "constant", + "name": "PatchNonNullRequestContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "69", + "kind": "constant", + "name": "PatchNonNullRequestContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "71", + "kind": "constant", + "name": "PatchNonNullRequestContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "73", + "kind": "constant", + "name": "getNonNullContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "75", + "kind": "constant", + "name": "getNullContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "77", + "kind": "constant", + "name": "PatchNonNullRequestContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "79", + "kind": "constant", + "name": "PatchNonNullRequestContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "81", + "kind": "constant", + "name": "PatchNonNullRequestContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + { + "$id": "83", + "kind": "constant", + "name": "PatchNonNullRequestContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + } + ], + "models": [ + { + "$id": "85", + "kind": "model", + "name": "StringProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Template type for testing models with nullable property. Pass in the type of the property you are looking for", + "decorators": [], + "properties": [ + { + "$id": "86", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", "type": { - "$ref": "128" + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "327", - "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": [] - }, - "parameters": [ - { - "$id": "328", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } }, { - "$id": "329", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "128" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "88", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", + "type": { + "$id": "89", + "kind": "nullable", + "type": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } } - ], - "response": { - "$id": "330" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull" - } - ], - "parameters": [ - { - "$id": "331", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "332", - "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": "333", - "type": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", - "apiVersions": [], - "parent": { - "$ref": "165" - } + ] }, { - "$id": "335", - "kind": "client", - "name": "CollectionsModel", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "336", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "337", - "name": "getNonNull", - "resourceName": "CollectionsModel", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "338", - "name": "accept", - "nameInRequest": "Accept", + "$id": "91", + "kind": "model", + "name": "BytesProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Template type for testing models with nullable property. Pass in the type of the property you are looking for", + "decorators": [], + "properties": [ + { + "$id": "92", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", "type": { - "$ref": "62" + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "339", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "139" - }, - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } + }, { - "$id": "340", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "341", - "type": { - "$ref": "139" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull" - }, - { - "$id": "342", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "343", - "name": "getNull", - "resourceName": "CollectionsModel", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "344", - "name": "accept", - "nameInRequest": "Accept", + "$id": "94", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", "type": { - "$ref": "64" + "$id": "95", + "kind": "nullable", + "type": { + "$id": "96", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "namespace": "" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "345", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "139" - }, - "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": [] - }, - "parameters": [ - { - "$id": "346", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "347", - "type": { - "$ref": "139" + "crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull" - }, - { - "$id": "348", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "349", - "name": "patchNonNull", - "resourceName": "CollectionsModel", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "350", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", + ] + }, + { + "$id": "97", + "kind": "model", + "name": "DatetimeProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Model with a datetime property", + "decorators": [], + "properties": [ + { + "$id": "98", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", "type": { - "$ref": "66" + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "351", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } + }, + { + "$id": "100", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", "type": { - "$ref": "139" + "$id": "101", + "kind": "nullable", + "type": { + "$id": "102", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "352", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } + } + ] + }, + { + "$id": "104", + "kind": "model", + "name": "DurationProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Model with a duration property", + "decorators": [], + "properties": [ { - "$id": "353", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "105", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", + "type": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } }, { - "$id": "354", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "139" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "355" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull" - }, - { - "$id": "356", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "357", - "name": "patchNull", - "resourceName": "CollectionsModel", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "358", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", + "$id": "107", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", "type": { - "$ref": "70" + "$id": "108", + "kind": "nullable", + "type": { + "$id": "109", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "namespace": "" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "359", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } + } + ] + }, + { + "$id": "111", + "kind": "model", + "name": "CollectionsByteProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Model with collection bytes properties", + "decorators": [], + "properties": [ + { + "$id": "112", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", "type": { - "$ref": "139" + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "360", - "statusCodes": [ - 204 - ], - "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": [] - }, - "parameters": [ - { - "$id": "361", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } }, { - "$id": "362", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "139" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "114", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", + "type": { + "$id": "115", + "kind": "nullable", + "type": { + "$id": "116", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "117", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } } - ], - "response": { - "$id": "363" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull" - } - ], - "parameters": [ - { - "$id": "364", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "365", - "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": "366", - "type": { - "$id": "367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", - "apiVersions": [], - "parent": { - "$ref": "165" - } + ] }, { - "$id": "368", - "kind": "client", - "name": "CollectionsString", - "namespace": "Type.Property.Nullable", - "methods": [ - { - "$id": "369", - "kind": "basic", - "name": "getNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "370", - "name": "getNonNull", - "resourceName": "CollectionsString", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "371", - "name": "accept", - "nameInRequest": "Accept", + "$id": "118", + "kind": "model", + "name": "CollectionsModelProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Model with collection models properties", + "decorators": [], + "properties": [ + { + "$id": "119", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", "type": { - "$ref": "74" + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "372", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "154" - }, - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } + }, { - "$id": "373", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "374", - "type": { - "$ref": "154" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull" - }, - { - "$id": "375", - "kind": "basic", - "name": "getNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "376", - "name": "getNull", - "resourceName": "CollectionsString", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "377", - "name": "accept", - "nameInRequest": "Accept", + "$id": "121", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", "type": { - "$ref": "76" + "$id": "122", + "kind": "nullable", + "type": { + "$id": "123", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$id": "124", + "kind": "model", + "name": "InnerModel", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.InnerModel", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Inner model used in collections model property", + "decorators": [], + "properties": [ + { + "$id": "125", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Inner model property", + "type": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.InnerModel.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "378", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "154" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } + } + ] + }, + { + "$ref": "124" + }, + { + "$id": "127", + "kind": "model", + "name": "CollectionsStringProperty", + "namespace": "Type.Property.Nullable", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Model with collection string properties", + "decorators": [], + "properties": [ + { + "$id": "128", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "Required property", + "type": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "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": [] - }, - "parameters": [ + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } + }, { - "$id": "379", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "380", - "type": { - "$ref": "154" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull" - }, - { - "$id": "381", - "kind": "basic", - "name": "patchNonNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "382", - "name": "patchNonNull", - "resourceName": "CollectionsString", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "383", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", + "$id": "130", + "kind": "property", + "name": "nullableProperty", + "serializedName": "nullableProperty", + "doc": "Property", "type": { - "$ref": "78" + "$id": "131", + "kind": "nullable", + "type": { + "$id": "132", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "384", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty.nullableProperty", + "serializationOptions": { + "json": { + "name": "nullableProperty" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "134", + "kind": "client", + "name": "NullableClient", + "namespace": "Type.Property.Nullable", + "doc": "Illustrates models with nullable properties.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "154" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "385", - "statusCodes": [ - 204 + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable", + "apiVersions": [], + "children": [ + { + "$id": "135", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "136", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "137", + "name": "getNonNull", + "resourceName": "String", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "138", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "139", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "85" + }, + "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": [] + }, + "parameters": [ + { + "$id": "140", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "85" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull" + }, + { + "$id": "141", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "142", + "name": "getNull", + "resourceName": "String", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "143", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "144", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "85" + }, + "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": [] + }, + "parameters": [ + { + "$id": "145", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "85" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull" + }, + { + "$id": "146", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "147", + "name": "patchNonNull", + "resourceName": "String", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "149", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "150", + "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": [] + }, + "parameters": [ + { + "$id": "151", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "152", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull" + }, + { + "$id": "153", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "154", + "name": "patchNull", + "resourceName": "String", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "155", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "156", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "157", + "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": [] + }, + "parameters": [ + { + "$id": "158", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "159", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.String", + "apiVersions": [], + "parent": { + "$ref": "134" + } + }, { - "$id": "386", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "160", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "161", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "162", + "name": "getNonNull", + "resourceName": "Bytes", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "163", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "164", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "91" + }, + "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": [] + }, + "parameters": [ + { + "$id": "165", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "91" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull" + }, + { + "$id": "166", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "167", + "name": "getNull", + "resourceName": "Bytes", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "168", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "169", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "91" + }, + "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": [] + }, + "parameters": [ + { + "$id": "170", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "91" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull" + }, + { + "$id": "171", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "172", + "name": "patchNonNull", + "resourceName": "Bytes", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "173", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "174", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "175", + "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": [] + }, + "parameters": [ + { + "$id": "176", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "177", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull" + }, + { + "$id": "178", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "179", + "name": "patchNull", + "resourceName": "Bytes", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "180", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "181", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "182", + "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": [] + }, + "parameters": [ + { + "$id": "183", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "184", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", + "apiVersions": [], + "parent": { + "$ref": "134" + } }, { - "$id": "387", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "154" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "388" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull" - }, - { - "$id": "389", - "kind": "basic", - "name": "patchNull", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "390", - "name": "patchNull", - "resourceName": "CollectionsString", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "391", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "185", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "186", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "187", + "name": "getNonNull", + "resourceName": "Datetime", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "188", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "189", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "97" + }, + "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": [] + }, + "parameters": [ + { + "$id": "190", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "97" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull" + }, + { + "$id": "191", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "192", + "name": "getNull", + "resourceName": "Datetime", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "193", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "194", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "97" + }, + "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": [] + }, + "parameters": [ + { + "$id": "195", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "97" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull" + }, + { + "$id": "196", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "197", + "name": "patchNonNull", + "resourceName": "Datetime", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "198", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "199", + "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": "200", + "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": [] + }, + "parameters": [ + { + "$id": "201", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "202", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull" + }, + { + "$id": "203", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "204", + "name": "patchNull", + "resourceName": "Datetime", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "205", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "206", + "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": "207", + "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": [] + }, + "parameters": [ + { + "$id": "208", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "209", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "392", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "154" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", + "apiVersions": [], + "parent": { + "$ref": "134" + } + }, + { + "$id": "210", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "211", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "212", + "name": "getNonNull", + "resourceName": "Duration", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "213", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "214", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "104" + }, + "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": [] + }, + "parameters": [ + { + "$id": "215", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "104" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull" + }, + { + "$id": "216", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "217", + "name": "getNull", + "resourceName": "Duration", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "218", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "219", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "104" + }, + "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": [] + }, + "parameters": [ + { + "$id": "220", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "104" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull" + }, + { + "$id": "221", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "222", + "name": "patchNonNull", + "resourceName": "Duration", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "223", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "224", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "225", + "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": [] + }, + "parameters": [ + { + "$id": "226", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "227", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull" + }, + { + "$id": "228", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "229", + "name": "patchNull", + "resourceName": "Duration", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "230", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "231", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "232", + "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": [] + }, + "parameters": [ + { + "$id": "233", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "234", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "393", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", + "apiVersions": [], + "parent": { + "$ref": "134" + } + }, + { + "$id": "235", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "236", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "237", + "name": "getNonNull", + "resourceName": "CollectionsByte", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "238", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "239", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "111" + }, + "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": [] + }, + "parameters": [ + { + "$id": "240", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "111" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull" + }, + { + "$id": "241", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "242", + "name": "getNull", + "resourceName": "CollectionsByte", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "243", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "244", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "111" + }, + "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": [] + }, + "parameters": [ + { + "$id": "245", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "111" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull" + }, + { + "$id": "246", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "247", + "name": "patchNonNull", + "resourceName": "CollectionsByte", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "249", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "250", + "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": [] + }, + "parameters": [ + { + "$id": "251", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "252", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull" + }, + { + "$id": "253", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "254", + "name": "patchNull", + "resourceName": "CollectionsByte", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "255", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "256", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "111" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "258", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "259", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", + "apiVersions": [], + "parent": { + "$ref": "134" + } + }, { - "$id": "394", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "260", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "261", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "262", + "name": "getNonNull", + "resourceName": "CollectionsModel", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "263", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "264", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "118" + }, + "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": [] + }, + "parameters": [ + { + "$id": "265", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "118" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull" + }, + { + "$id": "266", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "267", + "name": "getNull", + "resourceName": "CollectionsModel", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "268", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "269", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "118" + }, + "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": [] + }, + "parameters": [ + { + "$id": "270", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "118" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull" + }, + { + "$id": "271", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "272", + "name": "patchNonNull", + "resourceName": "CollectionsModel", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "273", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "274", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "118" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "275", + "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": [] + }, + "parameters": [ + { + "$id": "276", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "277", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "118" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull" + }, + { + "$id": "278", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "279", + "name": "patchNull", + "resourceName": "CollectionsModel", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "280", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "69" + }, + "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": "118" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "282", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "283", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "284", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "118" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "134" + } }, { - "$id": "395", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "154" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "285", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.Nullable", + "methods": [ + { + "$id": "286", + "kind": "basic", + "name": "getNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "287", + "name": "getNonNull", + "resourceName": "CollectionsString", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "288", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "289", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "127" + }, + "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": [] + }, + "parameters": [ + { + "$id": "290", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "127" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull" + }, + { + "$id": "291", + "kind": "basic", + "name": "getNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "292", + "name": "getNull", + "resourceName": "CollectionsString", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "293", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "294", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "127" + }, + "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": [] + }, + "parameters": [ + { + "$id": "295", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "127" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull" + }, + { + "$id": "296", + "kind": "basic", + "name": "patchNonNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "297", + "name": "patchNonNull", + "resourceName": "CollectionsString", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "298", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "299", + "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": "300", + "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": [] + }, + "parameters": [ + { + "$id": "301", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "302", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "127" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull" + }, + { + "$id": "303", + "kind": "basic", + "name": "patchNull", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "304", + "name": "patchNull", + "resourceName": "CollectionsString", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "305", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "81" + }, + "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": "127" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "308", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "309", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "127" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "apiVersions": [], + "parent": { + "$ref": "134" + } } - ], - "response": { - "$id": "396" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull" - } - ], - "parameters": [ - { - "$id": "397", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "398", - "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": "399", - "type": { - "$id": "400", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", - "apiVersions": [], - "parent": { - "$ref": "165" - } + ] } - ] - } - ] + ] } 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 86a216bd7a9..9f4be0afb41 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 @@ -1,9224 +1,9001 @@ { - "$id": "1", - "name": "Type.Property.Optional", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "UnionStringLiteralPropertyProperty", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property.anonymous", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Type.Property.Optional", + "apiVersions": [], + "enums": [ + { + "$id": "1", + "kind": "enum", + "name": "UnionStringLiteralPropertyProperty", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property.anonymous", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "hello", + "value": "hello", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "world", + "value": "world", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, { - "$id": "4", - "kind": "enumvalue", - "name": "hello", - "value": "hello", - "valueType": { "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "enum", + "name": "UnionIntLiteralPropertyProperty", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property.anonymous", + "valueType": { + "$id": "6", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "values": [ + { + "$id": "7", + "kind": "enumvalue", + "name": "1", + "value": 1, + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "2", + "value": 2, + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] }, { - "$id": "6", - "kind": "enumvalue", - "name": "world", - "value": "world", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "9", + "kind": "enum", + "name": "UnionFloatLiteralPropertyProperty", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property.anonymous", + "valueType": { + "$id": "10", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "values": [ + { + "$id": "11", + "kind": "enumvalue", + "name": "1.25", + "value": 1.25, + "valueType": { + "$ref": "10" + }, + "enumType": { + "$ref": "9" + }, + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "2.375", + "value": 2.375, + "valueType": { + "$ref": "10" + }, + "enumType": { + "$ref": "9" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "8", - "kind": "enum", - "name": "UnionIntLiteralPropertyProperty", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property.anonymous", - "valueType": { - "$id": "9", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ + ], + "constants": [ { - "$id": "10", - "kind": "enumvalue", - "name": "1", - "value": 1, - "valueType": { - "$id": "11", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "13", + "kind": "constant", + "name": "getAllContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "8" - }, - "decorators": [] }, { - "$id": "12", - "kind": "enumvalue", - "name": "2", - "value": 2, - "valueType": { - "$id": "13", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "15", + "kind": "constant", + "name": "getDefaultContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "8" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "14", - "kind": "enum", - "name": "UnionFloatLiteralPropertyProperty", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property.anonymous", - "valueType": { - "$id": "15", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ + }, { - "$id": "16", - "kind": "enumvalue", - "name": "1.25", - "value": 1.25, - "valueType": { "$id": "17", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "constant", + "name": "putAllContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "14" - }, - "decorators": [] }, { - "$id": "18", - "kind": "enumvalue", - "name": "2.375", - "value": 2.375, - "valueType": { "$id": "19", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "constant", + "name": "putDefaultContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "14" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - } - ], - "constants": [ - { - "$id": "20", - "kind": "constant", - "name": "StringLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "hello", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "IntLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", - "valueType": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 1, - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "FloatLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", - "valueType": { - "$id": "25", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 1.25, - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "BooleanLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", - "valueType": { - "$id": "27", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "getAllContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "getDefaultContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "putAllContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "putDefaultContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "getAllContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "getDefaultContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "putAllContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "putDefaultContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "getAllContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "getDefaultContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "putAllContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "putDefaultContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "getAllContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "54", - "kind": "constant", - "name": "getDefaultContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "putAllContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "58", - "kind": "constant", - "name": "putDefaultContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "60", - "kind": "constant", - "name": "getAllContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "62", - "kind": "constant", - "name": "getDefaultContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "64", - "kind": "constant", - "name": "putAllContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "66", - "kind": "constant", - "name": "putDefaultContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "68", - "kind": "constant", - "name": "getAllContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "70", - "kind": "constant", - "name": "getDefaultContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "72", - "kind": "constant", - "name": "putAllContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "putDefaultContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "getAllContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "getDefaultContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "putAllContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "putDefaultContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "getAllContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "86", - "kind": "constant", - "name": "getDefaultContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "88", - "kind": "constant", - "name": "putAllContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "90", - "kind": "constant", - "name": "putDefaultContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "92", - "kind": "constant", - "name": "getAllContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "94", - "kind": "constant", - "name": "getDefaultContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "96", - "kind": "constant", - "name": "putAllContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "98", - "kind": "constant", - "name": "putDefaultContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "100", - "kind": "constant", - "name": "getAllContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "102", - "kind": "constant", - "name": "getDefaultContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "104", - "kind": "constant", - "name": "putAllContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "106", - "kind": "constant", - "name": "putDefaultContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "108", - "kind": "constant", - "name": "getAllContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "name": "getDefaultContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "name": "putAllContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "name": "putDefaultContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "116", - "kind": "constant", - "name": "getAllContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "118", - "kind": "constant", - "name": "getDefaultContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "name": "putAllContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "name": "putDefaultContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "name": "getAllContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "126", - "kind": "constant", - "name": "getDefaultContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "128", - "kind": "constant", - "name": "putAllContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "name": "putDefaultContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "name": "getAllContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "name": "getDefaultContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "136", - "kind": "constant", - "name": "putAllContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "138", - "kind": "constant", - "name": "putDefaultContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "140", - "kind": "constant", - "name": "getAllContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "142", - "kind": "constant", - "name": "getDefaultContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "144", - "kind": "constant", - "name": "putAllContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "146", - "kind": "constant", - "name": "putDefaultContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "148", - "kind": "constant", - "name": "getAllContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "150", - "kind": "constant", - "name": "getRequiredOnlyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "152", - "kind": "constant", - "name": "putAllContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "154", - "kind": "constant", - "name": "putRequiredOnlyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "156", - "kind": "model", - "name": "StringProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.StringProperty", - "usage": "Input,Output,Json", - "doc": "Template type for testing models with optional property. Pass in the type of the property you are looking for", - "decorators": [], - "properties": [ + }, { - "$id": "157", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "21", + "kind": "constant", + "name": "getAllContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringProperty.property", - "serializationOptions": { - "$id": "159", - "json": { - "$id": "160", - "name": "property" - } - } - } - ] - }, - { - "$id": "161", - "kind": "model", - "name": "BytesProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.BytesProperty", - "usage": "Input,Output,Json", - "doc": "Template type for testing models with optional property. Pass in the type of the property you are looking for", - "decorators": [], - "properties": [ + }, { - "$id": "162", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "163", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "23", + "kind": "constant", + "name": "getDefaultContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BytesProperty.property", - "serializationOptions": { - "$id": "164", - "json": { - "$id": "165", - "name": "property" - } - } - } - ] - }, - { - "$id": "166", - "kind": "model", - "name": "DatetimeProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.DatetimeProperty", - "usage": "Input,Output,Json", - "doc": "Model with a datetime property", - "decorators": [], - "properties": [ + }, { - "$id": "167", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "168", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "25", + "kind": "constant", + "name": "putAllContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.DatetimeProperty.property", - "serializationOptions": { - "$id": "170", - "json": { - "$id": "171", - "name": "property" - } - } - } - ] - }, - { - "$id": "172", - "kind": "model", - "name": "DurationProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.DurationProperty", - "usage": "Input,Output,Json", - "doc": "Model with a duration property", - "decorators": [], - "properties": [ + }, { - "$id": "173", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "174", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "27", + "kind": "constant", + "name": "putDefaultContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.DurationProperty.property", - "serializationOptions": { - "$id": "176", - "json": { - "$id": "177", - "name": "property" - } - } - } - ] - }, - { - "$id": "178", - "kind": "model", - "name": "PlainDateProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDateProperty", - "usage": "Input,Output,Json", - "doc": "Model with a plainDate property", - "decorators": [], - "properties": [ + }, { - "$id": "179", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "180", - "kind": "plainDate", - "name": "plainDate", - "crossLanguageDefinitionId": "TypeSpec.plainDate", + "$id": "29", + "kind": "constant", + "name": "getAllContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDateProperty.property", - "serializationOptions": { - "$id": "181", - "json": { - "$id": "182", - "name": "property" - } - } - } - ] - }, - { - "$id": "183", - "kind": "model", - "name": "PlainTimeProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTimeProperty", - "usage": "Input,Output,Json", - "doc": "Model with a plainTime property", - "decorators": [], - "properties": [ + }, { - "$id": "184", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "185", - "kind": "plainTime", - "name": "plainTime", - "crossLanguageDefinitionId": "TypeSpec.plainTime", + "$id": "31", + "kind": "constant", + "name": "getDefaultContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTimeProperty.property", - "serializationOptions": { - "$id": "186", - "json": { - "$id": "187", - "name": "property" - } - } - } - ] - }, - { - "$id": "188", - "kind": "model", - "name": "CollectionsByteProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByteProperty", - "usage": "Input,Output,Json", - "doc": "Model with collection bytes properties", - "decorators": [], - "properties": [ + }, { - "$id": "189", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "190", - "kind": "array", - "name": "Array", + "$id": "33", + "kind": "constant", + "name": "putAllContentType2", + "namespace": "", + "usage": "None", "valueType": { - "$id": "191", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByteProperty.property", - "serializationOptions": { - "$id": "192", - "json": { - "$id": "193", - "name": "property" - } - } - } - ] - }, - { - "$id": "194", - "kind": "model", - "name": "CollectionsModelProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModelProperty", - "usage": "Input,Output,Json", - "doc": "Model with collection models properties", - "decorators": [], - "properties": [ + }, { - "$id": "195", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "196", - "kind": "array", - "name": "ArrayStringProperty", + "$id": "35", + "kind": "constant", + "name": "putDefaultContentType2", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "156" + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModelProperty.property", - "serializationOptions": { - "$id": "197", - "json": { - "$id": "198", - "name": "property" - } - } - } - ] - }, - { - "$id": "199", - "kind": "model", - "name": "StringLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with string literal property", - "decorators": [], - "properties": [ + }, { - "$id": "200", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "20" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteralProperty.property", - "serializationOptions": { - "$id": "201", - "json": { - "$id": "202", - "name": "property" - } - } - } - ] - }, - { - "$id": "203", - "kind": "model", - "name": "IntLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with int literal property", - "decorators": [], - "properties": [ + "$id": "37", + "kind": "constant", + "name": "getAllContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "204", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "22" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteralProperty.property", - "serializationOptions": { - "$id": "205", - "json": { - "$id": "206", - "name": "property" - } - } - } - ] - }, - { - "$id": "207", - "kind": "model", - "name": "FloatLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with float literal property", - "decorators": [], - "properties": [ + "$id": "39", + "kind": "constant", + "name": "getDefaultContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "208", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "24" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteralProperty.property", - "serializationOptions": { - "$id": "209", - "json": { - "$id": "210", - "name": "property" - } - } - } - ] - }, - { - "$id": "211", - "kind": "model", - "name": "BooleanLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with boolean literal property", - "decorators": [], - "properties": [ + "$id": "41", + "kind": "constant", + "name": "putAllContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "212", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "26" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteralProperty.property", - "serializationOptions": { - "$id": "213", - "json": { - "$id": "214", - "name": "property" - } - } - } - ] - }, - { - "$id": "215", - "kind": "model", - "name": "UnionStringLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with union of string literal property", - "decorators": [], - "properties": [ + "$id": "43", + "kind": "constant", + "name": "putDefaultContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "216", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "2" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property", - "serializationOptions": { - "$id": "217", - "json": { - "$id": "218", - "name": "property" - } - } - } - ] - }, - { - "$id": "219", - "kind": "model", - "name": "UnionIntLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with union of int literal property", - "decorators": [], - "properties": [ + "$id": "45", + "kind": "constant", + "name": "getAllContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "220", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "8" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property", - "serializationOptions": { - "$id": "221", - "json": { - "$id": "222", - "name": "property" - } - } - } - ] - }, - { - "$id": "223", - "kind": "model", - "name": "UnionFloatLiteralProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with union of float literal property", - "decorators": [], - "properties": [ + "$id": "47", + "kind": "constant", + "name": "getDefaultContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "224", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "14" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property", - "serializationOptions": { - "$id": "225", - "json": { - "$id": "226", - "name": "property" - } - } - } - ] - }, - { - "$id": "227", - "kind": "model", - "name": "RequiredAndOptionalProperty", - "namespace": "Type.Property.Optional", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty", - "usage": "Input,Output,Json", - "doc": "Model with required and optional properties", - "decorators": [], - "properties": [ + "$id": "49", + "kind": "constant", + "name": "putAllContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "228", - "kind": "property", - "name": "optionalProperty", - "serializedName": "optionalProperty", - "doc": "optional string property", - "type": { - "$id": "229", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "51", + "kind": "constant", + "name": "putDefaultContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty.optionalProperty", - "serializationOptions": { - "$id": "230", - "json": { - "$id": "231", - "name": "optionalProperty" - } - } }, { - "$id": "232", - "kind": "property", - "name": "requiredProperty", - "serializedName": "requiredProperty", - "doc": "required int property", - "type": { - "$id": "233", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "53", + "kind": "constant", + "name": "getAllContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty.requiredProperty", - "serializationOptions": { - "$id": "234", - "json": { - "$id": "235", - "name": "requiredProperty" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "236", - "kind": "client", - "name": "OptionalClient", - "namespace": "Type.Property.Optional", - "doc": "Illustrates models with optional properties.", - "methods": [], - "parameters": [ + }, { - "$id": "237", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "238", - "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": "239", - "type": { - "$id": "240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "55", + "kind": "constant", + "name": "getDefaultContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "241", - "kind": "client", - "name": "String", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "242", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "243", - "name": "getAll", - "resourceName": "String", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "244", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "245", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "156" - }, - "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", + "$id": "57", + "kind": "constant", + "name": "putAllContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "246", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "247", - "type": { - "$ref": "156" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll" }, - { - "$id": "248", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "249", - "name": "getDefault", - "resourceName": "String", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "250", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "251", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "156" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "59", + "kind": "constant", + "name": "putDefaultContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "252", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "253", - "type": { - "$ref": "156" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault" }, - { - "$id": "254", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "255", - "name": "putAll", - "resourceName": "String", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "256", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "257", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "156" - }, - "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 - } - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "61", + "kind": "constant", + "name": "getAllContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "259", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "156" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "260", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "261" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll" }, - { - "$id": "262", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "263", - "name": "putDefault", - "resourceName": "String", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "264", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "265", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "156" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "266", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "63", + "kind": "constant", + "name": "getDefaultContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "267", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "156" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "268", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "269" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault" - } - ], - "parameters": [ - { - "$id": "270", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "271", - "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": "272", - "type": { - "$id": "273", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "274", - "kind": "client", - "name": "Bytes", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "275", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "276", - "name": "getAll", - "resourceName": "Bytes", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "277", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "278", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "161" - }, - "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", + "$id": "65", + "kind": "constant", + "name": "putAllContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "279", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "280", - "type": { - "$ref": "161" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll" }, - { - "$id": "281", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "282", - "name": "getDefault", - "resourceName": "Bytes", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "283", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "284", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "161" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "67", + "kind": "constant", + "name": "putDefaultContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "285", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "286", - "type": { - "$ref": "161" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault" }, - { - "$id": "287", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "288", - "name": "putAll", - "resourceName": "Bytes", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "289", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "290", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "291", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "69", + "kind": "constant", + "name": "getAllContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "292", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "293", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "294" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll" }, - { - "$id": "295", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "296", - "name": "putDefault", - "resourceName": "Bytes", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "297", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "298", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "299", - "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": [] - }, - "parameters": [ - { - "$id": "300", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "301", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "302" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault" - } - ], - "parameters": [ - { - "$id": "303", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "304", - "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": "305", - "type": { - "$id": "306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", - "apiVersions": [], - "parent": { - "$ref": "236" - } + "value": "application/json", + "decorators": [] }, { - "$id": "307", - "kind": "client", - "name": "Datetime", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "308", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "309", - "name": "getAll", - "resourceName": "Datetime", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "310", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "311", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "166" - }, - "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", + "$id": "71", + "kind": "constant", + "name": "getDefaultContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "312", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "313", - "type": { - "$ref": "166" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll" }, - { - "$id": "314", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "315", - "name": "getDefault", - "resourceName": "Datetime", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "316", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "317", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "166" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "73", + "kind": "constant", + "name": "putAllContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "318", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "319", - "type": { - "$ref": "166" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault" }, - { - "$id": "320", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "321", - "name": "putAll", - "resourceName": "Datetime", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "322", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "323", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "166" - }, - "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/optional/datetime/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", + "value": "application/json", + "decorators": [] + }, + { + "$id": "75", + "kind": "constant", + "name": "putDefaultContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "325", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "166" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "326", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "327" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll" }, - { - "$id": "328", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "329", - "name": "putDefault", - "resourceName": "Datetime", - "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": { - "$ref": "50" - }, - "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": "166" - }, - "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/datetime/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", - "decorators": [] - }, - "parameters": [ - { - "$id": "333", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "166" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "334", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "335" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault" - } - ], - "parameters": [ - { - "$id": "336", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "337", - "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": "338", - "type": { - "$id": "339", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", - "apiVersions": [], - "parent": { - "$ref": "236" - } + "value": "application/json", + "decorators": [] }, { - "$id": "340", - "kind": "client", - "name": "Duration", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "341", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "342", - "name": "getAll", - "resourceName": "Duration", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "343", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "344", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "172" - }, - "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", + "$id": "77", + "kind": "constant", + "name": "getAllContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "345", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "346", - "type": { - "$ref": "172" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll" }, - { - "$id": "347", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "348", - "name": "getDefault", - "resourceName": "Duration", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "349", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "350", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "172" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "79", + "kind": "constant", + "name": "StringLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "351", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "352", - "type": { - "$ref": "172" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault" }, - { - "$id": "353", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "354", - "name": "putAll", - "resourceName": "Duration", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "355", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "356", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "172" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "357", - "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", + "value": "hello", + "decorators": [] + }, + { + "$id": "81", + "kind": "constant", + "name": "getDefaultContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "358", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "172" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "359", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "360" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll" }, - { - "$id": "361", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "362", - "name": "putDefault", - "resourceName": "Duration", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "363", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "364", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "172" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "365", - "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": [] - }, - "parameters": [ - { - "$id": "366", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "172" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "367", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "368" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault" - } - ], - "parameters": [ - { - "$id": "369", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "370", - "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": "371", - "type": { - "$id": "372", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration", - "apiVersions": [], - "parent": { - "$ref": "236" - } + "value": "application/json", + "decorators": [] }, { - "$id": "373", - "kind": "client", - "name": "PlainDate", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "374", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "375", - "name": "getAll", - "resourceName": "PlainDate", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "376", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "377", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "178" - }, - "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", + "$id": "83", + "kind": "constant", + "name": "putAllContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "378", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "379", - "type": { - "$ref": "178" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll" }, - { - "$id": "380", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "381", - "name": "getDefault", - "resourceName": "PlainDate", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "382", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "383", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "178" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "85", + "kind": "constant", + "name": "putDefaultContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "384", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "385", - "type": { - "$ref": "178" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault" }, - { - "$id": "386", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "387", - "name": "putAll", - "resourceName": "PlainDate", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "388", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "64" - }, - "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": "178" - }, - "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 - } - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "87", + "kind": "constant", + "name": "getAllContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "391", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "178" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "392", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "393" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll" }, - { - "$id": "394", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "395", - "name": "putDefault", - "resourceName": "PlainDate", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "396", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "397", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "178" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "398", - "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": [] - }, - "parameters": [ - { - "$id": "399", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "178" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "400", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "401" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault" - } - ], - "parameters": [ - { - "$id": "402", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "403", - "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": "404", - "type": { - "$id": "405", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", - "apiVersions": [], - "parent": { - "$ref": "236" - } + "value": "application/json", + "decorators": [] }, { - "$id": "406", - "kind": "client", - "name": "PlainTime", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "407", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "408", - "name": "getAll", - "resourceName": "PlainTime", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "409", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "410", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "183" - }, - "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", + "$id": "89", + "kind": "constant", + "name": "IntLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", + "valueType": { + "$id": "90", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] - }, - "parameters": [ - { - "$id": "411", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "412", - "type": { - "$ref": "183" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll" }, - { - "$id": "413", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "414", - "name": "getDefault", - "resourceName": "PlainTime", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "415", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "416", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "183" - }, - "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", + "value": 1, + "decorators": [] + }, + { + "$id": "91", + "kind": "constant", + "name": "getDefaultContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "417", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "418", - "type": { - "$ref": "183" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault" }, - { - "$id": "419", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "420", - "name": "putAll", - "resourceName": "PlainTime", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "421", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "422", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "183" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "423", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "93", + "kind": "constant", + "name": "putAllContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "424", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "183" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "425", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "426" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll" }, - { - "$id": "427", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "428", - "name": "putDefault", - "resourceName": "PlainTime", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "429", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "430", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "183" - }, - "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/optional/plainTime/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", - "decorators": [] - }, - "parameters": [ - { - "$id": "432", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "183" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "433", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "434" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault" - } - ], - "parameters": [ - { - "$id": "435", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "436", - "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": "437", - "type": { - "$id": "438", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", - "apiVersions": [], - "parent": { - "$ref": "236" - } + "value": "application/json", + "decorators": [] }, { - "$id": "439", - "kind": "client", - "name": "CollectionsByte", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "440", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "441", - "name": "getAll", - "resourceName": "CollectionsByte", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "442", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "443", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "188" - }, - "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", + "$id": "95", + "kind": "constant", + "name": "putDefaultContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "444", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "445", - "type": { - "$ref": "188" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll" - }, - { - "$id": "446", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "447", - "name": "getDefault", - "resourceName": "CollectionsByte", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "448", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "449", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "188" - }, - "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", + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "97", + "kind": "constant", + "name": "getAllContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "450", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "451", - "type": { - "$ref": "188" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault" }, - { - "$id": "452", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "453", - "name": "putAll", - "resourceName": "CollectionsByte", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "454", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "455", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "188" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "456", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "99", + "kind": "constant", + "name": "FloatLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", + "valueType": { + "$id": "100", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] - }, - "parameters": [ - { - "$id": "457", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "188" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "458", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "459" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll" }, - { - "$id": "460", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "461", - "name": "putDefault", - "resourceName": "CollectionsByte", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "462", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "463", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "188" - }, - "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/optional/collections/bytes/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", + "value": 1.25, + "decorators": [] + }, + { + "$id": "101", + "kind": "constant", + "name": "getDefaultContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "465", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "188" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "466", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "467" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault" - } - ], - "parameters": [ - { - "$id": "468", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "469", - "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": "470", - "type": { - "$id": "471", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "472", - "kind": "client", - "name": "CollectionsModel", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "473", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "474", - "name": "getAll", - "resourceName": "CollectionsModel", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "475", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "476", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "194" - }, - "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", + "$id": "103", + "kind": "constant", + "name": "putAllContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "477", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "478", - "type": { - "$ref": "194" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll" }, - { - "$id": "479", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "480", - "name": "getDefault", - "resourceName": "CollectionsModel", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "481", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "482", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "194" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "105", + "kind": "constant", + "name": "putDefaultContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "483", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "484", - "type": { - "$ref": "194" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault" }, - { - "$id": "485", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "486", - "name": "putAll", - "resourceName": "CollectionsModel", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "487", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "488", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "489", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "107", + "kind": "constant", + "name": "getAllContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "490", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "491", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "492" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll" }, - { - "$id": "493", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "494", - "name": "putDefault", - "resourceName": "CollectionsModel", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "495", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "496", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "497", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "109", + "kind": "constant", + "name": "BooleanLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", + "valueType": { + "$id": "110", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] - }, - "parameters": [ - { - "$id": "498", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "499", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "500" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault" - } - ], - "parameters": [ - { - "$id": "501", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "502", - "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": "503", - "type": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": true, + "decorators": [] }, { - "$id": "505", - "kind": "client", - "name": "StringLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "506", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "507", - "name": "getAll", - "resourceName": "StringLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "508", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "509", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "199" - }, - "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", + "$id": "111", + "kind": "constant", + "name": "getDefaultContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "510", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "511", - "type": { - "$ref": "199" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll" }, - { - "$id": "512", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "513", - "name": "getDefault", - "resourceName": "StringLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "514", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "515", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "199" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "113", + "kind": "constant", + "name": "putAllContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "516", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "517", - "type": { - "$ref": "199" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault" }, - { - "$id": "518", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "519", - "name": "putAll", - "resourceName": "StringLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "520", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "521", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "199" - }, - "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/optional/string/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", + "value": "application/json", + "decorators": [] + }, + { + "$id": "115", + "kind": "constant", + "name": "putDefaultContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "523", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "199" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "524", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "525" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll" }, - { - "$id": "526", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "527", - "name": "putDefault", - "resourceName": "StringLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "528", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "529", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "199" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "530", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "117", + "kind": "constant", + "name": "getAllContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "531", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "199" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "532", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "533" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "534", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "535", - "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": "536", - "type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "538", - "kind": "client", - "name": "IntLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "539", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "540", - "name": "getAll", - "resourceName": "IntLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "541", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "542", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "203" - }, - "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", + "$id": "119", + "kind": "constant", + "name": "getDefaultContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "543", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "544", - "type": { - "$ref": "203" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll" }, - { - "$id": "545", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "546", - "name": "getDefault", - "resourceName": "IntLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "547", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "548", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "203" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "121", + "kind": "constant", + "name": "putAllContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "549", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "550", - "type": { - "$ref": "203" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault" }, - { - "$id": "551", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "552", - "name": "putAll", - "resourceName": "IntLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "553", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "554", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "203" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "555", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "123", + "kind": "constant", + "name": "putDefaultContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "556", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "203" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "557", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "558" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll" }, - { - "$id": "559", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "560", - "name": "putDefault", - "resourceName": "IntLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "561", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "562", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "203" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "563", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "125", + "kind": "constant", + "name": "getAllContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "564", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "203" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "565", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "566" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "567", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "568", - "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": "569", - "type": { - "$id": "570", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "571", - "kind": "client", - "name": "FloatLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "572", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "573", - "name": "getAll", - "resourceName": "FloatLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "574", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "575", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "207" - }, - "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", + "$id": "127", + "kind": "constant", + "name": "getDefaultContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "576", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "577", - "type": { - "$ref": "207" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll" }, - { - "$id": "578", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "579", - "name": "getDefault", - "resourceName": "FloatLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "580", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "581", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "207" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "129", + "kind": "constant", + "name": "putAllContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "582", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "583", - "type": { - "$ref": "207" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault" }, - { - "$id": "584", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "585", - "name": "putAll", - "resourceName": "FloatLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "586", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "587", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "207" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "588", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "131", + "kind": "constant", + "name": "putDefaultContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "589", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "207" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "590", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "591" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll" }, - { - "$id": "592", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "593", - "name": "putDefault", - "resourceName": "FloatLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "594", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "595", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "207" - }, - "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/optional/float/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", + "value": "application/json", + "decorators": [] + }, + { + "$id": "133", + "kind": "constant", + "name": "getAllContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "597", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "207" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "598", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "599" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "600", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "601", - "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": "602", - "type": { - "$id": "603", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "604", - "kind": "client", - "name": "BooleanLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "605", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "606", - "name": "getAll", - "resourceName": "BooleanLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "607", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "608", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "211" - }, - "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", + "$id": "135", + "kind": "constant", + "name": "getDefaultContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "609", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "610", - "type": { - "$ref": "211" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll" }, - { - "$id": "611", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "612", - "name": "getDefault", - "resourceName": "BooleanLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "613", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "118" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "614", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "211" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "137", + "kind": "constant", + "name": "putAllContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "615", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "118" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "616", - "type": { - "$ref": "211" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault" }, - { - "$id": "617", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "618", - "name": "putAll", - "resourceName": "BooleanLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "619", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "620", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "211" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "621", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "139", + "kind": "constant", + "name": "putDefaultContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "622", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "211" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "623", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "624" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll" }, - { - "$id": "625", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "626", - "name": "putDefault", - "resourceName": "BooleanLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "627", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "628", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "211" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "629", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "141", + "kind": "constant", + "name": "getAllContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "630", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "211" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "631", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "632" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "633", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "634", - "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": "635", - "type": { - "$id": "636", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "637", - "kind": "client", - "name": "UnionStringLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "638", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "639", - "name": "getAll", - "resourceName": "UnionStringLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "640", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "641", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "215" - }, - "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", + "$id": "143", + "kind": "constant", + "name": "getRequiredOnlyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "642", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "643", - "type": { - "$ref": "215" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll" }, - { - "$id": "644", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "645", - "name": "getDefault", - "resourceName": "UnionStringLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "646", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "647", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "215" - }, - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "145", + "kind": "constant", + "name": "putAllContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "648", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "649", - "type": { - "$ref": "215" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault" }, - { - "$id": "650", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "651", - "name": "putAll", - "resourceName": "UnionStringLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "652", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "653", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "654", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "147", + "kind": "constant", + "name": "putRequiredOnlyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "655", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "656", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "657" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll" }, - { - "$id": "658", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "659", - "name": "putDefault", - "resourceName": "UnionStringLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "660", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "149", + "kind": "model", + "name": "StringProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.StringProperty", + "usage": "Input,Output,Json", + "doc": "Template type for testing models with optional property. Pass in the type of the property you are looking for", + "decorators": [], + "properties": [ + { + "$id": "150", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "661", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Optional.StringProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "152", + "kind": "model", + "name": "BytesProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.BytesProperty", + "usage": "Input,Output,Json", + "doc": "Template type for testing models with optional property. Pass in the type of the property you are looking for", + "decorators": [], + "properties": [ + { + "$id": "153", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "$id": "154", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "662", - "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": [] - }, - "parameters": [ - { - "$id": "663", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "crossLanguageDefinitionId": "Type.Property.Optional.BytesProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "155", + "kind": "model", + "name": "DatetimeProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.DatetimeProperty", + "usage": "Input,Output,Json", + "doc": "Model with a datetime property", + "decorators": [], + "properties": [ { - "$id": "664", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "156", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", + "type": { + "$id": "157", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.DatetimeProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "665" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "666", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "667", - "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": "668", - "type": { - "$id": "669", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } + ] }, { - "$id": "670", - "kind": "client", - "name": "UnionIntLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "671", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "672", - "name": "getAll", - "resourceName": "UnionIntLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "673", - "name": "accept", - "nameInRequest": "Accept", + "$id": "159", + "kind": "model", + "name": "DurationProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.DurationProperty", + "usage": "Input,Output,Json", + "doc": "Model with a duration property", + "decorators": [], + "properties": [ + { + "$id": "160", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "161", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "674", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "219" - }, - "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": [] - }, - "parameters": [ - { - "$id": "675", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.Optional.DurationProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "676", - "type": { - "$ref": "219" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll" - }, - { - "$id": "677", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "678", - "name": "getDefault", - "resourceName": "UnionIntLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "679", - "name": "accept", - "nameInRequest": "Accept", + ] + }, + { + "$id": "163", + "kind": "model", + "name": "PlainDateProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDateProperty", + "usage": "Input,Output,Json", + "doc": "Model with a plainDate property", + "decorators": [], + "properties": [ + { + "$id": "164", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "165", + "kind": "plainDate", + "name": "plainDate", + "crossLanguageDefinitionId": "TypeSpec.plainDate", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "680", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "219" - }, - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDateProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "166", + "kind": "model", + "name": "PlainTimeProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTimeProperty", + "usage": "Input,Output,Json", + "doc": "Model with a plainTime property", + "decorators": [], + "properties": [ { - "$id": "681", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "167", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", + "type": { + "$id": "168", + "kind": "plainTime", + "name": "plainTime", + "crossLanguageDefinitionId": "TypeSpec.plainTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTimeProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "682", - "type": { - "$ref": "219" + ] + }, + { + "$id": "169", + "kind": "model", + "name": "CollectionsByteProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByteProperty", + "usage": "Input,Output,Json", + "doc": "Model with collection bytes properties", + "decorators": [], + "properties": [ + { + "$id": "170", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", + "type": { + "$id": "171", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "172", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByteProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault" - }, - { - "$id": "683", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "684", - "name": "putAll", - "resourceName": "UnionIntLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "685", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "173", + "kind": "model", + "name": "CollectionsModelProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModelProperty", + "usage": "Input,Output,Json", + "doc": "Model with collection models properties", + "decorators": [], + "properties": [ + { + "$id": "174", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "136" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "175", + "kind": "array", + "name": "ArrayStringProperty", + "valueType": { + "$ref": "149" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "686", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModelProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "176", + "kind": "model", + "name": "StringLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with string literal property", + "decorators": [], + "properties": [ + { + "$id": "177", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "219" + "$ref": "79" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "687", - "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": [] - }, - "parameters": [ - { - "$id": "688", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "219" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "689", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "136" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "690" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll" - }, - { - "$id": "691", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "692", - "name": "putDefault", - "resourceName": "UnionIntLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "693", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "178", + "kind": "model", + "name": "IntLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with int literal property", + "decorators": [], + "properties": [ + { + "$id": "179", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "138" + "$ref": "89" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "694", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "180", + "kind": "model", + "name": "FloatLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with float literal property", + "decorators": [], + "properties": [ + { + "$id": "181", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "219" + "$ref": "99" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "695", - "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": [] - }, - "parameters": [ - { - "$id": "696", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "219" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "697", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "138" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "698" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "699", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "700", - "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": "701", - "type": { - "$id": "702", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } + ] }, { - "$id": "703", - "kind": "client", - "name": "UnionFloatLiteral", - "namespace": "Type.Property.Optional", - "methods": [ - { - "$id": "704", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "705", - "name": "getAll", - "resourceName": "UnionFloatLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "706", - "name": "accept", - "nameInRequest": "Accept", + "$id": "182", + "kind": "model", + "name": "BooleanLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with boolean literal property", + "decorators": [], + "properties": [ + { + "$id": "183", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "140" + "$ref": "109" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "707", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "223" - }, - "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": [] - }, - "parameters": [ - { - "$id": "708", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "140" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "709", - "type": { - "$ref": "223" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll" - }, - { - "$id": "710", - "kind": "basic", - "name": "getDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return the default object", - "operation": { - "$id": "711", - "name": "getDefault", - "resourceName": "UnionFloatLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "712", - "name": "accept", - "nameInRequest": "Accept", + ] + }, + { + "$id": "184", + "kind": "model", + "name": "UnionStringLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with union of string literal property", + "decorators": [], + "properties": [ + { + "$id": "185", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "142" + "$ref": "1" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "713", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "223" - }, - "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": [] - }, - "parameters": [ - { - "$id": "714", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "142" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "715", - "type": { - "$ref": "223" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault" - }, - { - "$id": "716", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "717", - "name": "putAll", - "resourceName": "UnionFloatLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "718", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "186", + "kind": "model", + "name": "UnionIntLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with union of int literal property", + "decorators": [], + "properties": [ + { + "$id": "187", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "144" + "$ref": "5" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "719", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "188", + "kind": "model", + "name": "UnionFloatLiteralProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with union of float literal property", + "decorators": [], + "properties": [ + { + "$id": "189", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "223" + "$ref": "9" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "720", - "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": [] - }, - "parameters": [ + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "190", + "kind": "model", + "name": "RequiredAndOptionalProperty", + "namespace": "Type.Property.Optional", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty", + "usage": "Input,Output,Json", + "doc": "Model with required and optional properties", + "decorators": [], + "properties": [ { - "$id": "721", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "223" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "191", + "kind": "property", + "name": "optionalProperty", + "serializedName": "optionalProperty", + "doc": "optional string property", + "type": { + "$id": "192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty.optionalProperty", + "serializationOptions": { + "json": { + "name": "optionalProperty" + } + } }, { - "$id": "722", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "144" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "723" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll" - }, - { - "$id": "724", - "kind": "basic", - "name": "putDefault", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with default properties.", - "operation": { - "$id": "725", - "name": "putDefault", - "resourceName": "UnionFloatLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "726", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "193", + "kind": "property", + "name": "requiredProperty", + "serializedName": "requiredProperty", + "doc": "required int property", "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "194", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "727", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty.requiredProperty", + "serializationOptions": { + "json": { + "name": "requiredProperty" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "195", + "kind": "client", + "name": "OptionalClient", + "namespace": "Type.Property.Optional", + "doc": "Illustrates models with optional properties.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "223" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "728", - "statusCodes": [ - 204 + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional", + "apiVersions": [], + "children": [ + { + "$id": "196", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "197", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "198", + "name": "getAll", + "resourceName": "String", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "199", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "200", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "149" + }, + "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": [] + }, + "parameters": [ + { + "$id": "201", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "149" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll" + }, + { + "$id": "202", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "203", + "name": "getDefault", + "resourceName": "String", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "204", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "205", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "149" + }, + "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": [] + }, + "parameters": [ + { + "$id": "206", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "149" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault" + }, + { + "$id": "207", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "208", + "name": "putAll", + "resourceName": "String", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "209", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "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": "149" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "212", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "149" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "213", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll" + }, + { + "$id": "214", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "215", + "name": "putDefault", + "resourceName": "String", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "216", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "217", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "149" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "218", + "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": [] + }, + "parameters": [ + { + "$id": "219", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "149" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "220", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.String", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, { - "$id": "729", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "223" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "221", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "222", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "223", + "name": "getAll", + "resourceName": "Bytes", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "224", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "225", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "152" + }, + "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": [] + }, + "parameters": [ + { + "$id": "226", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "152" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll" + }, + { + "$id": "227", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "228", + "name": "getDefault", + "resourceName": "Bytes", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "229", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "230", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "152" + }, + "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": [] + }, + "parameters": [ + { + "$id": "231", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "152" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault" + }, + { + "$id": "232", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "233", + "name": "putAll", + "resourceName": "Bytes", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "234", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "235", + "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": "236", + "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": [] + }, + "parameters": [ + { + "$id": "237", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "152" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "238", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll" + }, + { + "$id": "239", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "240", + "name": "putDefault", + "resourceName": "Bytes", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "241", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "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": "152" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "243", + "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": [] + }, + "parameters": [ + { + "$id": "244", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "152" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "245", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", + "apiVersions": [], + "parent": { + "$ref": "195" + } }, { - "$id": "730", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "731" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault" - } - ], - "parameters": [ - { - "$id": "732", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "733", - "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": "734", - "type": { - "$id": "735", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "246", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "247", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "248", + "name": "getAll", + "resourceName": "Datetime", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "249", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "250", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "155" + }, + "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": [] + }, + "parameters": [ + { + "$id": "251", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "155" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll" + }, + { + "$id": "252", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "253", + "name": "getDefault", + "resourceName": "Datetime", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "254", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "255", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "155" + }, + "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": [] + }, + "parameters": [ + { + "$id": "256", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "155" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault" + }, + { + "$id": "257", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "258", + "name": "putAll", + "resourceName": "Datetime", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "259", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "260", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "261", + "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": [] + }, + "parameters": [ + { + "$id": "262", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "263", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll" + }, + { + "$id": "264", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "265", + "name": "putDefault", + "resourceName": "Datetime", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "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": "155" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "269", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "270", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", + "apiVersions": [], + "parent": { + "$ref": "195" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", - "apiVersions": [], - "parent": { - "$ref": "236" - } - }, - { - "$id": "736", - "kind": "client", - "name": "RequiredAndOptional", - "namespace": "Type.Property.Optional", - "doc": "Test optional and required properties", - "methods": [ - { - "$id": "737", - "kind": "basic", - "name": "getAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return all properties in the model", - "operation": { - "$id": "738", - "name": "getAll", - "resourceName": "RequiredAndOptional", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "739", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "271", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "272", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "273", + "name": "getAll", + "resourceName": "Duration", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "274", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "275", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "159" + }, + "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": [] + }, + "parameters": [ + { + "$id": "276", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "159" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll" + }, + { + "$id": "277", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "278", + "name": "getDefault", + "resourceName": "Duration", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "279", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "280", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "159" + }, + "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": [] + }, + "parameters": [ + { + "$id": "281", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "159" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault" + }, + { + "$id": "282", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "283", + "name": "putAll", + "resourceName": "Duration", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "284", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "285", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "286", + "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": [] + }, + "parameters": [ + { + "$id": "287", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "288", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll" + }, + { + "$id": "289", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "290", + "name": "putDefault", + "resourceName": "Duration", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "291", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "292", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "293", + "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": [] + }, + "parameters": [ + { + "$id": "294", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "295", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "740", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.Optional.Duration", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, + { + "$id": "296", + "kind": "client", + "name": "PlainDate", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "297", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "298", + "name": "getAll", + "resourceName": "PlainDate", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "299", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "300", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "163" + }, + "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": [] + }, + "parameters": [ + { + "$id": "301", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "163" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll" + }, + { + "$id": "302", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "303", + "name": "getDefault", + "resourceName": "PlainDate", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "304", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "305", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "163" + }, + "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": [] + }, + "parameters": [ + { + "$id": "306", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "163" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault" + }, + { + "$id": "307", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "308", + "name": "putAll", + "resourceName": "PlainDate", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "309", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "310", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "163" + }, + "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/optional/plainDate/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", + "decorators": [] + }, + "parameters": [ + { + "$id": "312", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "163" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "313", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll" + }, + { + "$id": "314", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "315", + "name": "putDefault", + "resourceName": "PlainDate", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "316", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "317", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "163" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "318", + "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": [] + }, + "parameters": [ + { + "$id": "319", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "163" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "320", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault" + } ], - "bodyType": { - "$ref": "227" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, { - "$id": "741", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "742", - "type": { - "$ref": "227" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll" - }, - { - "$id": "743", - "kind": "basic", - "name": "getRequiredOnly", - "accessibility": "public", - "apiVersions": [], - "doc": "Get models that will return only the required properties", - "operation": { - "$id": "744", - "name": "getRequiredOnly", - "resourceName": "RequiredAndOptional", - "doc": "Get models that will return only the required properties", - "accessibility": "public", - "parameters": [ - { - "$id": "745", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "321", + "kind": "client", + "name": "PlainTime", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "322", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "323", + "name": "getAll", + "resourceName": "PlainTime", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "324", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "325", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "166" + }, + "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": [] + }, + "parameters": [ + { + "$id": "326", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "166" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll" + }, + { + "$id": "327", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "328", + "name": "getDefault", + "resourceName": "PlainTime", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "329", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "330", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "166" + }, + "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": [] + }, + "parameters": [ + { + "$id": "331", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "166" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault" + }, + { + "$id": "332", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "333", + "name": "putAll", + "resourceName": "PlainTime", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "334", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "335", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "166" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "336", + "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": [] + }, + "parameters": [ + { + "$id": "337", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "166" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "338", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll" + }, + { + "$id": "339", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "340", + "name": "putDefault", + "resourceName": "PlainTime", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "341", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "59" + }, + "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": "166" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "343", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "344", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "166" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "345", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "746", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, + { + "$id": "346", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "347", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "348", + "name": "getAll", + "resourceName": "CollectionsByte", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "349", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "350", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "169" + }, + "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": [] + }, + "parameters": [ + { + "$id": "351", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "169" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll" + }, + { + "$id": "352", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "353", + "name": "getDefault", + "resourceName": "CollectionsByte", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "354", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "355", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "169" + }, + "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": [] + }, + "parameters": [ + { + "$id": "356", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "169" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault" + }, + { + "$id": "357", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "358", + "name": "putAll", + "resourceName": "CollectionsByte", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "359", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "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": "169" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "362", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "169" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "363", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll" + }, + { + "$id": "364", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "365", + "name": "putDefault", + "resourceName": "CollectionsByte", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "366", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "367", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "169" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "368", + "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": [] + }, + "parameters": [ + { + "$id": "369", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "169" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "370", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault" + } ], - "bodyType": { - "$ref": "227" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, { - "$id": "747", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "748", - "type": { - "$ref": "227" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly" - }, - { - "$id": "749", - "kind": "basic", - "name": "putAll", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with all properties present.", - "operation": { - "$id": "750", - "name": "putAll", - "resourceName": "RequiredAndOptional", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "751", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "371", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "372", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "373", + "name": "getAll", + "resourceName": "CollectionsModel", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "374", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "375", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "173" + }, + "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": [] + }, + "parameters": [ + { + "$id": "376", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "173" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll" + }, + { + "$id": "377", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "378", + "name": "getDefault", + "resourceName": "CollectionsModel", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "379", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "380", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "173" + }, + "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": [] + }, + "parameters": [ + { + "$id": "381", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "173" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault" + }, + { + "$id": "382", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "383", + "name": "putAll", + "resourceName": "CollectionsModel", + "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": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "385", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "386", + "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": [] + }, + "parameters": [ + { + "$id": "387", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "388", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll" + }, + { + "$id": "389", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "390", + "name": "putDefault", + "resourceName": "CollectionsModel", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "391", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "392", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "393", + "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": [] + }, + "parameters": [ + { + "$id": "394", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "395", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "752", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "227" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, + { + "$id": "396", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "397", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "398", + "name": "getAll", + "resourceName": "StringLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "399", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "400", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "176" + }, + "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": [] + }, + "parameters": [ + { + "$id": "401", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "176" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll" + }, + { + "$id": "402", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "403", + "name": "getDefault", + "resourceName": "StringLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "404", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "405", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "176" + }, + "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": [] + }, + "parameters": [ + { + "$id": "406", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "176" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault" + }, + { + "$id": "407", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "408", + "name": "putAll", + "resourceName": "StringLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "409", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "410", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "411", + "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": [] + }, + "parameters": [ + { + "$id": "412", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "413", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll" + }, + { + "$id": "414", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "415", + "name": "putDefault", + "resourceName": "StringLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "416", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "417", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "418", + "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": [] + }, + "parameters": [ + { + "$id": "419", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "420", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "753", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, + { + "$id": "421", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "422", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "423", + "name": "getAll", + "resourceName": "IntLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "424", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "425", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "178" + }, + "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": [] + }, + "parameters": [ + { + "$id": "426", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "178" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll" + }, + { + "$id": "427", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "428", + "name": "getDefault", + "resourceName": "IntLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "429", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "430", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "178" + }, + "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": [] + }, + "parameters": [ + { + "$id": "431", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "178" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault" + }, + { + "$id": "432", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "433", + "name": "putAll", + "resourceName": "IntLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "434", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "93" + }, + "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": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "436", + "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": [] + }, + "parameters": [ + { + "$id": "437", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "438", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll" + }, + { + "$id": "439", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "440", + "name": "putDefault", + "resourceName": "IntLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "441", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "442", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "443", + "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": [] + }, + "parameters": [ + { + "$id": "444", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "445", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, { - "$id": "754", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "227" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "446", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "447", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "448", + "name": "getAll", + "resourceName": "FloatLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "449", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "450", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "180" + }, + "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": [] + }, + "parameters": [ + { + "$id": "451", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "180" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll" + }, + { + "$id": "452", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "453", + "name": "getDefault", + "resourceName": "FloatLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "454", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "455", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "180" + }, + "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": [] + }, + "parameters": [ + { + "$id": "456", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "180" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault" + }, + { + "$id": "457", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "458", + "name": "putAll", + "resourceName": "FloatLiteral", + "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": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "460", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "180" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "461", + "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": [] + }, + "parameters": [ + { + "$id": "462", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "180" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "463", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll" + }, + { + "$id": "464", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "465", + "name": "putDefault", + "resourceName": "FloatLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "466", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "467", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "180" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "468", + "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": [] + }, + "parameters": [ + { + "$id": "469", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "180" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "470", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } }, { - "$id": "755", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "756" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll" - }, - { - "$id": "757", - "kind": "basic", - "name": "putRequiredOnly", - "accessibility": "public", - "apiVersions": [], - "doc": "Put a body with only required properties.", - "operation": { - "$id": "758", - "name": "putRequiredOnly", - "resourceName": "RequiredAndOptional", - "doc": "Put a body with only required properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "759", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "471", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "472", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "473", + "name": "getAll", + "resourceName": "BooleanLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "474", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "475", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "182" + }, + "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": [] + }, + "parameters": [ + { + "$id": "476", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "182" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll" + }, + { + "$id": "477", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "478", + "name": "getDefault", + "resourceName": "BooleanLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "479", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "480", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "182" + }, + "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": [] + }, + "parameters": [ + { + "$id": "481", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "182" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault" + }, + { + "$id": "482", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "483", + "name": "putAll", + "resourceName": "BooleanLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "484", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "485", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "486", + "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": [] + }, + "parameters": [ + { + "$id": "487", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "488", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll" + }, + { + "$id": "489", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "490", + "name": "putDefault", + "resourceName": "BooleanLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "491", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "492", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "493", + "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": [] + }, + "parameters": [ + { + "$id": "494", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "495", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "760", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "227" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, + { + "$id": "496", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "497", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "498", + "name": "getAll", + "resourceName": "UnionStringLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "499", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "500", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "184" + }, + "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": [] + }, + "parameters": [ + { + "$id": "501", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "184" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll" + }, + { + "$id": "502", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "503", + "name": "getDefault", + "resourceName": "UnionStringLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "504", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "505", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "184" + }, + "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": [] + }, + "parameters": [ + { + "$id": "506", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "184" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault" + }, + { + "$id": "507", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "508", + "name": "putAll", + "resourceName": "UnionStringLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "509", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "121" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "510", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "511", + "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": [] + }, + "parameters": [ + { + "$id": "512", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "513", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "121" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll" + }, + { + "$id": "514", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "515", + "name": "putDefault", + "resourceName": "UnionStringLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "516", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "517", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "518", + "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": [] + }, + "parameters": [ + { + "$id": "519", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "520", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "761", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, + { + "$id": "521", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "522", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "523", + "name": "getAll", + "resourceName": "UnionIntLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "524", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "525", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "186" + }, + "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": [] + }, + "parameters": [ + { + "$id": "526", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "186" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll" + }, + { + "$id": "527", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "528", + "name": "getDefault", + "resourceName": "UnionIntLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "529", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "127" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "530", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "186" + }, + "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": [] + }, + "parameters": [ + { + "$id": "531", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "127" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "186" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault" + }, + { + "$id": "532", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "533", + "name": "putAll", + "resourceName": "UnionIntLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "534", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "535", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "536", + "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": [] + }, + "parameters": [ + { + "$id": "537", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "538", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll" + }, + { + "$id": "539", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "540", + "name": "putDefault", + "resourceName": "UnionIntLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "541", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "542", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "543", + "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": [] + }, + "parameters": [ + { + "$id": "544", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "545", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } + }, { - "$id": "762", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "227" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "546", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.Optional", + "methods": [ + { + "$id": "547", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "548", + "name": "getAll", + "resourceName": "UnionFloatLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "549", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "550", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "188" + }, + "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": [] + }, + "parameters": [ + { + "$id": "551", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "188" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll" + }, + { + "$id": "552", + "kind": "basic", + "name": "getDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return the default object", + "operation": { + "$id": "553", + "name": "getDefault", + "resourceName": "UnionFloatLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "554", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "555", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "188" + }, + "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": [] + }, + "parameters": [ + { + "$id": "556", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "188" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault" + }, + { + "$id": "557", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "558", + "name": "putAll", + "resourceName": "UnionFloatLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "559", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "560", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "561", + "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": [] + }, + "parameters": [ + { + "$id": "562", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "563", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll" + }, + { + "$id": "564", + "kind": "basic", + "name": "putDefault", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with default properties.", + "operation": { + "$id": "565", + "name": "putDefault", + "resourceName": "UnionFloatLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "566", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "139" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "567", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "568", + "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": [] + }, + "parameters": [ + { + "$id": "569", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "570", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "139" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "195" + } }, { - "$id": "763", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "571", + "kind": "client", + "name": "RequiredAndOptional", + "namespace": "Type.Property.Optional", + "doc": "Test optional and required properties", + "methods": [ + { + "$id": "572", + "kind": "basic", + "name": "getAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return all properties in the model", + "operation": { + "$id": "573", + "name": "getAll", + "resourceName": "RequiredAndOptional", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "574", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "141" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "575", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "190" + }, + "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": [] + }, + "parameters": [ + { + "$id": "576", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "141" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "190" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll" + }, + { + "$id": "577", + "kind": "basic", + "name": "getRequiredOnly", + "accessibility": "public", + "apiVersions": [], + "doc": "Get models that will return only the required properties", + "operation": { + "$id": "578", + "name": "getRequiredOnly", + "resourceName": "RequiredAndOptional", + "doc": "Get models that will return only the required properties", + "accessibility": "public", + "parameters": [ + { + "$id": "579", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "143" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "580", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "190" + }, + "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": [] + }, + "parameters": [ + { + "$id": "581", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "143" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "190" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly" + }, + { + "$id": "582", + "kind": "basic", + "name": "putAll", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with all properties present.", + "operation": { + "$id": "583", + "name": "putAll", + "resourceName": "RequiredAndOptional", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "584", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "585", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "190" + }, + "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/optional/requiredAndOptional/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", + "decorators": [] + }, + "parameters": [ + { + "$id": "587", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "190" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "588", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll" + }, + { + "$id": "589", + "kind": "basic", + "name": "putRequiredOnly", + "accessibility": "public", + "apiVersions": [], + "doc": "Put a body with only required properties.", + "operation": { + "$id": "590", + "name": "putRequiredOnly", + "resourceName": "RequiredAndOptional", + "doc": "Put a body with only required properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "591", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "147" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "592", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "190" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "593", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "594", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "190" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "595", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "147" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "apiVersions": [], + "parent": { + "$ref": "195" + } } - ], - "response": { - "$id": "764" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly" - } - ], - "parameters": [ - { - "$id": "765", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "766", - "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": "767", - "type": { - "$id": "768", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", - "apiVersions": [], - "parent": { - "$ref": "236" - } + ] } - ] - } - ] + ] } 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 446ca828125..74c9be75644 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 @@ -1,9829 +1,9514 @@ { - "$id": "1", - "name": "Type.Property.ValueTypes", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "FixedInnerEnum", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FixedInnerEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Type.Property.ValueTypes", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "ValueOne", - "value": "ValueOne", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "FixedInnerEnum", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FixedInnerEnum", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "ValueOne", + "value": "ValueOne", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "First value.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "ValueTwo", + "value": "ValueTwo", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Second value.", + "decorators": [] + } + ], + "namespace": "Type.Property.ValueTypes", + "doc": "Enum that will be used as a property for model EnumProperty. Non-extensible.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "First value.", - "decorators": [] }, { - "$id": "6", - "kind": "enumvalue", - "name": "ValueTwo", - "value": "ValueTwo", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "enum", + "name": "InnerEnum", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerEnum", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "7", + "kind": "enumvalue", + "name": "ValueOne", + "value": "ValueOne", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "First value.", + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "ValueTwo", + "value": "ValueTwo", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "Second value.", + "decorators": [] + } + ], + "namespace": "Type.Property.ValueTypes", + "doc": "Enum that will be used as a property for model EnumProperty. Extensible.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Second value.", - "decorators": [] - } - ], - "namespace": "Type.Property.ValueTypes", - "doc": "Enum that will be used as a property for model EnumProperty. Non-extensible.", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "8", - "kind": "enum", - "name": "InnerEnum", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerEnum", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "10", - "kind": "enumvalue", - "name": "ValueOne", - "value": "ValueOne", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "9", + "kind": "enum", + "name": "UnionStringLiteralPropertyProperty", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property.anonymous", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "11", + "kind": "enumvalue", + "name": "hello", + "value": "hello", + "valueType": { + "$ref": "10" + }, + "enumType": { + "$ref": "9" + }, + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "world", + "value": "world", + "valueType": { + "$ref": "10" + }, + "enumType": { + "$ref": "9" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "8" - }, - "doc": "First value.", - "decorators": [] }, { - "$id": "12", - "kind": "enumvalue", - "name": "ValueTwo", - "value": "ValueTwo", - "valueType": { "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "enum", + "name": "UnionIntLiteralPropertyProperty", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property.anonymous", + "valueType": { + "$id": "14", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "values": [ + { + "$id": "15", + "kind": "enumvalue", + "name": "42", + "value": 42, + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "decorators": [] + }, + { + "$id": "16", + "kind": "enumvalue", + "name": "43", + "value": 43, + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "8" - }, - "doc": "Second value.", - "decorators": [] - } - ], - "namespace": "Type.Property.ValueTypes", - "doc": "Enum that will be used as a property for model EnumProperty. Extensible.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "14", - "kind": "enum", - "name": "UnionStringLiteralPropertyProperty", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property.anonymous", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "16", - "kind": "enumvalue", - "name": "hello", - "value": "hello", - "valueType": { "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "enum", + "name": "UnionFloatLiteralPropertyProperty", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property.anonymous", + "valueType": { + "$id": "18", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "values": [ + { + "$id": "19", + "kind": "enumvalue", + "name": "43.125", + "value": 43.125, + "valueType": { + "$ref": "18" + }, + "enumType": { + "$ref": "17" + }, + "decorators": [] + }, + { + "$id": "20", + "kind": "enumvalue", + "name": "46.875", + "value": 46.875, + "valueType": { + "$ref": "18" + }, + "enumType": { + "$ref": "17" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "14" - }, - "decorators": [] }, { - "$id": "18", - "kind": "enumvalue", - "name": "world", - "value": "world", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "21", + "kind": "enum", + "name": "ExtendedEnum", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "kind": "enumvalue", + "name": "EnumValue2", + "value": "value2", + "valueType": { + "$ref": "22" + }, + "enumType": { + "$ref": "21" + }, + "decorators": [] + } + ], + "namespace": "Type.Property.ValueTypes", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "14" - }, - "decorators": [] } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "20", - "kind": "enum", - "name": "UnionIntLiteralPropertyProperty", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property.anonymous", - "valueType": { - "$id": "21", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ + ], + "constants": [ { - "$id": "22", - "kind": "enumvalue", - "name": "42", - "value": 42, - "valueType": { "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "20" - }, - "decorators": [] }, { - "$id": "24", - "kind": "enumvalue", - "name": "43", - "value": 43, - "valueType": { "$id": "25", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "constant", + "name": "putContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "20" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "26", - "kind": "enum", - "name": "UnionFloatLiteralPropertyProperty", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property.anonymous", - "valueType": { - "$id": "27", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ + }, + { + "$id": "27", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "28", - "kind": "enumvalue", - "name": "43.125", - "value": 43.125, - "valueType": { "$id": "29", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "constant", + "name": "putContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] }, { - "$id": "30", - "kind": "enumvalue", - "name": "46.875", - "value": 46.875, - "valueType": { "$id": "31", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "32", - "kind": "enum", - "name": "ExtendedEnum", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "34", - "kind": "enumvalue", - "name": "EnumValue2", - "value": "value2", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "33", + "kind": "constant", + "name": "putContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "32" - }, - "decorators": [] - } - ], - "namespace": "Type.Property.ValueTypes", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - } - ], - "constants": [ - { - "$id": "36", - "kind": "constant", - "name": "StringLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "hello", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "IntLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", - "valueType": { - "$id": "39", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 42, - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "FloatLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", - "valueType": { - "$id": "41", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 43.125, - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "BooleanLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", - "valueType": { - "$id": "43", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "putContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "54", - "kind": "constant", - "name": "putContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "getContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "58", - "kind": "constant", - "name": "putContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "60", - "kind": "constant", - "name": "getContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "62", - "kind": "constant", - "name": "putContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "64", - "kind": "constant", - "name": "getContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "66", - "kind": "constant", - "name": "putContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "68", - "kind": "constant", - "name": "getContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "70", - "kind": "constant", - "name": "putContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "72", - "kind": "constant", - "name": "getContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "putContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "getContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "putContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "getContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "putContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "getContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "86", - "kind": "constant", - "name": "putContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "88", - "kind": "constant", - "name": "getContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "90", - "kind": "constant", - "name": "putContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "92", - "kind": "constant", - "name": "getContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "94", - "kind": "constant", - "name": "putContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "96", - "kind": "constant", - "name": "getContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "98", - "kind": "constant", - "name": "putContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "100", - "kind": "constant", - "name": "getContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "102", - "kind": "constant", - "name": "putContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "104", - "kind": "constant", - "name": "getContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "106", - "kind": "constant", - "name": "putContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "108", - "kind": "constant", - "name": "getContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "name": "putContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "name": "getContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "name": "putContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "116", - "kind": "constant", - "name": "getContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "118", - "kind": "constant", - "name": "putContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "name": "getContentType19", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "name": "putContentType19", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "name": "getContentType20", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "126", - "kind": "constant", - "name": "putContentType20", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "128", - "kind": "constant", - "name": "getContentType21", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "name": "putContentType21", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "name": "getContentType22", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "name": "putContentType22", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "136", - "kind": "constant", - "name": "getContentType23", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "138", - "kind": "constant", - "name": "putContentType23", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "140", - "kind": "constant", - "name": "getContentType24", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "142", - "kind": "constant", - "name": "putContentType24", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "144", - "kind": "constant", - "name": "getContentType25", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "146", - "kind": "constant", - "name": "putContentType25", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "148", - "kind": "constant", - "name": "getContentType26", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "150", - "kind": "constant", - "name": "putContentType26", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "152", - "kind": "constant", - "name": "getContentType27", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "154", - "kind": "constant", - "name": "putContentType27", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "156", - "kind": "constant", - "name": "getContentType28", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "158", - "kind": "constant", - "name": "putContentType28", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "160", - "kind": "model", - "name": "BooleanProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanProperty", - "usage": "Input,Output,Json", - "doc": "Model with a boolean property", - "decorators": [], - "properties": [ + }, { - "$id": "161", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "162", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "35", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanProperty.property", - "serializationOptions": { - "$id": "163", - "json": { - "$id": "164", - "name": "property" - } - } - } - ] - }, - { - "$id": "165", - "kind": "model", - "name": "StringProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringProperty", - "usage": "Input,Output,Json", - "doc": "Model with a string property", - "decorators": [], - "properties": [ + }, { - "$id": "166", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "37", + "kind": "constant", + "name": "putContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringProperty.property", - "serializationOptions": { - "$id": "168", - "json": { - "$id": "169", - "name": "property" - } - } - } - ] - }, - { - "$id": "170", - "kind": "model", - "name": "BytesProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BytesProperty", - "usage": "Input,Output,Json", - "doc": "Model with a bytes property", - "decorators": [], - "properties": [ + }, { - "$id": "171", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "172", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", + "$id": "39", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BytesProperty.property", - "serializationOptions": { - "$id": "173", - "json": { - "$id": "174", - "name": "property" - } - } - } - ] - }, - { - "$id": "175", - "kind": "model", - "name": "IntProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntProperty", - "usage": "Input,Output,Json", - "doc": "Model with a int property", - "decorators": [], - "properties": [ + }, { - "$id": "176", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "177", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "41", + "kind": "constant", + "name": "putContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntProperty.property", - "serializationOptions": { - "$id": "178", - "json": { - "$id": "179", - "name": "property" - } - } - } - ] - }, - { - "$id": "180", - "kind": "model", - "name": "FloatProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatProperty", - "usage": "Input,Output,Json", - "doc": "Model with a float property", - "decorators": [], - "properties": [ + }, { - "$id": "181", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "182", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "43", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatProperty.property", - "serializationOptions": { - "$id": "183", - "json": { - "$id": "184", - "name": "property" - } - } - } - ] - }, - { - "$id": "185", - "kind": "model", - "name": "DecimalProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DecimalProperty", - "usage": "Input,Output,Json", - "doc": "Model with a decimal property", - "decorators": [], - "properties": [ + }, { - "$id": "186", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "187", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", + "$id": "45", + "kind": "constant", + "name": "putContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DecimalProperty.property", - "serializationOptions": { - "$id": "188", - "json": { - "$id": "189", - "name": "property" - } - } - } - ] - }, - { - "$id": "190", - "kind": "model", - "name": "Decimal128Property", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128Property", - "usage": "Input,Output,Json", - "doc": "Model with a decimal128 property", - "decorators": [], - "properties": [ + }, { - "$id": "191", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "192", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", + "$id": "47", + "kind": "constant", + "name": "getContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128Property.property", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "property" - } - } - } - ] - }, - { - "$id": "195", - "kind": "model", - "name": "DatetimeProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DatetimeProperty", - "usage": "Input,Output,Json", - "doc": "Model with a datetime property", - "decorators": [], - "properties": [ + }, { - "$id": "196", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "197", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "49", + "kind": "constant", + "name": "putContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DatetimeProperty.property", - "serializationOptions": { - "$id": "199", - "json": { - "$id": "200", - "name": "property" - } - } - } - ] - }, - { - "$id": "201", - "kind": "model", - "name": "DurationProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DurationProperty", - "usage": "Input,Output,Json", - "doc": "Model with a duration property", - "decorators": [], - "properties": [ + }, { - "$id": "202", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "203", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "51", + "kind": "constant", + "name": "getContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DurationProperty.property", - "serializationOptions": { - "$id": "205", - "json": { - "$id": "206", - "name": "property" - } - } - } - ] - }, - { - "$id": "207", - "kind": "model", - "name": "EnumProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.EnumProperty", - "usage": "Input,Output,Json", - "doc": "Model with enum properties", - "decorators": [], - "properties": [ - { - "$id": "208", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.EnumProperty.property", - "serializationOptions": { - "$id": "209", - "json": { - "$id": "210", - "name": "property" - } - } - } - ] - }, - { - "$id": "211", - "kind": "model", - "name": "ExtensibleEnumProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnumProperty", - "usage": "Input,Output,Json", - "doc": "Model with extensible enum properties", - "decorators": [], - "properties": [ - { - "$id": "212", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "8" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnumProperty.property", - "serializationOptions": { - "$id": "213", - "json": { - "$id": "214", - "name": "property" - } - } - } - ] - }, - { - "$id": "215", - "kind": "model", - "name": "ModelProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ModelProperty", - "usage": "Input,Output,Json", - "doc": "Model with model properties", - "decorators": [], - "properties": [ - { - "$id": "216", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "217", - "kind": "model", - "name": "InnerModel", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerModel", - "usage": "Input,Output,Json", - "doc": "Inner model. Will be a property type for ModelWithModelProperties", - "decorators": [], - "properties": [ - { - "$id": "218", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Required string property", - "type": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerModel.property", - "serializationOptions": { - "$id": "220", - "json": { - "$id": "221", - "name": "property" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ModelProperty.property", - "serializationOptions": { - "$id": "222", - "json": { - "$id": "223", - "name": "property" - } - } - } - ] - }, - { - "$ref": "217" - }, - { - "$id": "224", - "kind": "model", - "name": "CollectionsStringProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsStringProperty", - "usage": "Input,Output,Json", - "doc": "Model with collection string properties", - "decorators": [], - "properties": [ + }, { - "$id": "225", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "226", - "kind": "array", - "name": "Array", + "$id": "53", + "kind": "constant", + "name": "putContentType7", + "namespace": "", + "usage": "None", "valueType": { - "$id": "227", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsStringProperty.property", - "serializationOptions": { - "$id": "228", - "json": { - "$id": "229", - "name": "property" - } - } - } - ] - }, - { - "$id": "230", - "kind": "model", - "name": "CollectionsIntProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsIntProperty", - "usage": "Input,Output,Json", - "doc": "Model with collection int properties", - "decorators": [], - "properties": [ + }, { - "$id": "231", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "232", - "kind": "array", - "name": "Array1", + "$id": "55", + "kind": "constant", + "name": "getContentType8", + "namespace": "", + "usage": "None", "valueType": { - "$id": "233", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsIntProperty.property", - "serializationOptions": { - "$id": "234", - "json": { - "$id": "235", - "name": "property" - } - } - } - ] - }, - { - "$id": "236", - "kind": "model", - "name": "CollectionsModelProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModelProperty", - "usage": "Input,Output,Json", - "doc": "Model with collection model properties", - "decorators": [], - "properties": [ + }, { - "$id": "237", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "238", - "kind": "array", - "name": "ArrayInnerModel", + "$id": "57", + "kind": "constant", + "name": "putContentType8", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "217" + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModelProperty.property", - "serializationOptions": { - "$id": "239", - "json": { - "$id": "240", - "name": "property" - } - } - } - ] - }, - { - "$id": "241", - "kind": "model", - "name": "DictionaryStringProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryStringProperty", - "usage": "Input,Output,Json", - "doc": "Model with dictionary string properties", - "decorators": [], - "properties": [ + }, { - "$id": "242", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "243", - "kind": "dict", - "keyType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "59", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", "valueType": { - "$id": "245", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryStringProperty.property", - "serializationOptions": { - "$id": "246", - "json": { - "$id": "247", - "name": "property" - } - } - } - ] - }, - { - "$id": "248", - "kind": "model", - "name": "NeverProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.NeverProperty", - "usage": "Input,Output,Json", - "doc": "Model with a property never. (This property should not be included).", - "decorators": [], - "properties": [] - }, - { - "$id": "249", - "kind": "model", - "name": "UnknownStringProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownStringProperty", - "usage": "Input,Output,Json", - "doc": "Model with a property unknown, and the data is a string.", - "decorators": [], - "properties": [ + }, { - "$id": "250", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "251", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", + "$id": "61", + "kind": "constant", + "name": "putContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownStringProperty.property", - "serializationOptions": { - "$id": "252", - "json": { - "$id": "253", - "name": "property" - } - } - } - ] - }, - { - "$id": "254", - "kind": "model", - "name": "UnknownIntProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownIntProperty", - "usage": "Input,Output,Json", - "doc": "Model with a property unknown, and the data is a int32.", - "decorators": [], - "properties": [ + }, { - "$id": "255", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "256", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", + "$id": "63", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownIntProperty.property", - "serializationOptions": { - "$id": "257", - "json": { - "$id": "258", - "name": "property" - } - } - } - ] - }, - { - "$id": "259", - "kind": "model", - "name": "UnknownDictProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDictProperty", - "usage": "Input,Output,Json", - "doc": "Model with a property unknown, and the data is a dictionnary.", - "decorators": [], - "properties": [ + }, { - "$id": "260", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "261", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", + "$id": "65", + "kind": "constant", + "name": "putContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDictProperty.property", - "serializationOptions": { - "$id": "262", - "json": { - "$id": "263", - "name": "property" - } - } - } - ] - }, - { - "$id": "264", - "kind": "model", - "name": "UnknownArrayProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArrayProperty", - "usage": "Input,Output,Json", - "doc": "Model with a property unknown, and the data is an array.", - "decorators": [], - "properties": [ + }, { - "$id": "265", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "266", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", + "$id": "67", + "kind": "constant", + "name": "getContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArrayProperty.property", - "serializationOptions": { - "$id": "267", - "json": { - "$id": "268", - "name": "property" - } - } - } - ] - }, - { - "$id": "269", - "kind": "model", - "name": "StringLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a string literal property.", - "decorators": [], - "properties": [ - { - "$id": "270", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "36" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteralProperty.property", - "serializationOptions": { - "$id": "271", - "json": { - "$id": "272", - "name": "property" - } - } - } - ] - }, - { - "$id": "273", - "kind": "model", - "name": "IntLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a int literal property.", - "decorators": [], - "properties": [ - { - "$id": "274", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "38" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteralProperty.property", - "serializationOptions": { - "$id": "275", - "json": { - "$id": "276", - "name": "property" - } - } - } - ] - }, - { - "$id": "277", - "kind": "model", - "name": "FloatLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a float literal property.", - "decorators": [], - "properties": [ + }, { - "$id": "278", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "40" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteralProperty.property", - "serializationOptions": { - "$id": "279", - "json": { - "$id": "280", - "name": "property" - } - } - } - ] - }, - { - "$id": "281", - "kind": "model", - "name": "BooleanLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a boolean literal property.", - "decorators": [], - "properties": [ + "$id": "69", + "kind": "constant", + "name": "putContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "282", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "42" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteralProperty.property", - "serializationOptions": { - "$id": "283", - "json": { - "$id": "284", - "name": "property" - } - } - } - ] - }, - { - "$id": "285", - "kind": "model", - "name": "UnionStringLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a union of string literal as property.", - "decorators": [], - "properties": [ + "$id": "71", + "kind": "constant", + "name": "getContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "286", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "14" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property", - "serializationOptions": { - "$id": "287", - "json": { - "$id": "288", - "name": "property" - } - } - } - ] - }, - { - "$id": "289", - "kind": "model", - "name": "UnionIntLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a union of int literal as property.", - "decorators": [], - "properties": [ + "$id": "73", + "kind": "constant", + "name": "putContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "290", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "20" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property", - "serializationOptions": { - "$id": "291", - "json": { - "$id": "292", - "name": "property" - } - } - } - ] - }, - { - "$id": "293", - "kind": "model", - "name": "UnionFloatLiteralProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty", - "usage": "Input,Output,Json", - "doc": "Model with a union of float literal as property.", - "decorators": [], - "properties": [ + "$id": "75", + "kind": "constant", + "name": "getContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "294", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$ref": "26" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property", - "serializationOptions": { - "$id": "295", - "json": { - "$id": "296", - "name": "property" - } - } - } - ] - }, - { - "$id": "297", - "kind": "model", - "name": "UnionEnumValueProperty", - "namespace": "Type.Property.ValueTypes", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValueProperty", - "usage": "Input,Output,Json", - "doc": "Template type for testing models with specific properties. Pass in the type of the property you are looking for", - "decorators": [], - "properties": [ + "$id": "77", + "kind": "constant", + "name": "putContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "298", - "kind": "property", - "name": "property", - "serializedName": "property", - "doc": "Property", - "type": { - "$id": "299", - "kind": "enumvalue", - "name": "EnumValue2", - "value": "value2", + "$id": "79", + "kind": "constant", + "name": "getContentType14", + "namespace": "", + "usage": "None", "valueType": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "enumType": { - "$ref": "32" + "value": "application/json", + "decorators": [] + }, + { + "$id": "81", + "kind": "constant", + "name": "putContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValueProperty.property", - "serializationOptions": { - "$id": "301", - "json": { - "$id": "302", - "name": "property" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "303", - "kind": "client", - "name": "ValueTypesClient", - "namespace": "Type.Property.ValueTypes", - "doc": "Illustrates various property types for models", - "methods": [], - "parameters": [ + }, { - "$id": "304", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "305", - "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": "306", - "type": { - "$id": "307", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "83", + "kind": "constant", + "name": "getContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "308", - "kind": "client", - "name": "Boolean", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "309", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "310", - "name": "get", - "resourceName": "Boolean", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "311", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "312", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "160" - }, - "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", + "$id": "85", + "kind": "constant", + "name": "putContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "313", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "314", - "type": { - "$ref": "160" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get" }, - { - "$id": "315", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "316", - "name": "put", - "resourceName": "Boolean", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "317", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "318", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "160" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "319", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "87", + "kind": "constant", + "name": "getContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "320", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "160" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "321", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "322" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put" - } - ], - "parameters": [ - { - "$id": "323", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "324", - "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": "325", - "type": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "327", - "kind": "client", - "name": "String", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "328", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "329", - "name": "get", - "resourceName": "String", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "330", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "331", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "165" - }, - "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", + "$id": "89", + "kind": "constant", + "name": "putContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "332", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "333", - "type": { - "$ref": "165" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get" }, - { - "$id": "334", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "335", - "name": "put", - "resourceName": "String", - "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": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "337", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "165" - }, - "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/value-types/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "91", + "kind": "constant", + "name": "getContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "339", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "165" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "340", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "341" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put" - } - ], - "parameters": [ - { - "$id": "342", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "343", - "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": "344", - "type": { - "$id": "345", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "346", - "kind": "client", - "name": "Bytes", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "347", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "348", - "name": "get", - "resourceName": "Bytes", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "349", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "350", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "170" - }, - "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", + "$id": "93", + "kind": "constant", + "name": "putContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "351", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "352", - "type": { - "$ref": "170" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get" }, - { - "$id": "353", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "354", - "name": "put", - "resourceName": "Bytes", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "355", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "356", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "170" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "357", - "statusCodes": [ - 204 - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "95", + "kind": "constant", + "name": "getContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "358", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "170" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "359", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "360" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put" - } - ], - "parameters": [ - { - "$id": "361", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "362", - "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": "363", - "type": { - "$id": "364", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "365", - "kind": "client", - "name": "Int", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "366", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "367", - "name": "get", - "resourceName": "Int", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "368", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "369", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "175" - }, - "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", + "$id": "97", + "kind": "constant", + "name": "putContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "370", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "371", - "type": { - "$ref": "175" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get" }, - { - "$id": "372", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "373", - "name": "put", - "resourceName": "Int", - "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": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "375", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "175" - }, - "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": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/int", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "99", + "kind": "constant", + "name": "getContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "377", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "175" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "378", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "379" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put" - } - ], - "parameters": [ - { - "$id": "380", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "381", - "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": "382", - "type": { - "$id": "383", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "384", - "kind": "client", - "name": "Float", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "385", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "386", - "name": "get", - "resourceName": "Float", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "387", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "388", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "180" - }, - "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", + "$id": "101", + "kind": "constant", + "name": "putContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "389", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "390", - "type": { - "$ref": "180" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get" }, - { - "$id": "391", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "392", - "name": "put", - "resourceName": "Float", - "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": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "394", - "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": "395", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "103", + "kind": "constant", + "name": "getContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "396", - "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 - }, - { - "$id": "397", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "398" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put" - } - ], - "parameters": [ - { - "$id": "399", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "400", - "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": "401", - "type": { - "$id": "402", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "403", - "kind": "client", - "name": "Decimal", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "404", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "405", - "name": "get", - "resourceName": "Decimal", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "406", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "407", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "185" - }, - "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", + "$id": "105", + "kind": "constant", + "name": "putContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "408", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "409", - "type": { - "$ref": "185" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get" }, - { - "$id": "410", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "411", - "name": "put", - "resourceName": "Decimal", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "412", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "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": "185" - }, - "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/value-types/decimal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "107", + "kind": "constant", + "name": "getContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "415", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "185" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "416", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "417" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put" - } - ], - "parameters": [ - { - "$id": "418", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "419", - "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": "420", - "type": { - "$id": "421", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "422", - "kind": "client", - "name": "Decimal128", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "423", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "424", - "name": "get", - "resourceName": "Decimal128", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "425", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "426", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "190" - }, - "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", + "$id": "109", + "kind": "constant", + "name": "StringLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "427", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "428", - "type": { - "$ref": "190" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get" }, - { - "$id": "429", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "430", - "name": "put", - "resourceName": "Decimal128", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "431", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "432", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "433", - "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", + "value": "hello", + "decorators": [] + }, + { + "$id": "111", + "kind": "constant", + "name": "putContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "113", + "kind": "constant", + "name": "getContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "115", + "kind": "constant", + "name": "IntLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", + "valueType": { + "$id": "116", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 42, + "decorators": [] + }, + { + "$id": "117", + "kind": "constant", + "name": "putContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "434", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "435", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "436" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put" - } - ], - "parameters": [ - { - "$id": "437", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "438", - "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": "439", - "type": { - "$id": "440", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "441", - "kind": "client", - "name": "Datetime", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "442", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "443", - "name": "get", - "resourceName": "Datetime", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "444", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "445", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "195" - }, - "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", + "$id": "119", + "kind": "constant", + "name": "getContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "446", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "447", - "type": { - "$ref": "195" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get" }, - { - "$id": "448", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "449", - "name": "put", - "resourceName": "Datetime", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "450", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "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": "195" - }, - "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/datetime", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "121", + "kind": "constant", + "name": "FloatLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", + "valueType": { + "$id": "122", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] - }, - "parameters": [ - { - "$id": "453", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "195" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "454", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "455" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put" - } - ], - "parameters": [ - { - "$id": "456", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "457", - "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": "458", - "type": { - "$id": "459", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": 43.125, + "decorators": [] }, { - "$id": "460", - "kind": "client", - "name": "Duration", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "461", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "462", - "name": "get", - "resourceName": "Duration", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "463", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "464", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "201" - }, - "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", + "$id": "123", + "kind": "constant", + "name": "putContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "465", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "466", - "type": { - "$ref": "201" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get" }, - { - "$id": "467", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "468", - "name": "put", - "resourceName": "Duration", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "469", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "470", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "201" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "471", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "125", + "kind": "constant", + "name": "getContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "472", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "201" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "473", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "474" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put" - } - ], - "parameters": [ - { - "$id": "475", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "476", - "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": "477", - "type": { - "$id": "478", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "479", - "kind": "client", - "name": "Enum", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "480", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "481", - "name": "get", - "resourceName": "Enum", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "482", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "483", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "207" - }, - "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", + "$id": "127", + "kind": "constant", + "name": "BooleanLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", + "valueType": { + "$id": "128", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] - }, - "parameters": [ - { - "$id": "484", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "485", - "type": { - "$ref": "207" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get" }, - { - "$id": "486", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "487", - "name": "put", - "resourceName": "Enum", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "488", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "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": "207" - }, - "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/value-types/enum", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", + "value": true, + "decorators": [] + }, + { + "$id": "129", + "kind": "constant", + "name": "putContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "491", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "207" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "492", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "493" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put" - } - ], - "parameters": [ - { - "$id": "494", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "495", - "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": "496", - "type": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "498", - "kind": "client", - "name": "ExtensibleEnum", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "499", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "500", - "name": "get", - "resourceName": "ExtensibleEnum", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "501", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "502", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "211" - }, - "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", + "$id": "131", + "kind": "constant", + "name": "getContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "503", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "504", - "type": { - "$ref": "211" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get" }, - { - "$id": "505", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "506", - "name": "put", - "resourceName": "ExtensibleEnum", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "507", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "508", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "211" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "509", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "133", + "kind": "constant", + "name": "putContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "510", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "211" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "511", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "512" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put" - } - ], - "parameters": [ - { - "$id": "513", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "514", - "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": "515", - "type": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "517", - "kind": "client", - "name": "Model", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "518", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "519", - "name": "get", - "resourceName": "Model", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "520", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "521", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "215" - }, - "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", + "$id": "135", + "kind": "constant", + "name": "getContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "522", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "523", - "type": { - "$ref": "215" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get" }, - { - "$id": "524", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "525", - "name": "put", - "resourceName": "Model", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "526", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "527", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "215" - }, - "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/value-types/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "137", + "kind": "constant", + "name": "putContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "529", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "530", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "531" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put" - } - ], - "parameters": [ - { - "$id": "532", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "533", - "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": "534", - "type": { - "$id": "535", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "536", - "kind": "client", - "name": "CollectionsString", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "537", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "538", - "name": "get", - "resourceName": "CollectionsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "539", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "540", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "224" - }, - "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", + "$id": "139", + "kind": "constant", + "name": "getContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "541", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "542", - "type": { - "$ref": "224" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get" }, - { - "$id": "543", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "544", - "name": "put", - "resourceName": "CollectionsString", - "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": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "546", - "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": "547", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "141", + "kind": "constant", + "name": "putContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "548", - "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 - }, - { - "$id": "549", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "550" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put" - } - ], - "parameters": [ - { - "$id": "551", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "552", - "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": "553", - "type": { - "$id": "554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", - "apiVersions": [], - "parent": { - "$ref": "303" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "555", - "kind": "client", - "name": "CollectionsInt", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "556", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "557", - "name": "get", - "resourceName": "CollectionsInt", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "558", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "559", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "230" - }, - "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", + "$id": "143", + "kind": "constant", + "name": "getContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "145", + "kind": "constant", + "name": "putContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "560", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "561", - "type": { - "$ref": "230" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get" }, - { - "$id": "562", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "563", - "name": "put", - "resourceName": "CollectionsInt", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "564", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "565", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "147", + "kind": "model", + "name": "BooleanProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanProperty", + "usage": "Input,Output,Json", + "doc": "Model with a boolean property", + "decorators": [], + "properties": [ + { + "$id": "148", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "230" + "$id": "149", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "566", - "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": [] - }, - "parameters": [ - { - "$id": "567", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "230" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "568", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "569" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put" - } - ], - "parameters": [ - { - "$id": "570", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "571", - "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": "572", - "type": { - "$id": "573", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "574", - "kind": "client", - "name": "CollectionsModel", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "575", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "576", - "name": "get", - "resourceName": "CollectionsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "577", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "578", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "236" - }, - "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": [] - }, - "parameters": [ + "$id": "150", + "kind": "model", + "name": "StringProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringProperty", + "usage": "Input,Output,Json", + "doc": "Model with a string property", + "decorators": [], + "properties": [ { - "$id": "579", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "580", - "type": { - "$ref": "236" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get" - }, - { - "$id": "581", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "582", - "name": "put", - "resourceName": "CollectionsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "583", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "584", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "151", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "236" + "$id": "152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "585", - "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": [] - }, - "parameters": [ - { - "$id": "586", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "236" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "587", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "588" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put" - } - ], - "parameters": [ - { - "$id": "589", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "590", - "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": "591", - "type": { - "$id": "592", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "593", - "kind": "client", - "name": "DictionaryString", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "594", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "595", - "name": "get", - "resourceName": "DictionaryString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "596", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "597", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "241" - }, - "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": [] - }, - "parameters": [ + "$id": "153", + "kind": "model", + "name": "BytesProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BytesProperty", + "usage": "Input,Output,Json", + "doc": "Model with a bytes property", + "decorators": [], + "properties": [ { - "$id": "598", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "599", - "type": { - "$ref": "241" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get" - }, - { - "$id": "600", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "601", - "name": "put", - "resourceName": "DictionaryString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "602", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "603", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "154", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "241" + "$id": "155", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "604", - "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": [] - }, - "parameters": [ - { - "$id": "605", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "241" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "606", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BytesProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "607" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put" - } - ], - "parameters": [ - { - "$id": "608", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "609", - "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": "610", - "type": { - "$id": "611", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "612", - "kind": "client", - "name": "Never", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "613", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "614", - "name": "get", - "resourceName": "Never", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "615", - "name": "accept", - "nameInRequest": "Accept", + "$id": "156", + "kind": "model", + "name": "IntProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntProperty", + "usage": "Input,Output,Json", + "doc": "Model with a int property", + "decorators": [], + "properties": [ + { + "$id": "157", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "108" + "$id": "158", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "616", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "248" - }, - "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": [] - }, - "parameters": [ - { - "$id": "617", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "618", - "type": { - "$ref": "248" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get" - }, - { - "$id": "619", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "620", - "name": "put", - "resourceName": "Never", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "621", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "159", + "kind": "model", + "name": "FloatProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatProperty", + "usage": "Input,Output,Json", + "doc": "Model with a float property", + "decorators": [], + "properties": [ + { + "$id": "160", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "110" + "$id": "161", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "622", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "162", + "kind": "model", + "name": "DecimalProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DecimalProperty", + "usage": "Input,Output,Json", + "doc": "Model with a decimal property", + "decorators": [], + "properties": [ + { + "$id": "163", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "248" + "$id": "164", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "623", - "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": [] - }, - "parameters": [ - { - "$id": "624", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "248" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "625", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DecimalProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "626" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put" - } - ], - "parameters": [ - { - "$id": "627", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "628", - "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": "629", - "type": { - "$id": "630", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "631", - "kind": "client", - "name": "UnknownString", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "632", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "633", - "name": "get", - "resourceName": "UnknownString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "634", - "name": "accept", - "nameInRequest": "Accept", + "$id": "165", + "kind": "model", + "name": "Decimal128Property", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128Property", + "usage": "Input,Output,Json", + "doc": "Model with a decimal128 property", + "decorators": [], + "properties": [ + { + "$id": "166", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "112" + "$id": "167", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "635", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "249" - }, - "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": [] - }, - "parameters": [ - { - "$id": "636", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128Property.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "637", - "type": { - "$ref": "249" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get" - }, - { - "$id": "638", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "639", - "name": "put", - "resourceName": "UnknownString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "640", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "168", + "kind": "model", + "name": "DatetimeProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DatetimeProperty", + "usage": "Input,Output,Json", + "doc": "Model with a datetime property", + "decorators": [], + "properties": [ + { + "$id": "169", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "114" + "$id": "170", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "641", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DatetimeProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "172", + "kind": "model", + "name": "DurationProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DurationProperty", + "usage": "Input,Output,Json", + "doc": "Model with a duration property", + "decorators": [], + "properties": [ + { + "$id": "173", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "249" + "$id": "174", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "642", - "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": [] - }, - "parameters": [ - { - "$id": "643", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "249" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "644", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DurationProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "645" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put" - } - ], - "parameters": [ - { - "$id": "646", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "647", - "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": "648", - "type": { - "$id": "649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "650", - "kind": "client", - "name": "UnknownInt", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "651", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "652", - "name": "get", - "resourceName": "UnknownInt", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "653", - "name": "accept", - "nameInRequest": "Accept", + "$id": "176", + "kind": "model", + "name": "EnumProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.EnumProperty", + "usage": "Input,Output,Json", + "doc": "Model with enum properties", + "decorators": [], + "properties": [ + { + "$id": "177", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "116" + "$ref": "1" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "654", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "254" - }, - "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": [] - }, - "parameters": [ - { - "$id": "655", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "656", - "type": { - "$ref": "254" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.EnumProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get" - }, - { - "$id": "657", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "658", - "name": "put", - "resourceName": "UnknownInt", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "659", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "178", + "kind": "model", + "name": "ExtensibleEnumProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnumProperty", + "usage": "Input,Output,Json", + "doc": "Model with extensible enum properties", + "decorators": [], + "properties": [ + { + "$id": "179", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "118" + "$ref": "5" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "660", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnumProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "180", + "kind": "model", + "name": "ModelProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ModelProperty", + "usage": "Input,Output,Json", + "doc": "Model with model properties", + "decorators": [], + "properties": [ + { + "$id": "181", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "254" + "$id": "182", + "kind": "model", + "name": "InnerModel", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerModel", + "usage": "Input,Output,Json", + "doc": "Inner model. Will be a property type for ModelWithModelProperties", + "decorators": [], + "properties": [ + { + "$id": "183", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Required string property", + "type": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerModel.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "661", - "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": [] - }, - "parameters": [ - { - "$id": "662", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "254" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "663", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "118" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ModelProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "664" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put" - } - ], - "parameters": [ - { - "$id": "665", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "666", - "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": "667", - "type": { - "$id": "668", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] + }, + { + "$ref": "182" }, { - "$id": "669", - "kind": "client", - "name": "UnknownDict", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "670", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "671", - "name": "get", - "resourceName": "UnknownDict", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "672", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "673", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "259" - }, - "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": [] - }, - "parameters": [ + "$id": "185", + "kind": "model", + "name": "CollectionsStringProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsStringProperty", + "usage": "Input,Output,Json", + "doc": "Model with collection string properties", + "decorators": [], + "properties": [ { - "$id": "674", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "675", - "type": { - "$ref": "259" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get" - }, - { - "$id": "676", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "677", - "name": "put", - "resourceName": "UnknownDict", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "678", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "186", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "122" + "$id": "187", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "679", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsStringProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "189", + "kind": "model", + "name": "CollectionsIntProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsIntProperty", + "usage": "Input,Output,Json", + "doc": "Model with collection int properties", + "decorators": [], + "properties": [ + { + "$id": "190", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "259" + "$id": "191", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "192", + "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", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "680", - "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": [] - }, - "parameters": [ - { - "$id": "681", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "259" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "682", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsIntProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "683" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put" - } - ], - "parameters": [ - { - "$id": "684", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "685", - "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": "686", - "type": { - "$id": "687", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "688", - "kind": "client", - "name": "UnknownArray", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "689", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "690", - "name": "get", - "resourceName": "UnknownArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "691", - "name": "accept", - "nameInRequest": "Accept", + "$id": "193", + "kind": "model", + "name": "CollectionsModelProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModelProperty", + "usage": "Input,Output,Json", + "doc": "Model with collection model properties", + "decorators": [], + "properties": [ + { + "$id": "194", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "124" + "$id": "195", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "182" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "692", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "264" - }, - "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": [] - }, - "parameters": [ - { - "$id": "693", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModelProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "694", - "type": { - "$ref": "264" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get" - }, - { - "$id": "695", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "696", - "name": "put", - "resourceName": "UnknownArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "697", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "196", + "kind": "model", + "name": "DictionaryStringProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryStringProperty", + "usage": "Input,Output,Json", + "doc": "Model with dictionary string properties", + "decorators": [], + "properties": [ + { + "$id": "197", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "126" + "$id": "198", + "kind": "dict", + "keyType": { + "$id": "199", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "698", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryStringProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "201", + "kind": "model", + "name": "NeverProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.NeverProperty", + "usage": "Input,Output,Json", + "doc": "Model with a property never. (This property should not be included).", + "decorators": [], + "properties": [] + }, + { + "$id": "202", + "kind": "model", + "name": "UnknownStringProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownStringProperty", + "usage": "Input,Output,Json", + "doc": "Model with a property unknown, and the data is a string.", + "decorators": [], + "properties": [ + { + "$id": "203", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "264" + "$id": "204", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "699", - "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": [] - }, - "parameters": [ - { - "$id": "700", - "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 - }, - { - "$id": "701", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownStringProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "702" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put" - } - ], - "parameters": [ - { - "$id": "703", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "704", - "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": "705", - "type": { - "$id": "706", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "707", - "kind": "client", - "name": "StringLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "708", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "709", - "name": "get", - "resourceName": "StringLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "710", - "name": "accept", - "nameInRequest": "Accept", + "$id": "205", + "kind": "model", + "name": "UnknownIntProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownIntProperty", + "usage": "Input,Output,Json", + "doc": "Model with a property unknown, and the data is a int32.", + "decorators": [], + "properties": [ + { + "$id": "206", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "128" + "$id": "207", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "711", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "269" - }, - "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": [] - }, - "parameters": [ - { - "$id": "712", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownIntProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "713", - "type": { - "$ref": "269" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get" - }, - { - "$id": "714", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "715", - "name": "put", - "resourceName": "StringLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "716", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "208", + "kind": "model", + "name": "UnknownDictProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDictProperty", + "usage": "Input,Output,Json", + "doc": "Model with a property unknown, and the data is a dictionnary.", + "decorators": [], + "properties": [ + { + "$id": "209", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "130" + "$id": "210", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "717", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDictProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "211", + "kind": "model", + "name": "UnknownArrayProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArrayProperty", + "usage": "Input,Output,Json", + "doc": "Model with a property unknown, and the data is an array.", + "decorators": [], + "properties": [ + { + "$id": "212", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "269" + "$id": "213", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "718", - "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": [] - }, - "parameters": [ - { - "$id": "719", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "269" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "720", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArrayProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "721" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put" - } - ], - "parameters": [ - { - "$id": "722", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "723", - "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": "724", - "type": { - "$id": "725", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "726", - "kind": "client", - "name": "IntLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "727", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "728", - "name": "get", - "resourceName": "IntLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "729", - "name": "accept", - "nameInRequest": "Accept", + "$id": "214", + "kind": "model", + "name": "StringLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a string literal property.", + "decorators": [], + "properties": [ + { + "$id": "215", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "132" + "$ref": "109" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "730", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "273" - }, - "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": [] - }, - "parameters": [ - { - "$id": "731", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "732", - "type": { - "$ref": "273" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get" - }, - { - "$id": "733", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "734", - "name": "put", - "resourceName": "IntLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "735", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "216", + "kind": "model", + "name": "IntLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a int literal property.", + "decorators": [], + "properties": [ + { + "$id": "217", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "134" + "$ref": "115" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "736", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "218", + "kind": "model", + "name": "FloatLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a float literal property.", + "decorators": [], + "properties": [ + { + "$id": "219", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "273" + "$ref": "121" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "737", - "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": [] - }, - "parameters": [ - { - "$id": "738", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "273" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "739", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "740" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put" - } - ], - "parameters": [ - { - "$id": "741", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "742", - "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": "743", - "type": { - "$id": "744", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] }, { - "$id": "745", - "kind": "client", - "name": "FloatLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "746", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "747", - "name": "get", - "resourceName": "FloatLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "748", - "name": "accept", - "nameInRequest": "Accept", + "$id": "220", + "kind": "model", + "name": "BooleanLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a boolean literal property.", + "decorators": [], + "properties": [ + { + "$id": "221", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "136" + "$ref": "127" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "749", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "277" - }, - "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": [] - }, - "parameters": [ - { - "$id": "750", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "136" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "751", - "type": { - "$ref": "277" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get" - }, - { - "$id": "752", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "753", - "name": "put", - "resourceName": "FloatLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "754", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "222", + "kind": "model", + "name": "UnionStringLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a union of string literal as property.", + "decorators": [], + "properties": [ + { + "$id": "223", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "138" + "$ref": "9" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "755", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "224", + "kind": "model", + "name": "UnionIntLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a union of int literal as property.", + "decorators": [], + "properties": [ + { + "$id": "225", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "277" + "$ref": "13" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "756", - "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": [] - }, - "parameters": [ - { - "$id": "757", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "277" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + }, + { + "$id": "226", + "kind": "model", + "name": "UnionFloatLiteralProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty", + "usage": "Input,Output,Json", + "doc": "Model with a union of float literal as property.", + "decorators": [], + "properties": [ { - "$id": "758", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "138" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "759" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put" - } - ], - "parameters": [ - { - "$id": "760", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "761", - "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": "762", - "type": { - "$id": "763", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } - }, - { - "$id": "764", - "kind": "client", - "name": "BooleanLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "765", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "766", - "name": "get", - "resourceName": "BooleanLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "767", - "name": "accept", - "nameInRequest": "Accept", + "$id": "227", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "140" + "$ref": "17" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "768", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "281" - }, - "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": [] - }, - "parameters": [ - { - "$id": "769", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "140" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } } - ], - "response": { - "$id": "770", - "type": { - "$ref": "281" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get" - }, - { - "$id": "771", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "772", - "name": "put", - "resourceName": "BooleanLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "773", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "228", + "kind": "model", + "name": "UnionEnumValueProperty", + "namespace": "Type.Property.ValueTypes", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValueProperty", + "usage": "Input,Output,Json", + "doc": "Template type for testing models with specific properties. Pass in the type of the property you are looking for", + "decorators": [], + "properties": [ + { + "$id": "229", + "kind": "property", + "name": "property", + "serializedName": "property", + "doc": "Property", "type": { - "$ref": "142" + "$id": "230", + "kind": "enumvalue", + "name": "EnumValue2", + "value": "value2", + "valueType": { + "$ref": "22" + }, + "enumType": { + "$ref": "21" + }, + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "774", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValueProperty.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "231", + "kind": "client", + "name": "ValueTypesClient", + "namespace": "Type.Property.ValueTypes", + "doc": "Illustrates various property types for models", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "281" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "775", - "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": [] - }, - "parameters": [ + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes", + "apiVersions": [], + "children": [ { - "$id": "776", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "281" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "232", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "233", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "234", + "name": "get", + "resourceName": "Boolean", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "235", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "236", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": [] + }, + "parameters": [ + { + "$id": "237", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get" + }, + { + "$id": "238", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "239", + "name": "put", + "resourceName": "Boolean", + "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": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "241", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "242", + "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": [] + }, + "parameters": [ + { + "$id": "243", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "244", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, { - "$id": "777", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "142" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "778" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put" - } - ], - "parameters": [ - { - "$id": "779", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "780", - "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": "781", - "type": { - "$id": "782", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } - }, - { - "$id": "783", - "kind": "client", - "name": "UnionStringLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "784", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "785", - "name": "get", - "resourceName": "UnionStringLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "786", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "144" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "245", + "kind": "client", + "name": "String", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "246", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "247", + "name": "get", + "resourceName": "String", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "249", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "150" + }, + "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": [] + }, + "parameters": [ + { + "$id": "250", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "150" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get" + }, + { + "$id": "251", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "252", + "name": "put", + "resourceName": "String", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "253", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "254", + "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": "255", + "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": [] + }, + "parameters": [ + { + "$id": "256", + "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 + }, + { + "$id": "257", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "787", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "258", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "259", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "260", + "name": "get", + "resourceName": "Bytes", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "261", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "262", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "153" + }, + "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": [] + }, + "parameters": [ + { + "$id": "263", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "153" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get" + }, + { + "$id": "264", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "265", + "name": "put", + "resourceName": "Bytes", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "267", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "153" + }, + "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": "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": [] + }, + "parameters": [ + { + "$id": "269", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "153" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "270", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put" + } ], - "bodyType": { - "$ref": "285" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "788", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "144" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "789", - "type": { - "$ref": "285" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get" - }, - { - "$id": "790", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "791", - "name": "put", - "resourceName": "UnionStringLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "792", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "271", + "kind": "client", + "name": "Int", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "272", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "273", + "name": "get", + "resourceName": "Int", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "274", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "275", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "156" + }, + "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": [] + }, + "parameters": [ + { + "$id": "276", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "156" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get" + }, + { + "$id": "277", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "278", + "name": "put", + "resourceName": "Int", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "279", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "280", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "156" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "281", + "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": [] + }, + "parameters": [ + { + "$id": "282", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "156" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "283", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "793", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "285" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "284", + "kind": "client", + "name": "Float", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "285", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "286", + "name": "get", + "resourceName": "Float", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "288", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "159" + }, + "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": [] + }, + "parameters": [ + { + "$id": "289", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "159" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get" + }, + { + "$id": "290", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "291", + "name": "put", + "resourceName": "Float", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "292", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "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": "159" + }, + "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/float", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "295", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "296", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "794", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "297", + "kind": "client", + "name": "Decimal", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "298", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "299", + "name": "get", + "resourceName": "Decimal", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "300", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "301", + "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": [] + }, + "parameters": [ + { + "$id": "302", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "162" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get" + }, + { + "$id": "303", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "304", + "name": "put", + "resourceName": "Decimal", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "305", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "306", + "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": "307", + "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": [] + }, + "parameters": [ + { + "$id": "308", + "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 + }, + { + "$id": "309", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "795", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "285" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "310", + "kind": "client", + "name": "Decimal128", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "311", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "312", + "name": "get", + "resourceName": "Decimal128", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "313", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "314", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "165" + }, + "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": [] + }, + "parameters": [ + { + "$id": "315", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "165" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get" + }, + { + "$id": "316", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "317", + "name": "put", + "resourceName": "Decimal128", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "318", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "319", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "165" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "320", + "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": [] + }, + "parameters": [ + { + "$id": "321", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "165" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "322", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, { - "$id": "796", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "797" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put" - } - ], - "parameters": [ - { - "$id": "798", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "799", - "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": "800", - "type": { - "$id": "801", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "323", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "324", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "325", + "name": "get", + "resourceName": "Datetime", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "326", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "327", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "168" + }, + "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": [] + }, + "parameters": [ + { + "$id": "328", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "168" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get" + }, + { + "$id": "329", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "330", + "name": "put", + "resourceName": "Datetime", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "331", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "332", + "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": "333", + "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": [] + }, + "parameters": [ + { + "$id": "334", + "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 + }, + { + "$id": "335", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } - }, - { - "$id": "802", - "kind": "client", - "name": "UnionIntLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "803", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "804", - "name": "get", - "resourceName": "UnionIntLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "805", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "336", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "337", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "338", + "name": "get", + "resourceName": "Duration", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "339", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "340", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "172" + }, + "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": [] + }, + "parameters": [ + { + "$id": "341", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "172" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get" + }, + { + "$id": "342", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "343", + "name": "put", + "resourceName": "Duration", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "344", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "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": "172" + }, + "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/value-types/duration", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "347", + "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 + }, + { + "$id": "348", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "806", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "349", + "kind": "client", + "name": "Enum", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "350", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "351", + "name": "get", + "resourceName": "Enum", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "352", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "353", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "176" + }, + "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": [] + }, + "parameters": [ + { + "$id": "354", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "176" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get" + }, + { + "$id": "355", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "356", + "name": "put", + "resourceName": "Enum", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "357", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "358", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "359", + "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": [] + }, + "parameters": [ + { + "$id": "360", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "361", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put" + } ], - "bodyType": { - "$ref": "289" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "807", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "808", - "type": { - "$ref": "289" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get" - }, - { - "$id": "809", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "810", - "name": "put", - "resourceName": "UnionIntLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "811", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "362", + "kind": "client", + "name": "ExtensibleEnum", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "363", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "364", + "name": "get", + "resourceName": "ExtensibleEnum", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "365", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "366", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "178" + }, + "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": [] + }, + "parameters": [ + { + "$id": "367", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "178" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get" + }, + { + "$id": "368", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "369", + "name": "put", + "resourceName": "ExtensibleEnum", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "370", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "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": "178" + }, + "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": [] + }, + "parameters": [ + { + "$id": "373", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "374", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "812", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "289" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "375", + "kind": "client", + "name": "Model", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "376", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "377", + "name": "get", + "resourceName": "Model", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "378", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "379", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "180" + }, + "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": [] + }, + "parameters": [ + { + "$id": "380", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "180" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get" + }, + { + "$id": "381", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "382", + "name": "put", + "resourceName": "Model", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "383", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "384", + "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": "385", + "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": [] + }, + "parameters": [ + { + "$id": "386", + "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 + }, + { + "$id": "387", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "813", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "388", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "389", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "390", + "name": "get", + "resourceName": "CollectionsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "391", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "392", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "185" + }, + "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": [] + }, + "parameters": [ + { + "$id": "393", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "185" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get" + }, + { + "$id": "394", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "395", + "name": "put", + "resourceName": "CollectionsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "396", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "397", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "185" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "398", + "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": [] + }, + "parameters": [ + { + "$id": "399", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "185" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "400", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "814", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "289" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "401", + "kind": "client", + "name": "CollectionsInt", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "402", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "403", + "name": "get", + "resourceName": "CollectionsInt", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "404", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "405", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "189" + }, + "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": [] + }, + "parameters": [ + { + "$id": "406", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "189" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get" + }, + { + "$id": "407", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "408", + "name": "put", + "resourceName": "CollectionsInt", + "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": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "410", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "189" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "411", + "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": [] + }, + "parameters": [ + { + "$id": "412", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "189" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "413", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, { - "$id": "815", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "816" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put" - } - ], - "parameters": [ - { - "$id": "817", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "818", - "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": "819", - "type": { - "$id": "820", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "414", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "415", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "416", + "name": "get", + "resourceName": "CollectionsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "417", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "418", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "193" + }, + "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": [] + }, + "parameters": [ + { + "$id": "419", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "193" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get" + }, + { + "$id": "420", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "421", + "name": "put", + "resourceName": "CollectionsModel", + "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": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "423", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "193" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "424", + "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": [] + }, + "parameters": [ + { + "$id": "425", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "193" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "426", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } - }, - { - "$id": "821", - "kind": "client", - "name": "UnionFloatLiteral", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "822", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "823", - "name": "get", - "resourceName": "UnionFloatLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "824", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "427", + "kind": "client", + "name": "DictionaryString", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "428", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "429", + "name": "get", + "resourceName": "DictionaryString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "430", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "431", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "196" + }, + "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": [] + }, + "parameters": [ + { + "$id": "432", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "196" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get" + }, + { + "$id": "433", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "434", + "name": "put", + "resourceName": "DictionaryString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "435", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "436", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "196" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "437", + "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": [] + }, + "parameters": [ + { + "$id": "438", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "196" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "439", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "825", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "440", + "kind": "client", + "name": "Never", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "441", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "442", + "name": "get", + "resourceName": "Never", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "443", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "444", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "201" + }, + "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": [] + }, + "parameters": [ + { + "$id": "445", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "201" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get" + }, + { + "$id": "446", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "447", + "name": "put", + "resourceName": "Never", + "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": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "449", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "201" + }, + "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/value-types/never", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "451", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "201" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "452", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put" + } ], - "bodyType": { - "$ref": "293" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "826", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "827", - "type": { - "$ref": "293" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get" - }, - { - "$id": "828", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "829", - "name": "put", - "resourceName": "UnionFloatLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "830", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "453", + "kind": "client", + "name": "UnknownString", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "454", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "455", + "name": "get", + "resourceName": "UnknownString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "456", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "457", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "202" + }, + "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": [] + }, + "parameters": [ + { + "$id": "458", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "202" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get" + }, + { + "$id": "459", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "460", + "name": "put", + "resourceName": "UnknownString", + "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": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "462", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "202" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "463", + "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": [] + }, + "parameters": [ + { + "$id": "464", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "202" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "465", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "831", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "293" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "466", + "kind": "client", + "name": "UnknownInt", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "467", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "468", + "name": "get", + "resourceName": "UnknownInt", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "469", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "470", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "205" + }, + "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": [] + }, + "parameters": [ + { + "$id": "471", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "205" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get" + }, + { + "$id": "472", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "473", + "name": "put", + "resourceName": "UnknownInt", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "474", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "475", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "205" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "476", + "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": [] + }, + "parameters": [ + { + "$id": "477", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "205" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "478", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "832", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "479", + "kind": "client", + "name": "UnknownDict", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "480", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "481", + "name": "get", + "resourceName": "UnknownDict", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "482", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "483", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "208" + }, + "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": [] + }, + "parameters": [ + { + "$id": "484", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "208" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get" + }, + { + "$id": "485", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "486", + "name": "put", + "resourceName": "UnknownDict", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "487", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "488", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "208" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "489", + "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": [] + }, + "parameters": [ + { + "$id": "490", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "208" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "491", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "833", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "293" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "492", + "kind": "client", + "name": "UnknownArray", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "493", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "494", + "name": "get", + "resourceName": "UnknownArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "495", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "496", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "211" + }, + "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": [] + }, + "parameters": [ + { + "$id": "497", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "211" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get" + }, + { + "$id": "498", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "499", + "name": "put", + "resourceName": "UnknownArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "500", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "501", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "211" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "502", + "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": [] + }, + "parameters": [ + { + "$id": "503", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "211" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "504", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, { - "$id": "834", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "835" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put" - } - ], - "parameters": [ - { - "$id": "836", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "837", - "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": "838", - "type": { - "$id": "839", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "505", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "506", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "507", + "name": "get", + "resourceName": "StringLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "508", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "509", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "214" + }, + "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": [] + }, + "parameters": [ + { + "$id": "510", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "214" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get" + }, + { + "$id": "511", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "512", + "name": "put", + "resourceName": "StringLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "513", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "111" + }, + "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": "214" + }, + "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/string/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "516", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "214" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "517", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", - "apiVersions": [], - "parent": { - "$ref": "303" - } - }, - { - "$id": "840", - "kind": "client", - "name": "UnionEnumValue", - "namespace": "Type.Property.ValueTypes", - "methods": [ - { - "$id": "841", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "842", - "name": "get", - "resourceName": "UnionEnumValue", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "843", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "156" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "518", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "519", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "520", + "name": "get", + "resourceName": "IntLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "521", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "522", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "216" + }, + "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": [] + }, + "parameters": [ + { + "$id": "523", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "216" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get" + }, + { + "$id": "524", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "525", + "name": "put", + "resourceName": "IntLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "526", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "527", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "216" + }, + "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/value-types/int/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "529", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "216" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "530", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "844", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "531", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "532", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "533", + "name": "get", + "resourceName": "FloatLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "534", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "535", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "218" + }, + "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": [] + }, + "parameters": [ + { + "$id": "536", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "218" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get" + }, + { + "$id": "537", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "538", + "name": "put", + "resourceName": "FloatLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "539", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "540", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "218" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "541", + "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": [] + }, + "parameters": [ + { + "$id": "542", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "218" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "543", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put" + } ], - "bodyType": { - "$ref": "297" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "845", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "156" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "846", - "type": { - "$ref": "297" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get" - }, - { - "$id": "847", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "848", - "name": "put", - "resourceName": "UnionEnumValue", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "849", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "158" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "544", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "545", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "546", + "name": "get", + "resourceName": "BooleanLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "547", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "548", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "220" + }, + "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": [] + }, + "parameters": [ + { + "$id": "549", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "220" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get" + }, + { + "$id": "550", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "551", + "name": "put", + "resourceName": "BooleanLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "552", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "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": "220" + }, + "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/value-types/boolean/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "555", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "220" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "556", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "850", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "297" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "557", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "558", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "559", + "name": "get", + "resourceName": "UnionStringLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "560", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "561", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "222" + }, + "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": [] + }, + "parameters": [ + { + "$id": "562", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "222" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get" + }, + { + "$id": "563", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "564", + "name": "put", + "resourceName": "UnionStringLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "565", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "133" + }, + "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": "222" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "567", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "568", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "222" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "569", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "851", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, + { + "$id": "570", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "571", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "572", + "name": "get", + "resourceName": "UnionIntLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "573", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "574", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "224" + }, + "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": [] + }, + "parameters": [ + { + "$id": "575", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "224" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get" + }, + { + "$id": "576", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "577", + "name": "put", + "resourceName": "UnionIntLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "578", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "137" + }, + "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": "224" + }, + "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/union/int/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "581", + "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 + }, + { + "$id": "582", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } + }, { - "$id": "852", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "297" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "583", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "584", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "585", + "name": "get", + "resourceName": "UnionFloatLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "586", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "139" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "587", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "226" + }, + "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": [] + }, + "parameters": [ + { + "$id": "588", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "139" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "226" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get" + }, + { + "$id": "589", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "590", + "name": "put", + "resourceName": "UnionFloatLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "591", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "141" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "592", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "226" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "593", + "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": [] + }, + "parameters": [ + { + "$id": "594", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "226" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "595", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "141" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "231" + } }, { - "$id": "853", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "158" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "596", + "kind": "client", + "name": "UnionEnumValue", + "namespace": "Type.Property.ValueTypes", + "methods": [ + { + "$id": "597", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "598", + "name": "get", + "resourceName": "UnionEnumValue", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "599", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "143" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "600", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "228" + }, + "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": [] + }, + "parameters": [ + { + "$id": "601", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "143" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "228" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get" + }, + { + "$id": "602", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "603", + "name": "put", + "resourceName": "UnionEnumValue", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "604", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "605", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "228" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "606", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "607", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "228" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "608", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "apiVersions": [], + "parent": { + "$ref": "231" + } } - ], - "response": { - "$id": "854" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put" - } - ], - "parameters": [ - { - "$id": "855", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "856", - "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": "857", - "type": { - "$id": "858", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", - "apiVersions": [], - "parent": { - "$ref": "303" - } + ] } - ] - } - ] + ] } 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 fee39b0d3e6..08e231aa9f9 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 @@ -1,2512 +1,2449 @@ { - "$id": "1", - "name": "Type.Scalar", - "apiVersions": [], - "enums": [], - "constants": [ - { - "$id": "2", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "4", - "kind": "constant", - "name": "GetResponseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "6", - "kind": "constant", - "name": "GetResponseContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "GetResponseContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "GetResponseContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "GetResponseContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "GetResponseContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "GetResponseContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "GetResponseContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "GetResponseContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "responseBodyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "GetResponseContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "GetResponseContentType10", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "GetResponseContentType11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "responseBodyContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "GetResponseContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "38", - "kind": "constant", - "name": "GetResponseContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "40", - "kind": "constant", - "name": "GetResponseContentType14", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "42", - "kind": "constant", - "name": "prepareVerifyContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "44", - "kind": "constant", - "name": "GetResponseContentType15", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "46", - "kind": "constant", - "name": "GetResponseContentType16", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "48", - "kind": "constant", - "name": "prepareVerifyContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "50", - "kind": "constant", - "name": "GetResponseContentType17", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "52", - "kind": "constant", - "name": "GetResponseContentType18", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [], - "clients": [ - { - "$id": "54", - "kind": "client", - "name": "ScalarClient", - "namespace": "Type.Scalar", - "methods": [], - "parameters": [ + "name": "Type.Scalar", + "apiVersions": [], + "enums": [], + "constants": [ { - "$id": "55", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "56", - "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": "57", - "type": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "1", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar", - "apiVersions": [], - "children": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "59", - "kind": "client", - "name": "String", - "namespace": "Type.Scalar", - "methods": [ - { - "$id": "60", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "get string value", - "operation": { - "$id": "61", - "name": "get", - "resourceName": "String", - "doc": "get string value", - "accessibility": "public", - "parameters": [ - { - "$id": "62", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "63", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ - { - "$id": "65", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "4" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.String.get", + "$id": "3", + "kind": "constant", + "name": "GetResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "66", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "2" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "67", - "type": { - "$ref": "64" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.String.get" }, - { - "$id": "68", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "put string value", - "operation": { - "$id": "69", - "name": "put", - "resourceName": "String", - "doc": "put string value", - "accessibility": "public", - "parameters": [ - { - "$id": "70", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "71", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$id": "72", - "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": "73", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "5", + "kind": "constant", + "name": "GetResponseContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "74", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "75", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$id": "76", - "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 - } - ], - "response": { - "$id": "77" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.String.put" - } - ], - "parameters": [ - { - "$id": "78", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "79", - "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": "80", - "type": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.String", - "apiVersions": [], - "parent": { - "$ref": "54" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "82", - "kind": "client", - "name": "Boolean", - "namespace": "Type.Scalar", - "methods": [ - { - "$id": "83", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "get boolean value", - "operation": { - "$id": "84", - "name": "get", - "resourceName": "Boolean", - "doc": "get boolean value", - "accessibility": "public", - "parameters": [ - { - "$id": "85", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "86", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "87", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "headers": [ - { - "$id": "88", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "12" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/boolean", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Boolean.get", + "$id": "7", + "kind": "constant", + "name": "GetResponseContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "89", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "90", - "type": { - "$ref": "87" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Boolean.get" }, - { - "$id": "91", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "put boolean value", - "operation": { - "$id": "92", - "name": "put", - "resourceName": "Boolean", - "doc": "put boolean value", - "accessibility": "public", - "parameters": [ - { - "$id": "93", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "94", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$id": "95", - "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": "96", - "statusCodes": [ - 204 - ], - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "97", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "98", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$id": "99", - "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 - } - ], - "response": { - "$id": "100" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Boolean.put" - } - ], - "parameters": [ - { - "$id": "101", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "102", - "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": "103", - "type": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Boolean", - "apiVersions": [], - "parent": { - "$ref": "54" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "105", - "kind": "client", - "name": "Unknown", - "namespace": "Type.Scalar", - "methods": [ - { - "$id": "106", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "get unknown value", - "operation": { - "$id": "107", - "name": "get", - "resourceName": "Unknown", - "doc": "get unknown value", - "accessibility": "public", - "parameters": [ - { - "$id": "108", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "109", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "110", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "headers": [ - { - "$id": "111", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "20" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/unknown", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Unknown.get", + "$id": "11", + "kind": "constant", + "name": "GetResponseContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "112", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "113", - "type": { - "$ref": "110" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Unknown.get" }, - { - "$id": "114", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "put unknown value", - "operation": { - "$id": "115", - "name": "put", - "resourceName": "Unknown", - "doc": "put unknown value", - "accessibility": "public", - "parameters": [ - { - "$id": "116", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "117", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$id": "118", - "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": "119", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "13", + "kind": "constant", + "name": "GetResponseContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "120", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "121", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$id": "122", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "123" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Unknown.put" - } - ], - "parameters": [ - { - "$id": "124", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "125", - "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": "126", - "type": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Unknown", - "apiVersions": [], - "parent": { - "$ref": "54" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "128", - "kind": "client", - "name": "DecimalType", - "namespace": "Type.Scalar", - "doc": "Decimal type", - "methods": [ - { - "$id": "129", - "kind": "basic", - "name": "responseBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "130", - "name": "responseBody", - "resourceName": "DecimalType", - "accessibility": "public", - "parameters": [ - { - "$id": "131", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "132", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "133", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "headers": [ - { - "$id": "134", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "28" - } - } - ], - "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", + "$id": "15", + "kind": "constant", + "name": "GetResponseContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "135", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "136", - "type": { - "$ref": "133" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody" }, - { - "$id": "137", - "kind": "basic", - "name": "requestBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "138", - "name": "requestBody", - "resourceName": "DecimalType", - "accessibility": "public", - "parameters": [ - { - "$id": "139", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$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 - } - ], - "responses": [ - { - "$id": "142", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "17", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "143", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "144", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "145", - "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 - } - ], - "response": { - "$id": "146" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody" }, - { - "$id": "147", - "kind": "basic", - "name": "requestParameter", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "148", - "name": "requestParameter", - "resourceName": "DecimalType", - "accessibility": "public", - "parameters": [ - { - "$id": "149", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "150", - "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": "151", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "GetResponseContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "152", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "153", - "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 - } - ], - "response": { - "$id": "154" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter" - } - ], - "parameters": [ - { - "$id": "155", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "156", - "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": "157", - "type": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalType", - "apiVersions": [], - "parent": { - "$ref": "54" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "159", - "kind": "client", - "name": "Decimal128Type", - "namespace": "Type.Scalar", - "doc": "Decimal128 type", - "methods": [ - { - "$id": "160", - "kind": "basic", - "name": "responseBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "161", - "name": "responseBody", - "resourceName": "Decimal128Type", - "accessibility": "public", - "parameters": [ - { - "$id": "162", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "34" - }, - "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": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "headers": [ - { - "$id": "165", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "36" - } - } - ], - "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", + "$id": "21", + "kind": "constant", + "name": "GetResponseContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "166", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "167", - "type": { - "$ref": "164" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody" }, - { - "$id": "168", - "kind": "basic", - "name": "requestBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "169", - "name": "requestBody", - "resourceName": "Decimal128Type", - "accessibility": "public", - "parameters": [ - { - "$id": "170", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "171", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "172", - "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": "173", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "GetResponseContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "174", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "175", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "176", - "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 - } - ], - "response": { - "$id": "177" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody" }, - { - "$id": "178", - "kind": "basic", - "name": "requestParameter", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "179", - "name": "requestParameter", - "resourceName": "Decimal128Type", - "accessibility": "public", - "parameters": [ - { - "$id": "180", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "181", - "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": "182", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "responseBodyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "183", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "184", - "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 - } - ], - "response": { - "$id": "185" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter" - } - ], - "parameters": [ - { - "$id": "186", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "187", - "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": "188", - "type": { - "$id": "189", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", - "apiVersions": [], - "parent": { - "$ref": "54" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "190", - "kind": "client", - "name": "DecimalVerify", - "namespace": "Type.Scalar", - "doc": "Decimal type verification", - "methods": [ - { - "$id": "191", - "kind": "basic", - "name": "prepareVerify", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "192", - "name": "prepareVerify", - "resourceName": "DecimalVerify", - "accessibility": "public", - "parameters": [ - { - "$id": "193", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "42" - }, - "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": "Array", - "valueType": { - "$id": "196", - "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", + "$id": "27", + "kind": "constant", + "name": "GetResponseContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "197", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "198", - "type": { - "$ref": "195" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify" }, - { - "$id": "199", - "kind": "basic", - "name": "verify", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "200", - "name": "verify", - "resourceName": "DecimalVerify", - "accessibility": "public", - "parameters": [ - { - "$id": "201", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "202", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "203", - "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": "204", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "GetResponseContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "205", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "206", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "207", - "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 - } - ], - "response": { - "$id": "208" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify" - } - ], - "parameters": [ - { - "$id": "209", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "210", - "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": "211", - "type": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", - "apiVersions": [], - "parent": { - "$ref": "54" - } + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "GetResponseContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "33", + "kind": "constant", + "name": "responseBodyContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "35", + "kind": "constant", + "name": "GetResponseContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "37", + "kind": "constant", + "name": "GetResponseContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "GetResponseContentType14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "prepareVerifyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "43", + "kind": "constant", + "name": "GetResponseContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "213", - "kind": "client", - "name": "Decimal128Verify", - "namespace": "Type.Scalar", - "doc": "Decimal128 type verification", - "methods": [ - { - "$id": "214", - "kind": "basic", - "name": "prepareVerify", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "215", - "name": "prepareVerify", - "resourceName": "Decimal128Verify", - "accessibility": "public", - "parameters": [ - { - "$id": "216", - "name": "accept", - "nameInRequest": "Accept", + "$id": "45", + "kind": "constant", + "name": "GetResponseContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", + "name": "prepareVerifyContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "49", + "kind": "constant", + "name": "GetResponseContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "51", + "kind": "constant", + "name": "GetResponseContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [], + "clients": [ + { + "$id": "53", + "kind": "client", + "name": "ScalarClient", + "namespace": "Type.Scalar", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "48" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar", + "apiVersions": [], + "children": [ + { + "$id": "54", + "kind": "client", + "name": "String", + "namespace": "Type.Scalar", + "methods": [ + { + "$id": "55", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "get string value", + "operation": { + "$id": "56", + "name": "get", + "resourceName": "String", + "doc": "get string value", + "accessibility": "public", + "parameters": [ + { + "$id": "57", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "58", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "3" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "60", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "59" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.String.get" + }, + { + "$id": "61", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "put string value", + "operation": { + "$id": "62", + "name": "put", + "resourceName": "String", + "doc": "put string value", + "accessibility": "public", + "parameters": [ + { + "$id": "63", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "64", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "65", + "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": "66", + "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": [] + }, + "parameters": [ + { + "$id": "67", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "68", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "69", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.String.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "217", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Scalar.String", + "apiVersions": [], + "parent": { + "$ref": "53" + } + }, + { + "$id": "70", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Scalar", + "methods": [ + { + "$id": "71", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "get boolean value", + "operation": { + "$id": "72", + "name": "get", + "resourceName": "Boolean", + "doc": "get boolean value", + "accessibility": "public", + "parameters": [ + { + "$id": "73", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "74", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "75", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "11" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "76", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "75" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Boolean.get" + }, + { + "$id": "77", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "put boolean value", + "operation": { + "$id": "78", + "name": "put", + "resourceName": "Boolean", + "doc": "put boolean value", + "accessibility": "public", + "parameters": [ + { + "$id": "79", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "80", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "81", + "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": "82", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "83", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "84", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "85", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Boolean.put" + } ], - "bodyType": { - "$id": "218", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "219", - "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/decimal128/prepare_verify", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", - "decorators": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Boolean", + "apiVersions": [], + "parent": { + "$ref": "53" + } + }, { - "$id": "220", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "221", - "type": { - "$ref": "218" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify" - }, - { - "$id": "222", - "kind": "basic", - "name": "verify", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "223", - "name": "verify", - "resourceName": "Decimal128Verify", - "accessibility": "public", - "parameters": [ - { - "$id": "224", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "86", + "kind": "client", + "name": "Unknown", + "namespace": "Type.Scalar", + "methods": [ + { + "$id": "87", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "get unknown value", + "operation": { + "$id": "88", + "name": "get", + "resourceName": "Unknown", + "doc": "get unknown value", + "accessibility": "public", + "parameters": [ + { + "$id": "89", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "90", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "91", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "19" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "92", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "91" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Unknown.get" + }, + { + "$id": "93", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "put unknown value", + "operation": { + "$id": "94", + "name": "put", + "resourceName": "Unknown", + "doc": "put unknown value", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "96", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "97", + "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": "98", + "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": [] + }, + "parameters": [ + { + "$id": "99", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "100", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "101", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Unknown.put" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "225", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "226", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Scalar.Unknown", + "apiVersions": [], + "parent": { + "$ref": "53" + } + }, + { + "$id": "102", + "kind": "client", + "name": "DecimalType", + "namespace": "Type.Scalar", + "doc": "Decimal type", + "methods": [ + { + "$id": "103", + "kind": "basic", + "name": "responseBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "104", + "name": "responseBody", + "resourceName": "DecimalType", + "accessibility": "public", + "parameters": [ + { + "$id": "105", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "106", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "107", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "27" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "108", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "107" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody" + }, + { + "$id": "109", + "kind": "basic", + "name": "requestBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "110", + "name": "requestBody", + "resourceName": "DecimalType", + "accessibility": "public", + "parameters": [ + { + "$id": "111", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "29" + }, + "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": "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": "114", + "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": [] + }, + "parameters": [ + { + "$id": "115", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "116", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "117", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody" + }, + { + "$id": "118", + "kind": "basic", + "name": "requestParameter", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "119", + "name": "requestParameter", + "resourceName": "DecimalType", + "accessibility": "public", + "parameters": [ + { + "$id": "120", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "121", + "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": "122", + "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": [] + }, + "parameters": [ + { + "$id": "123", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "124", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "227", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Scalar.DecimalType", + "apiVersions": [], + "parent": { + "$ref": "53" + } + }, + { + "$id": "125", + "kind": "client", + "name": "Decimal128Type", + "namespace": "Type.Scalar", + "doc": "Decimal128 type", + "methods": [ + { + "$id": "126", + "kind": "basic", + "name": "responseBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "127", + "name": "responseBody", + "resourceName": "Decimal128Type", + "accessibility": "public", + "parameters": [ + { + "$id": "128", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "129", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "130", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "35" + } + } + ], + "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": [] + }, + "parameters": [ + { + "$id": "131", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "130" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody" + }, + { + "$id": "132", + "kind": "basic", + "name": "requestBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "133", + "name": "requestBody", + "resourceName": "Decimal128Type", + "accessibility": "public", + "parameters": [ + { + "$id": "134", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "37" + }, + "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": "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": "137", + "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": [] + }, + "parameters": [ + { + "$id": "138", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "139", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "140", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody" + }, + { + "$id": "141", + "kind": "basic", + "name": "requestParameter", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "142", + "name": "requestParameter", + "resourceName": "Decimal128Type", + "accessibility": "public", + "parameters": [ + { + "$id": "143", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "144", + "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": "145", + "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": [] + }, + "parameters": [ + { + "$id": "146", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "147", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/scalar/decimal128/verify", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", - "decorators": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", + "apiVersions": [], + "parent": { + "$ref": "53" + } + }, { - "$id": "228", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "148", + "kind": "client", + "name": "DecimalVerify", + "namespace": "Type.Scalar", + "doc": "Decimal type verification", + "methods": [ + { + "$id": "149", + "kind": "basic", + "name": "prepareVerify", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "150", + "name": "prepareVerify", + "resourceName": "DecimalVerify", + "accessibility": "public", + "parameters": [ + { + "$id": "151", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "152", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "153", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "154", + "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": [] + }, + "parameters": [ + { + "$id": "155", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "153" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify" + }, + { + "$id": "156", + "kind": "basic", + "name": "verify", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "157", + "name": "verify", + "resourceName": "DecimalVerify", + "accessibility": "public", + "parameters": [ + { + "$id": "158", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "159", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "160", + "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": "161", + "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": [] + }, + "parameters": [ + { + "$id": "162", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "163", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "164", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", + "apiVersions": [], + "parent": { + "$ref": "53" + } }, { - "$id": "229", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "230", - "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 + "$id": "165", + "kind": "client", + "name": "Decimal128Verify", + "namespace": "Type.Scalar", + "doc": "Decimal128 type verification", + "methods": [ + { + "$id": "166", + "kind": "basic", + "name": "prepareVerify", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "167", + "name": "prepareVerify", + "resourceName": "Decimal128Verify", + "accessibility": "public", + "parameters": [ + { + "$id": "168", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "47" + }, + "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": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/prepare_verify", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", + "decorators": [] + }, + "parameters": [ + { + "$id": "172", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "170" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify" + }, + { + "$id": "173", + "kind": "basic", + "name": "verify", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "174", + "name": "verify", + "resourceName": "Decimal128Verify", + "accessibility": "public", + "parameters": [ + { + "$id": "175", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "49" + }, + "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": "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": "178", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/verify", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", + "decorators": [] + }, + "parameters": [ + { + "$id": "179", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "180", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "181", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "apiVersions": [], + "parent": { + "$ref": "53" + } } - ], - "response": { - "$id": "231" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify" - } - ], - "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": "Type.Scalar.Decimal128Verify", - "apiVersions": [], - "parent": { - "$ref": "54" - } + ] } - ] - } - ] + ] } 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 54bac85f0a8..2c679c0b1c8 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 @@ -1,4585 +1,4364 @@ { - "$id": "1", - "name": "Type.Union", - "apiVersions": [], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "GetResponseProp", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Type.Union", + "apiVersions": [], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "a", - "value": "a", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "GetResponseProp", + "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "a", + "value": "a", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "b", + "value": "b", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "c", + "value": "c", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] }, { - "$id": "6", - "kind": "enumvalue", - "name": "b", - "value": "b", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "6", + "kind": "enum", + "name": "GetResponseProp1", + "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "8", + "kind": "enumvalue", + "name": "b", + "value": "b", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "c", + "value": "c", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] }, { - "$id": "8", - "kind": "enumvalue", - "name": "c", - "value": "c", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "10", + "kind": "enum", + "name": "StringExtensibleNamedUnion", + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamedUnion", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "12", + "kind": "enumvalue", + "name": "OptionB", + "value": "b", + "valueType": { + "$ref": "11" + }, + "enumType": { + "$ref": "10" + }, + "decorators": [] + }, + { + "$id": "13", + "kind": "enumvalue", + "name": "c", + "value": "c", + "valueType": { + "$ref": "11" + }, + "enumType": { + "$ref": "10" + }, + "decorators": [] + } + ], + "namespace": "Type.Union", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "10", - "kind": "enum", - "name": "GetResponseProp1", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "12", - "kind": "enumvalue", - "name": "b", - "value": "b", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "14", + "kind": "enum", + "name": "GetResponseProp2", + "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", + "valueType": { + "$id": "15", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "values": [ + { + "$id": "16", + "kind": "enumvalue", + "name": "1", + "value": 1, + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + }, + { + "$id": "17", + "kind": "enumvalue", + "name": "2", + "value": 2, + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + }, + { + "$id": "18", + "kind": "enumvalue", + "name": "3", + "value": 3, + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] }, { - "$id": "14", - "kind": "enumvalue", - "name": "c", - "value": "c", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "19", + "kind": "enum", + "name": "GetResponseProp3", + "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", + "valueType": { + "$id": "20", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "values": [ + { + "$id": "21", + "kind": "enumvalue", + "name": "1.1", + "value": 1.1, + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "22", + "kind": "enumvalue", + "name": "2.2", + "value": 2.2, + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "23", + "kind": "enumvalue", + "name": "3.3", + "value": 3.3, + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "16", - "kind": "enum", - "name": "StringExtensibleNamedUnion", - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamedUnion", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "18", - "kind": "enumvalue", - "name": "OptionB", - "value": "b", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "24", + "kind": "enum", + "name": "EnumsOnlyCasesLr", + "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr.anonymous", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "26", + "kind": "enumvalue", + "name": "left", + "value": "left", + "valueType": { + "$ref": "25" + }, + "enumType": { + "$ref": "24" + }, + "decorators": [] + }, + { + "$id": "27", + "kind": "enumvalue", + "name": "right", + "value": "right", + "valueType": { + "$ref": "25" + }, + "enumType": { + "$ref": "24" + }, + "decorators": [] + }, + { + "$id": "28", + "kind": "enumvalue", + "name": "up", + "value": "up", + "valueType": { + "$ref": "25" + }, + "enumType": { + "$ref": "24" + }, + "decorators": [] + }, + { + "$id": "29", + "kind": "enumvalue", + "name": "down", + "value": "down", + "valueType": { + "$ref": "25" + }, + "enumType": { + "$ref": "24" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "16" - }, - "decorators": [] }, { - "$id": "20", - "kind": "enumvalue", - "name": "c", - "value": "c", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "30", + "kind": "enum", + "name": "EnumsOnlyCasesUd", + "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud.anonymous", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "32", + "kind": "enumvalue", + "name": "up", + "value": "up", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + }, + "decorators": [] + }, + { + "$id": "33", + "kind": "enumvalue", + "name": "down", + "value": "down", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "16" - }, - "decorators": [] } - ], - "namespace": "Type.Union", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "22", - "kind": "enum", - "name": "GetResponseProp2", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "valueType": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ + ], + "constants": [ { - "$id": "24", - "kind": "enumvalue", - "name": "1", - "value": 1, - "valueType": { - "$id": "25", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "34", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "22" - }, - "decorators": [] }, { - "$id": "26", - "kind": "enumvalue", - "name": "2", - "value": 2, - "valueType": { - "$id": "27", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "36", + "kind": "constant", + "name": "sendContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "22" - }, - "decorators": [] }, { - "$id": "28", - "kind": "enumvalue", - "name": "3", - "value": 3, - "valueType": { - "$id": "29", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "38", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "22" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "30", - "kind": "enum", - "name": "GetResponseProp3", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "valueType": { - "$id": "31", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ + }, { - "$id": "32", - "kind": "enumvalue", - "name": "1.1", - "value": 1.1, - "valueType": { - "$id": "33", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "40", + "kind": "constant", + "name": "sendContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "30" - }, - "decorators": [] }, { - "$id": "34", - "kind": "enumvalue", - "name": "2.2", - "value": 2.2, - "valueType": { - "$id": "35", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "42", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "30" - }, - "decorators": [] }, { - "$id": "36", - "kind": "enumvalue", - "name": "3.3", - "value": 3.3, - "valueType": { - "$id": "37", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "44", + "kind": "constant", + "name": "sendContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "30" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "38", - "kind": "enum", - "name": "EnumsOnlyCasesLr", - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr.anonymous", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "40", - "kind": "enumvalue", - "name": "left", - "value": "left", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "46", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "38" - }, - "decorators": [] }, { - "$id": "42", - "kind": "enumvalue", - "name": "right", - "value": "right", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "48", + "kind": "constant", + "name": "sendContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "38" - }, - "decorators": [] }, { - "$id": "44", - "kind": "enumvalue", - "name": "up", - "value": "up", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "50", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "38" - }, - "decorators": [] }, { - "$id": "46", - "kind": "enumvalue", - "name": "down", - "value": "down", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "52", + "kind": "constant", + "name": "sendContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "38" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "48", - "kind": "enum", - "name": "EnumsOnlyCasesUd", - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud.anonymous", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "50", - "kind": "enumvalue", - "name": "up", - "value": "up", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "54", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "decorators": [] }, { - "$id": "52", - "kind": "enumvalue", - "name": "down", - "value": "down", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "56", + "kind": "constant", + "name": "sendContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "decorators": [] - } - ], - "namespace": "", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - } - ], - "constants": [ - { - "$id": "54", - "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "56", - "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "57", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "58", - "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "59", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "60", - "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "61", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "62", - "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral11", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "64", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "66", - "kind": "constant", - "name": "sendContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "68", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "70", - "kind": "constant", - "name": "sendContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "72", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "sendContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "getContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "sendContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "getContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "sendContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "getContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "86", - "kind": "constant", - "name": "sendContentType5", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "88", - "kind": "constant", - "name": "getContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "90", - "kind": "constant", - "name": "sendContentType6", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "92", - "kind": "constant", - "name": "getContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "94", - "kind": "constant", - "name": "sendContentType7", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "96", - "kind": "constant", - "name": "getContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "98", - "kind": "constant", - "name": "sendContentType8", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "100", - "kind": "constant", - "name": "getContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "102", - "kind": "constant", - "name": "sendContentType9", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "104", - "kind": "model", - "name": "GetResponse", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "105", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "106", - "json": { - "$id": "107", - "name": "prop" - } - } - } - ] - }, - { - "$id": "108", - "kind": "model", - "name": "SendRequest", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + "$id": "58", + "kind": "constant", + "name": "getContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "109", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.prop", - "serializationOptions": { - "$id": "110", - "json": { - "$id": "111", - "name": "prop" - } - } - } - ] - }, - { - "$id": "112", - "kind": "model", - "name": "GetResponse1", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "$id": "60", + "kind": "constant", + "name": "sendContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "61", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "113", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "10" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "114", - "json": { - "$id": "115", - "name": "prop" - } - } - } - ] - }, - { - "$id": "116", - "kind": "model", - "name": "SendRequest1", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + "$id": "62", + "kind": "constant", + "name": "getContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "117", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "10" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.prop", - "serializationOptions": { - "$id": "118", - "json": { - "$id": "119", - "name": "prop" - } - } - } - ] - }, - { - "$id": "120", - "kind": "model", - "name": "GetResponse2", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "$id": "64", + "kind": "constant", + "name": "sendContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "121", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "16" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "122", - "json": { - "$id": "123", - "name": "prop" - } - } - } - ] - }, - { - "$id": "124", - "kind": "model", - "name": "SendRequest2", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + "$id": "66", + "kind": "constant", + "name": "getContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "125", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "16" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.prop", - "serializationOptions": { - "$id": "126", - "json": { - "$id": "127", - "name": "prop" - } - } - } - ] - }, - { - "$id": "128", - "kind": "model", - "name": "GetResponse3", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "$id": "68", + "kind": "constant", + "name": "MixedLiteralsCasesStringLiteral1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "a", + "decorators": [] + }, { - "$id": "129", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "22" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "130", - "json": { - "$id": "131", - "name": "prop" - } - } - } - ] - }, - { - "$id": "132", - "kind": "model", - "name": "SendRequest3", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + "$id": "70", + "kind": "constant", + "name": "MixedLiteralsCasesStringLiteral2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "71", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 2, + "decorators": [] + }, { - "$id": "133", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "22" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.prop", - "serializationOptions": { - "$id": "134", - "json": { - "$id": "135", - "name": "prop" - } - } - } - ] - }, - { - "$id": "136", - "kind": "model", - "name": "GetResponse4", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "$id": "72", + "kind": "constant", + "name": "MixedLiteralsCasesStringLiteral3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "73", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 3.3, + "decorators": [] + }, { - "$id": "137", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "30" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "138", - "json": { - "$id": "139", - "name": "prop" - } - } - } - ] - }, - { - "$id": "140", - "kind": "model", - "name": "SendRequest4", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ + "$id": "74", + "kind": "constant", + "name": "MixedLiteralsCasesStringLiteral4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "75", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, { - "$id": "141", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "30" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.prop", - "serializationOptions": { - "$id": "142", - "json": { - "$id": "143", - "name": "prop" - } - } - } - ] - }, - { - "$id": "144", - "kind": "model", - "name": "GetResponse5", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + "$id": "76", + "kind": "constant", + "name": "sendContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "145", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "146", - "kind": "union", - "name": "GetResponseProp4", - "variantTypes": [ - { - "$id": "147", - "kind": "model", - "name": "Cat", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.Cat", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "148", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Cat.name", - "serializationOptions": { - "$id": "150", - "json": { - "$id": "151", - "name": "name" - } - } - } - ] - }, - { - "$id": "152", - "kind": "model", - "name": "Dog", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.Dog", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "153", + "$id": "78", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "80", + "kind": "constant", + "name": "MixedLiteralsCasesStringLiteral11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "a", + "decorators": [] + }, + { + "$id": "82", + "kind": "constant", + "name": "sendContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "84", + "kind": "model", + "name": "GetResponse", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "85", "kind": "property", - "name": "bark", - "serializedName": "bark", + "name": "prop", + "serializedName": "prop", "type": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$ref": "1" }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Dog.bark", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", "serializationOptions": { - "$id": "155", - "json": { - "$id": "156", - "name": "bark" - } + "json": { + "name": "prop" + } } - } - ] - } - ], - "namespace": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "157", - "json": { - "$id": "158", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "147" - }, - { - "$ref": "152" - }, - { - "$id": "159", - "kind": "model", - "name": "SendRequest5", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "160", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "146" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.prop", - "serializationOptions": { - "$id": "161", - "json": { - "$id": "162", - "name": "prop" - } - } - } - ] - }, - { - "$id": "163", - "kind": "model", - "name": "GetResponse6", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + } + ] + }, { - "$id": "164", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "165", + "$id": "86", "kind": "model", - "name": "EnumsOnlyCases", + "name": "SendRequest", "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases", - "usage": "Input,Output,Json", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", "decorators": [], "properties": [ - { - "$id": "166", - "kind": "property", - "name": "lr", - "serializedName": "lr", - "doc": "This should be receive/send the left variant", - "type": { - "$ref": "38" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr", - "serializationOptions": { - "$id": "167", - "json": { - "$id": "168", - "name": "lr" - } - } - }, - { - "$id": "169", - "kind": "property", - "name": "ud", - "serializedName": "ud", - "doc": "This should be receive/send the up variant", - "type": { - "$ref": "48" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud", - "serializationOptions": { - "$id": "170", - "json": { - "$id": "171", - "name": "ud" - } + { + "$id": "87", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "172", - "json": { - "$id": "173", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "165" - }, - { - "$id": "174", - "kind": "model", - "name": "SendRequest6", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "175", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "165" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.prop", - "serializationOptions": { - "$id": "176", - "json": { - "$id": "177", - "name": "prop" - } - } - } - ] - }, - { - "$id": "178", - "kind": "model", - "name": "GetResponse7", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "179", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "180", + "$id": "88", "kind": "model", - "name": "StringAndArrayCases", + "name": "GetResponse1", "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases", - "usage": "Input,Output,Json", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", "decorators": [], "properties": [ - { - "$id": "181", - "kind": "property", - "name": "string", - "serializedName": "string", - "doc": "This should be receive/send the string variant", - "type": { - "$id": "182", - "kind": "union", - "name": "StringAndArrayCasesString", - "variantTypes": [ - { - "$id": "183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - { - "$id": "184", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - } - ], - "namespace": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.string", - "serializationOptions": { - "$id": "186", - "json": { - "$id": "187", - "name": "string" - } - } - }, - { - "$id": "188", - "kind": "property", - "name": "array", - "serializedName": "array", - "doc": "This should be receive/send the array variant", - "type": { - "$id": "189", - "kind": "union", - "name": "StringAndArrayCasesArray", - "variantTypes": [ - { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "89", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "6" }, - { - "$id": "191", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } } - ], - "namespace": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.array", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "array" - } } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "195", - "json": { - "$id": "196", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "180" - }, - { - "$id": "197", - "kind": "model", - "name": "SendRequest7", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "198", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "180" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.prop", - "serializationOptions": { - "$id": "199", - "json": { - "$id": "200", - "name": "prop" - } - } - } - ] - }, - { - "$id": "201", - "kind": "model", - "name": "GetResponse8", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "202", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "203", + "$id": "90", "kind": "model", - "name": "MixedLiteralsCases", + "name": "SendRequest1", "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases", - "usage": "Input,Output,Json", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", "decorators": [], "properties": [ - { - "$id": "204", - "kind": "property", - "name": "stringLiteral", - "serializedName": "stringLiteral", - "doc": "This should be receive/send the \"a\" variant", - "type": { - "$id": "205", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral", - "variantTypes": [ - { - "$ref": "54" - }, - { - "$ref": "56" - }, - { - "$ref": "58" + { + "$id": "91", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "6" }, - { - "$ref": "60" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } } - ], - "namespace": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.stringLiteral", - "serializationOptions": { - "$id": "206", - "json": { - "$id": "207", - "name": "stringLiteral" - } - } - }, - { - "$id": "208", - "kind": "property", - "name": "intLiteral", - "serializedName": "intLiteral", - "doc": "This should be receive/send the 2 variant", - "type": { - "$ref": "205" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral", - "serializationOptions": { - "$id": "209", - "json": { - "$id": "210", - "name": "intLiteral" - } - } - }, - { - "$id": "211", - "kind": "property", - "name": "floatLiteral", - "serializedName": "floatLiteral", - "doc": "This should be receive/send the 3.3 variant", - "type": { - "$ref": "205" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral", - "serializationOptions": { - "$id": "212", - "json": { - "$id": "213", - "name": "floatLiteral" - } } - }, - { - "$id": "214", - "kind": "property", - "name": "booleanLiteral", - "serializedName": "booleanLiteral", - "doc": "This should be receive/send the true variant", - "type": { - "$ref": "205" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.booleanLiteral", - "serializationOptions": { - "$id": "215", - "json": { - "$id": "216", - "name": "booleanLiteral" - } - } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "217", - "json": { - "$id": "218", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "203" - }, - { - "$id": "219", - "kind": "model", - "name": "SendRequest8", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "220", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "203" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.prop", - "serializationOptions": { - "$id": "221", - "json": { - "$id": "222", - "name": "prop" - } - } - } - ] - }, - { - "$id": "223", - "kind": "model", - "name": "GetResponse9", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "224", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "225", + "$id": "92", "kind": "model", - "name": "MixedTypesCases", + "name": "GetResponse2", "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases", - "usage": "Input,Output,Json", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", "decorators": [], "properties": [ - { - "$id": "226", - "kind": "property", - "name": "model", - "serializedName": "model", - "doc": "This should be receive/send the Cat variant", - "type": { - "$id": "227", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "147" - }, - { - "$ref": "62" - }, - { - "$id": "228", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + { + "$id": "93", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "10" }, - { - "$id": "229", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } } - ], - "namespace": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.model", - "serializationOptions": { - "$id": "230", - "json": { - "$id": "231", - "name": "model" - } - } - }, - { - "$id": "232", - "kind": "property", - "name": "literal", - "serializedName": "literal", - "doc": "This should be receive/send the \"a\" variant", - "type": { - "$ref": "227" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal", - "serializationOptions": { - "$id": "233", - "json": { - "$id": "234", - "name": "literal" - } - } - }, - { - "$id": "235", - "kind": "property", - "name": "int", - "serializedName": "int", - "doc": "This should be receive/send the int variant", - "type": { - "$ref": "227" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int", - "serializationOptions": { - "$id": "236", - "json": { - "$id": "237", - "name": "int" - } - } - }, - { - "$id": "238", - "kind": "property", - "name": "boolean", - "serializedName": "boolean", - "doc": "This should be receive/send the boolean variant", - "type": { - "$ref": "227" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean", - "serializationOptions": { - "$id": "239", - "json": { - "$id": "240", - "name": "boolean" - } - } - }, - { - "$id": "241", - "kind": "property", - "name": "array", - "serializedName": "array", - "doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", - "type": { - "$id": "242", - "kind": "array", - "name": "Array1", - "valueType": { - "$ref": "227" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.array", - "serializationOptions": { - "$id": "243", - "json": { - "$id": "244", - "name": "array" - } } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "245", - "json": { - "$id": "246", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "225" - }, - { - "$id": "247", - "kind": "model", - "name": "SendRequest9", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "248", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "225" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop", - "serializationOptions": { - "$id": "249", - "json": { - "$id": "250", - "name": "prop" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "251", - "kind": "client", - "name": "UnionClient", - "namespace": "Type.Union", - "doc": "Describe scenarios for various combinations of unions.", - "methods": [], - "parameters": [ - { - "$id": "252", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "253", - "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": "254", - "type": { - "$id": "255", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union", - "apiVersions": [], - "children": [ + }, { - "$id": "256", - "kind": "client", - "name": "StringsOnly", - "namespace": "Type.Union", - "doc": "Describe union of string \"a\" | \"b\" | \"c\"", - "methods": [ - { - "$id": "257", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "258", - "name": "get", - "resourceName": "StringsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "259", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "260", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "104" - }, - "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": [] - }, - "parameters": [ + "$id": "94", + "kind": "model", + "name": "SendRequest2", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ { - "$id": "261", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "262", - "type": { - "$ref": "104" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" - }, - { - "$id": "263", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "264", - "name": "send", - "resourceName": "StringsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "265", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "266", - "name": "sendRequest", - "nameInRequest": "sendRequest", + "$id": "95", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "108" + "$ref": "10" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "267", - "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": [] - }, - "parameters": [ - { - "$id": "268", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "269", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "270" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send" - } - ], - "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.Union.StringsOnly", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "275", - "kind": "client", - "name": "StringExtensible", - "namespace": "Type.Union", - "doc": "Describe union of string string | \"b\" | \"c\"", - "methods": [ - { - "$id": "276", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "277", - "name": "get", - "resourceName": "StringExtensible", - "accessibility": "public", - "parameters": [ - { - "$id": "278", - "name": "accept", - "nameInRequest": "Accept", + "$id": "96", + "kind": "model", + "name": "GetResponse3", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "97", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "68" + "$ref": "14" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "279", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "112" - }, - "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": [] - }, - "parameters": [ - { - "$id": "280", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "281", - "type": { - "$ref": "112" + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensible.get" - }, - { - "$id": "282", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "283", - "name": "send", - "resourceName": "StringExtensible", - "accessibility": "public", - "parameters": [ - { - "$id": "284", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "98", + "kind": "model", + "name": "SendRequest3", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "99", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "70" + "$ref": "14" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "285", - "name": "sendRequest1", - "nameInRequest": "sendRequest1", + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + } + ] + }, + { + "$id": "100", + "kind": "model", + "name": "GetResponse4", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "101", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "116" + "$ref": "19" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "286", - "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": [] - }, - "parameters": [ - { - "$id": "287", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "288", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "289" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send" - } - ], - "parameters": [ - { - "$id": "290", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "291", - "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": "292", - "type": { - "$id": "293", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "294", - "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", - "methods": [ - { - "$id": "295", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "296", - "name": "get", - "resourceName": "StringExtensibleNamed", - "accessibility": "public", - "parameters": [ - { - "$id": "297", - "name": "accept", - "nameInRequest": "Accept", + "$id": "102", + "kind": "model", + "name": "SendRequest4", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "103", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "72" + "$ref": "19" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "298", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "120" - }, - "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": [] - }, - "parameters": [ - { - "$id": "299", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "300", - "type": { - "$ref": "120" + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get" - }, - { - "$id": "301", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "302", - "name": "send", - "resourceName": "StringExtensibleNamed", - "accessibility": "public", - "parameters": [ - { - "$id": "303", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "304", - "name": "sendRequest2", - "nameInRequest": "sendRequest2", + ] + }, + { + "$id": "104", + "kind": "model", + "name": "GetResponse5", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "105", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "124" + "$id": "106", + "kind": "union", + "name": "GetResponseProp4", + "variantTypes": [ + { + "$id": "107", + "kind": "model", + "name": "Cat", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.Cat", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "108", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.Cat.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "110", + "kind": "model", + "name": "Dog", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.Dog", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "111", + "kind": "property", + "name": "bark", + "serializedName": "bark", + "type": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.Dog.bark", + "serializationOptions": { + "json": { + "name": "bark" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "305", - "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": [] - }, - "parameters": [ - { - "$id": "306", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "16" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "307", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "308" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send" - } - ], - "parameters": [ - { - "$id": "309", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "311", - "type": { - "$id": "312", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "313", - "kind": "client", - "name": "IntsOnly", - "namespace": "Type.Union", - "doc": "Describe union of integer 1 | 2 | 3", - "methods": [ - { - "$id": "314", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "315", - "name": "get", - "resourceName": "IntsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "316", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "317", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "128" - }, - "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": [] - }, - "parameters": [ + "$ref": "107" + }, + { + "$ref": "110" + }, + { + "$id": "113", + "kind": "model", + "name": "SendRequest5", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ { - "$id": "318", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "319", - "type": { - "$ref": "128" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" - }, - { - "$id": "320", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "321", - "name": "send", - "resourceName": "IntsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "322", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "323", - "name": "sendRequest3", - "nameInRequest": "sendRequest3", + "$id": "114", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "132" + "$ref": "106" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "324", - "statusCodes": [ - 204 - ], - "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": [] - }, - "parameters": [ - { - "$id": "325", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "22" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "326", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "327" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send" - } - ], - "parameters": [ - { - "$id": "328", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "329", - "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": "330", - "type": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "332", - "kind": "client", - "name": "FloatsOnly", - "namespace": "Type.Union", - "doc": "Describe union of floats 1.1 | 2.2 | 3.3", - "methods": [ - { - "$id": "333", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "334", - "name": "get", - "resourceName": "FloatsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "335", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "336", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "136" - }, - "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": [] - }, - "parameters": [ + "$id": "115", + "kind": "model", + "name": "GetResponse6", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ { - "$id": "337", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "338", - "type": { - "$ref": "136" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" - }, - { - "$id": "339", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "340", - "name": "send", - "resourceName": "FloatsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "341", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "342", - "name": "sendRequest4", - "nameInRequest": "sendRequest4", + "$id": "116", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "140" + "$id": "117", + "kind": "model", + "name": "EnumsOnlyCases", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "118", + "kind": "property", + "name": "lr", + "serializedName": "lr", + "doc": "This should be receive/send the left variant", + "type": { + "$ref": "24" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr", + "serializationOptions": { + "json": { + "name": "lr" + } + } + }, + { + "$id": "119", + "kind": "property", + "name": "ud", + "serializedName": "ud", + "doc": "This should be receive/send the up variant", + "type": { + "$ref": "30" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud", + "serializationOptions": { + "json": { + "name": "ud" + } + } + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "343", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/floats-only", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send", - "decorators": [] - }, - "parameters": [ - { - "$id": "344", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "30" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "345", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "346" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send" - } - ], - "parameters": [ - { - "$id": "347", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "348", - "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": "349", - "type": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "351", - "kind": "client", - "name": "ModelsOnly", - "namespace": "Type.Union", - "doc": "Describe union of models", - "methods": [ - { - "$id": "352", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "353", - "name": "get", - "resourceName": "ModelsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "354", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "355", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "144" - }, - "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": [] - }, - "parameters": [ + "$ref": "117" + }, + { + "$id": "120", + "kind": "model", + "name": "SendRequest6", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ { - "$id": "356", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "357", - "type": { - "$ref": "144" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" - }, - { - "$id": "358", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "359", - "name": "send", - "resourceName": "ModelsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "360", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "361", - "name": "sendRequest5", - "nameInRequest": "sendRequest5", + "$id": "121", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "159" + "$ref": "117" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "362", - "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": [] - }, - "parameters": [ - { - "$id": "363", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "146" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "364", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "365" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send" - } - ], - "parameters": [ - { - "$id": "366", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "367", - "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": "368", - "type": { - "$id": "369", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.ModelsOnly", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "370", - "kind": "client", - "name": "EnumsOnly", - "namespace": "Type.Union", - "doc": "Describe union of 2 different enums", - "methods": [ - { - "$id": "371", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "372", - "name": "get", - "resourceName": "EnumsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "373", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "374", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "163" - }, - "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": [] - }, - "parameters": [ + "$id": "122", + "kind": "model", + "name": "GetResponse7", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ { - "$id": "375", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "376", - "type": { - "$ref": "163" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" - }, - { - "$id": "377", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "378", - "name": "send", - "resourceName": "EnumsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "379", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "380", - "name": "sendRequest6", - "nameInRequest": "sendRequest6", + "$id": "123", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "174" + "$id": "124", + "kind": "model", + "name": "StringAndArrayCases", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "125", + "kind": "property", + "name": "string", + "serializedName": "string", + "doc": "This should be receive/send the string variant", + "type": { + "$id": "126", + "kind": "union", + "name": "StringAndArrayCasesString", + "variantTypes": [ + { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "128", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.string", + "serializationOptions": { + "json": { + "name": "string" + } + } + }, + { + "$id": "130", + "kind": "property", + "name": "array", + "serializedName": "array", + "doc": "This should be receive/send the array variant", + "type": { + "$id": "131", + "kind": "union", + "name": "StringAndArrayCasesArray", + "variantTypes": [ + { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "133", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.array", + "serializationOptions": { + "json": { + "name": "array" + } + } + } + ] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "381", - "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": [] - }, - "parameters": [ - { - "$id": "382", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "165" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "383", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "384" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send" - } - ], - "parameters": [ - { - "$id": "385", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "386", - "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": "387", - "type": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "389", - "kind": "client", - "name": "StringAndArray", - "namespace": "Type.Union", - "doc": "Describe union of a string and an array of strings", - "methods": [ - { - "$id": "390", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "391", - "name": "get", - "resourceName": "StringAndArray", - "accessibility": "public", - "parameters": [ - { - "$id": "392", - "name": "accept", - "nameInRequest": "Accept", + "$ref": "124" + }, + { + "$id": "135", + "kind": "model", + "name": "SendRequest7", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "136", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "92" + "$ref": "124" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "393", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "178" - }, - "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": [] - }, - "parameters": [ - { - "$id": "394", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "395", - "type": { - "$ref": "178" + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringAndArray.get" - }, - { - "$id": "396", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "397", - "name": "send", - "resourceName": "StringAndArray", - "accessibility": "public", - "parameters": [ - { - "$id": "398", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "137", + "kind": "model", + "name": "GetResponse8", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "138", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "94" + "$id": "139", + "kind": "model", + "name": "MixedLiteralsCases", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "140", + "kind": "property", + "name": "stringLiteral", + "serializedName": "stringLiteral", + "doc": "This should be receive/send the \"a\" variant", + "type": { + "$id": "141", + "kind": "union", + "name": "MixedLiteralsCasesStringLiteral", + "variantTypes": [ + { + "$ref": "68" + }, + { + "$ref": "70" + }, + { + "$ref": "72" + }, + { + "$ref": "74" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.stringLiteral", + "serializationOptions": { + "json": { + "name": "stringLiteral" + } + } + }, + { + "$id": "142", + "kind": "property", + "name": "intLiteral", + "serializedName": "intLiteral", + "doc": "This should be receive/send the 2 variant", + "type": { + "$ref": "141" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral", + "serializationOptions": { + "json": { + "name": "intLiteral" + } + } + }, + { + "$id": "143", + "kind": "property", + "name": "floatLiteral", + "serializedName": "floatLiteral", + "doc": "This should be receive/send the 3.3 variant", + "type": { + "$ref": "141" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral", + "serializationOptions": { + "json": { + "name": "floatLiteral" + } + } + }, + { + "$id": "144", + "kind": "property", + "name": "booleanLiteral", + "serializedName": "booleanLiteral", + "doc": "This should be receive/send the true variant", + "type": { + "$ref": "141" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.booleanLiteral", + "serializationOptions": { + "json": { + "name": "booleanLiteral" + } + } + } + ] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "399", - "name": "sendRequest7", - "nameInRequest": "sendRequest7", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + } + ] + }, + { + "$ref": "139" + }, + { + "$id": "145", + "kind": "model", + "name": "SendRequest8", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "146", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "197" + "$ref": "139" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "400", - "statusCodes": [ - 204 - ], - "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": [] - }, - "parameters": [ - { - "$id": "401", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "180" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "402", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - ], - "response": { - "$id": "403" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send" - } - ], - "parameters": [ - { - "$id": "404", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "405", - "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": "406", - "type": { - "$id": "407", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArray", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] }, { - "$id": "408", - "kind": "client", - "name": "MixedLiterals", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", - "methods": [ - { - "$id": "409", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "410", - "name": "get", - "resourceName": "MixedLiterals", - "accessibility": "public", - "parameters": [ - { - "$id": "411", - "name": "accept", - "nameInRequest": "Accept", + "$id": "147", + "kind": "model", + "name": "GetResponse9", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "148", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "96" + "$id": "149", + "kind": "model", + "name": "MixedTypesCases", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "150", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "This should be receive/send the Cat variant", + "type": { + "$id": "151", + "kind": "union", + "name": "MixedTypesCasesModel", + "variantTypes": [ + { + "$ref": "107" + }, + { + "$ref": "80" + }, + { + "$id": "152", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$id": "153", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "154", + "kind": "property", + "name": "literal", + "serializedName": "literal", + "doc": "This should be receive/send the \"a\" variant", + "type": { + "$ref": "151" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal", + "serializationOptions": { + "json": { + "name": "literal" + } + } + }, + { + "$id": "155", + "kind": "property", + "name": "int", + "serializedName": "int", + "doc": "This should be receive/send the int variant", + "type": { + "$ref": "151" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int", + "serializationOptions": { + "json": { + "name": "int" + } + } + }, + { + "$id": "156", + "kind": "property", + "name": "boolean", + "serializedName": "boolean", + "doc": "This should be receive/send the boolean variant", + "type": { + "$ref": "151" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean", + "serializationOptions": { + "json": { + "name": "boolean" + } + } + }, + { + "$id": "157", + "kind": "property", + "name": "array", + "serializedName": "array", + "doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", + "type": { + "$id": "158", + "kind": "array", + "name": "Array1", + "valueType": { + "$ref": "151" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.array", + "serializationOptions": { + "json": { + "name": "array" + } + } + } + ] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "412", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "201" - }, - "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": [] - }, - "parameters": [ - { - "$id": "413", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "414", - "type": { - "$ref": "201" + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" - }, - { - "$id": "415", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "416", - "name": "send", - "resourceName": "MixedLiterals", - "accessibility": "public", - "parameters": [ - { - "$id": "417", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$ref": "149" + }, + { + "$id": "159", + "kind": "model", + "name": "SendRequest9", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "160", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "98" + "$ref": "149" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "418", - "name": "sendRequest8", - "nameInRequest": "sendRequest8", + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "161", + "kind": "client", + "name": "UnionClient", + "namespace": "Type.Union", + "doc": "Describe scenarios for various combinations of unions.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "219" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "419", - "statusCodes": [ - 204 + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union", + "apiVersions": [], + "children": [ + { + "$id": "162", + "kind": "client", + "name": "StringsOnly", + "namespace": "Type.Union", + "doc": "Describe union of string \"a\" | \"b\" | \"c\"", + "methods": [ + { + "$id": "163", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "164", + "name": "get", + "resourceName": "StringsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "165", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "34" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "166", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "84" + }, + "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": [] + }, + "parameters": [ + { + "$id": "167", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "34" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "84" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" + }, + { + "$id": "168", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "169", + "name": "send", + "resourceName": "StringsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "170", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "36" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "171", + "name": "sendRequest", + "nameInRequest": "sendRequest", + "type": { + "$ref": "86" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "172", + "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": [] + }, + "parameters": [ + { + "$id": "173", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "174", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "36" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send" + } ], - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringsOnly", + "apiVersions": [], + "parent": { + "$ref": "161" + } + }, { - "$id": "420", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "203" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "175", + "kind": "client", + "name": "StringExtensible", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\"", + "methods": [ + { + "$id": "176", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "177", + "name": "get", + "resourceName": "StringExtensible", + "accessibility": "public", + "parameters": [ + { + "$id": "178", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "38" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "179", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "88" + }, + "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": [] + }, + "parameters": [ + { + "$id": "180", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "38" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "88" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensible.get" + }, + { + "$id": "181", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "182", + "name": "send", + "resourceName": "StringExtensible", + "accessibility": "public", + "parameters": [ + { + "$id": "183", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "40" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "184", + "name": "sendRequest1", + "nameInRequest": "sendRequest1", + "type": { + "$ref": "90" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "185", + "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": [] + }, + "parameters": [ + { + "$id": "186", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "6" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "187", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "40" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensible", + "apiVersions": [], + "parent": { + "$ref": "161" + } }, { - "$id": "421", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "422" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send" - } - ], - "parameters": [ - { - "$id": "423", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "424", - "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": "425", - "type": { - "$id": "426", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "188", + "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", + "methods": [ + { + "$id": "189", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "190", + "name": "get", + "resourceName": "StringExtensibleNamed", + "accessibility": "public", + "parameters": [ + { + "$id": "191", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "42" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "192", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "92" + }, + "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": [] + }, + "parameters": [ + { + "$id": "193", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "42" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "92" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get" + }, + { + "$id": "194", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "195", + "name": "send", + "resourceName": "StringExtensibleNamed", + "accessibility": "public", + "parameters": [ + { + "$id": "196", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "44" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "197", + "name": "sendRequest2", + "nameInRequest": "sendRequest2", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "198", + "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": [] + }, + "parameters": [ + { + "$id": "199", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "10" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "200", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "44" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", + "apiVersions": [], + "parent": { + "$ref": "161" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals", - "apiVersions": [], - "parent": { - "$ref": "251" - } - }, - { - "$id": "427", - "kind": "client", - "name": "MixedTypes", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", - "methods": [ - { - "$id": "428", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "429", - "name": "get", - "resourceName": "MixedTypes", - "accessibility": "public", - "parameters": [ - { - "$id": "430", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "201", + "kind": "client", + "name": "IntsOnly", + "namespace": "Type.Union", + "doc": "Describe union of integer 1 | 2 | 3", + "methods": [ + { + "$id": "202", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "203", + "name": "get", + "resourceName": "IntsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "204", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "46" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "205", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "96" + }, + "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": [] + }, + "parameters": [ + { + "$id": "206", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "46" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "96" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" + }, + { + "$id": "207", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "208", + "name": "send", + "resourceName": "IntsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "209", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "48" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "210", + "name": "sendRequest3", + "nameInRequest": "sendRequest3", + "type": { + "$ref": "98" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "211", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "212", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "14" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "213", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "48" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "431", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "apiVersions": [], + "parent": { + "$ref": "161" + } + }, + { + "$id": "214", + "kind": "client", + "name": "FloatsOnly", + "namespace": "Type.Union", + "doc": "Describe union of floats 1.1 | 2.2 | 3.3", + "methods": [ + { + "$id": "215", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "216", + "name": "get", + "resourceName": "FloatsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "217", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "50" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "218", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "100" + }, + "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": [] + }, + "parameters": [ + { + "$id": "219", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "50" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "100" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" + }, + { + "$id": "220", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "221", + "name": "send", + "resourceName": "FloatsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "222", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "52" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "223", + "name": "sendRequest4", + "nameInRequest": "sendRequest4", + "type": { + "$ref": "102" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "224", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/floats-only", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send", + "decorators": [] + }, + "parameters": [ + { + "$id": "225", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "226", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "52" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send" + } ], - "bodyType": { - "$ref": "223" - }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.FloatsOnly", + "apiVersions": [], + "parent": { + "$ref": "161" + } + }, { - "$id": "432", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "433", - "type": { - "$ref": "223" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" - }, - { - "$id": "434", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "435", - "name": "send", - "resourceName": "MixedTypes", - "accessibility": "public", - "parameters": [ - { - "$id": "436", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "$id": "227", + "kind": "client", + "name": "ModelsOnly", + "namespace": "Type.Union", + "doc": "Describe union of models", + "methods": [ + { + "$id": "228", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "229", + "name": "get", + "resourceName": "ModelsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "230", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "54" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "231", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "104" + }, + "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": [] + }, + "parameters": [ + { + "$id": "232", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "54" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "104" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" + }, + { + "$id": "233", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "234", + "name": "send", + "resourceName": "ModelsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "235", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "56" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "236", + "name": "sendRequest5", + "nameInRequest": "sendRequest5", + "type": { + "$ref": "113" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "237", + "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": [] + }, + "parameters": [ + { + "$id": "238", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "106" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "239", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "56" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "437", - "name": "sendRequest9", - "nameInRequest": "sendRequest9", - "type": { - "$ref": "247" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "apiVersions": [], + "parent": { + "$ref": "161" + } + }, + { + "$id": "240", + "kind": "client", + "name": "EnumsOnly", + "namespace": "Type.Union", + "doc": "Describe union of 2 different enums", + "methods": [ + { + "$id": "241", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "242", + "name": "get", + "resourceName": "EnumsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "243", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "58" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "244", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "115" + }, + "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": [] + }, + "parameters": [ + { + "$id": "245", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "58" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "115" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" + }, + { + "$id": "246", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "247", + "name": "send", + "resourceName": "EnumsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "60" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "249", + "name": "sendRequest6", + "nameInRequest": "sendRequest6", + "type": { + "$ref": "120" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "250", + "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": [] + }, + "parameters": [ + { + "$id": "251", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "117" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "252", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "60" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "438", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "apiVersions": [], + "parent": { + "$ref": "161" + } + }, + { + "$id": "253", + "kind": "client", + "name": "StringAndArray", + "namespace": "Type.Union", + "doc": "Describe union of a string and an array of strings", + "methods": [ + { + "$id": "254", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "255", + "name": "get", + "resourceName": "StringAndArray", + "accessibility": "public", + "parameters": [ + { + "$id": "256", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "62" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "257", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "122" + }, + "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": [] + }, + "parameters": [ + { + "$id": "258", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "62" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "122" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringAndArray.get" + }, + { + "$id": "259", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "260", + "name": "send", + "resourceName": "StringAndArray", + "accessibility": "public", + "parameters": [ + { + "$id": "261", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "64" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "262", + "name": "sendRequest7", + "nameInRequest": "sendRequest7", + "type": { + "$ref": "135" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "263", + "statusCodes": [ + 204 + ], + "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": [] + }, + "parameters": [ + { + "$id": "264", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "124" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "265", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "64" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send" + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/mixed-types", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send", - "decorators": [] - }, - "parameters": [ + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArray", + "apiVersions": [], + "parent": { + "$ref": "161" + } + }, { - "$id": "439", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "225" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "266", + "kind": "client", + "name": "MixedLiterals", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "methods": [ + { + "$id": "267", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "268", + "name": "get", + "resourceName": "MixedLiterals", + "accessibility": "public", + "parameters": [ + { + "$id": "269", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "66" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "270", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "137" + }, + "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": [] + }, + "parameters": [ + { + "$id": "271", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "66" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "137" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" + }, + { + "$id": "272", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "273", + "name": "send", + "resourceName": "MixedLiterals", + "accessibility": "public", + "parameters": [ + { + "$id": "274", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "76" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "275", + "name": "sendRequest8", + "nameInRequest": "sendRequest8", + "type": { + "$ref": "145" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "276", + "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": [] + }, + "parameters": [ + { + "$id": "277", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "139" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "278", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "76" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiterals", + "apiVersions": [], + "parent": { + "$ref": "161" + } }, { - "$id": "440", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "279", + "kind": "client", + "name": "MixedTypes", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "methods": [ + { + "$id": "280", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "281", + "name": "get", + "resourceName": "MixedTypes", + "accessibility": "public", + "parameters": [ + { + "$id": "282", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "283", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": [] + }, + "parameters": [ + { + "$id": "284", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" + }, + { + "$id": "285", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "286", + "name": "send", + "resourceName": "MixedTypes", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "288", + "name": "sendRequest9", + "nameInRequest": "sendRequest9", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "289", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/mixed-types", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send", + "decorators": [] + }, + "parameters": [ + { + "$id": "290", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "149" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "291", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "apiVersions": [], + "parent": { + "$ref": "161" + } } - ], - "response": { - "$id": "441" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send" - } - ], - "parameters": [ - { - "$id": "442", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "443", - "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": "444", - "type": { - "$id": "445", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes", - "apiVersions": [], - "parent": { - "$ref": "251" - } + ] } - ] - } - ] + ] } 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 10ea72bdc79..0fe68f03fc5 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 @@ -1,395 +1,378 @@ { - "$id": "1", - "name": "Versioning.Added.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.Added.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Added.EnumV1", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Added", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Added", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Added.Versions", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "8", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "4", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Added.Versions", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "doc": "The version v1.", + "decorators": [] + } + ], + "namespace": "Versioning.Added", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "doc": "The version v1.", - "decorators": [] } - ], - "namespace": "Versioning.Added", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "10", - "kind": "constant", - "name": "v1ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "v1ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "14", - "kind": "model", - "name": "ModelV1", - "namespace": "Versioning.Added", - "crossLanguageDefinitionId": "Versioning.Added.ModelV1", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "15", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "7", + "kind": "constant", + "name": "v1ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV1.prop", - "serializationOptions": { - "$id": "17", - "json": { - "$id": "18", - "name": "prop" - } - } }, { - "$id": "19", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV1.enumProp", - "serializationOptions": { - "$id": "20", - "json": { - "$id": "21", - "name": "enumProp" - } - } + "$id": "9", + "kind": "constant", + "name": "v1ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } - ] - } - ], - "clients": [ - { - "$id": "22", - "kind": "client", - "name": "AddedClient", - "namespace": "Versioning.Added", - "doc": "Test for the `@added` decorator.", - "methods": [ + ], + "models": [ { - "$id": "23", - "kind": "basic", - "name": "v1", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "24", - "name": "v1", - "resourceName": "Added", - "accessibility": "public", - "parameters": [ - { - "$id": "25", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "26", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" + "$id": "11", + "kind": "model", + "name": "ModelV1", + "namespace": "Versioning.Added", + "crossLanguageDefinitionId": "Versioning.Added.ModelV1", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "12", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.ModelV1.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "27", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "14", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.ModelV1.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "15", + "kind": "client", + "name": "AddedClient", + "namespace": "Versioning.Added", + "doc": "Test for the `@added` decorator.", + "methods": [ + { + "$id": "16", + "kind": "basic", + "name": "v1", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "17", + "name": "v1", + "resourceName": "Added", + "accessibility": "public", + "parameters": [ + { + "$id": "18", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "19", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "20", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "21", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "11" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/added/api-version:{version}", + "path": "/v1", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Added.v1", + "decorators": [] + }, + "parameters": [ + { + "$id": "22", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "23", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "24", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "11" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Added.v1" + } ], - "responses": [ - { - "$id": "28", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "14" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "4" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/added/api-version:{version}", - "path": "/v1", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Added.v1", - "decorators": [] - }, - "parameters": [ - { - "$id": "29", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "30", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "31", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "32", - "type": { - "$ref": "14" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Added.v1" - } - ], - "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, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "35", - "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", + "apiVersions": [ + "v1" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added", - "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 c7fea7686cf..c36897758ac 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 @@ -1,1103 +1,1061 @@ { - "$id": "1", - "name": "Versioning.Added.V2", - "apiVersions": [ - "v1", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Added", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "8", - "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Added.EnumV2", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "10", - "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "8" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Added", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "12", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Added.Versions", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.Added.V2", + "apiVersions": [ + "v1", + "v2" + ], + "enums": [ { - "$id": "14", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Added.EnumV1", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Added", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The version v1.", - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The version v2.", - "decorators": [] - } - ], - "namespace": "Versioning.Added", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "18", - "kind": "constant", - "name": "v1ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "v1ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "v2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "v2ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "v2InInterfaceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "v2InInterfaceContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "30", - "kind": "model", - "name": "ModelV1", - "namespace": "Versioning.Added", - "crossLanguageDefinitionId": "Versioning.Added.ModelV1", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "31", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "enum", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Added.EnumV2", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMember", + "value": "enumMember", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Added", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV1.prop", - "serializationOptions": { - "$id": "33", - "json": { - "$id": "34", - "name": "prop" - } - } - }, - { - "$id": "35", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV1.enumProp", - "serializationOptions": { - "$id": "36", - "json": { - "$id": "37", - "name": "enumProp" - } - } }, { - "$id": "38", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "39", - "kind": "union", - "name": "UnionV1", - "variantTypes": [ - { - "$id": "40", + "$id": "8", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Added.Versions", + "valueType": { + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "41", - "kind": "int32", - "name": "V2Scalar", - "crossLanguageDefinitionId": "Versioning.Added.V2Scalar", - "baseType": { - "$id": "42", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + }, + "values": [ + { + "$id": "10", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The version v1.", + "decorators": [] }, - "decorators": [] - } + { + "$id": "11", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The version v2.", + "decorators": [] + } ], "namespace": "Versioning.Added", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV1.unionProp", - "serializationOptions": { - "$id": "43", - "json": { - "$id": "44", - "name": "unionProp" - } - } } - ] - }, - { - "$id": "45", - "kind": "model", - "name": "ModelV2", - "namespace": "Versioning.Added", - "crossLanguageDefinitionId": "Versioning.Added.ModelV2", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "46", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "12", + "kind": "constant", + "name": "v1ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV2.prop", - "serializationOptions": { - "$id": "48", - "json": { - "$id": "49", - "name": "prop" - } - } }, { - "$id": "50", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "8" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV2.enumProp", - "serializationOptions": { - "$id": "51", - "json": { - "$id": "52", - "name": "enumProp" - } - } + "$id": "14", + "kind": "constant", + "name": "v1ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "53", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "54", - "kind": "union", - "name": "UnionV2", - "variantTypes": [ - { - "$id": "55", + "$id": "16", + "kind": "constant", + "name": "v2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "56", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } - ], - "namespace": "Versioning.Added", + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.ModelV2.unionProp", - "serializationOptions": { - "$id": "57", - "json": { - "$id": "58", - "name": "unionProp" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "59", - "kind": "client", - "name": "AddedClient", - "namespace": "Versioning.Added", - "doc": "Test for the `@added` decorator.", - "methods": [ + }, { - "$id": "60", - "kind": "basic", - "name": "v1", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "operation": { - "$id": "61", - "name": "v1", - "resourceName": "Added", - "accessibility": "public", - "parameters": [ - { - "$id": "62", - "name": "headerV2", - "nameInRequest": "header-v2", - "type": { - "$id": "63", - "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": "64", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "65", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "66", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "30" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "67", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "30" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/added/api-version:{version}", - "path": "/v1", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Added.v1", - "decorators": [] - }, - "parameters": [ - { - "$id": "68", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "30" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "69", - "name": "headerV2", - "nameInRequest": "header-v2", - "type": { - "$id": "70", + "$id": "18", + "kind": "constant", + "name": "v2ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "19", "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": "71", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "72", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "73", - "type": { - "$ref": "30" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Added.v1" + "value": "application/json", + "decorators": [] }, { - "$id": "74", - "kind": "basic", - "name": "v2", - "accessibility": "public", - "apiVersions": [ - "v2" - ], - "operation": { - "$id": "75", - "name": "v2", - "resourceName": "Added", - "accessibility": "public", - "parameters": [ - { - "$id": "76", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "77", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "78", - "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": "79", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "45" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/added/api-version:{version}", - "path": "/v2", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Added.v2", - "decorators": [] - }, - "parameters": [ - { - "$id": "80", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "45" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "20", + "kind": "constant", + "name": "v2InInterfaceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "81", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "application/json", + "decorators": [] + }, + { + "$id": "22", + "kind": "constant", + "name": "v2InInterfaceContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "82", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "83", - "type": { - "$ref": "45" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Added.v2" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [ { - "$id": "84", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "85", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "$id": "24", + "kind": "model", + "name": "ModelV1", + "namespace": "Versioning.Added", + "crossLanguageDefinitionId": "Versioning.Added.ModelV1", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "25", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.ModelV1.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "27", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.ModelV1.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "28", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "29", + "kind": "union", + "name": "UnionV1", + "variantTypes": [ + { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "31", + "kind": "int32", + "name": "V2Scalar", + "crossLanguageDefinitionId": "Versioning.Added.V2Scalar", + "baseType": { + "$id": "32", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + } + ], + "namespace": "Versioning.Added", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.ModelV1.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] }, { - "$id": "86", - "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" - ], - "children": [ - { - "$id": "87", - "kind": "client", - "name": "InterfaceV2", - "namespace": "Versioning.Added", - "methods": [ - { - "$id": "88", - "kind": "basic", - "name": "v2InInterface", - "accessibility": "public", - "apiVersions": [ - "v2" - ], - "operation": { - "$id": "89", - "name": "v2InInterface", - "resourceName": "InterfaceV2", - "accessibility": "public", - "parameters": [ - { - "$id": "90", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "33", + "kind": "model", + "name": "ModelV2", + "namespace": "Versioning.Added", + "crossLanguageDefinitionId": "Versioning.Added.ModelV2", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "34", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "26" + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "91", - "name": "accept", - "nameInRequest": "Accept", + "crossLanguageDefinitionId": "Versioning.Added.ModelV2.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "36", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", "type": { - "$ref": "28" + "$ref": "5" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "92", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Versioning.Added.ModelV2.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "37", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", "type": { - "$ref": "45" + "$id": "38", + "kind": "union", + "name": "UnionV2", + "variantTypes": [ + { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "40", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "Versioning.Added", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "93", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Versioning.Added.ModelV2.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "41", + "kind": "client", + "name": "AddedClient", + "namespace": "Versioning.Added", + "doc": "Test for the `@added` decorator.", + "methods": [ + { + "$id": "42", + "kind": "basic", + "name": "v1", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" ], - "bodyType": { - "$ref": "45" + "operation": { + "$id": "43", + "name": "v1", + "resourceName": "Added", + "accessibility": "public", + "parameters": [ + { + "$id": "44", + "name": "headerV2", + "nameInRequest": "header-v2", + "type": { + "$id": "45", + "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": "46", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "47", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "48", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "24" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "49", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "24" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/added/api-version:{version}", + "path": "/v1", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Added.v1", + "decorators": [] }, - "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": [] - }, - "parameters": [ - { - "$id": "94", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "45" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "parameters": [ + { + "$id": "50", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "24" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "51", + "name": "headerV2", + "nameInRequest": "header-v2", + "type": { + "$id": "52", + "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": "53", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "54", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "24" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Added.v1" }, { - "$id": "95", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "55", + "kind": "basic", + "name": "v2", + "accessibility": "public", + "apiVersions": [ + "v2" + ], + "operation": { + "$id": "56", + "name": "v2", + "resourceName": "Added", + "accessibility": "public", + "parameters": [ + { + "$id": "57", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "58", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "59", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "60", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "33" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/added/api-version:{version}", + "path": "/v2", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Added.v2", + "decorators": [] + }, + "parameters": [ + { + "$id": "61", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "62", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "63", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "33" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Added.v2" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "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": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "8" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } - ], - "response": { - "$id": "97", - "type": { - "$ref": "45" + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added", + "apiVersions": [ + "v1", + "v2" + ], + "children": [ + { + "$id": "64", + "kind": "client", + "name": "InterfaceV2", + "namespace": "Versioning.Added", + "methods": [ + { + "$id": "65", + "kind": "basic", + "name": "v2InInterface", + "accessibility": "public", + "apiVersions": [ + "v2" + ], + "operation": { + "$id": "66", + "name": "v2InInterface", + "resourceName": "InterfaceV2", + "accessibility": "public", + "parameters": [ + { + "$id": "67", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "68", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "69", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "70", + "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": [] + }, + "parameters": [ + { + "$id": "71", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "72", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "73", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "33" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "8" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", + "apiVersions": [ + "v2" + ], + "parent": { + "$ref": "41" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface" - } - ], - "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' 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" - ], - "parent": { - "$ref": "59" - } + ] } - ] - } - ] + ] } 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 d3047268569..8a473f75c7b 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 @@ -1,404 +1,391 @@ { - "$id": "1", - "name": "Versioning.MadeOptional.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.MadeOptional.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.MadeOptional.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.MadeOptional.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + } + ], + "namespace": "Versioning.MadeOptional", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v1.", - "decorators": [] } - ], - "namespace": "Versioning.MadeOptional", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "6", - "kind": "constant", - "name": "testContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "testContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "10", - "kind": "model", - "name": "TestModel", - "namespace": "Versioning.MadeOptional", - "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "11", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "4", + "kind": "constant", + "name": "testContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.prop", - "serializationOptions": { - "$id": "13", - "json": { - "$id": "14", - "name": "prop" - } - } }, { - "$id": "15", - "kind": "property", - "name": "changedProp", - "serializedName": "changedProp", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.changedProp", - "serializationOptions": { - "$id": "17", - "json": { - "$id": "18", - "name": "changedProp" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "19", - "kind": "client", - "name": "MadeOptionalClient", - "namespace": "Versioning.MadeOptional", - "doc": "Test for the `@madeOptional` decorator.", - "methods": [ - { - "$id": "20", - "kind": "basic", - "name": "test", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "21", - "name": "test", - "resourceName": "MadeOptional", - "accessibility": "public", - "parameters": [ - { - "$id": "22", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "23", - "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": "24", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "25", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "26", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "27", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "10" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/made-optional/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.MadeOptional.test", - "decorators": [] - }, - "parameters": [ - { - "$id": "28", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "29", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "30", + "$id": "6", + "kind": "constant", + "name": "testContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "7", "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": "31", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "32", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "33", - "type": { - "$ref": "10" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.MadeOptional.test" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [ { - "$id": "34", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "35", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, + "$id": "8", + "kind": "model", + "name": "TestModel", + "namespace": "Versioning.MadeOptional", + "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "9", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "11", + "kind": "property", + "name": "changedProp", + "serializedName": "changedProp", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.changedProp", + "serializationOptions": { + "json": { + "name": "changedProp" + } + } + } + ] + } + ], + "clients": [ { - "$id": "36", - "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" + "$id": "13", + "kind": "client", + "name": "MadeOptionalClient", + "namespace": "Versioning.MadeOptional", + "doc": "Test for the `@madeOptional` decorator.", + "methods": [ + { + "$id": "14", + "kind": "basic", + "name": "test", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "15", + "name": "test", + "resourceName": "MadeOptional", + "accessibility": "public", + "parameters": [ + { + "$id": "16", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "17", + "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": "18", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "19", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "20", + "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": "21", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "8" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/made-optional/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.MadeOptional.test", + "decorators": [] + }, + "parameters": [ + { + "$id": "22", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "23", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "24", + "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": "25", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "26", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "8" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.MadeOptional.test" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional", + "apiVersions": [ + "v1" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional", - "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 83642599e0b..d9093041c64 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 @@ -1,425 +1,408 @@ { - "$id": "1", - "name": "Versioning.MadeOptional.V2", - "apiVersions": [ - "v1", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.MadeOptional.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v1.", - "decorators": [] - }, + "name": "Versioning.MadeOptional.V2", + "apiVersions": [ + "v1", + "v2" + ], + "enums": [ { - "$id": "6", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.MadeOptional.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v2.", + "decorators": [] + } + ], + "namespace": "Versioning.MadeOptional", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v2.", - "decorators": [] } - ], - "namespace": "Versioning.MadeOptional", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "8", - "kind": "constant", - "name": "testContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "testContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "12", - "kind": "model", - "name": "TestModel", - "namespace": "Versioning.MadeOptional", - "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "13", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "constant", + "name": "testContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.prop", - "serializationOptions": { - "$id": "15", - "json": { - "$id": "16", - "name": "prop" - } - } }, { - "$id": "17", - "kind": "property", - "name": "changedProp", - "serializedName": "changedProp", - "type": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.changedProp", - "serializationOptions": { - "$id": "19", - "json": { - "$id": "20", - "name": "changedProp" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "21", - "kind": "client", - "name": "MadeOptionalClient", - "namespace": "Versioning.MadeOptional", - "doc": "Test for the `@madeOptional` decorator.", - "methods": [ - { - "$id": "22", - "kind": "basic", - "name": "test", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "operation": { - "$id": "23", - "name": "test", - "resourceName": "MadeOptional", - "accessibility": "public", - "parameters": [ - { - "$id": "24", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "25", - "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": "26", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "27", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "28", - "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": "29", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "12" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/made-optional/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.MadeOptional.test", - "decorators": [] - }, - "parameters": [ - { - "$id": "30", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "31", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "32", + "$id": "7", + "kind": "constant", + "name": "testContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", "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": "33", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "34", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "35", - "type": { - "$ref": "12" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.MadeOptional.test" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [ { - "$id": "36", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "37", - "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", + "kind": "model", + "name": "TestModel", + "namespace": "Versioning.MadeOptional", + "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "10", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "12", + "kind": "property", + "name": "changedProp", + "serializedName": "changedProp", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional.TestModel.changedProp", + "serializationOptions": { + "json": { + "name": "changedProp" + } + } + } + ] + } + ], + "clients": [ { - "$id": "38", - "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" + "$id": "14", + "kind": "client", + "name": "MadeOptionalClient", + "namespace": "Versioning.MadeOptional", + "doc": "Test for the `@madeOptional` decorator.", + "methods": [ + { + "$id": "15", + "kind": "basic", + "name": "test", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "operation": { + "$id": "16", + "name": "test", + "resourceName": "MadeOptional", + "accessibility": "public", + "parameters": [ + { + "$id": "17", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "18", + "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": "19", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "20", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "21", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "9" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/made-optional/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.MadeOptional.test", + "decorators": [] + }, + "parameters": [ + { + "$id": "23", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "24", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "25", + "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": "26", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "27", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "9" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.MadeOptional.test" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional", + "apiVersions": [ + "v1", + "v2" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional", - "apiVersions": [ - "v1", - "v2" - ] - } - ] + ] } 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 1db1262b4e6..ccfdc0e967c 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 @@ -1,1425 +1,1372 @@ { - "$id": "1", - "name": "Versioning.Removed.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.Removed.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "8", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "enumMember", + "value": "enumMember", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "decorators": [] }, { - "$id": "10", - "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "12", - "kind": "enum", - "name": "EnumV3", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "14", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "4", + "kind": "enum", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "18", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "doc": "The version v1.", - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "22", - "kind": "constant", - "name": "v1ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "v1ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "v2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "v2ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "modelV3ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "modelV3ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "34", - "kind": "constant", - "name": "v1InInterfaceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "36", - "kind": "constant", - "name": "v1InInterfaceContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "38", - "kind": "model", - "name": "ModelV1", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "39", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "40", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "8", + "kind": "enum", + "name": "EnumV3", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", + "valueType": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "10", + "kind": "enumvalue", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "enumMemberV2Preview", + "value": "enumMemberV2Preview", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.prop", - "serializationOptions": { - "$id": "41", - "json": { - "$id": "42", - "name": "prop" - } - } - }, - { - "$id": "43", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.enumProp", - "serializationOptions": { - "$id": "44", - "json": { - "$id": "45", - "name": "enumProp" - } - } }, { - "$id": "46", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "47", - "kind": "union", - "name": "UnionV1", - "variantTypes": [ - { - "$id": "48", + "$id": "12", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "valueType": { + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "49", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } + }, + "values": [ + { + "$id": "14", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "13" + }, + "enumType": { + "$ref": "12" + }, + "doc": "The version v1.", + "decorators": [] + } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.unionProp", - "serializationOptions": { - "$id": "50", - "json": { - "$id": "51", - "name": "unionProp" - } - } } - ] - }, - { - "$id": "52", - "kind": "model", - "name": "ModelV2", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "53", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "54", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "15", + "kind": "constant", + "name": "v1ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.prop", - "serializationOptions": { - "$id": "55", - "json": { - "$id": "56", - "name": "prop" - } - } }, { - "$id": "57", - "kind": "property", - "name": "removedProp", - "serializedName": "removedProp", - "type": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "17", + "kind": "constant", + "name": "v1ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.removedProp", - "serializationOptions": { - "$id": "59", - "json": { - "$id": "60", - "name": "removedProp" - } - } }, { - "$id": "61", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "6" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.enumProp", - "serializationOptions": { - "$id": "62", - "json": { - "$id": "63", - "name": "enumProp" - } - } + "$id": "19", + "kind": "constant", + "name": "v2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "64", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "65", - "kind": "union", - "name": "UnionV2", - "variantTypes": [ - { - "$id": "66", + "$id": "21", + "kind": "constant", + "name": "v2ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "67", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - { - "$id": "68", - "kind": "int32", - "name": "V1Scalar", - "crossLanguageDefinitionId": "Versioning.Removed.V1Scalar", - "baseType": { - "$id": "69", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.unionProp", - "serializationOptions": { - "$id": "70", - "json": { - "$id": "71", - "name": "unionProp" - } - } - } - ] - }, - { - "$id": "72", - "kind": "model", - "name": "ModelV3", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "73", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "74", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "23", + "kind": "constant", + "name": "modelV3ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.id", - "serializationOptions": { - "$id": "75", - "json": { - "$id": "76", - "name": "id" - } - } }, { - "$id": "77", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "12" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.enumProp", - "serializationOptions": { - "$id": "78", - "json": { - "$id": "79", - "name": "enumProp" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "80", - "kind": "client", - "name": "RemovedClient", - "namespace": "Versioning.Removed", - "doc": "Test for the `@removed` decorator.", - "methods": [ - { - "$id": "81", - "kind": "basic", - "name": "v1", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "doc": "This operation should not be generated with latest version's signature.", - "operation": { - "$id": "82", - "name": "v1", - "resourceName": "Removed", - "doc": "This operation should not be generated with latest version's signature.", - "accessibility": "public", - "parameters": [ - { - "$id": "83", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "84", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "85", - "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": "86", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "38" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v1", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.v1", - "decorators": [] - }, - "parameters": [ - { - "$id": "87", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "38" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "88", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "25", + "kind": "constant", + "name": "modelV3ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "89", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "90", - "type": { - "$ref": "38" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.v1" + "value": "application/json", + "decorators": [] }, { - "$id": "91", - "kind": "basic", - "name": "v2", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "92", - "name": "v2", - "resourceName": "Removed", - "accessibility": "public", - "parameters": [ - { - "$id": "93", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "94", - "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": "95", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "96", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "97", - "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": "98", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "52" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v2", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.v2", - "decorators": [] - }, - "parameters": [ - { - "$id": "99", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "52" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "100", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "101", + "$id": "27", + "kind": "constant", + "name": "v1InInterfaceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", "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": "102", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false }, - { - "$id": "103", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "104", - "type": { - "$ref": "52" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.v2" + "value": "application/json", + "decorators": [] }, { - "$id": "105", - "kind": "basic", - "name": "modelV3", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "doc": "This operation will pass different paths and different request bodies based on different versions.", - "operation": { - "$id": "106", - "name": "modelV3", - "resourceName": "Removed", - "doc": "This operation will pass different paths and different request bodies based on different versions.", - "accessibility": "public", - "parameters": [ - { - "$id": "107", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "108", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "109", - "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": "110", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "72" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v3", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3", - "decorators": [] - }, - "parameters": [ - { - "$id": "111", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "72" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "112", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "29", + "kind": "constant", + "name": "v1InInterfaceContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "113", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "114", - "type": { - "$ref": "72" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [ { - "$id": "115", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "116", - "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", + "kind": "model", + "name": "ModelV1", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "32", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "34", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "35", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "36", + "kind": "union", + "name": "UnionV1", + "variantTypes": [ + { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "38", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] }, { - "$id": "117", - "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" - ], - "children": [ - { - "$id": "118", - "kind": "client", - "name": "InterfaceV1", - "namespace": "Versioning.Removed", - "doc": "This operation group should not be generated with latest version.", - "methods": [ - { - "$id": "119", - "kind": "basic", - "name": "v1InInterface", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "120", - "name": "v1InInterface", - "resourceName": "InterfaceV1", - "accessibility": "public", - "parameters": [ - { - "$id": "121", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "39", + "kind": "model", + "name": "ModelV2", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "40", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "34" + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "122", - "name": "accept", - "nameInRequest": "Accept", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "42", + "kind": "property", + "name": "removedProp", + "serializedName": "removedProp", "type": { - "$ref": "36" + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "123", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.removedProp", + "serializationOptions": { + "json": { + "name": "removedProp" + } + } + }, + { + "$id": "44", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", "type": { - "$ref": "38" + "$ref": "4" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "45", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "46", + "kind": "union", + "name": "UnionV2", + "variantTypes": [ + { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "48", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + { + "$id": "49", + "kind": "int32", + "name": "V1Scalar", + "crossLanguageDefinitionId": "Versioning.Removed.V1Scalar", + "baseType": { + "$id": "50", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] + }, + { + "$id": "51", + "kind": "model", + "name": "ModelV3", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "52", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "124", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "54", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "8" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "55", + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "methods": [ + { + "$id": "56", + "kind": "basic", + "name": "v1", + "accessibility": "public", + "apiVersions": [ + "v1" ], - "bodyType": { - "$ref": "38" + "doc": "This operation should not be generated with latest version's signature.", + "operation": { + "$id": "57", + "name": "v1", + "resourceName": "Removed", + "doc": "This operation should not be generated with latest version's signature.", + "accessibility": "public", + "parameters": [ + { + "$id": "58", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "59", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "60", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "61", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "31" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v1", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.v1", + "decorators": [] }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "$id": "62", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "63", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "64", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "31" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.v1" + }, { - "$id": "125", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "38" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "65", + "kind": "basic", + "name": "v2", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "66", + "name": "v2", + "resourceName": "Removed", + "accessibility": "public", + "parameters": [ + { + "$id": "67", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "68", + "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": "69", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "70", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "71", + "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": "72", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "39" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v2", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.v2", + "decorators": [] + }, + "parameters": [ + { + "$id": "73", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "39" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "74", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "75", + "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": "76", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "77", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "39" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "126", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "78", + "kind": "basic", + "name": "modelV3", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "doc": "This operation will pass different paths and different request bodies based on different versions.", + "operation": { + "$id": "79", + "name": "modelV3", + "resourceName": "Removed", + "doc": "This operation will pass different paths and different request bodies based on different versions.", + "accessibility": "public", + "parameters": [ + { + "$id": "80", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "81", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "25" + }, + "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": "51" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "83", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "51" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v3", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.modelV3", + "decorators": [] + }, + "parameters": [ + { + "$id": "84", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "51" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "85", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "86", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "51" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.modelV3" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "127", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "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" } - ], - "response": { - "$id": "128", - "type": { - "$ref": "38" + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed", + "apiVersions": [ + "v1" + ], + "children": [ + { + "$id": "87", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "methods": [ + { + "$id": "88", + "kind": "basic", + "name": "v1InInterface", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "89", + "name": "v1InInterface", + "resourceName": "InterfaceV1", + "accessibility": "public", + "parameters": [ + { + "$id": "90", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "91", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "29" + }, + "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": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "93", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "31" + }, + "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": [] + }, + "parameters": [ + { + "$id": "94", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "95", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "96", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "31" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "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" + ], + "parent": { + "$ref": "55" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface" - } - ], - "parameters": [ - { - "$id": "129", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "130", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "131", - "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" - ], - "parent": { - "$ref": "80" - } + ] } - ] - } - ] + ] } 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 b88d1766761..37a99a376c1 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 @@ -1,788 +1,748 @@ { - "$id": "1", - "name": "Versioning.Removed.V2", - "apiVersions": [ - "v1", - "v2preview", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.Removed.V2", + "apiVersions": [ + "v1", + "v2preview", + "v2" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "EnumV3", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "8", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "4", + "kind": "enum", + "name": "EnumV3", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMemberV2Preview", + "value": "enumMemberV2Preview", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "decorators": [] }, { - "$id": "10", - "kind": "enumvalue", - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "8", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "valueType": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "10", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "v2preview", + "value": "v2preview", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The V2 Preview version.", + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The version v2.", + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "decorators": [] } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "12", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + ], + "constants": [ { - "$id": "14", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "13", + "kind": "constant", + "name": "v2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The version v1.", - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "v2preview", - "value": "v2preview", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "15", + "kind": "constant", + "name": "v2ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The V2 Preview version.", - "decorators": [] }, { - "$id": "18", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The version v2.", - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "20", - "kind": "constant", - "name": "v2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "v2ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "modelV3ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "modelV3ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "28", - "kind": "model", - "name": "ModelV2", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "29", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "17", + "kind": "constant", + "name": "modelV3ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.prop", - "serializationOptions": { - "$id": "31", - "json": { - "$id": "32", - "name": "prop" - } - } }, { - "$id": "33", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.enumProp", - "serializationOptions": { - "$id": "34", - "json": { - "$id": "35", - "name": "enumProp" - } - } - }, - { - "$id": "36", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "37", - "kind": "union", - "name": "UnionV2", - "variantTypes": [ - { - "$id": "38", + "$id": "19", + "kind": "constant", + "name": "modelV3ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "39", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.unionProp", - "serializationOptions": { - "$id": "40", - "json": { - "$id": "41", - "name": "unionProp" - } - } - } - ] - }, - { - "$id": "42", - "kind": "model", - "name": "ModelV3", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "43", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.id", - "serializationOptions": { - "$id": "45", - "json": { - "$id": "46", - "name": "id" - } - } - }, - { - "$id": "47", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "6" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.enumProp", - "serializationOptions": { - "$id": "48", - "json": { - "$id": "49", - "name": "enumProp" - } - } } - ] - } - ], - "clients": [ - { - "$id": "50", - "kind": "client", - "name": "RemovedClient", - "namespace": "Versioning.Removed", - "doc": "Test for the `@removed` decorator.", - "methods": [ + ], + "models": [ { - "$id": "51", - "kind": "basic", - "name": "v2", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2preview", - "v2" - ], - "operation": { - "$id": "52", - "name": "v2", - "resourceName": "Removed", - "accessibility": "public", - "parameters": [ - { - "$id": "53", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "54", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "55", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "28" + "$id": "21", + "kind": "model", + "name": "ModelV2", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "22", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "56", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "28" + { + "$id": "24", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v2", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.v2", - "decorators": [] - }, - "parameters": [ - { - "$id": "57", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "28" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "58", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "59", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "60", - "type": { - "$ref": "28" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.v2" + { + "$id": "25", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "26", + "kind": "union", + "name": "UnionV2", + "variantTypes": [ + { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "28", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] }, { - "$id": "61", - "kind": "basic", - "name": "modelV3", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2preview", - "v2" - ], - "doc": "This operation will pass different paths and different request bodies based on different versions.", - "operation": { - "$id": "62", - "name": "modelV3", - "resourceName": "Removed", - "doc": "This operation will pass different paths and different request bodies based on different versions.", - "accessibility": "public", - "parameters": [ - { - "$id": "63", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "64", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "26" + "$id": "29", + "kind": "model", + "name": "ModelV3", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "30", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.id", + "serializationOptions": { + "json": { + "name": "id" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "65", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "42" + { + "$id": "32", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "4" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "33", + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "methods": [ + { + "$id": "34", + "kind": "basic", + "name": "v2", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2preview", + "v2" + ], + "operation": { + "$id": "35", + "name": "v2", + "resourceName": "Removed", + "accessibility": "public", + "parameters": [ + { + "$id": "36", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "37", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "38", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "39", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "21" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v2", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.v2", + "decorators": [] + }, + "parameters": [ + { + "$id": "40", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "41", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "42", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.v2" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "43", + "kind": "basic", + "name": "modelV3", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2preview", + "v2" + ], + "doc": "This operation will pass different paths and different request bodies based on different versions.", + "operation": { + "$id": "44", + "name": "modelV3", + "resourceName": "Removed", + "doc": "This operation will pass different paths and different request bodies based on different versions.", + "accessibility": "public", + "parameters": [ + { + "$id": "45", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "46", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "47", + "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": "48", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v3", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.modelV3", + "decorators": [] + }, + "parameters": [ + { + "$id": "49", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "50", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "51", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.modelV3" + } ], - "responses": [ - { - "$id": "66", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "42" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "8" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v3", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3", - "decorators": [] - }, - "parameters": [ - { - "$id": "67", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "42" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "68", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "69", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "70", - "type": { - "$ref": "42" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed", + "apiVersions": [ + "v1", + "v2preview", + "v2" + ] } - ], - "parameters": [ - { - "$id": "71", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "72", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "73", - "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" - ] - } - ] + ] } 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 136673da7d6..d6b06878a6d 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 @@ -1,1374 +1,1327 @@ { - "$id": "1", - "name": "Versioning.Removed.V2Preview", - "apiVersions": [ - "v1", - "v2preview" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "8", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "12", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.Removed.V2Preview", + "apiVersions": [ + "v1", + "v2preview" + ], + "enums": [ { - "$id": "14", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "enumMember", + "value": "enumMember", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The version v1.", - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "v2preview", - "value": "v2preview", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "12" - }, - "doc": "The V2 Preview version.", - "decorators": [] - } - ], - "namespace": "Versioning.Removed", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "18", - "kind": "constant", - "name": "v1ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "20", - "kind": "constant", - "name": "v1ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "22", - "kind": "constant", - "name": "v2ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "24", - "kind": "constant", - "name": "v2ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "26", - "kind": "constant", - "name": "modelV3ContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "28", - "kind": "constant", - "name": "modelV3ContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "30", - "kind": "constant", - "name": "v1InInterfaceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "32", - "kind": "constant", - "name": "v1InInterfaceContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "34", - "kind": "model", - "name": "ModelV1", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "35", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "4", + "kind": "enum", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.prop", - "serializationOptions": { - "$id": "37", - "json": { - "$id": "38", - "name": "prop" - } - } }, { - "$id": "39", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.enumProp", - "serializationOptions": { - "$id": "40", - "json": { - "$id": "41", - "name": "enumProp" - } - } - }, - { - "$id": "42", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "43", - "kind": "union", - "name": "UnionV1", - "variantTypes": [ - { - "$id": "44", + "$id": "8", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "valueType": { + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "45", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } + }, + "values": [ + { + "$id": "10", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "v2preview", + "value": "v2preview", + "valueType": { + "$ref": "9" + }, + "enumType": { + "$ref": "8" + }, + "doc": "The V2 Preview version.", + "decorators": [] + } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.unionProp", - "serializationOptions": { - "$id": "46", - "json": { - "$id": "47", - "name": "unionProp" - } - } } - ] - }, - { - "$id": "48", - "kind": "model", - "name": "ModelV2", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "49", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "12", + "kind": "constant", + "name": "v1ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.prop", - "serializationOptions": { - "$id": "51", - "json": { - "$id": "52", - "name": "prop" - } - } }, { - "$id": "53", - "kind": "property", - "name": "removedProp", - "serializedName": "removedProp", - "type": { - "$id": "54", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "14", + "kind": "constant", + "name": "v1ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.removedProp", - "serializationOptions": { - "$id": "55", - "json": { - "$id": "56", - "name": "removedProp" - } - } }, { - "$id": "57", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "6" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.enumProp", - "serializationOptions": { - "$id": "58", - "json": { - "$id": "59", - "name": "enumProp" - } - } + "$id": "16", + "kind": "constant", + "name": "v2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "60", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "61", - "kind": "union", - "name": "UnionV2", - "variantTypes": [ - { - "$id": "62", + "$id": "18", + "kind": "constant", + "name": "v2ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "63", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - { - "$id": "64", - "kind": "int32", - "name": "V1Scalar", - "crossLanguageDefinitionId": "Versioning.Removed.V1Scalar", - "baseType": { - "$id": "65", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - } - ], - "namespace": "Versioning.Removed", + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.unionProp", - "serializationOptions": { - "$id": "66", - "json": { - "$id": "67", - "name": "unionProp" - } - } - } - ] - }, - { - "$id": "68", - "kind": "model", - "name": "ModelV3", - "namespace": "Versioning.Removed", - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "69", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "20", + "kind": "constant", + "name": "modelV3ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.id", - "serializationOptions": { - "$id": "71", - "json": { - "$id": "72", - "name": "id" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "73", - "kind": "client", - "name": "RemovedClient", - "namespace": "Versioning.Removed", - "doc": "Test for the `@removed` decorator.", - "methods": [ + }, { - "$id": "74", - "kind": "basic", - "name": "v1", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2preview" - ], - "doc": "This operation should not be generated with latest version's signature.", - "operation": { - "$id": "75", - "name": "v1", - "resourceName": "Removed", - "doc": "This operation should not be generated with latest version's signature.", - "accessibility": "public", - "parameters": [ - { - "$id": "76", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "77", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "78", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "34" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "79", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "34" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v1", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.v1", - "decorators": [] - }, - "parameters": [ - { - "$id": "80", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "34" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "81", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "22", + "kind": "constant", + "name": "modelV3ContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "82", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "83", - "type": { - "$ref": "34" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.v1" + "value": "application/json", + "decorators": [] }, { - "$id": "84", - "kind": "basic", - "name": "v2", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2preview" - ], - "operation": { - "$id": "85", - "name": "v2", - "resourceName": "Removed", - "accessibility": "public", - "parameters": [ - { - "$id": "86", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "87", - "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": "88", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "89", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "90", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "48" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "91", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "48" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v2", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.v2", - "decorators": [] - }, - "parameters": [ - { - "$id": "92", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "48" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "93", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "94", + "$id": "24", + "kind": "constant", + "name": "v1InInterfaceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "25", "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": "95", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false }, - { - "$id": "96", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "97", - "type": { - "$ref": "48" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.v2" + "value": "application/json", + "decorators": [] }, { - "$id": "98", - "kind": "basic", - "name": "modelV3", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2preview" - ], - "doc": "This operation will pass different paths and different request bodies based on different versions.", - "operation": { - "$id": "99", - "name": "modelV3", - "resourceName": "Removed", - "doc": "This operation will pass different paths and different request bodies based on different versions.", - "accessibility": "public", - "parameters": [ - { - "$id": "100", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "101", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "102", - "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": "103", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "68" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/v3", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3", - "decorators": [] - }, - "parameters": [ - { - "$id": "104", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "68" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "105", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "26", + "kind": "constant", + "name": "v1InInterfaceContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "106", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "28" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "107", - "type": { - "$ref": "68" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [ { - "$id": "108", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "109", - "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", + "kind": "model", + "name": "ModelV1", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "29", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "31", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "32", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "33", + "kind": "union", + "name": "UnionV1", + "variantTypes": [ + { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "35", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV1.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] }, { - "$id": "110", - "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" - ], - "children": [ - { - "$id": "111", - "kind": "client", - "name": "InterfaceV1", - "namespace": "Versioning.Removed", - "doc": "This operation group should not be generated with latest version.", - "methods": [ - { - "$id": "112", - "kind": "basic", - "name": "v1InInterface", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2preview" - ], - "operation": { - "$id": "113", - "name": "v1InInterface", - "resourceName": "InterfaceV1", - "accessibility": "public", - "parameters": [ - { - "$id": "114", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "36", + "kind": "model", + "name": "ModelV2", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "37", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "30" + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "115", - "name": "accept", - "nameInRequest": "Accept", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "39", + "kind": "property", + "name": "removedProp", + "serializedName": "removedProp", "type": { - "$ref": "32" + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "116", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.removedProp", + "serializationOptions": { + "json": { + "name": "removedProp" + } + } + }, + { + "$id": "41", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", "type": { - "$ref": "34" + "$ref": "4" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "42", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "43", + "kind": "union", + "name": "UnionV2", + "variantTypes": [ + { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "45", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + { + "$id": "46", + "kind": "int32", + "name": "V1Scalar", + "crossLanguageDefinitionId": "Versioning.Removed.V1Scalar", + "baseType": { + "$id": "47", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + } + ], + "namespace": "Versioning.Removed", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "117", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Versioning.Removed.ModelV2.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] + }, + { + "$id": "48", + "kind": "model", + "name": "ModelV3", + "namespace": "Versioning.Removed", + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "49", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.ModelV3.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "51", + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "methods": [ + { + "$id": "52", + "kind": "basic", + "name": "v1", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2preview" ], - "bodyType": { - "$ref": "34" + "doc": "This operation should not be generated with latest version's signature.", + "operation": { + "$id": "53", + "name": "v1", + "resourceName": "Removed", + "doc": "This operation should not be generated with latest version's signature.", + "accessibility": "public", + "parameters": [ + { + "$id": "54", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "55", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "56", + "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": "57", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "28" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v1", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.v1", + "decorators": [] }, - "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": [] - }, - "parameters": [ + "parameters": [ + { + "$id": "58", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "59", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "60", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "28" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.v1" + }, { - "$id": "118", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "34" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "61", + "kind": "basic", + "name": "v2", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2preview" + ], + "operation": { + "$id": "62", + "name": "v2", + "resourceName": "Removed", + "accessibility": "public", + "parameters": [ + { + "$id": "63", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "64", + "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": "65", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "66", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "67", + "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": "68", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "36" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v2", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.v2", + "decorators": [] + }, + "parameters": [ + { + "$id": "69", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "36" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "70", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "71", + "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": "72", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "73", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "36" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "119", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "74", + "kind": "basic", + "name": "modelV3", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2preview" + ], + "doc": "This operation will pass different paths and different request bodies based on different versions.", + "operation": { + "$id": "75", + "name": "modelV3", + "resourceName": "Removed", + "doc": "This operation will pass different paths and different request bodies based on different versions.", + "accessibility": "public", + "parameters": [ + { + "$id": "76", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "77", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "78", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "48" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "79", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "48" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/v3", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.modelV3", + "decorators": [] + }, + "parameters": [ + { + "$id": "80", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "48" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "81", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "82", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "48" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.modelV3" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "120", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "8" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } - ], - "response": { - "$id": "121", - "type": { - "$ref": "34" + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed", + "apiVersions": [ + "v1", + "v2preview" + ], + "children": [ + { + "$id": "83", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "methods": [ + { + "$id": "84", + "kind": "basic", + "name": "v1InInterface", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2preview" + ], + "operation": { + "$id": "85", + "name": "v1InInterface", + "resourceName": "InterfaceV1", + "accessibility": "public", + "parameters": [ + { + "$id": "86", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "24" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "87", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "26" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "88", + "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": "89", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "28" + }, + "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": [] + }, + "parameters": [ + { + "$id": "90", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "91", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "24" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "92", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "26" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "28" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "8" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "apiVersions": [ + "v1", + "v2preview" + ], + "parent": { + "$ref": "51" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface" - } - ], - "parameters": [ - { - "$id": "122", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "123", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "124", - "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" - ], - "parent": { - "$ref": "73" - } + ] } - ] - } - ] + ] } 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 d1f72f34cfd..06dd5f38970 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 @@ -1,735 +1,712 @@ { - "$id": "1", - "name": "Versioning.RenamedFrom.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "OldEnum", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "oldEnumMember", - "value": "oldEnumMember", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.RenamedFrom", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "8", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "doc": "The version v1.", - "decorators": [] - } - ], - "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "10", - "kind": "constant", - "name": "oldOpContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "oldOpContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "newOpInNewInterfaceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "newOpInNewInterfaceContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "18", - "kind": "model", - "name": "OldModel", - "namespace": "Versioning.RenamedFrom", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Versioning.RenamedFrom.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "19", - "kind": "property", - "name": "oldProp", - "serializedName": "oldProp", - "type": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "OldEnum", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "oldEnumMember", + "value": "oldEnumMember", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.RenamedFrom", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel.oldProp", - "serializationOptions": { - "$id": "21", - "json": { - "$id": "22", - "name": "oldProp" - } - } }, { - "$id": "23", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel.enumProp", - "serializationOptions": { - "$id": "24", - "json": { - "$id": "25", - "name": "enumProp" - } - } - }, - { - "$id": "26", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "27", - "kind": "union", - "name": "OldUnion", - "variantTypes": [ - { - "$id": "28", + "$id": "4", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", + "valueType": { + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "29", - "kind": "int32", - "name": "OldScalar", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldScalar", - "baseType": { - "$id": "30", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - } + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "doc": "The version v1.", + "decorators": [] + } ], "namespace": "Versioning.RenamedFrom", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel.unionProp", - "serializationOptions": { - "$id": "31", - "json": { - "$id": "32", - "name": "unionProp" - } - } } - ] - } - ], - "clients": [ - { - "$id": "33", - "kind": "client", - "name": "RenamedFromClient", - "namespace": "Versioning.RenamedFrom", - "doc": "Test for the `@renamedFrom` decorator.", - "methods": [ + ], + "constants": [ { - "$id": "34", - "kind": "basic", - "name": "oldOp", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "35", - "name": "oldOp", - "resourceName": "RenamedFrom", - "accessibility": "public", - "parameters": [ - { - "$id": "36", - "name": "oldQuery", - "nameInRequest": "oldQuery", - "type": { - "$id": "37", - "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": "38", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "39", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "40", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "18" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "41", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp", - "decorators": [] - }, - "parameters": [ - { - "$id": "42", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "18" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "43", - "name": "oldQuery", - "nameInRequest": "oldQuery", - "type": { - "$id": "44", + "$id": "7", + "kind": "constant", + "name": "oldOpContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", "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": "45", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "application/json", + "decorators": [] + }, + { + "$id": "9", + "kind": "constant", + "name": "oldOpContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "46", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "47", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp" - } - ], - "parameters": [ + "value": "application/json", + "decorators": [] + }, { - "$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": "11", + "kind": "constant", + "name": "newOpInNewInterfaceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "50", - "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" + "$id": "13", + "kind": "constant", + "name": "newOpInNewInterfaceContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom", - "apiVersions": [ - "v1" - ], - "children": [ + ], + "models": [ { - "$id": "51", - "kind": "client", - "name": "OldInterface", - "namespace": "Versioning.RenamedFrom", - "methods": [ - { - "$id": "52", - "kind": "basic", - "name": "newOpInNewInterface", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "53", - "name": "newOpInNewInterface", - "resourceName": "OldInterface", - "accessibility": "public", - "parameters": [ - { - "$id": "54", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "15", + "kind": "model", + "name": "OldModel", + "namespace": "Versioning.RenamedFrom", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "16", + "kind": "property", + "name": "oldProp", + "serializedName": "oldProp", "type": { - "$ref": "14" + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel.oldProp", + "serializationOptions": { + "json": { + "name": "oldProp" + } + } + }, + { + "$id": "18", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "55", - "name": "accept", - "nameInRequest": "Accept", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "19", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", "type": { - "$ref": "16" + "$id": "20", + "kind": "union", + "name": "OldUnion", + "variantTypes": [ + { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "22", + "kind": "int32", + "name": "OldScalar", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldScalar", + "baseType": { + "$id": "23", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + } + ], + "namespace": "Versioning.RenamedFrom", + "decorators": [] }, - "location": "Header", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldModel.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "24", + "kind": "client", + "name": "RenamedFromClient", + "namespace": "Versioning.RenamedFrom", + "doc": "Test for the `@renamedFrom` decorator.", + "methods": [ + { + "$id": "25", + "kind": "basic", + "name": "oldOp", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "26", + "name": "oldOp", + "resourceName": "RenamedFrom", + "accessibility": "public", + "parameters": [ + { + "$id": "27", + "name": "oldQuery", + "nameInRequest": "oldQuery", + "type": { + "$id": "28", + "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": "29", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "30", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "31", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "32", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "15" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp", + "decorators": [] + }, + "parameters": [ + { + "$id": "33", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "34", + "name": "oldQuery", + "nameInRequest": "oldQuery", + "type": { + "$id": "35", + "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": "36", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "37", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "15" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "56", - "name": "body", - "nameInRequest": "body", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "18" + "$ref": "4" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "apiVersions": [ + "v1" + ], + "children": [ + { + "$id": "38", + "kind": "client", + "name": "OldInterface", + "namespace": "Versioning.RenamedFrom", + "methods": [ + { + "$id": "39", + "kind": "basic", + "name": "newOpInNewInterface", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "40", + "name": "newOpInNewInterface", + "resourceName": "OldInterface", + "accessibility": "public", + "parameters": [ + { + "$id": "41", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "42", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "43", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "44", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "15" + }, + "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": [] + }, + "parameters": [ + { + "$id": "45", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "46", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "47", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "15" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "4" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "57", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", + "apiVersions": [ + "v1" ], - "bodyType": { - "$ref": "18" - }, - "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": [] - }, - "parameters": [ - { - "$id": "58", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "18" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "59", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "60", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "61", - "type": { - "$ref": "18" + "parent": { + "$ref": "24" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface" - } - ], - "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, - "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' 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" - ], - "parent": { - "$ref": "33" - } + ] } - ] - } - ] + ] } 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 0a6013d108b..a777e11558a 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 @@ -1,758 +1,731 @@ { - "$id": "1", - "name": "Versioning.RenamedFrom.V2", - "apiVersions": [ - "v1", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "NewEnum", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "newEnumMember", - "value": "newEnumMember", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "Versioning.RenamedFrom", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "6", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "8", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "doc": "The version v1.", - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "6" - }, - "doc": "The version v2.", - "decorators": [] - } - ], - "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "12", - "kind": "constant", - "name": "newOpContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "newOpContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "16", - "kind": "constant", - "name": "newOpInNewInterfaceContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "18", - "kind": "constant", - "name": "newOpInNewInterfaceContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "20", - "kind": "model", - "name": "NewModel", - "namespace": "Versioning.RenamedFrom", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + "name": "Versioning.RenamedFrom.V2", + "apiVersions": [ + "v1", + "v2" + ], + "enums": [ { - "$id": "21", - "kind": "property", - "name": "newProp", - "serializedName": "newProp", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "NewEnum", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "newEnumMember", + "value": "newEnumMember", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Versioning.RenamedFrom", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel.newProp", - "serializationOptions": { - "$id": "23", - "json": { - "$id": "24", - "name": "newProp" - } - } - }, - { - "$id": "25", - "kind": "property", - "name": "enumProp", - "serializedName": "enumProp", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel.enumProp", - "serializationOptions": { - "$id": "26", - "json": { - "$id": "27", - "name": "enumProp" - } - } }, { - "$id": "28", - "kind": "property", - "name": "unionProp", - "serializedName": "unionProp", - "type": { - "$id": "29", - "kind": "union", - "name": "NewUnion", - "variantTypes": [ - { - "$id": "30", + "$id": "4", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", + "valueType": { + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - { - "$id": "31", - "kind": "int32", - "name": "NewScalar", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewScalar", - "baseType": { - "$id": "32", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + }, + "values": [ + { + "$id": "6", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "doc": "The version v1.", + "decorators": [] }, - "decorators": [] - } + { + "$id": "7", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "doc": "The version v2.", + "decorators": [] + } ], "namespace": "Versioning.RenamedFrom", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel.unionProp", - "serializationOptions": { - "$id": "33", - "json": { - "$id": "34", - "name": "unionProp" - } - } } - ] - } - ], - "clients": [ - { - "$id": "35", - "kind": "client", - "name": "RenamedFromClient", - "namespace": "Versioning.RenamedFrom", - "doc": "Test for the `@renamedFrom` decorator.", - "methods": [ + ], + "constants": [ { - "$id": "36", - "kind": "basic", - "name": "newOp", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "operation": { - "$id": "37", - "name": "newOp", - "resourceName": "RenamedFrom", - "accessibility": "public", - "parameters": [ - { - "$id": "38", - "name": "newQuery", - "nameInRequest": "newQuery", - "type": { - "$id": "39", - "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": "40", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "41", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "42", - "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": "43", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "20" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp", - "decorators": [] - }, - "parameters": [ - { - "$id": "44", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "45", - "name": "newQuery", - "nameInRequest": "newQuery", - "type": { - "$id": "46", + "$id": "8", + "kind": "constant", + "name": "newOpContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "9", "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": "47", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "application/json", + "decorators": [] + }, + { + "$id": "10", + "kind": "constant", + "name": "newOpContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "48", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "49", - "type": { - "$ref": "20" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp" - } - ], - "parameters": [ + "value": "application/json", + "decorators": [] + }, { - "$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": "12", + "kind": "constant", + "name": "newOpInNewInterfaceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$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" + "$id": "14", + "kind": "constant", + "name": "newOpInNewInterfaceContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom", - "apiVersions": [ - "v1", - "v2" - ], - "children": [ + ], + "models": [ { - "$id": "53", - "kind": "client", - "name": "NewInterface", - "namespace": "Versioning.RenamedFrom", - "methods": [ - { - "$id": "54", - "kind": "basic", - "name": "newOpInNewInterface", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "operation": { - "$id": "55", - "name": "newOpInNewInterface", - "resourceName": "NewInterface", - "accessibility": "public", - "parameters": [ - { - "$id": "56", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "16", + "kind": "model", + "name": "NewModel", + "namespace": "Versioning.RenamedFrom", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "17", + "kind": "property", + "name": "newProp", + "serializedName": "newProp", "type": { - "$ref": "16" + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "57", - "name": "accept", - "nameInRequest": "Accept", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel.newProp", + "serializationOptions": { + "json": { + "name": "newProp" + } + } + }, + { + "$id": "19", + "kind": "property", + "name": "enumProp", + "serializedName": "enumProp", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel.enumProp", + "serializationOptions": { + "json": { + "name": "enumProp" + } + } + }, + { + "$id": "20", + "kind": "property", + "name": "unionProp", + "serializedName": "unionProp", + "type": { + "$id": "21", + "kind": "union", + "name": "NewUnion", + "variantTypes": [ + { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "23", + "kind": "int32", + "name": "NewScalar", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewScalar", + "baseType": { + "$id": "24", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + } + ], + "namespace": "Versioning.RenamedFrom", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewModel.unionProp", + "serializationOptions": { + "json": { + "name": "unionProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "25", + "kind": "client", + "name": "RenamedFromClient", + "namespace": "Versioning.RenamedFrom", + "doc": "Test for the `@renamedFrom` decorator.", + "methods": [ + { + "$id": "26", + "kind": "basic", + "name": "newOp", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "operation": { + "$id": "27", + "name": "newOp", + "resourceName": "RenamedFrom", + "accessibility": "public", + "parameters": [ + { + "$id": "28", + "name": "newQuery", + "nameInRequest": "newQuery", + "type": { + "$id": "29", + "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": "30", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "8" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "31", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "32", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "33", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "16" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp", + "decorators": [] + }, + "parameters": [ + { + "$id": "34", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "35", + "name": "newQuery", + "nameInRequest": "newQuery", + "type": { + "$id": "36", + "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": "37", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "8" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "38", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "16" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$ref": "18" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "58", - "name": "body", - "nameInRequest": "body", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "20" + "$ref": "4" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "apiVersions": [ + "v1", + "v2" + ], + "children": [ + { + "$id": "39", + "kind": "client", + "name": "NewInterface", + "namespace": "Versioning.RenamedFrom", + "methods": [ + { + "$id": "40", + "kind": "basic", + "name": "newOpInNewInterface", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "operation": { + "$id": "41", + "name": "newOpInNewInterface", + "resourceName": "NewInterface", + "accessibility": "public", + "parameters": [ + { + "$id": "42", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "43", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "44", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "45", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "16" + }, + "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": [] + }, + "parameters": [ + { + "$id": "46", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "47", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "48", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "16" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "4" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "59", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", + "apiVersions": [ + "v1", + "v2" ], - "bodyType": { - "$ref": "20" - }, - "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": [] - }, - "parameters": [ - { - "$id": "60", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "61", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "62", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "63", - "type": { - "$ref": "20" + "parent": { + "$ref": "25" + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface" - } - ], - "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, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "66", - "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" - ], - "parent": { - "$ref": "35" - } + ] } - ] - } - ] + ] } 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 a225115254c..b73aa0428cd 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 @@ -1,349 +1,339 @@ { - "$id": "1", - "name": "Versioning.ReturnTypeChangedFrom.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.ReturnTypeChangedFrom.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + } + ], + "namespace": "Versioning.ReturnTypeChangedFrom", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v1.", - "decorators": [] } - ], - "namespace": "Versioning.ReturnTypeChangedFrom", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "6", - "kind": "constant", - "name": "TestRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "testContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "TestRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "TestRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [], - "clients": [ - { - "$id": "14", - "kind": "client", - "name": "ReturnTypeChangedFromClient", - "namespace": "Versioning.ReturnTypeChangedFrom", - "doc": "Test for the `@returnTypeChangedFrom` decorator.", - "methods": [ + ], + "constants": [ { - "$id": "15", - "kind": "basic", - "name": "test", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "16", - "name": "test", - "resourceName": "ReturnTypeChangedFrom", - "accessibility": "public", - "parameters": [ - { - "$id": "17", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "18", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "19", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "20", - "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": "21", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "22", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "headers": [ - { - "$id": "23", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "10" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/return-type-changed-from/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test", - "decorators": [] - }, - "parameters": [ - { - "$id": "24", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "4", + "kind": "constant", + "name": "TestRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "25", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "26", + "value": "application/json", + "decorators": [] + }, + { + "$id": "6", + "kind": "constant", + "name": "testContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "7", "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 }, - { - "$id": "27", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "28", - "type": { - "$ref": "22" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test" - } - ], - "parameters": [ + "value": "application/json", + "decorators": [] + }, { - "$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": "8", + "kind": "constant", + "name": "TestRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$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" + "$id": "10", + "kind": "constant", + "name": "TestRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [], + "clients": [ + { + "$id": "12", + "kind": "client", + "name": "ReturnTypeChangedFromClient", + "namespace": "Versioning.ReturnTypeChangedFrom", + "doc": "Test for the `@returnTypeChangedFrom` decorator.", + "methods": [ + { + "$id": "13", + "kind": "basic", + "name": "test", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "14", + "name": "test", + "resourceName": "ReturnTypeChangedFrom", + "accessibility": "public", + "parameters": [ + { + "$id": "15", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "16", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "17", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "18", + "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": "19", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "20", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "8" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/return-type-changed-from/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test", + "decorators": [] + }, + "parameters": [ + { + "$id": "21", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "22", + "name": "body", + "nameInRequest": "body", + "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 + }, + { + "$id": "24", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "20" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", + "apiVersions": [ + "v1" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", - "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 94023f3a6ec..382e291af9a 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 @@ -1,370 +1,356 @@ { - "$id": "1", - "name": "Versioning.ReturnTypeChangedFrom.V2", - "apiVersions": [ - "v1", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.ReturnTypeChangedFrom.V2", + "apiVersions": [ + "v1", + "v2" + ], + "enums": [ + { + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v2.", + "decorators": [] + } + ], + "namespace": "Versioning.ReturnTypeChangedFrom", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", + "decorators": [] + } + ], + "constants": [ { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "constant", + "name": "TestRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v1.", - "decorators": [] }, { - "$id": "6", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "constant", + "name": "testContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v2.", - "decorators": [] - } - ], - "namespace": "Versioning.ReturnTypeChangedFrom", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "8", - "kind": "constant", - "name": "TestRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "testContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "12", - "kind": "constant", - "name": "TestRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "14", - "kind": "constant", - "name": "TestRequestContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [], - "clients": [ - { - "$id": "16", - "kind": "client", - "name": "ReturnTypeChangedFromClient", - "namespace": "Versioning.ReturnTypeChangedFrom", - "doc": "Test for the `@returnTypeChangedFrom` decorator.", - "methods": [ + }, { - "$id": "17", - "kind": "basic", - "name": "test", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "operation": { - "$id": "18", - "name": "test", - "resourceName": "ReturnTypeChangedFrom", - "accessibility": "public", - "parameters": [ - { - "$id": "19", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "20", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "21", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "22", - "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": "23", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ - { - "$id": "25", - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "12" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/return-type-changed-from/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test", - "decorators": [] - }, - "parameters": [ - { - "$id": "26", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "9", + "kind": "constant", + "name": "TestRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "27", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "28", + "value": "application/json", + "decorators": [] + }, + { + "$id": "11", + "kind": "constant", + "name": "TestRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", "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 }, - { - "$id": "29", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "30", - "type": { - "$ref": "24" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [], + "clients": [ { - "$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": "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" + "$id": "13", + "kind": "client", + "name": "ReturnTypeChangedFromClient", + "namespace": "Versioning.ReturnTypeChangedFrom", + "doc": "Test for the `@returnTypeChangedFrom` decorator.", + "methods": [ + { + "$id": "14", + "kind": "basic", + "name": "test", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "operation": { + "$id": "15", + "name": "test", + "resourceName": "ReturnTypeChangedFrom", + "accessibility": "public", + "parameters": [ + { + "$id": "16", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "17", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "18", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "19", + "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": "20", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "9" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/return-type-changed-from/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test", + "decorators": [] + }, + "parameters": [ + { + "$id": "22", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "23", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "24", + "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 + }, + { + "$id": "25", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "21" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", + "apiVersions": [ + "v1", + "v2" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", - "apiVersions": [ - "v1", - "v2" - ] - } - ] + ] } 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 c3aaace452c..157a553698a 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 @@ -1,404 +1,391 @@ { - "$id": "1", - "name": "Versioning.TypeChangedFrom.V1", - "apiVersions": [ - "v1" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + "name": "Versioning.TypeChangedFrom.V1", + "apiVersions": [ + "v1" + ], + "enums": [ { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + } + ], + "namespace": "Versioning.TypeChangedFrom", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v1.", - "decorators": [] } - ], - "namespace": "Versioning.TypeChangedFrom", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "6", - "kind": "constant", - "name": "testContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "8", - "kind": "constant", - "name": "testContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "10", - "kind": "model", - "name": "TestModel", - "namespace": "Versioning.TypeChangedFrom", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "11", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "4", + "kind": "constant", + "name": "testContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.prop", - "serializationOptions": { - "$id": "13", - "json": { - "$id": "14", - "name": "prop" - } - } }, { - "$id": "15", - "kind": "property", - "name": "changedProp", - "serializedName": "changedProp", - "type": { - "$id": "16", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "6", + "kind": "constant", + "name": "testContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.changedProp", - "serializationOptions": { - "$id": "17", - "json": { - "$id": "18", - "name": "changedProp" - } - } } - ] - } - ], - "clients": [ - { - "$id": "19", - "kind": "client", - "name": "TypeChangedFromClient", - "namespace": "Versioning.TypeChangedFrom", - "doc": "Test for the `@typeChangedFrom` decorator.", - "methods": [ + ], + "models": [ { - "$id": "20", - "kind": "basic", - "name": "test", - "accessibility": "public", - "apiVersions": [ - "v1" - ], - "operation": { - "$id": "21", - "name": "test", - "resourceName": "TypeChangedFrom", - "accessibility": "public", - "parameters": [ - { - "$id": "22", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "24", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" + "$id": "8", + "kind": "model", + "name": "TestModel", + "namespace": "Versioning.TypeChangedFrom", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "9", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "25", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "26", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "11", + "kind": "property", + "name": "changedProp", + "serializedName": "changedProp", + "type": { + "$id": "12", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.changedProp", + "serializationOptions": { + "json": { + "name": "changedProp" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "13", + "kind": "client", + "name": "TypeChangedFromClient", + "namespace": "Versioning.TypeChangedFrom", + "doc": "Test for the `@typeChangedFrom` decorator.", + "methods": [ + { + "$id": "14", + "kind": "basic", + "name": "test", + "accessibility": "public", + "apiVersions": [ + "v1" + ], + "operation": { + "$id": "15", + "name": "test", + "resourceName": "TypeChangedFrom", + "accessibility": "public", + "parameters": [ + { + "$id": "16", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "17", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "18", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "19", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "20", + "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": "21", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "8" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/type-changed-from/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test", + "decorators": [] + }, + "parameters": [ + { + "$id": "22", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "23", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "24", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "25", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "26", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "8" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test" + } ], - "responses": [ - { - "$id": "27", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "10" + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/type-changed-from/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test", - "decorators": [] - }, - "parameters": [ - { - "$id": "28", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "29", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "30", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "31", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "32", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "33", - "type": { - "$ref": "10" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", + "apiVersions": [ + "v1" + ] } - ], - "parameters": [ - { - "$id": "34", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "35", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "36", - "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" - ] - } - ] + ] } 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 16bc05ae320..fd386b85c15 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 @@ -1,425 +1,408 @@ { - "$id": "1", - "name": "Versioning.TypeChangedFrom.V2", - "apiVersions": [ - "v1", - "v2" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.Versions", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v1.", - "decorators": [] - }, + "name": "Versioning.TypeChangedFrom.V2", + "apiVersions": [ + "v1", + "v2" + ], + "enums": [ { - "$id": "6", - "kind": "enumvalue", - "name": "v2", - "value": "v2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.Versions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v2.", + "decorators": [] + } + ], + "namespace": "Versioning.TypeChangedFrom", + "doc": "The version of the API.", + "isFixed": true, + "isFlags": false, + "usage": "Input,ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "The version v2.", - "decorators": [] } - ], - "namespace": "Versioning.TypeChangedFrom", - "doc": "The version of the API.", - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "8", - "kind": "constant", - "name": "testContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "10", - "kind": "constant", - "name": "testContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "12", - "kind": "model", - "name": "TestModel", - "namespace": "Versioning.TypeChangedFrom", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ + ], + "constants": [ { - "$id": "13", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "constant", + "name": "testContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.prop", - "serializationOptions": { - "$id": "15", - "json": { - "$id": "16", - "name": "prop" - } - } }, { - "$id": "17", - "kind": "property", - "name": "changedProp", - "serializedName": "changedProp", - "type": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.changedProp", - "serializationOptions": { - "$id": "19", - "json": { - "$id": "20", - "name": "changedProp" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "21", - "kind": "client", - "name": "TypeChangedFromClient", - "namespace": "Versioning.TypeChangedFrom", - "doc": "Test for the `@typeChangedFrom` decorator.", - "methods": [ - { - "$id": "22", - "kind": "basic", - "name": "test", - "accessibility": "public", - "apiVersions": [ - "v1", - "v2" - ], - "operation": { - "$id": "23", - "name": "test", - "resourceName": "TypeChangedFrom", - "accessibility": "public", - "parameters": [ - { - "$id": "24", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "25", - "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": "26", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "27", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "28", - "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": "29", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "12" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/type-changed-from/api-version:{version}", - "path": "/test", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test", - "decorators": [] - }, - "parameters": [ - { - "$id": "30", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "31", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "32", + "$id": "7", + "kind": "constant", + "name": "testContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", "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": "33", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "34", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "35", - "type": { - "$ref": "12" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test" + "value": "application/json", + "decorators": [] } - ], - "parameters": [ + ], + "models": [ { - "$id": "36", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "37", - "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", + "kind": "model", + "name": "TestModel", + "namespace": "Versioning.TypeChangedFrom", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "10", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + }, + { + "$id": "12", + "kind": "property", + "name": "changedProp", + "serializedName": "changedProp", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.TestModel.changedProp", + "serializationOptions": { + "json": { + "name": "changedProp" + } + } + } + ] + } + ], + "clients": [ { - "$id": "38", - "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" + "$id": "14", + "kind": "client", + "name": "TypeChangedFromClient", + "namespace": "Versioning.TypeChangedFrom", + "doc": "Test for the `@typeChangedFrom` decorator.", + "methods": [ + { + "$id": "15", + "kind": "basic", + "name": "test", + "accessibility": "public", + "apiVersions": [ + "v1", + "v2" + ], + "operation": { + "$id": "16", + "name": "test", + "resourceName": "TypeChangedFrom", + "accessibility": "public", + "parameters": [ + { + "$id": "17", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "18", + "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": "19", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "20", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "21", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "9" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/type-changed-from/api-version:{version}", + "path": "/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test", + "decorators": [] + }, + "parameters": [ + { + "$id": "23", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "24", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "25", + "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": "26", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "27", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "9" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test" + } + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "1" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", + "apiVersions": [ + "v1", + "v2" + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", - "apiVersions": [ - "v1", - "v2" - ] - } - ] + ] } From b5bc4f4ed6304260501e160014ed6fc3068360cc Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 28 May 2025 13:18:21 +0800 Subject: [PATCH 06/22] format --- .../http-client-csharp/emitter/src/lib/client-model-builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1babb6ec6eb..c5229821dfc 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 @@ -28,7 +28,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { : (rootClients[0]?.apiVersions ?? []); const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); - + const enums = fromSdkEnums(sdkContext, sdkPackage.enums); const models = fromSdkModels(sdkContext, sdkPackage.models); // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. From ce38ffd631921a07ddab6a5abcf18eb7d4125184 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 28 May 2025 17:30:03 +0800 Subject: [PATCH 07/22] regen --- .../Local/Sample-TypeSpec/tspCodeModel.json | 818 ++- .../http/encode/bytes/tspCodeModel.json | 386 +- .../http/encode/datetime/tspCodeModel.json | 366 +- .../http/encode/duration/tspCodeModel.json | 294 +- .../collection-format/tspCodeModel.json | 159 +- .../http/parameters/spread/tspCodeModel.json | 66 +- .../json-merge-patch/tspCodeModel.json | 106 +- .../http/payload/pageable/tspCodeModel.json | 275 +- .../Spector/http/routes/tspCodeModel.json | 5188 +---------------- .../Spector/http/type/array/tspCodeModel.json | 837 +-- .../http/type/dictionary/tspCodeModel.json | 821 +-- .../type/model/visibility/tspCodeModel.json | 137 +- .../additional-properties/tspCodeModel.json | 1485 +++-- .../http/type/scalar/tspCodeModel.json | 35 +- .../Spector/http/type/union/tspCodeModel.json | 387 +- 15 files changed, 2700 insertions(+), 8660 deletions(-) diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index b0fdfd6587c..ac4bc568576 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -1741,18 +1741,7 @@ "$id": "177", "kind": "nullable", "type": { - "$id": "178", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "179", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "174" }, "namespace": "" }, @@ -1771,7 +1760,7 @@ ] }, { - "$id": "180", + "$id": "178", "kind": "model", "name": "RoundTripModel", "namespace": "SampleTypeSpec", @@ -1781,13 +1770,13 @@ "decorators": [], "properties": [ { - "$id": "181", + "$id": "179", "kind": "property", "name": "requiredString", "serializedName": "requiredString", "doc": "Required string, illustrating a reference type property.", "type": { - "$id": "182", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1806,13 +1795,13 @@ } }, { - "$id": "183", + "$id": "181", "kind": "property", "name": "requiredInt", "serializedName": "requiredInt", "doc": "Required int, illustrating a value type property.", "type": { - "$id": "184", + "$id": "182", "kind": "int32", "name": "int32", "encode": "string", @@ -1832,13 +1821,13 @@ } }, { - "$id": "185", + "$id": "183", "kind": "property", "name": "requiredCollection", "serializedName": "requiredCollection", "doc": "Required collection of enums", "type": { - "$id": "186", + "$id": "184", "kind": "array", "name": "ArrayStringFixedEnum", "valueType": { @@ -1860,16 +1849,16 @@ } }, { - "$id": "187", + "$id": "185", "kind": "property", "name": "requiredDictionary", "serializedName": "requiredDictionary", "doc": "Required dictionary of enums", "type": { - "$id": "188", + "$id": "186", "kind": "dict", "keyType": { - "$id": "189", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1893,7 +1882,7 @@ } }, { - "$id": "190", + "$id": "188", "kind": "property", "name": "requiredModel", "serializedName": "requiredModel", @@ -1914,7 +1903,7 @@ } }, { - "$id": "191", + "$id": "189", "kind": "property", "name": "intExtensibleEnum", "serializedName": "intExtensibleEnum", @@ -1935,13 +1924,13 @@ } }, { - "$id": "192", + "$id": "190", "kind": "property", "name": "intExtensibleEnumCollection", "serializedName": "intExtensibleEnumCollection", "doc": "this is a collection of int based extensible enum", "type": { - "$id": "193", + "$id": "191", "kind": "array", "name": "ArrayIntExtensibleEnum", "valueType": { @@ -1963,7 +1952,7 @@ } }, { - "$id": "194", + "$id": "192", "kind": "property", "name": "floatExtensibleEnum", "serializedName": "floatExtensibleEnum", @@ -1984,7 +1973,7 @@ } }, { - "$id": "195", + "$id": "193", "kind": "property", "name": "floatExtensibleEnumWithIntValue", "serializedName": "floatExtensibleEnumWithIntValue", @@ -2005,13 +1994,13 @@ } }, { - "$id": "196", + "$id": "194", "kind": "property", "name": "floatExtensibleEnumCollection", "serializedName": "floatExtensibleEnumCollection", "doc": "this is a collection of float based extensible enum", "type": { - "$id": "197", + "$id": "195", "kind": "array", "name": "ArrayFloatExtensibleEnum", "valueType": { @@ -2033,7 +2022,7 @@ } }, { - "$id": "198", + "$id": "196", "kind": "property", "name": "floatFixedEnum", "serializedName": "floatFixedEnum", @@ -2054,7 +2043,7 @@ } }, { - "$id": "199", + "$id": "197", "kind": "property", "name": "floatFixedEnumWithIntValue", "serializedName": "floatFixedEnumWithIntValue", @@ -2075,13 +2064,13 @@ } }, { - "$id": "200", + "$id": "198", "kind": "property", "name": "floatFixedEnumCollection", "serializedName": "floatFixedEnumCollection", "doc": "this is a collection of float based fixed enum", "type": { - "$id": "201", + "$id": "199", "kind": "array", "name": "ArrayFloatFixedEnum", "valueType": { @@ -2103,7 +2092,7 @@ } }, { - "$id": "202", + "$id": "200", "kind": "property", "name": "intFixedEnum", "serializedName": "intFixedEnum", @@ -2124,13 +2113,13 @@ } }, { - "$id": "203", + "$id": "201", "kind": "property", "name": "intFixedEnumCollection", "serializedName": "intFixedEnumCollection", "doc": "this is a collection of int based fixed enum", "type": { - "$id": "204", + "$id": "202", "kind": "array", "name": "ArrayIntFixedEnum", "valueType": { @@ -2152,7 +2141,7 @@ } }, { - "$id": "205", + "$id": "203", "kind": "property", "name": "stringFixedEnum", "serializedName": "stringFixedEnum", @@ -2173,13 +2162,13 @@ } }, { - "$id": "206", + "$id": "204", "kind": "property", "name": "requiredUnknown", "serializedName": "requiredUnknown", "doc": "required unknown", "type": { - "$id": "207", + "$id": "205", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2198,13 +2187,13 @@ } }, { - "$id": "208", + "$id": "206", "kind": "property", "name": "optionalUnknown", "serializedName": "optionalUnknown", "doc": "optional unknown", "type": { - "$id": "209", + "$id": "207", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2223,23 +2212,23 @@ } }, { - "$id": "210", + "$id": "208", "kind": "property", "name": "requiredRecordUnknown", "serializedName": "requiredRecordUnknown", "doc": "required record of unknown", "type": { - "$id": "211", + "$id": "209", "kind": "dict", "keyType": { - "$id": "212", + "$id": "210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "213", + "$id": "211", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2260,29 +2249,13 @@ } }, { - "$id": "214", + "$id": "212", "kind": "property", "name": "optionalRecordUnknown", "serializedName": "optionalRecordUnknown", "doc": "optional record of unknown", "type": { - "$id": "215", - "kind": "dict", - "keyType": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "217", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] + "$ref": "209" }, "optional": true, "readOnly": false, @@ -2297,29 +2270,13 @@ } }, { - "$id": "218", + "$id": "213", "kind": "property", "name": "readOnlyRequiredRecordUnknown", "serializedName": "readOnlyRequiredRecordUnknown", "doc": "required readonly record of unknown", "type": { - "$id": "219", - "kind": "dict", - "keyType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "221", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] + "$ref": "209" }, "optional": false, "readOnly": true, @@ -2334,29 +2291,13 @@ } }, { - "$id": "222", + "$id": "214", "kind": "property", "name": "readOnlyOptionalRecordUnknown", "serializedName": "readOnlyOptionalRecordUnknown", "doc": "optional readonly record of unknown", "type": { - "$id": "223", - "kind": "dict", - "keyType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "225", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] + "$ref": "209" }, "optional": true, "readOnly": true, @@ -2371,13 +2312,13 @@ } }, { - "$id": "226", + "$id": "215", "kind": "property", "name": "modelWithRequiredNullable", "serializedName": "modelWithRequiredNullable", "doc": "this is a model with required nullable properties", "type": { - "$id": "227", + "$id": "216", "kind": "model", "name": "ModelWithRequiredNullableProperties", "namespace": "SampleTypeSpec", @@ -2387,16 +2328,16 @@ "decorators": [], "properties": [ { - "$id": "228", + "$id": "217", "kind": "property", "name": "requiredNullablePrimitive", "serializedName": "requiredNullablePrimitive", "doc": "required nullable primitive type", "type": { - "$id": "229", + "$id": "218", "kind": "nullable", "type": { - "$id": "230", + "$id": "219", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2417,13 +2358,13 @@ } }, { - "$id": "231", + "$id": "220", "kind": "property", "name": "requiredExtensibleEnum", "serializedName": "requiredExtensibleEnum", "doc": "required nullable extensible enum type", "type": { - "$id": "232", + "$id": "221", "kind": "nullable", "type": { "$ref": "6" @@ -2443,13 +2384,13 @@ } }, { - "$id": "233", + "$id": "222", "kind": "property", "name": "requiredFixedEnum", "serializedName": "requiredFixedEnum", "doc": "required nullable fixed enum type", "type": { - "$id": "234", + "$id": "223", "kind": "nullable", "type": { "$ref": "1" @@ -2483,13 +2424,13 @@ } }, { - "$id": "235", + "$id": "224", "kind": "property", "name": "requiredBytes", "serializedName": "requiredBytes", "doc": "Required bytes", "type": { - "$id": "236", + "$id": "225", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2511,10 +2452,10 @@ ] }, { - "$ref": "227" + "$ref": "216" }, { - "$id": "237", + "$id": "226", "kind": "model", "name": "Friend", "namespace": "SampleTypeSpec", @@ -2524,13 +2465,13 @@ "decorators": [], "properties": [ { - "$id": "238", + "$id": "227", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "239", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2551,7 +2492,7 @@ ] }, { - "$id": "240", + "$id": "229", "kind": "model", "name": "RenamedModel", "namespace": "SampleTypeSpec", @@ -2561,13 +2502,13 @@ "decorators": [], "properties": [ { - "$id": "241", + "$id": "230", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "242", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2588,7 +2529,7 @@ ] }, { - "$id": "243", + "$id": "232", "kind": "model", "name": "ReturnsAnonymousModelResponse", "namespace": "SampleTypeSpec", @@ -2598,7 +2539,7 @@ "properties": [] }, { - "$id": "244", + "$id": "233", "kind": "model", "name": "ListWithNextLinkResponse", "namespace": "SampleTypeSpec", @@ -2607,12 +2548,12 @@ "decorators": [], "properties": [ { - "$id": "245", + "$id": "234", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "246", + "$id": "235", "kind": "array", "name": "ArrayThing", "valueType": { @@ -2634,12 +2575,12 @@ } }, { - "$id": "247", + "$id": "236", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "248", + "$id": "237", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -2660,7 +2601,7 @@ ] }, { - "$id": "249", + "$id": "238", "kind": "model", "name": "ListWithContinuationTokenResponse", "namespace": "SampleTypeSpec", @@ -2669,19 +2610,12 @@ "decorators": [], "properties": [ { - "$id": "250", + "$id": "239", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "251", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "optional": false, "readOnly": false, @@ -2696,12 +2630,12 @@ } }, { - "$id": "252", + "$id": "240", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "253", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2722,7 +2656,7 @@ ] }, { - "$id": "254", + "$id": "242", "kind": "model", "name": "ListWithContinuationTokenHeaderResponseResponse", "namespace": "", @@ -2731,19 +2665,12 @@ "decorators": [], "properties": [ { - "$id": "255", + "$id": "243", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "256", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "optional": false, "readOnly": false, @@ -2760,7 +2687,7 @@ ] }, { - "$id": "257", + "$id": "244", "kind": "model", "name": "PageThing", "namespace": "SampleTypeSpec", @@ -2769,19 +2696,12 @@ "decorators": [], "properties": [ { - "$id": "258", + "$id": "245", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$id": "259", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "optional": false, "readOnly": false, @@ -2798,7 +2718,7 @@ ] }, { - "$id": "260", + "$id": "246", "kind": "model", "name": "ModelWithEmbeddedNonBodyParameters", "namespace": "SampleTypeSpec", @@ -2807,13 +2727,13 @@ "decorators": [], "properties": [ { - "$id": "261", + "$id": "247", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithEmbeddedNonBodyParameters", "type": { - "$id": "262", + "$id": "248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2832,13 +2752,13 @@ } }, { - "$id": "263", + "$id": "249", "kind": "header", "name": "requiredHeader", "serializedName": "required-header", "doc": "required header parameter", "type": { - "$id": "264", + "$id": "250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2851,13 +2771,13 @@ "correspondingMethodParams": [] }, { - "$id": "265", + "$id": "251", "kind": "header", "name": "optionalHeader", "serializedName": "optional-header", "doc": "optional header parameter", "type": { - "$id": "266", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2870,13 +2790,13 @@ "correspondingMethodParams": [] }, { - "$id": "267", + "$id": "253", "kind": "query", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "268", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2889,13 +2809,13 @@ "correspondingMethodParams": [] }, { - "$id": "269", + "$id": "255", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "270", + "$id": "256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2912,14 +2832,14 @@ ], "clients": [ { - "$id": "271", + "$id": "257", "kind": "client", "name": "SampleTypeSpecClient", "namespace": "SampleTypeSpec", "doc": "This is a sample typespec project.", "methods": [ { - "$id": "272", + "$id": "258", "kind": "basic", "name": "sayHi", "accessibility": "public", @@ -2929,18 +2849,18 @@ ], "doc": "Return hi", "operation": { - "$id": "273", + "$id": "259", "name": "sayHi", "resourceName": "SampleTypeSpec", "doc": "Return hi", "accessibility": "public", "parameters": [ { - "$id": "274", + "$id": "260", "name": "headParameter", "nameInRequest": "head-parameter", "type": { - "$id": "275", + "$id": "261", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2957,11 +2877,11 @@ "skipUrlEncoding": false }, { - "$id": "276", + "$id": "262", "name": "queryParameter", "nameInRequest": "queryParameter", "type": { - "$id": "277", + "$id": "263", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2978,11 +2898,11 @@ "skipUrlEncoding": false }, { - "$id": "278", + "$id": "264", "name": "optionalQuery", "nameInRequest": "optionalQuery", "type": { - "$id": "279", + "$id": "265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2999,7 +2919,7 @@ "skipUrlEncoding": false }, { - "$id": "280", + "$id": "266", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3018,7 +2938,7 @@ ], "responses": [ { - "$id": "281", + "$id": "267", "statusCodes": [ 200 ], @@ -3043,11 +2963,11 @@ }, "parameters": [ { - "$id": "282", + "$id": "268", "name": "headParameter", "nameInRequest": "head-parameter", "type": { - "$id": "283", + "$id": "269", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3064,11 +2984,11 @@ "skipUrlEncoding": false }, { - "$id": "284", + "$id": "270", "name": "queryParameter", "nameInRequest": "queryParameter", "type": { - "$id": "285", + "$id": "271", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3085,11 +3005,11 @@ "skipUrlEncoding": false }, { - "$id": "286", + "$id": "272", "name": "optionalQuery", "nameInRequest": "optionalQuery", "type": { - "$id": "287", + "$id": "273", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3106,7 +3026,7 @@ "skipUrlEncoding": false }, { - "$id": "288", + "$id": "274", "name": "accept", "nameInRequest": "accept", "type": { @@ -3134,7 +3054,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, { - "$id": "289", + "$id": "275", "kind": "basic", "name": "helloAgain", "accessibility": "public", @@ -3144,18 +3064,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "290", + "$id": "276", "name": "helloAgain", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "277", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "292", + "$id": "278", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3172,7 +3092,7 @@ "skipUrlEncoding": false }, { - "$id": "293", + "$id": "279", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -3189,11 +3109,11 @@ "skipUrlEncoding": false }, { - "$id": "294", + "$id": "280", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "295", + "$id": "281", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3210,7 +3130,7 @@ "skipUrlEncoding": false }, { - "$id": "296", + "$id": "282", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3227,11 +3147,11 @@ "skipUrlEncoding": false }, { - "$id": "297", + "$id": "283", "name": "action", "nameInRequest": "action", "type": { - "$ref": "180" + "$ref": "178" }, "location": "Body", "isApiVersion": false, @@ -3246,12 +3166,12 @@ ], "responses": [ { - "$id": "298", + "$id": "284", "statusCodes": [ 200 ], "bodyType": { - "$ref": "180" + "$ref": "178" }, "headers": [], "isErrorResponse": false, @@ -3274,11 +3194,11 @@ }, "parameters": [ { - "$id": "299", + "$id": "285", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "300", + "$id": "286", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3295,11 +3215,11 @@ "skipUrlEncoding": false }, { - "$id": "301", + "$id": "287", "name": "action", "nameInRequest": "action", "type": { - "$ref": "180" + "$ref": "178" }, "location": "Body", "isApiVersion": false, @@ -3312,7 +3232,7 @@ "skipUrlEncoding": false }, { - "$id": "302", + "$id": "288", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -3329,11 +3249,11 @@ "skipUrlEncoding": false }, { - "$id": "303", + "$id": "289", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "304", + "$id": "290", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3350,7 +3270,7 @@ "skipUrlEncoding": false }, { - "$id": "305", + "$id": "291", "name": "accept", "nameInRequest": "accept", "type": { @@ -3369,7 +3289,7 @@ ], "response": { "type": { - "$ref": "180" + "$ref": "178" } }, "isOverride": false, @@ -3378,7 +3298,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, { - "$id": "306", + "$id": "292", "kind": "basic", "name": "noContentType", "accessibility": "public", @@ -3388,18 +3308,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "307", + "$id": "293", "name": "noContentType", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "308", + "$id": "294", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "309", + "$id": "295", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3416,11 +3336,11 @@ "skipUrlEncoding": false }, { - "$id": "310", + "$id": "296", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "311", + "$id": "297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3437,7 +3357,7 @@ "skipUrlEncoding": false }, { - "$id": "312", + "$id": "298", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3455,7 +3375,7 @@ "skipUrlEncoding": false }, { - "$id": "313", + "$id": "299", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3472,11 +3392,11 @@ "skipUrlEncoding": false }, { - "$id": "314", + "$id": "300", "name": "action", "nameInRequest": "action", "type": { - "$ref": "180" + "$ref": "178" }, "location": "Body", "isApiVersion": false, @@ -3491,12 +3411,12 @@ ], "responses": [ { - "$id": "315", + "$id": "301", "statusCodes": [ 200 ], "bodyType": { - "$ref": "180" + "$ref": "178" }, "headers": [], "isErrorResponse": false, @@ -3519,11 +3439,11 @@ }, "parameters": [ { - "$id": "316", + "$id": "302", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "317", + "$id": "303", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3540,11 +3460,11 @@ "skipUrlEncoding": false }, { - "$id": "318", + "$id": "304", "name": "action", "nameInRequest": "action", "type": { - "$ref": "180" + "$ref": "178" }, "location": "Body", "isApiVersion": false, @@ -3557,11 +3477,11 @@ "skipUrlEncoding": false }, { - "$id": "319", + "$id": "305", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "320", + "$id": "306", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3578,7 +3498,7 @@ "skipUrlEncoding": false }, { - "$id": "321", + "$id": "307", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3596,7 +3516,7 @@ "skipUrlEncoding": false }, { - "$id": "322", + "$id": "308", "name": "accept", "nameInRequest": "accept", "type": { @@ -3615,7 +3535,7 @@ ], "response": { "type": { - "$ref": "180" + "$ref": "178" } }, "isOverride": false, @@ -3624,7 +3544,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" }, { - "$id": "323", + "$id": "309", "kind": "basic", "name": "helloDemo2", "accessibility": "public", @@ -3634,14 +3554,14 @@ ], "doc": "Return hi in demo2", "operation": { - "$id": "324", + "$id": "310", "name": "helloDemo2", "resourceName": "SampleTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "325", + "$id": "311", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3660,7 +3580,7 @@ ], "responses": [ { - "$id": "326", + "$id": "312", "statusCodes": [ 200 ], @@ -3685,7 +3605,7 @@ }, "parameters": [ { - "$id": "327", + "$id": "313", "name": "accept", "nameInRequest": "accept", "type": { @@ -3713,7 +3633,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, { - "$id": "328", + "$id": "314", "kind": "basic", "name": "createLiteral", "accessibility": "public", @@ -3723,14 +3643,14 @@ ], "doc": "Create with literal value", "operation": { - "$id": "329", + "$id": "315", "name": "createLiteral", "resourceName": "SampleTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "330", + "$id": "316", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3748,7 +3668,7 @@ "skipUrlEncoding": false }, { - "$id": "331", + "$id": "317", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3765,7 +3685,7 @@ "skipUrlEncoding": false }, { - "$id": "332", + "$id": "318", "name": "body", "nameInRequest": "body", "type": { @@ -3784,7 +3704,7 @@ ], "responses": [ { - "$id": "333", + "$id": "319", "statusCodes": [ 200 ], @@ -3812,7 +3732,7 @@ }, "parameters": [ { - "$id": "334", + "$id": "320", "name": "body", "nameInRequest": "body", "type": { @@ -3829,7 +3749,7 @@ "skipUrlEncoding": false }, { - "$id": "335", + "$id": "321", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3847,7 +3767,7 @@ "skipUrlEncoding": false }, { - "$id": "336", + "$id": "322", "name": "accept", "nameInRequest": "accept", "type": { @@ -3875,7 +3795,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" }, { - "$id": "337", + "$id": "323", "kind": "basic", "name": "helloLiteral", "accessibility": "public", @@ -3885,14 +3805,14 @@ ], "doc": "Send literal parameters", "operation": { - "$id": "338", + "$id": "324", "name": "helloLiteral", "resourceName": "SampleTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "339", + "$id": "325", "name": "p1", "nameInRequest": "p1", "type": { @@ -3909,7 +3829,7 @@ "skipUrlEncoding": false }, { - "$id": "340", + "$id": "326", "name": "p2", "nameInRequest": "p2", "type": { @@ -3926,7 +3846,7 @@ "skipUrlEncoding": false }, { - "$id": "341", + "$id": "327", "name": "p3", "nameInRequest": "p3", "type": { @@ -3943,7 +3863,7 @@ "skipUrlEncoding": false }, { - "$id": "342", + "$id": "328", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3962,7 +3882,7 @@ ], "responses": [ { - "$id": "343", + "$id": "329", "statusCodes": [ 200 ], @@ -3987,7 +3907,7 @@ }, "parameters": [ { - "$id": "344", + "$id": "330", "name": "p1", "nameInRequest": "p1", "type": { @@ -4004,7 +3924,7 @@ "skipUrlEncoding": false }, { - "$id": "345", + "$id": "331", "name": "p2", "nameInRequest": "p2", "type": { @@ -4021,7 +3941,7 @@ "skipUrlEncoding": false }, { - "$id": "346", + "$id": "332", "name": "p3", "nameInRequest": "p3", "type": { @@ -4038,7 +3958,7 @@ "skipUrlEncoding": false }, { - "$id": "347", + "$id": "333", "name": "accept", "nameInRequest": "accept", "type": { @@ -4066,7 +3986,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" }, { - "$id": "348", + "$id": "334", "kind": "basic", "name": "topAction", "accessibility": "public", @@ -4076,23 +3996,23 @@ ], "doc": "top level method", "operation": { - "$id": "349", + "$id": "335", "name": "topAction", "resourceName": "SampleTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "350", + "$id": "336", "name": "action", "nameInRequest": "action", "type": { - "$id": "351", + "$id": "337", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "352", + "$id": "338", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4112,7 +4032,7 @@ "skipUrlEncoding": false }, { - "$id": "353", + "$id": "339", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4131,7 +4051,7 @@ ], "responses": [ { - "$id": "354", + "$id": "340", "statusCodes": [ 200 ], @@ -4156,16 +4076,16 @@ }, "parameters": [ { - "$id": "355", + "$id": "341", "name": "action", "nameInRequest": "action", "type": { - "$id": "356", + "$id": "342", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "357", + "$id": "343", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4185,7 +4105,7 @@ "skipUrlEncoding": false }, { - "$id": "358", + "$id": "344", "name": "accept", "nameInRequest": "accept", "type": { @@ -4213,7 +4133,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction" }, { - "$id": "359", + "$id": "345", "kind": "basic", "name": "topAction2", "accessibility": "public", @@ -4223,14 +4143,14 @@ ], "doc": "top level method2", "operation": { - "$id": "360", + "$id": "346", "name": "topAction2", "resourceName": "SampleTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "361", + "$id": "347", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4249,7 +4169,7 @@ ], "responses": [ { - "$id": "362", + "$id": "348", "statusCodes": [ 200 ], @@ -4274,7 +4194,7 @@ }, "parameters": [ { - "$id": "363", + "$id": "349", "name": "accept", "nameInRequest": "accept", "type": { @@ -4302,7 +4222,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" }, { - "$id": "364", + "$id": "350", "kind": "basic", "name": "patchAction", "accessibility": "public", @@ -4312,14 +4232,14 @@ ], "doc": "top level patch", "operation": { - "$id": "365", + "$id": "351", "name": "patchAction", "resourceName": "SampleTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "366", + "$id": "352", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4337,7 +4257,7 @@ "skipUrlEncoding": false }, { - "$id": "367", + "$id": "353", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4354,7 +4274,7 @@ "skipUrlEncoding": false }, { - "$id": "368", + "$id": "354", "name": "body", "nameInRequest": "body", "type": { @@ -4373,7 +4293,7 @@ ], "responses": [ { - "$id": "369", + "$id": "355", "statusCodes": [ 200 ], @@ -4401,7 +4321,7 @@ }, "parameters": [ { - "$id": "370", + "$id": "356", "name": "body", "nameInRequest": "body", "type": { @@ -4418,7 +4338,7 @@ "skipUrlEncoding": false }, { - "$id": "371", + "$id": "357", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4436,7 +4356,7 @@ "skipUrlEncoding": false }, { - "$id": "372", + "$id": "358", "name": "accept", "nameInRequest": "accept", "type": { @@ -4464,7 +4384,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" }, { - "$id": "373", + "$id": "359", "kind": "basic", "name": "anonymousBody", "accessibility": "public", @@ -4474,14 +4394,14 @@ ], "doc": "body parameter without body decorator", "operation": { - "$id": "374", + "$id": "360", "name": "anonymousBody", "resourceName": "SampleTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "375", + "$id": "361", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4499,7 +4419,7 @@ "skipUrlEncoding": false }, { - "$id": "376", + "$id": "362", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4516,7 +4436,7 @@ "skipUrlEncoding": false }, { - "$id": "377", + "$id": "363", "name": "thing", "nameInRequest": "thing", "type": { @@ -4535,7 +4455,7 @@ ], "responses": [ { - "$id": "378", + "$id": "364", "statusCodes": [ 200 ], @@ -4563,12 +4483,12 @@ }, "parameters": [ { - "$id": "379", + "$id": "365", "name": "name", "nameInRequest": "name", "doc": "name of the Thing", "type": { - "$id": "380", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4585,7 +4505,7 @@ "skipUrlEncoding": false }, { - "$id": "381", + "$id": "367", "name": "requiredUnion", "nameInRequest": "requiredUnion", "doc": "required Union", @@ -4603,7 +4523,7 @@ "skipUrlEncoding": false }, { - "$id": "382", + "$id": "368", "name": "requiredLiteralString", "nameInRequest": "requiredLiteralString", "doc": "required literal string", @@ -4621,7 +4541,7 @@ "skipUrlEncoding": false }, { - "$id": "383", + "$id": "369", "name": "requiredNullableString", "nameInRequest": "requiredNullableString", "doc": "required nullable string", @@ -4639,7 +4559,7 @@ "skipUrlEncoding": false }, { - "$id": "384", + "$id": "370", "name": "optionalNullableString", "nameInRequest": "optionalNullableString", "doc": "required optional string", @@ -4657,7 +4577,7 @@ "skipUrlEncoding": false }, { - "$id": "385", + "$id": "371", "name": "requiredLiteralInt", "nameInRequest": "requiredLiteralInt", "doc": "required literal int", @@ -4675,7 +4595,7 @@ "skipUrlEncoding": false }, { - "$id": "386", + "$id": "372", "name": "requiredLiteralFloat", "nameInRequest": "requiredLiteralFloat", "doc": "required literal float", @@ -4693,7 +4613,7 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "373", "name": "requiredLiteralBool", "nameInRequest": "requiredLiteralBool", "doc": "required literal bool", @@ -4711,7 +4631,7 @@ "skipUrlEncoding": false }, { - "$id": "388", + "$id": "374", "name": "optionalLiteralString", "nameInRequest": "optionalLiteralString", "doc": "optional literal string", @@ -4729,7 +4649,7 @@ "skipUrlEncoding": false }, { - "$id": "389", + "$id": "375", "name": "optionalLiteralInt", "nameInRequest": "optionalLiteralInt", "doc": "optional literal int", @@ -4747,7 +4667,7 @@ "skipUrlEncoding": false }, { - "$id": "390", + "$id": "376", "name": "optionalLiteralFloat", "nameInRequest": "optionalLiteralFloat", "doc": "optional literal float", @@ -4765,7 +4685,7 @@ "skipUrlEncoding": false }, { - "$id": "391", + "$id": "377", "name": "optionalLiteralBool", "nameInRequest": "optionalLiteralBool", "doc": "optional literal bool", @@ -4783,12 +4703,12 @@ "skipUrlEncoding": false }, { - "$id": "392", + "$id": "378", "name": "requiredBadDescription", "nameInRequest": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "393", + "$id": "379", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4805,7 +4725,7 @@ "skipUrlEncoding": false }, { - "$id": "394", + "$id": "380", "name": "optionalNullableList", "nameInRequest": "optionalNullableList", "doc": "optional nullable collection", @@ -4823,7 +4743,7 @@ "skipUrlEncoding": false }, { - "$id": "395", + "$id": "381", "name": "requiredNullableList", "nameInRequest": "requiredNullableList", "doc": "required nullable collection", @@ -4841,7 +4761,7 @@ "skipUrlEncoding": false }, { - "$id": "396", + "$id": "382", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4859,7 +4779,7 @@ "skipUrlEncoding": false }, { - "$id": "397", + "$id": "383", "name": "accept", "nameInRequest": "accept", "type": { @@ -4887,7 +4807,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" }, { - "$id": "398", + "$id": "384", "kind": "basic", "name": "friendlyModel", "accessibility": "public", @@ -4897,14 +4817,14 @@ ], "doc": "Model can have its friendly name", "operation": { - "$id": "399", + "$id": "385", "name": "friendlyModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "400", + "$id": "386", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4922,7 +4842,7 @@ "skipUrlEncoding": false }, { - "$id": "401", + "$id": "387", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4939,11 +4859,11 @@ "skipUrlEncoding": false }, { - "$id": "402", + "$id": "388", "name": "friend", "nameInRequest": "friend", "type": { - "$ref": "237" + "$ref": "226" }, "location": "Body", "isApiVersion": false, @@ -4958,12 +4878,12 @@ ], "responses": [ { - "$id": "403", + "$id": "389", "statusCodes": [ 200 ], "bodyType": { - "$ref": "237" + "$ref": "226" }, "headers": [], "isErrorResponse": false, @@ -4986,12 +4906,12 @@ }, "parameters": [ { - "$id": "404", + "$id": "390", "name": "name", "nameInRequest": "name", "doc": "name of the NotFriend", "type": { - "$id": "405", + "$id": "391", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5008,7 +4928,7 @@ "skipUrlEncoding": false }, { - "$id": "406", + "$id": "392", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5026,7 +4946,7 @@ "skipUrlEncoding": false }, { - "$id": "407", + "$id": "393", "name": "accept", "nameInRequest": "accept", "type": { @@ -5045,7 +4965,7 @@ ], "response": { "type": { - "$ref": "237" + "$ref": "226" } }, "isOverride": false, @@ -5054,7 +4974,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" }, { - "$id": "408", + "$id": "394", "kind": "basic", "name": "addTimeHeader", "accessibility": "public", @@ -5063,22 +4983,22 @@ "2024-08-16-preview" ], "operation": { - "$id": "409", + "$id": "395", "name": "addTimeHeader", "resourceName": "SampleTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "410", + "$id": "396", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "411", + "$id": "397", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "412", + "$id": "398", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5100,7 +5020,7 @@ ], "responses": [ { - "$id": "413", + "$id": "399", "statusCodes": [ 204 ], @@ -5119,16 +5039,16 @@ }, "parameters": [ { - "$id": "414", + "$id": "400", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "415", + "$id": "401", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "416", + "$id": "402", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5155,7 +5075,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" }, { - "$id": "417", + "$id": "403", "kind": "basic", "name": "projectedNameModel", "accessibility": "public", @@ -5165,14 +5085,14 @@ ], "doc": "Model can have its projected name", "operation": { - "$id": "418", + "$id": "404", "name": "projectedNameModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "419", + "$id": "405", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5190,7 +5110,7 @@ "skipUrlEncoding": false }, { - "$id": "420", + "$id": "406", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5207,11 +5127,11 @@ "skipUrlEncoding": false }, { - "$id": "421", + "$id": "407", "name": "renamedModel", "nameInRequest": "renamedModel", "type": { - "$ref": "240" + "$ref": "229" }, "location": "Body", "isApiVersion": false, @@ -5226,12 +5146,12 @@ ], "responses": [ { - "$id": "422", + "$id": "408", "statusCodes": [ 200 ], "bodyType": { - "$ref": "240" + "$ref": "229" }, "headers": [], "isErrorResponse": false, @@ -5254,12 +5174,12 @@ }, "parameters": [ { - "$id": "423", + "$id": "409", "name": "name", "nameInRequest": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "424", + "$id": "410", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5276,7 +5196,7 @@ "skipUrlEncoding": false }, { - "$id": "425", + "$id": "411", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5294,7 +5214,7 @@ "skipUrlEncoding": false }, { - "$id": "426", + "$id": "412", "name": "accept", "nameInRequest": "accept", "type": { @@ -5313,7 +5233,7 @@ ], "response": { "type": { - "$ref": "240" + "$ref": "229" } }, "isOverride": false, @@ -5322,7 +5242,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" }, { - "$id": "427", + "$id": "413", "kind": "basic", "name": "returnsAnonymousModel", "accessibility": "public", @@ -5332,14 +5252,14 @@ ], "doc": "return anonymous model", "operation": { - "$id": "428", + "$id": "414", "name": "returnsAnonymousModel", "resourceName": "SampleTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "429", + "$id": "415", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5358,12 +5278,12 @@ ], "responses": [ { - "$id": "430", + "$id": "416", "statusCodes": [ 200 ], "bodyType": { - "$ref": "243" + "$ref": "232" }, "headers": [], "isErrorResponse": false, @@ -5383,7 +5303,7 @@ }, "parameters": [ { - "$id": "431", + "$id": "417", "name": "accept", "nameInRequest": "accept", "type": { @@ -5402,7 +5322,7 @@ ], "response": { "type": { - "$ref": "243" + "$ref": "232" } }, "isOverride": false, @@ -5411,7 +5331,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" }, { - "$id": "432", + "$id": "418", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", @@ -5421,18 +5341,18 @@ ], "doc": "get extensible enum", "operation": { - "$id": "433", + "$id": "419", "name": "getUnknownValue", "resourceName": "SampleTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "434", + "$id": "420", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "435", + "$id": "421", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5451,7 +5371,7 @@ ], "responses": [ { - "$id": "436", + "$id": "422", "statusCodes": [ 200 ], @@ -5483,11 +5403,11 @@ }, "parameters": [ { - "$id": "437", + "$id": "423", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "435" + "$ref": "421" }, "location": "Header", "isApiVersion": false, @@ -5511,7 +5431,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" }, { - "$id": "438", + "$id": "424", "kind": "basic", "name": "internalProtocol", "accessibility": "public", @@ -5521,14 +5441,14 @@ ], "doc": "When set protocol false and convenient true, then the protocol method should be internal", "operation": { - "$id": "439", + "$id": "425", "name": "internalProtocol", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "440", + "$id": "426", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5546,7 +5466,7 @@ "skipUrlEncoding": false }, { - "$id": "441", + "$id": "427", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5563,7 +5483,7 @@ "skipUrlEncoding": false }, { - "$id": "442", + "$id": "428", "name": "body", "nameInRequest": "body", "type": { @@ -5582,7 +5502,7 @@ ], "responses": [ { - "$id": "443", + "$id": "429", "statusCodes": [ 200 ], @@ -5610,7 +5530,7 @@ }, "parameters": [ { - "$id": "444", + "$id": "430", "name": "body", "nameInRequest": "body", "type": { @@ -5627,7 +5547,7 @@ "skipUrlEncoding": false }, { - "$id": "445", + "$id": "431", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5645,7 +5565,7 @@ "skipUrlEncoding": false }, { - "$id": "446", + "$id": "432", "name": "accept", "nameInRequest": "accept", "type": { @@ -5673,7 +5593,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" }, { - "$id": "447", + "$id": "433", "kind": "basic", "name": "stillConvenient", "accessibility": "public", @@ -5683,7 +5603,7 @@ ], "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", "operation": { - "$id": "448", + "$id": "434", "name": "stillConvenient", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -5691,7 +5611,7 @@ "parameters": [], "responses": [ { - "$id": "449", + "$id": "435", "statusCodes": [ 204 ], @@ -5716,7 +5636,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" }, { - "$id": "450", + "$id": "436", "kind": "basic", "name": "headAsBoolean", "accessibility": "public", @@ -5726,18 +5646,18 @@ ], "doc": "head as boolean.", "operation": { - "$id": "451", + "$id": "437", "name": "headAsBoolean", "resourceName": "SampleTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "452", + "$id": "438", "name": "id", "nameInRequest": "id", "type": { - "$id": "453", + "$id": "439", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5756,7 +5676,7 @@ ], "responses": [ { - "$id": "454", + "$id": "440", "statusCodes": [ 204 ], @@ -5775,11 +5695,11 @@ }, "parameters": [ { - "$id": "455", + "$id": "441", "name": "id", "nameInRequest": "id", "type": { - "$id": "456", + "$id": "442", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5803,7 +5723,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" }, { - "$id": "457", + "$id": "443", "kind": "basic", "name": "WithApiVersion", "accessibility": "public", @@ -5813,18 +5733,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "458", + "$id": "444", "name": "WithApiVersion", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "459", + "$id": "445", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "460", + "$id": "446", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5841,11 +5761,11 @@ "skipUrlEncoding": false }, { - "$id": "461", + "$id": "447", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "462", + "$id": "448", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5872,7 +5792,7 @@ ], "responses": [ { - "$id": "463", + "$id": "449", "statusCodes": [ 204 ], @@ -5891,11 +5811,11 @@ }, "parameters": [ { - "$id": "464", + "$id": "450", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "465", + "$id": "451", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5919,7 +5839,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" }, { - "$id": "466", + "$id": "452", "kind": "paging", "name": "ListWithNextLink", "accessibility": "public", @@ -5929,14 +5849,14 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "467", + "$id": "453", "name": "ListWithNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "468", + "$id": "454", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5955,12 +5875,12 @@ ], "responses": [ { - "$id": "469", + "$id": "455", "statusCodes": [ 200 ], "bodyType": { - "$ref": "244" + "$ref": "233" }, "headers": [], "isErrorResponse": false, @@ -5980,7 +5900,7 @@ }, "parameters": [ { - "$id": "470", + "$id": "456", "name": "accept", "nameInRequest": "accept", "type": { @@ -5999,14 +5919,7 @@ ], "response": { "type": { - "$id": "471", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "resultSegments": [ "things" @@ -6029,7 +5942,7 @@ } }, { - "$id": "472", + "$id": "457", "kind": "paging", "name": "ListWithContinuationToken", "accessibility": "public", @@ -6039,18 +5952,18 @@ ], "doc": "List things with continuation token", "operation": { - "$id": "473", + "$id": "458", "name": "ListWithContinuationToken", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "474", + "$id": "459", "name": "token", "nameInRequest": "token", "type": { - "$id": "475", + "$id": "460", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6067,7 +5980,7 @@ "skipUrlEncoding": false }, { - "$id": "476", + "$id": "461", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6086,12 +5999,12 @@ ], "responses": [ { - "$id": "477", + "$id": "462", "statusCodes": [ 200 ], "bodyType": { - "$ref": "249" + "$ref": "238" }, "headers": [], "isErrorResponse": false, @@ -6111,11 +6024,11 @@ }, "parameters": [ { - "$id": "478", + "$id": "463", "name": "token", "nameInRequest": "token", "type": { - "$id": "479", + "$id": "464", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6132,7 +6045,7 @@ "skipUrlEncoding": false }, { - "$id": "480", + "$id": "465", "name": "accept", "nameInRequest": "accept", "type": { @@ -6151,14 +6064,7 @@ ], "response": { "type": { - "$id": "481", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "resultSegments": [ "things" @@ -6174,7 +6080,7 @@ ], "continuationToken": { "parameter": { - "$ref": "474" + "$ref": "459" }, "responseSegments": [ "nextToken" @@ -6184,7 +6090,7 @@ } }, { - "$id": "482", + "$id": "466", "kind": "paging", "name": "ListWithContinuationTokenHeaderResponse", "accessibility": "public", @@ -6194,18 +6100,18 @@ ], "doc": "List things with continuation token header response", "operation": { - "$id": "483", + "$id": "467", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "484", + "$id": "468", "name": "token", "nameInRequest": "token", "type": { - "$id": "485", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6222,7 +6128,7 @@ "skipUrlEncoding": false }, { - "$id": "486", + "$id": "470", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6241,19 +6147,19 @@ ], "responses": [ { - "$id": "487", + "$id": "471", "statusCodes": [ 200 ], "bodyType": { - "$ref": "254" + "$ref": "242" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "488", + "$id": "472", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6278,11 +6184,11 @@ }, "parameters": [ { - "$id": "489", + "$id": "473", "name": "token", "nameInRequest": "token", "type": { - "$id": "490", + "$id": "474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6299,7 +6205,7 @@ "skipUrlEncoding": false }, { - "$id": "491", + "$id": "475", "name": "accept", "nameInRequest": "accept", "type": { @@ -6318,14 +6224,7 @@ ], "response": { "type": { - "$id": "492", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "resultSegments": [ "things" @@ -6341,7 +6240,7 @@ ], "continuationToken": { "parameter": { - "$ref": "484" + "$ref": "468" }, "responseSegments": [ "next-token" @@ -6351,7 +6250,7 @@ } }, { - "$id": "493", + "$id": "476", "kind": "paging", "name": "ListWithPaging", "accessibility": "public", @@ -6361,14 +6260,14 @@ ], "doc": "List things with paging", "operation": { - "$id": "494", + "$id": "477", "name": "ListWithPaging", "resourceName": "SampleTypeSpec", "doc": "List things with paging", "accessibility": "public", "parameters": [ { - "$id": "495", + "$id": "478", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6387,12 +6286,12 @@ ], "responses": [ { - "$id": "496", + "$id": "479", "statusCodes": [ 200 ], "bodyType": { - "$ref": "257" + "$ref": "244" }, "headers": [], "isErrorResponse": false, @@ -6412,7 +6311,7 @@ }, "parameters": [ { - "$id": "497", + "$id": "480", "name": "accept", "nameInRequest": "accept", "type": { @@ -6431,14 +6330,7 @@ ], "response": { "type": { - "$id": "498", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "147" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "resultSegments": [ "items" @@ -6455,7 +6347,7 @@ } }, { - "$id": "499", + "$id": "481", "kind": "basic", "name": "EmbeddedParameters", "accessibility": "public", @@ -6465,19 +6357,19 @@ ], "doc": "An operation with embedded parameters within the body", "operation": { - "$id": "500", + "$id": "482", "name": "EmbeddedParameters", "resourceName": "SampleTypeSpec", "doc": "An operation with embedded parameters within the body", "accessibility": "public", "parameters": [ { - "$id": "501", + "$id": "483", "name": "requiredHeader", "nameInRequest": "required-header", "doc": "required header parameter", "type": { - "$id": "502", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6494,12 +6386,12 @@ "skipUrlEncoding": false }, { - "$id": "503", + "$id": "485", "name": "optionalHeader", "nameInRequest": "optional-header", "doc": "optional header parameter", "type": { - "$id": "504", + "$id": "486", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6516,12 +6408,12 @@ "skipUrlEncoding": false }, { - "$id": "505", + "$id": "487", "name": "requiredQuery", "nameInRequest": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "506", + "$id": "488", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6538,12 +6430,12 @@ "skipUrlEncoding": false }, { - "$id": "507", + "$id": "489", "name": "optionalQuery", "nameInRequest": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "508", + "$id": "490", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6560,7 +6452,7 @@ "skipUrlEncoding": false }, { - "$id": "509", + "$id": "491", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6578,11 +6470,11 @@ "skipUrlEncoding": false }, { - "$id": "510", + "$id": "492", "name": "body", "nameInRequest": "body", "type": { - "$ref": "260" + "$ref": "246" }, "location": "Body", "isApiVersion": false, @@ -6597,7 +6489,7 @@ ], "responses": [ { - "$id": "511", + "$id": "493", "statusCodes": [ 204 ], @@ -6619,11 +6511,11 @@ }, "parameters": [ { - "$id": "512", + "$id": "494", "name": "body", "nameInRequest": "body", "type": { - "$ref": "260" + "$ref": "246" }, "location": "Body", "isApiVersion": false, @@ -6636,7 +6528,7 @@ "skipUrlEncoding": false }, { - "$id": "513", + "$id": "495", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", 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 348d06198a9..6893cfe1157 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 @@ -896,27 +896,7 @@ "name": "value", "nameInRequest": "value", "type": { - "$id": "93", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "94", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "95", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "64" }, "location": "Query", "isApiVersion": false, @@ -932,7 +912,7 @@ ], "responses": [ { - "$id": "96", + "$id": "93", "statusCodes": [ 204 ], @@ -951,31 +931,11 @@ }, "parameters": [ { - "$id": "97", + "$id": "94", "name": "value", "nameInRequest": "value", "type": { - "$id": "98", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "99", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "100", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "64" }, "location": "Query", "isApiVersion": false, @@ -1031,25 +991,25 @@ } }, { - "$id": "101", + "$id": "95", "kind": "client", "name": "Property", "namespace": "Encode.Bytes.Property", "methods": [ { - "$id": "102", + "$id": "96", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "103", + "$id": "97", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "104", + "$id": "98", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1067,7 +1027,7 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "99", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1084,7 +1044,7 @@ "skipUrlEncoding": false }, { - "$id": "106", + "$id": "100", "name": "body", "nameInRequest": "body", "type": { @@ -1103,7 +1063,7 @@ ], "responses": [ { - "$id": "107", + "$id": "101", "statusCodes": [ 200 ], @@ -1131,7 +1091,7 @@ }, "parameters": [ { - "$id": "108", + "$id": "102", "name": "body", "nameInRequest": "body", "type": { @@ -1148,7 +1108,7 @@ "skipUrlEncoding": false }, { - "$id": "109", + "$id": "103", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1166,7 +1126,7 @@ "skipUrlEncoding": false }, { - "$id": "110", + "$id": "104", "name": "accept", "nameInRequest": "accept", "type": { @@ -1194,19 +1154,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.Property.default" }, { - "$id": "111", + "$id": "105", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "112", + "$id": "106", "name": "base64", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "113", + "$id": "107", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1224,7 +1184,7 @@ "skipUrlEncoding": false }, { - "$id": "114", + "$id": "108", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1241,7 +1201,7 @@ "skipUrlEncoding": false }, { - "$id": "115", + "$id": "109", "name": "body", "nameInRequest": "body", "type": { @@ -1260,7 +1220,7 @@ ], "responses": [ { - "$id": "116", + "$id": "110", "statusCodes": [ 200 ], @@ -1288,7 +1248,7 @@ }, "parameters": [ { - "$id": "117", + "$id": "111", "name": "body", "nameInRequest": "body", "type": { @@ -1305,7 +1265,7 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "112", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1323,7 +1283,7 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "113", "name": "accept", "nameInRequest": "accept", "type": { @@ -1351,19 +1311,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.Property.base64" }, { - "$id": "120", + "$id": "114", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "121", + "$id": "115", "name": "base64url", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "122", + "$id": "116", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1381,7 +1341,7 @@ "skipUrlEncoding": false }, { - "$id": "123", + "$id": "117", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1398,7 +1358,7 @@ "skipUrlEncoding": false }, { - "$id": "124", + "$id": "118", "name": "body", "nameInRequest": "body", "type": { @@ -1417,7 +1377,7 @@ ], "responses": [ { - "$id": "125", + "$id": "119", "statusCodes": [ 200 ], @@ -1445,7 +1405,7 @@ }, "parameters": [ { - "$id": "126", + "$id": "120", "name": "body", "nameInRequest": "body", "type": { @@ -1462,7 +1422,7 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "121", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1480,7 +1440,7 @@ "skipUrlEncoding": false }, { - "$id": "128", + "$id": "122", "name": "accept", "nameInRequest": "accept", "type": { @@ -1508,19 +1468,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url" }, { - "$id": "129", + "$id": "123", "kind": "basic", "name": "base64urlArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "130", + "$id": "124", "name": "base64urlArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "131", + "$id": "125", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1538,7 +1498,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "126", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1555,7 +1515,7 @@ "skipUrlEncoding": false }, { - "$id": "133", + "$id": "127", "name": "body", "nameInRequest": "body", "type": { @@ -1574,7 +1534,7 @@ ], "responses": [ { - "$id": "134", + "$id": "128", "statusCodes": [ 200 ], @@ -1602,7 +1562,7 @@ }, "parameters": [ { - "$id": "135", + "$id": "129", "name": "body", "nameInRequest": "body", "type": { @@ -1619,7 +1579,7 @@ "skipUrlEncoding": false }, { - "$id": "136", + "$id": "130", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1637,7 +1597,7 @@ "skipUrlEncoding": false }, { - "$id": "137", + "$id": "131", "name": "accept", "nameInRequest": "accept", "type": { @@ -1701,29 +1661,29 @@ } }, { - "$id": "138", + "$id": "132", "kind": "client", "name": "Header", "namespace": "Encode.Bytes.Header", "methods": [ { - "$id": "139", + "$id": "133", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "140", + "$id": "134", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "141", + "$id": "135", "name": "value", "nameInRequest": "value", "type": { - "$id": "142", + "$id": "136", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1743,7 +1703,7 @@ ], "responses": [ { - "$id": "143", + "$id": "137", "statusCodes": [ 204 ], @@ -1762,11 +1722,11 @@ }, "parameters": [ { - "$id": "144", + "$id": "138", "name": "value", "nameInRequest": "value", "type": { - "$id": "145", + "$id": "139", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1791,23 +1751,23 @@ "crossLanguageDefinitionId": "Encode.Bytes.Header.default" }, { - "$id": "146", + "$id": "140", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "147", + "$id": "141", "name": "base64", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "148", + "$id": "142", "name": "value", "nameInRequest": "value", "type": { - "$id": "149", + "$id": "143", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1827,7 +1787,7 @@ ], "responses": [ { - "$id": "150", + "$id": "144", "statusCodes": [ 204 ], @@ -1846,11 +1806,11 @@ }, "parameters": [ { - "$id": "151", + "$id": "145", "name": "value", "nameInRequest": "value", "type": { - "$id": "152", + "$id": "146", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1875,23 +1835,23 @@ "crossLanguageDefinitionId": "Encode.Bytes.Header.base64" }, { - "$id": "153", + "$id": "147", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "154", + "$id": "148", "name": "base64url", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "155", + "$id": "149", "name": "value", "nameInRequest": "value", "type": { - "$id": "156", + "$id": "150", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -1911,7 +1871,7 @@ ], "responses": [ { - "$id": "157", + "$id": "151", "statusCodes": [ 204 ], @@ -1930,11 +1890,11 @@ }, "parameters": [ { - "$id": "158", + "$id": "152", "name": "value", "nameInRequest": "value", "type": { - "$id": "159", + "$id": "153", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -1959,43 +1919,23 @@ "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url" }, { - "$id": "160", + "$id": "154", "kind": "basic", "name": "base64urlArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "161", + "$id": "155", "name": "base64urlArray", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "162", + "$id": "156", "name": "value", "nameInRequest": "value", "type": { - "$id": "163", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "164", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "165", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -2011,7 +1951,7 @@ ], "responses": [ { - "$id": "166", + "$id": "157", "statusCodes": [ 204 ], @@ -2030,31 +1970,11 @@ }, "parameters": [ { - "$id": "167", + "$id": "158", "name": "value", "nameInRequest": "value", "type": { - "$id": "168", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "169", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "170", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -2110,25 +2030,25 @@ } }, { - "$id": "171", + "$id": "159", "kind": "client", "name": "RequestBody", "namespace": "Encode.Bytes.RequestBody", "methods": [ { - "$id": "172", + "$id": "160", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "173", + "$id": "161", "name": "default", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "174", + "$id": "162", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/octet-stream", @@ -2146,11 +2066,11 @@ "skipUrlEncoding": false }, { - "$id": "175", + "$id": "163", "name": "value", "nameInRequest": "value", "type": { - "$id": "176", + "$id": "164", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2169,7 +2089,7 @@ ], "responses": [ { - "$id": "177", + "$id": "165", "statusCodes": [ 204 ], @@ -2191,11 +2111,11 @@ }, "parameters": [ { - "$id": "178", + "$id": "166", "name": "value", "nameInRequest": "value", "type": { - "$id": "179", + "$id": "167", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2212,7 +2132,7 @@ "skipUrlEncoding": false }, { - "$id": "180", + "$id": "168", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/octet-stream", @@ -2237,19 +2157,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default" }, { - "$id": "181", + "$id": "169", "kind": "basic", "name": "octetStream", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "182", + "$id": "170", "name": "octetStream", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "183", + "$id": "171", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2266,11 +2186,11 @@ "skipUrlEncoding": false }, { - "$id": "184", + "$id": "172", "name": "value", "nameInRequest": "value", "type": { - "$id": "185", + "$id": "173", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2289,7 +2209,7 @@ ], "responses": [ { - "$id": "186", + "$id": "174", "statusCodes": [ 204 ], @@ -2311,7 +2231,7 @@ }, "parameters": [ { - "$id": "187", + "$id": "175", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2328,11 +2248,11 @@ "skipUrlEncoding": false }, { - "$id": "188", + "$id": "176", "name": "value", "nameInRequest": "value", "type": { - "$id": "189", + "$id": "177", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2356,19 +2276,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream" }, { - "$id": "190", + "$id": "178", "kind": "basic", "name": "customContentType", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "191", + "$id": "179", "name": "customContentType", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "192", + "$id": "180", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2385,11 +2305,11 @@ "skipUrlEncoding": false }, { - "$id": "193", + "$id": "181", "name": "value", "nameInRequest": "value", "type": { - "$id": "194", + "$id": "182", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2408,7 +2328,7 @@ ], "responses": [ { - "$id": "195", + "$id": "183", "statusCodes": [ 204 ], @@ -2430,7 +2350,7 @@ }, "parameters": [ { - "$id": "196", + "$id": "184", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2447,11 +2367,11 @@ "skipUrlEncoding": false }, { - "$id": "197", + "$id": "185", "name": "value", "nameInRequest": "value", "type": { - "$id": "198", + "$id": "186", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2475,19 +2395,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType" }, { - "$id": "199", + "$id": "187", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "200", + "$id": "188", "name": "base64", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "201", + "$id": "189", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2504,11 +2424,11 @@ "skipUrlEncoding": false }, { - "$id": "202", + "$id": "190", "name": "value", "nameInRequest": "value", "type": { - "$id": "203", + "$id": "191", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2528,7 +2448,7 @@ ], "responses": [ { - "$id": "204", + "$id": "192", "statusCodes": [ 204 ], @@ -2550,7 +2470,7 @@ }, "parameters": [ { - "$id": "205", + "$id": "193", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2567,11 +2487,11 @@ "skipUrlEncoding": false }, { - "$id": "206", + "$id": "194", "name": "value", "nameInRequest": "value", "type": { - "$id": "207", + "$id": "195", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2596,19 +2516,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64" }, { - "$id": "208", + "$id": "196", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "209", + "$id": "197", "name": "base64url", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "210", + "$id": "198", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2625,11 +2545,11 @@ "skipUrlEncoding": false }, { - "$id": "211", + "$id": "199", "name": "value", "nameInRequest": "value", "type": { - "$id": "212", + "$id": "200", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -2649,7 +2569,7 @@ ], "responses": [ { - "$id": "213", + "$id": "201", "statusCodes": [ 204 ], @@ -2671,7 +2591,7 @@ }, "parameters": [ { - "$id": "214", + "$id": "202", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2688,11 +2608,11 @@ "skipUrlEncoding": false }, { - "$id": "215", + "$id": "203", "name": "value", "nameInRequest": "value", "type": { - "$id": "216", + "$id": "204", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -2753,25 +2673,25 @@ } }, { - "$id": "217", + "$id": "205", "kind": "client", "name": "ResponseBody", "namespace": "Encode.Bytes.ResponseBody", "methods": [ { - "$id": "218", + "$id": "206", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "219", + "$id": "207", "name": "default", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "220", + "$id": "208", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2790,12 +2710,12 @@ ], "responses": [ { - "$id": "221", + "$id": "209", "statusCodes": [ 200 ], "bodyType": { - "$id": "222", + "$id": "210", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2819,7 +2739,7 @@ }, "parameters": [ { - "$id": "223", + "$id": "211", "name": "accept", "nameInRequest": "accept", "type": { @@ -2838,7 +2758,7 @@ ], "response": { "type": { - "$ref": "222" + "$ref": "210" } }, "isOverride": false, @@ -2847,19 +2767,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default" }, { - "$id": "224", + "$id": "212", "kind": "basic", "name": "octetStream", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "225", + "$id": "213", "name": "octetStream", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "226", + "$id": "214", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2878,12 +2798,12 @@ ], "responses": [ { - "$id": "227", + "$id": "215", "statusCodes": [ 200 ], "bodyType": { - "$id": "228", + "$id": "216", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2915,7 +2835,7 @@ }, "parameters": [ { - "$id": "229", + "$id": "217", "name": "accept", "nameInRequest": "accept", "type": { @@ -2934,7 +2854,7 @@ ], "response": { "type": { - "$ref": "228" + "$ref": "216" } }, "isOverride": false, @@ -2943,19 +2863,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream" }, { - "$id": "230", + "$id": "218", "kind": "basic", "name": "customContentType", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "231", + "$id": "219", "name": "customContentType", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "232", + "$id": "220", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2974,12 +2894,12 @@ ], "responses": [ { - "$id": "233", + "$id": "221", "statusCodes": [ 200 ], "bodyType": { - "$id": "234", + "$id": "222", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -3011,7 +2931,7 @@ }, "parameters": [ { - "$id": "235", + "$id": "223", "name": "accept", "nameInRequest": "accept", "type": { @@ -3030,7 +2950,7 @@ ], "response": { "type": { - "$ref": "234" + "$ref": "222" } }, "isOverride": false, @@ -3039,19 +2959,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType" }, { - "$id": "236", + "$id": "224", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "237", + "$id": "225", "name": "base64", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "226", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3070,12 +2990,12 @@ ], "responses": [ { - "$id": "239", + "$id": "227", "statusCodes": [ 200 ], "bodyType": { - "$id": "240", + "$id": "228", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3108,7 +3028,7 @@ }, "parameters": [ { - "$id": "241", + "$id": "229", "name": "accept", "nameInRequest": "accept", "type": { @@ -3127,7 +3047,7 @@ ], "response": { "type": { - "$ref": "240" + "$ref": "228" } }, "isOverride": false, @@ -3136,19 +3056,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64" }, { - "$id": "242", + "$id": "230", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "243", + "$id": "231", "name": "base64url", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "244", + "$id": "232", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3167,18 +3087,18 @@ ], "responses": [ { - "$id": "245", + "$id": "233", "statusCodes": [ 200 ], "bodyType": { - "$id": "246", + "$id": "234", "kind": "bytes", "name": "base64urlBytes", "encode": "base64url", "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", "baseType": { - "$id": "247", + "$id": "235", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3213,7 +3133,7 @@ }, "parameters": [ { - "$id": "248", + "$id": "236", "name": "accept", "nameInRequest": "accept", "type": { @@ -3232,7 +3152,7 @@ ], "response": { "type": { - "$ref": "246" + "$ref": "234" } }, "isOverride": false, 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 c151f5c83a8..5461d57d004 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 @@ -858,41 +858,7 @@ "name": "value", "nameInRequest": "value", "type": { - "$id": "85", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "86", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "87", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "88", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "39" }, "location": "Query", "isApiVersion": false, @@ -908,7 +874,7 @@ ], "responses": [ { - "$id": "90", + "$id": "85", "statusCodes": [ 204 ], @@ -927,45 +893,11 @@ }, "parameters": [ { - "$id": "91", + "$id": "86", "name": "value", "nameInRequest": "value", "type": { - "$id": "92", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "93", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "94", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "95", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "39" }, "location": "Query", "isApiVersion": false, @@ -1021,25 +953,25 @@ } }, { - "$id": "97", + "$id": "87", "kind": "client", "name": "Property", "namespace": "Encode.Datetime.Property", "methods": [ { - "$id": "98", + "$id": "88", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "99", + "$id": "89", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "100", + "$id": "90", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1057,7 +989,7 @@ "skipUrlEncoding": false }, { - "$id": "101", + "$id": "91", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1074,7 +1006,7 @@ "skipUrlEncoding": false }, { - "$id": "102", + "$id": "92", "name": "body", "nameInRequest": "body", "type": { @@ -1093,7 +1025,7 @@ ], "responses": [ { - "$id": "103", + "$id": "93", "statusCodes": [ 200 ], @@ -1121,7 +1053,7 @@ }, "parameters": [ { - "$id": "104", + "$id": "94", "name": "body", "nameInRequest": "body", "type": { @@ -1138,7 +1070,7 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "95", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1156,7 +1088,7 @@ "skipUrlEncoding": false }, { - "$id": "106", + "$id": "96", "name": "accept", "nameInRequest": "accept", "type": { @@ -1184,19 +1116,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.default" }, { - "$id": "107", + "$id": "97", "kind": "basic", "name": "rfc3339", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "108", + "$id": "98", "name": "rfc3339", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "109", + "$id": "99", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1214,7 +1146,7 @@ "skipUrlEncoding": false }, { - "$id": "110", + "$id": "100", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1231,7 +1163,7 @@ "skipUrlEncoding": false }, { - "$id": "111", + "$id": "101", "name": "body", "nameInRequest": "body", "type": { @@ -1250,7 +1182,7 @@ ], "responses": [ { - "$id": "112", + "$id": "102", "statusCodes": [ 200 ], @@ -1278,7 +1210,7 @@ }, "parameters": [ { - "$id": "113", + "$id": "103", "name": "body", "nameInRequest": "body", "type": { @@ -1295,7 +1227,7 @@ "skipUrlEncoding": false }, { - "$id": "114", + "$id": "104", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1313,7 +1245,7 @@ "skipUrlEncoding": false }, { - "$id": "115", + "$id": "105", "name": "accept", "nameInRequest": "accept", "type": { @@ -1341,19 +1273,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339" }, { - "$id": "116", + "$id": "106", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "117", + "$id": "107", "name": "rfc7231", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "118", + "$id": "108", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1371,7 +1303,7 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "109", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1388,7 +1320,7 @@ "skipUrlEncoding": false }, { - "$id": "120", + "$id": "110", "name": "body", "nameInRequest": "body", "type": { @@ -1407,7 +1339,7 @@ ], "responses": [ { - "$id": "121", + "$id": "111", "statusCodes": [ 200 ], @@ -1435,7 +1367,7 @@ }, "parameters": [ { - "$id": "122", + "$id": "112", "name": "body", "nameInRequest": "body", "type": { @@ -1452,7 +1384,7 @@ "skipUrlEncoding": false }, { - "$id": "123", + "$id": "113", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1470,7 +1402,7 @@ "skipUrlEncoding": false }, { - "$id": "124", + "$id": "114", "name": "accept", "nameInRequest": "accept", "type": { @@ -1498,19 +1430,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231" }, { - "$id": "125", + "$id": "115", "kind": "basic", "name": "unixTimestamp", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "126", + "$id": "116", "name": "unixTimestamp", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "127", + "$id": "117", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1528,7 +1460,7 @@ "skipUrlEncoding": false }, { - "$id": "128", + "$id": "118", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1545,7 +1477,7 @@ "skipUrlEncoding": false }, { - "$id": "129", + "$id": "119", "name": "body", "nameInRequest": "body", "type": { @@ -1564,7 +1496,7 @@ ], "responses": [ { - "$id": "130", + "$id": "120", "statusCodes": [ 200 ], @@ -1592,7 +1524,7 @@ }, "parameters": [ { - "$id": "131", + "$id": "121", "name": "body", "nameInRequest": "body", "type": { @@ -1609,7 +1541,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "122", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1627,7 +1559,7 @@ "skipUrlEncoding": false }, { - "$id": "133", + "$id": "123", "name": "accept", "nameInRequest": "accept", "type": { @@ -1655,19 +1587,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp" }, { - "$id": "134", + "$id": "124", "kind": "basic", "name": "unixTimestampArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "135", + "$id": "125", "name": "unixTimestampArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "136", + "$id": "126", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1685,7 +1617,7 @@ "skipUrlEncoding": false }, { - "$id": "137", + "$id": "127", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1702,7 +1634,7 @@ "skipUrlEncoding": false }, { - "$id": "138", + "$id": "128", "name": "body", "nameInRequest": "body", "type": { @@ -1721,7 +1653,7 @@ ], "responses": [ { - "$id": "139", + "$id": "129", "statusCodes": [ 200 ], @@ -1749,7 +1681,7 @@ }, "parameters": [ { - "$id": "140", + "$id": "130", "name": "body", "nameInRequest": "body", "type": { @@ -1766,7 +1698,7 @@ "skipUrlEncoding": false }, { - "$id": "141", + "$id": "131", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1784,7 +1716,7 @@ "skipUrlEncoding": false }, { - "$id": "142", + "$id": "132", "name": "accept", "nameInRequest": "accept", "type": { @@ -1848,34 +1780,34 @@ } }, { - "$id": "143", + "$id": "133", "kind": "client", "name": "Header", "namespace": "Encode.Datetime.Header", "methods": [ { - "$id": "144", + "$id": "134", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "145", + "$id": "135", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "146", + "$id": "136", "name": "value", "nameInRequest": "value", "type": { - "$id": "147", + "$id": "137", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "148", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1897,7 +1829,7 @@ ], "responses": [ { - "$id": "149", + "$id": "139", "statusCodes": [ 204 ], @@ -1916,16 +1848,16 @@ }, "parameters": [ { - "$id": "150", + "$id": "140", "name": "value", "nameInRequest": "value", "type": { - "$id": "151", + "$id": "141", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "152", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1952,28 +1884,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.default" }, { - "$id": "153", + "$id": "143", "kind": "basic", "name": "rfc3339", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "154", + "$id": "144", "name": "rfc3339", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "155", + "$id": "145", "name": "value", "nameInRequest": "value", "type": { - "$id": "156", + "$id": "146", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "157", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1995,7 +1927,7 @@ ], "responses": [ { - "$id": "158", + "$id": "148", "statusCodes": [ 204 ], @@ -2014,16 +1946,16 @@ }, "parameters": [ { - "$id": "159", + "$id": "149", "name": "value", "nameInRequest": "value", "type": { - "$id": "160", + "$id": "150", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "161", + "$id": "151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2050,28 +1982,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339" }, { - "$id": "162", + "$id": "152", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "163", + "$id": "153", "name": "rfc7231", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "164", + "$id": "154", "name": "value", "nameInRequest": "value", "type": { - "$id": "165", + "$id": "155", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "166", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2093,7 +2025,7 @@ ], "responses": [ { - "$id": "167", + "$id": "157", "statusCodes": [ 204 ], @@ -2112,16 +2044,16 @@ }, "parameters": [ { - "$id": "168", + "$id": "158", "name": "value", "nameInRequest": "value", "type": { - "$id": "169", + "$id": "159", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "170", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2148,28 +2080,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231" }, { - "$id": "171", + "$id": "161", "kind": "basic", "name": "unixTimestamp", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "172", + "$id": "162", "name": "unixTimestamp", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "173", + "$id": "163", "name": "value", "nameInRequest": "value", "type": { - "$id": "174", + "$id": "164", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "175", + "$id": "165", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -2191,7 +2123,7 @@ ], "responses": [ { - "$id": "176", + "$id": "166", "statusCodes": [ 204 ], @@ -2210,16 +2142,16 @@ }, "parameters": [ { - "$id": "177", + "$id": "167", "name": "value", "nameInRequest": "value", "type": { - "$id": "178", + "$id": "168", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "179", + "$id": "169", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -2246,57 +2178,23 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp" }, { - "$id": "180", + "$id": "170", "kind": "basic", "name": "unixTimestampArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "181", + "$id": "171", "name": "unixTimestampArray", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "182", + "$id": "172", "name": "value", "nameInRequest": "value", "type": { - "$id": "183", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "184", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "185", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "186", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -2312,7 +2210,7 @@ ], "responses": [ { - "$id": "188", + "$id": "173", "statusCodes": [ 204 ], @@ -2331,45 +2229,11 @@ }, "parameters": [ { - "$id": "189", + "$id": "174", "name": "value", "nameInRequest": "value", "type": { - "$id": "190", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "191", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "192", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "193", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -2425,26 +2289,26 @@ } }, { - "$id": "195", + "$id": "175", "kind": "client", "name": "ResponseHeader", "namespace": "Encode.Datetime.ResponseHeader", "methods": [ { - "$id": "196", + "$id": "176", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "197", + "$id": "177", "name": "default", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "198", + "$id": "178", "statusCodes": [ 204 ], @@ -2453,12 +2317,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "199", + "$id": "179", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "200", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2489,20 +2353,20 @@ "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default" }, { - "$id": "201", + "$id": "181", "kind": "basic", "name": "rfc3339", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "202", + "$id": "182", "name": "rfc3339", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "203", + "$id": "183", "statusCodes": [ 204 ], @@ -2511,12 +2375,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "204", + "$id": "184", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "205", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2547,20 +2411,20 @@ "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339" }, { - "$id": "206", + "$id": "186", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "207", + "$id": "187", "name": "rfc7231", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "208", + "$id": "188", "statusCodes": [ 204 ], @@ -2569,12 +2433,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "209", + "$id": "189", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "210", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2605,20 +2469,20 @@ "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231" }, { - "$id": "211", + "$id": "191", "kind": "basic", "name": "unixTimestamp", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "212", + "$id": "192", "name": "unixTimestamp", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "213", + "$id": "193", "statusCodes": [ 204 ], @@ -2627,12 +2491,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "214", + "$id": "194", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "215", + "$id": "195", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", 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 25ffb3c84b0..54b544e7ff0 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 @@ -1104,41 +1104,7 @@ "name": "input", "nameInRequest": "input", "type": { - "$id": "109", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "110", - "kind": "duration", - "name": "Int32Duration", - "encode": "seconds", - "wireType": { - "$id": "111", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", - "baseType": { - "$id": "112", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "102" }, "location": "Query", "isApiVersion": false, @@ -1194,25 +1160,25 @@ } }, { - "$id": "114", + "$id": "109", "kind": "client", "name": "Property", "namespace": "Encode.Duration.Property", "methods": [ { - "$id": "115", + "$id": "110", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "116", + "$id": "111", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "117", + "$id": "112", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1230,7 +1196,7 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "113", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1247,7 +1213,7 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "114", "name": "body", "nameInRequest": "body", "type": { @@ -1266,7 +1232,7 @@ ], "responses": [ { - "$id": "120", + "$id": "115", "statusCodes": [ 200 ], @@ -1294,7 +1260,7 @@ }, "parameters": [ { - "$id": "121", + "$id": "116", "name": "body", "nameInRequest": "body", "type": { @@ -1311,7 +1277,7 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "117", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1329,7 +1295,7 @@ "skipUrlEncoding": false }, { - "$id": "123", + "$id": "118", "name": "accept", "nameInRequest": "accept", "type": { @@ -1357,19 +1323,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.default" }, { - "$id": "124", + "$id": "119", "kind": "basic", "name": "iso8601", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "125", + "$id": "120", "name": "iso8601", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "126", + "$id": "121", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1387,7 +1353,7 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "122", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1404,7 +1370,7 @@ "skipUrlEncoding": false }, { - "$id": "128", + "$id": "123", "name": "body", "nameInRequest": "body", "type": { @@ -1423,7 +1389,7 @@ ], "responses": [ { - "$id": "129", + "$id": "124", "statusCodes": [ 200 ], @@ -1451,7 +1417,7 @@ }, "parameters": [ { - "$id": "130", + "$id": "125", "name": "body", "nameInRequest": "body", "type": { @@ -1468,7 +1434,7 @@ "skipUrlEncoding": false }, { - "$id": "131", + "$id": "126", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1486,7 +1452,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "127", "name": "accept", "nameInRequest": "accept", "type": { @@ -1514,19 +1480,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601" }, { - "$id": "133", + "$id": "128", "kind": "basic", "name": "int32Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "134", + "$id": "129", "name": "int32Seconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "130", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1544,7 +1510,7 @@ "skipUrlEncoding": false }, { - "$id": "136", + "$id": "131", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1561,7 +1527,7 @@ "skipUrlEncoding": false }, { - "$id": "137", + "$id": "132", "name": "body", "nameInRequest": "body", "type": { @@ -1580,7 +1546,7 @@ ], "responses": [ { - "$id": "138", + "$id": "133", "statusCodes": [ 200 ], @@ -1608,7 +1574,7 @@ }, "parameters": [ { - "$id": "139", + "$id": "134", "name": "body", "nameInRequest": "body", "type": { @@ -1625,7 +1591,7 @@ "skipUrlEncoding": false }, { - "$id": "140", + "$id": "135", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1643,7 +1609,7 @@ "skipUrlEncoding": false }, { - "$id": "141", + "$id": "136", "name": "accept", "nameInRequest": "accept", "type": { @@ -1671,19 +1637,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds" }, { - "$id": "142", + "$id": "137", "kind": "basic", "name": "floatSeconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "143", + "$id": "138", "name": "floatSeconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "144", + "$id": "139", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1701,7 +1667,7 @@ "skipUrlEncoding": false }, { - "$id": "145", + "$id": "140", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1718,7 +1684,7 @@ "skipUrlEncoding": false }, { - "$id": "146", + "$id": "141", "name": "body", "nameInRequest": "body", "type": { @@ -1737,7 +1703,7 @@ ], "responses": [ { - "$id": "147", + "$id": "142", "statusCodes": [ 200 ], @@ -1765,7 +1731,7 @@ }, "parameters": [ { - "$id": "148", + "$id": "143", "name": "body", "nameInRequest": "body", "type": { @@ -1782,7 +1748,7 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "144", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1800,7 +1766,7 @@ "skipUrlEncoding": false }, { - "$id": "150", + "$id": "145", "name": "accept", "nameInRequest": "accept", "type": { @@ -1828,19 +1794,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds" }, { - "$id": "151", + "$id": "146", "kind": "basic", "name": "float64Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "152", + "$id": "147", "name": "float64Seconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "153", + "$id": "148", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1858,7 +1824,7 @@ "skipUrlEncoding": false }, { - "$id": "154", + "$id": "149", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1875,7 +1841,7 @@ "skipUrlEncoding": false }, { - "$id": "155", + "$id": "150", "name": "body", "nameInRequest": "body", "type": { @@ -1894,7 +1860,7 @@ ], "responses": [ { - "$id": "156", + "$id": "151", "statusCodes": [ 200 ], @@ -1922,7 +1888,7 @@ }, "parameters": [ { - "$id": "157", + "$id": "152", "name": "body", "nameInRequest": "body", "type": { @@ -1939,7 +1905,7 @@ "skipUrlEncoding": false }, { - "$id": "158", + "$id": "153", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1957,7 +1923,7 @@ "skipUrlEncoding": false }, { - "$id": "159", + "$id": "154", "name": "accept", "nameInRequest": "accept", "type": { @@ -1985,19 +1951,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds" }, { - "$id": "160", + "$id": "155", "kind": "basic", "name": "floatSecondsArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "161", + "$id": "156", "name": "floatSecondsArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "162", + "$id": "157", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2015,7 +1981,7 @@ "skipUrlEncoding": false }, { - "$id": "163", + "$id": "158", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2032,7 +1998,7 @@ "skipUrlEncoding": false }, { - "$id": "164", + "$id": "159", "name": "body", "nameInRequest": "body", "type": { @@ -2051,7 +2017,7 @@ ], "responses": [ { - "$id": "165", + "$id": "160", "statusCodes": [ 200 ], @@ -2079,7 +2045,7 @@ }, "parameters": [ { - "$id": "166", + "$id": "161", "name": "body", "nameInRequest": "body", "type": { @@ -2096,7 +2062,7 @@ "skipUrlEncoding": false }, { - "$id": "167", + "$id": "162", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2114,7 +2080,7 @@ "skipUrlEncoding": false }, { - "$id": "168", + "$id": "163", "name": "accept", "nameInRequest": "accept", "type": { @@ -2178,34 +2144,34 @@ } }, { - "$id": "169", + "$id": "164", "kind": "client", "name": "Header", "namespace": "Encode.Duration.Header", "methods": [ { - "$id": "170", + "$id": "165", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "171", + "$id": "166", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "172", + "$id": "167", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "173", + "$id": "168", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "174", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2227,7 +2193,7 @@ ], "responses": [ { - "$id": "175", + "$id": "170", "statusCodes": [ 204 ], @@ -2246,16 +2212,16 @@ }, "parameters": [ { - "$id": "176", + "$id": "171", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "177", + "$id": "172", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "178", + "$id": "173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2282,28 +2248,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.default" }, { - "$id": "179", + "$id": "174", "kind": "basic", "name": "iso8601", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "180", + "$id": "175", "name": "iso8601", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "181", + "$id": "176", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "182", + "$id": "177", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "183", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2325,7 +2291,7 @@ ], "responses": [ { - "$id": "184", + "$id": "179", "statusCodes": [ 204 ], @@ -2344,16 +2310,16 @@ }, "parameters": [ { - "$id": "185", + "$id": "180", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "186", + "$id": "181", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "187", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2380,32 +2346,32 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601" }, { - "$id": "188", + "$id": "183", "kind": "basic", "name": "iso8601Array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "189", + "$id": "184", "name": "iso8601Array", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "190", + "$id": "185", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "191", + "$id": "186", "kind": "array", "name": "Array2", "valueType": { - "$id": "192", + "$id": "187", "kind": "duration", "name": "Iso8601Duration", "encode": "ISO8601", "wireType": { - "$id": "193", + "$id": "188", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2413,12 +2379,12 @@ }, "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", "baseType": { - "$id": "194", + "$id": "189", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "195", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2446,7 +2412,7 @@ ], "responses": [ { - "$id": "196", + "$id": "191", "statusCodes": [ 204 ], @@ -2465,45 +2431,11 @@ }, "parameters": [ { - "$id": "197", + "$id": "192", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "198", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "199", - "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", - "wireType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "201", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "186" }, "location": "Header", "isApiVersion": false, @@ -2523,28 +2455,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array" }, { - "$id": "203", + "$id": "193", "kind": "basic", "name": "int32Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "204", + "$id": "194", "name": "int32Seconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "205", + "$id": "195", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "206", + "$id": "196", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "207", + "$id": "197", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2566,7 +2498,7 @@ ], "responses": [ { - "$id": "208", + "$id": "198", "statusCodes": [ 204 ], @@ -2585,16 +2517,16 @@ }, "parameters": [ { - "$id": "209", + "$id": "199", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "210", + "$id": "200", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "211", + "$id": "201", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2621,28 +2553,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds" }, { - "$id": "212", + "$id": "202", "kind": "basic", "name": "floatSeconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "213", + "$id": "203", "name": "floatSeconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "214", + "$id": "204", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "215", + "$id": "205", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "216", + "$id": "206", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -2664,7 +2596,7 @@ ], "responses": [ { - "$id": "217", + "$id": "207", "statusCodes": [ 204 ], @@ -2683,16 +2615,16 @@ }, "parameters": [ { - "$id": "218", + "$id": "208", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "219", + "$id": "209", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "220", + "$id": "210", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -2719,28 +2651,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds" }, { - "$id": "221", + "$id": "211", "kind": "basic", "name": "float64Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "222", + "$id": "212", "name": "float64Seconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "223", + "$id": "213", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "224", + "$id": "214", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "225", + "$id": "215", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -2762,7 +2694,7 @@ ], "responses": [ { - "$id": "226", + "$id": "216", "statusCodes": [ 204 ], @@ -2781,16 +2713,16 @@ }, "parameters": [ { - "$id": "227", + "$id": "217", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "228", + "$id": "218", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "229", + "$id": "219", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", 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 0d1081296a1..9ebfdd21168 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 @@ -118,18 +118,7 @@ "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "10", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -149,35 +138,24 @@ "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi" }, { - "$id": "12", + "$id": "10", "kind": "basic", "name": "ssv", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "13", + "$id": "11", "name": "ssv", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "14", + "$id": "12", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "15", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -193,7 +171,7 @@ ], "responses": [ { - "$id": "17", + "$id": "13", "statusCodes": [ 204 ], @@ -212,23 +190,12 @@ }, "parameters": [ { - "$id": "18", + "$id": "14", "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": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -248,35 +215,24 @@ "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv" }, { - "$id": "21", + "$id": "15", "kind": "basic", "name": "pipes", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "22", + "$id": "16", "name": "pipes", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "17", "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": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -292,7 +248,7 @@ ], "responses": [ { - "$id": "26", + "$id": "18", "statusCodes": [ 204 ], @@ -311,23 +267,12 @@ }, "parameters": [ { - "$id": "27", + "$id": "19", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "28", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -347,35 +292,24 @@ "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes" }, { - "$id": "30", + "$id": "20", "kind": "basic", "name": "csv", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "31", + "$id": "21", "name": "csv", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "32", + "$id": "22", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "33", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -391,7 +325,7 @@ ], "responses": [ { - "$id": "35", + "$id": "23", "statusCodes": [ 204 ], @@ -410,23 +344,12 @@ }, "parameters": [ { - "$id": "36", + "$id": "24", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "37", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Query", "isApiVersion": false, @@ -482,41 +405,30 @@ } }, { - "$id": "39", + "$id": "25", "kind": "client", "name": "Header", "namespace": "Parameters.CollectionFormat.Header", "methods": [ { - "$id": "40", + "$id": "26", "kind": "basic", "name": "csv", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "41", + "$id": "27", "name": "csv", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "42", + "$id": "28", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "43", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -532,7 +444,7 @@ ], "responses": [ { - "$id": "45", + "$id": "29", "statusCodes": [ 204 ], @@ -551,23 +463,12 @@ }, "parameters": [ { - "$id": "46", + "$id": "30", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "47", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "6" }, "location": "Header", "isApiVersion": false, 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 4762a252306..9cf28708f98 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 @@ -2072,18 +2072,7 @@ "nameInRequest": "requiredIntList", "doc": "required int", "type": { - "$id": "167", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "168", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "40" }, "location": "Body", "isApiVersion": false, @@ -2096,23 +2085,12 @@ "skipUrlEncoding": false }, { - "$id": "169", + "$id": "167", "name": "optionalStringList", "nameInRequest": "optionalStringList", "doc": "optional string", "type": { - "$id": "170", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "43" }, "location": "Body", "isApiVersion": false, @@ -2125,7 +2103,7 @@ "skipUrlEncoding": false }, { - "$id": "172", + "$id": "168", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2150,25 +2128,25 @@ "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters" }, { - "$id": "173", + "$id": "169", "kind": "basic", "name": "spreadParameterWithInnerAlias", "accessibility": "public", "apiVersions": [], "doc": "spread an alias with contains another alias property as body.", "operation": { - "$id": "174", + "$id": "170", "name": "spreadParameterWithInnerAlias", "resourceName": "Alias", "doc": "spread an alias with contains another alias property as body.", "accessibility": "public", "parameters": [ { - "$id": "175", + "$id": "171", "name": "id", "nameInRequest": "id", "type": { - "$id": "176", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2185,11 +2163,11 @@ "skipUrlEncoding": false }, { - "$id": "177", + "$id": "173", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "178", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2206,7 +2184,7 @@ "skipUrlEncoding": false }, { - "$id": "179", + "$id": "175", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2224,7 +2202,7 @@ "skipUrlEncoding": false }, { - "$id": "180", + "$id": "176", "name": "spreadParameterWithInnerAliasRequest", "nameInRequest": "spreadParameterWithInnerAliasRequest", "type": { @@ -2243,7 +2221,7 @@ ], "responses": [ { - "$id": "181", + "$id": "177", "statusCodes": [ 204 ], @@ -2265,11 +2243,11 @@ }, "parameters": [ { - "$id": "182", + "$id": "178", "name": "id", "nameInRequest": "id", "type": { - "$id": "183", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2286,12 +2264,12 @@ "skipUrlEncoding": false }, { - "$id": "184", + "$id": "180", "name": "name", "nameInRequest": "name", "doc": "name of the Thing", "type": { - "$id": "185", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2308,12 +2286,12 @@ "skipUrlEncoding": false }, { - "$id": "186", + "$id": "182", "name": "age", "nameInRequest": "age", "doc": "age of the Thing", "type": { - "$id": "187", + "$id": "183", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2330,11 +2308,11 @@ "skipUrlEncoding": false }, { - "$id": "188", + "$id": "184", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "189", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2351,7 +2329,7 @@ "skipUrlEncoding": false }, { - "$id": "190", + "$id": "186", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", 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 b89b215367f..076f3e55f3c 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 @@ -451,19 +451,7 @@ "name": "map", "serializedName": "map", "type": { - "$id": "44", - "kind": "dict", - "keyType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "25" - }, - "decorators": [] + "$ref": "23" }, "optional": true, "readOnly": false, @@ -478,19 +466,12 @@ } }, { - "$id": "46", + "$id": "44", "kind": "property", "name": "array", "serializedName": "array", "type": { - "$id": "47", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "25" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "31" }, "optional": true, "readOnly": false, @@ -505,12 +486,12 @@ } }, { - "$id": "48", + "$id": "45", "kind": "property", "name": "intValue", "serializedName": "intValue", "type": { - "$id": "49", + "$id": "46", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -529,12 +510,12 @@ } }, { - "$id": "50", + "$id": "47", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "type": { - "$id": "51", + "$id": "48", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -553,7 +534,7 @@ } }, { - "$id": "52", + "$id": "49", "kind": "property", "name": "innerModel", "serializedName": "innerModel", @@ -573,23 +554,12 @@ } }, { - "$id": "53", + "$id": "50", "kind": "property", "name": "intArray", "serializedName": "intArray", "type": { - "$id": "54", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "55", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "38" }, "optional": true, "readOnly": false, @@ -608,28 +578,28 @@ ], "clients": [ { - "$id": "56", + "$id": "51", "kind": "client", "name": "JsonMergePatchClient", "namespace": "Payload.JsonMergePatch", "doc": "Test for merge-patch+json content-type", "methods": [ { - "$id": "57", + "$id": "52", "kind": "basic", "name": "createResource", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: application/merge-patch+json with required body", "operation": { - "$id": "58", + "$id": "53", "name": "createResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with required body", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "54", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -647,7 +617,7 @@ "skipUrlEncoding": false }, { - "$id": "60", + "$id": "55", "name": "accept", "nameInRequest": "Accept", "type": { @@ -664,7 +634,7 @@ "skipUrlEncoding": false }, { - "$id": "61", + "$id": "56", "name": "body", "nameInRequest": "body", "type": { @@ -683,7 +653,7 @@ ], "responses": [ { - "$id": "62", + "$id": "57", "statusCodes": [ 200 ], @@ -711,7 +681,7 @@ }, "parameters": [ { - "$id": "63", + "$id": "58", "name": "body", "nameInRequest": "body", "type": { @@ -728,7 +698,7 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "59", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -746,7 +716,7 @@ "skipUrlEncoding": false }, { - "$id": "65", + "$id": "60", "name": "accept", "nameInRequest": "accept", "type": { @@ -774,21 +744,21 @@ "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource" }, { - "$id": "66", + "$id": "61", "kind": "basic", "name": "updateResource", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: application/merge-patch+json with required body", "operation": { - "$id": "67", + "$id": "62", "name": "updateResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with required body", "accessibility": "public", "parameters": [ { - "$id": "68", + "$id": "63", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -805,7 +775,7 @@ "skipUrlEncoding": false }, { - "$id": "69", + "$id": "64", "name": "accept", "nameInRequest": "Accept", "type": { @@ -822,7 +792,7 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "65", "name": "body", "nameInRequest": "body", "type": { @@ -841,7 +811,7 @@ ], "responses": [ { - "$id": "71", + "$id": "66", "statusCodes": [ 200 ], @@ -869,7 +839,7 @@ }, "parameters": [ { - "$id": "72", + "$id": "67", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -886,7 +856,7 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "68", "name": "body", "nameInRequest": "body", "type": { @@ -903,7 +873,7 @@ "skipUrlEncoding": false }, { - "$id": "74", + "$id": "69", "name": "accept", "nameInRequest": "accept", "type": { @@ -931,21 +901,21 @@ "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource" }, { - "$id": "75", + "$id": "70", "kind": "basic", "name": "updateOptionalResource", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: application/merge-patch+json with optional body", "operation": { - "$id": "76", + "$id": "71", "name": "updateOptionalResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with optional body", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "72", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -962,7 +932,7 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "73", "name": "accept", "nameInRequest": "Accept", "type": { @@ -979,7 +949,7 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "74", "name": "body", "nameInRequest": "body", "type": { @@ -998,7 +968,7 @@ ], "responses": [ { - "$id": "80", + "$id": "75", "statusCodes": [ 200 ], @@ -1026,7 +996,7 @@ }, "parameters": [ { - "$id": "81", + "$id": "76", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -1043,7 +1013,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "77", "name": "body", "nameInRequest": "body", "type": { @@ -1060,7 +1030,7 @@ "skipUrlEncoding": false }, { - "$id": "83", + "$id": "78", "name": "accept", "nameInRequest": "accept", "type": { 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 a1328b693ff..b16d8a5c5da 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 @@ -221,14 +221,7 @@ "name": "pets", "serializedName": "pets", "type": { - "$id": "23", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "optional": false, "readOnly": false, @@ -243,12 +236,12 @@ } }, { - "$id": "24", + "$id": "23", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "25", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -269,7 +262,7 @@ ] }, { - "$id": "26", + "$id": "25", "kind": "model", "name": "RequestHeaderResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -278,19 +271,12 @@ "decorators": [], "properties": [ { - "$id": "27", + "$id": "26", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$id": "28", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "optional": false, "readOnly": false, @@ -305,12 +291,12 @@ } }, { - "$id": "29", + "$id": "27", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "30", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -331,7 +317,7 @@ ] }, { - "$id": "31", + "$id": "29", "kind": "model", "name": "RequestQueryResponseHeaderResponse", "namespace": "", @@ -340,19 +326,12 @@ "decorators": [], "properties": [ { - "$id": "32", + "$id": "30", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$id": "33", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "optional": false, "readOnly": false, @@ -369,7 +348,7 @@ ] }, { - "$id": "34", + "$id": "31", "kind": "model", "name": "RequestHeaderResponseHeaderResponse", "namespace": "", @@ -378,19 +357,12 @@ "decorators": [], "properties": [ { - "$id": "35", + "$id": "32", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$id": "36", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "optional": false, "readOnly": false, @@ -409,7 +381,7 @@ ], "clients": [ { - "$id": "37", + "$id": "33", "kind": "client", "name": "PageableClient", "namespace": "Payload.Pageable", @@ -448,25 +420,25 @@ "apiVersions": [], "children": [ { - "$id": "38", + "$id": "34", "kind": "client", "name": "ServerDrivenPagination", "namespace": "Payload.Pageable.ServerDrivenPagination", "methods": [ { - "$id": "39", + "$id": "35", "kind": "paging", "name": "link", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "40", + "$id": "36", "name": "link", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "41", + "$id": "37", "name": "accept", "nameInRequest": "Accept", "type": { @@ -485,7 +457,7 @@ ], "responses": [ { - "$id": "42", + "$id": "38", "statusCodes": [ 200 ], @@ -510,7 +482,7 @@ }, "parameters": [ { - "$id": "43", + "$id": "39", "name": "accept", "nameInRequest": "accept", "type": { @@ -529,14 +501,7 @@ ], "response": { "type": { - "$id": "44", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "resultSegments": [ "pets" @@ -591,33 +556,33 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", "apiVersions": [], "parent": { - "$ref": "37" + "$ref": "33" }, "children": [ { - "$id": "45", + "$id": "40", "kind": "client", "name": "ContinuationToken", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "methods": [ { - "$id": "46", + "$id": "41", "kind": "paging", "name": "requestQueryResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "47", + "$id": "42", "name": "requestQueryResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "48", + "$id": "43", "name": "token", "nameInRequest": "token", "type": { - "$id": "49", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -634,11 +599,11 @@ "skipUrlEncoding": false }, { - "$id": "50", + "$id": "45", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "51", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -655,11 +620,11 @@ "skipUrlEncoding": false }, { - "$id": "52", + "$id": "47", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "53", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -676,7 +641,7 @@ "skipUrlEncoding": false }, { - "$id": "54", + "$id": "49", "name": "accept", "nameInRequest": "Accept", "type": { @@ -695,7 +660,7 @@ ], "responses": [ { - "$id": "55", + "$id": "50", "statusCodes": [ 200 ], @@ -720,11 +685,11 @@ }, "parameters": [ { - "$id": "56", + "$id": "51", "name": "token", "nameInRequest": "token", "type": { - "$id": "57", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -741,11 +706,11 @@ "skipUrlEncoding": false }, { - "$id": "58", + "$id": "53", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "59", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -762,11 +727,11 @@ "skipUrlEncoding": false }, { - "$id": "60", + "$id": "55", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "61", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -783,7 +748,7 @@ "skipUrlEncoding": false }, { - "$id": "62", + "$id": "57", "name": "accept", "nameInRequest": "accept", "type": { @@ -802,14 +767,7 @@ ], "response": { "type": { - "$id": "63", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "resultSegments": [ "pets" @@ -825,7 +783,7 @@ ], "continuationToken": { "parameter": { - "$ref": "48" + "$ref": "43" }, "responseSegments": [ "nextToken" @@ -835,23 +793,23 @@ } }, { - "$id": "64", + "$id": "58", "kind": "paging", "name": "requestHeaderResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "65", + "$id": "59", "name": "requestHeaderResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "60", "name": "token", "nameInRequest": "token", "type": { - "$id": "67", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -868,11 +826,11 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "62", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "69", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -889,11 +847,11 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "64", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "71", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -910,7 +868,7 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "66", "name": "accept", "nameInRequest": "Accept", "type": { @@ -929,12 +887,12 @@ ], "responses": [ { - "$id": "73", + "$id": "67", "statusCodes": [ 200 ], "bodyType": { - "$ref": "26" + "$ref": "25" }, "headers": [], "isErrorResponse": false, @@ -954,11 +912,11 @@ }, "parameters": [ { - "$id": "74", + "$id": "68", "name": "token", "nameInRequest": "token", "type": { - "$id": "75", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -975,11 +933,11 @@ "skipUrlEncoding": false }, { - "$id": "76", + "$id": "70", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "77", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -996,11 +954,11 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "72", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "79", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1017,7 +975,7 @@ "skipUrlEncoding": false }, { - "$id": "80", + "$id": "74", "name": "accept", "nameInRequest": "accept", "type": { @@ -1036,14 +994,7 @@ ], "response": { "type": { - "$id": "81", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "resultSegments": [ "pets" @@ -1059,7 +1010,7 @@ ], "continuationToken": { "parameter": { - "$ref": "66" + "$ref": "60" }, "responseSegments": [ "nextToken" @@ -1069,23 +1020,23 @@ } }, { - "$id": "82", + "$id": "75", "kind": "paging", "name": "requestQueryResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "83", + "$id": "76", "name": "requestQueryResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "84", + "$id": "77", "name": "token", "nameInRequest": "token", "type": { - "$id": "85", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1102,11 +1053,11 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "79", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "87", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1123,11 +1074,11 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "81", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "89", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1144,7 +1095,7 @@ "skipUrlEncoding": false }, { - "$id": "90", + "$id": "83", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1163,19 +1114,19 @@ ], "responses": [ { - "$id": "91", + "$id": "84", "statusCodes": [ 200 ], "bodyType": { - "$ref": "31" + "$ref": "29" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "92", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1200,11 +1151,11 @@ }, "parameters": [ { - "$id": "93", + "$id": "86", "name": "token", "nameInRequest": "token", "type": { - "$id": "94", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1221,11 +1172,11 @@ "skipUrlEncoding": false }, { - "$id": "95", + "$id": "88", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "96", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1242,11 +1193,11 @@ "skipUrlEncoding": false }, { - "$id": "97", + "$id": "90", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "98", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1263,7 +1214,7 @@ "skipUrlEncoding": false }, { - "$id": "99", + "$id": "92", "name": "accept", "nameInRequest": "accept", "type": { @@ -1282,14 +1233,7 @@ ], "response": { "type": { - "$id": "100", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "resultSegments": [ "pets" @@ -1305,7 +1249,7 @@ ], "continuationToken": { "parameter": { - "$ref": "84" + "$ref": "77" }, "responseSegments": [ "next-token" @@ -1315,23 +1259,23 @@ } }, { - "$id": "101", + "$id": "93", "kind": "paging", "name": "requestHeaderResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "102", + "$id": "94", "name": "requestHeaderResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "103", + "$id": "95", "name": "token", "nameInRequest": "token", "type": { - "$id": "104", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1348,11 +1292,11 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "97", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "106", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1369,11 +1313,11 @@ "skipUrlEncoding": false }, { - "$id": "107", + "$id": "99", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "108", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1390,7 +1334,7 @@ "skipUrlEncoding": false }, { - "$id": "109", + "$id": "101", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1409,19 +1353,19 @@ ], "responses": [ { - "$id": "110", + "$id": "102", "statusCodes": [ 200 ], "bodyType": { - "$ref": "34" + "$ref": "31" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "111", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1446,11 +1390,11 @@ }, "parameters": [ { - "$id": "112", + "$id": "104", "name": "token", "nameInRequest": "token", "type": { - "$id": "113", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1467,11 +1411,11 @@ "skipUrlEncoding": false }, { - "$id": "114", + "$id": "106", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "115", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1488,11 +1432,11 @@ "skipUrlEncoding": false }, { - "$id": "116", + "$id": "108", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "117", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1509,7 +1453,7 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "110", "name": "accept", "nameInRequest": "accept", "type": { @@ -1528,14 +1472,7 @@ ], "response": { "type": { - "$id": "119", - "kind": "array", - "name": "ArrayPet", - "valueType": { - "$ref": "14" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "13" }, "resultSegments": [ "pets" @@ -1551,7 +1488,7 @@ ], "continuationToken": { "parameter": { - "$ref": "103" + "$ref": "95" }, "responseSegments": [ "next-token" @@ -1593,7 +1530,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "apiVersions": [], "parent": { - "$ref": "38" + "$ref": "34" } } ] 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 b65c36a7498..61a0f51f4d5 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 @@ -772,18 +772,7 @@ "name": "param", "nameInRequest": "param", "type": { - "$id": "58", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -803,33 +792,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array" }, { - "$id": "60", + "$id": "58", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "61", + "$id": "59", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "60", "name": "param", "nameInRequest": "param", "type": { - "$id": "63", + "$id": "61", "kind": "dict", "keyType": { - "$id": "64", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "65", + "$id": "63", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -850,7 +839,7 @@ ], "responses": [ { - "$id": "66", + "$id": "64", "statusCodes": [ 204 ], @@ -869,27 +858,11 @@ }, "parameters": [ { - "$id": "67", + "$id": "65", "name": "param", "nameInRequest": "param", "type": { - "$id": "68", - "kind": "dict", - "keyType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -945,29 +918,29 @@ } }, { - "$id": "71", + "$id": "66", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.SimpleExpansion.Explode", "methods": [ { - "$id": "72", + "$id": "67", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "73", + "$id": "68", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "74", + "$id": "69", "name": "param", "nameInRequest": "param", "type": { - "$id": "75", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -986,7 +959,7 @@ ], "responses": [ { - "$id": "76", + "$id": "71", "statusCodes": [ 204 ], @@ -1005,11 +978,11 @@ }, "parameters": [ { - "$id": "77", + "$id": "72", "name": "param", "nameInRequest": "param", "type": { - "$id": "78", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1033,34 +1006,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive" }, { - "$id": "79", + "$id": "74", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "80", + "$id": "75", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "81", + "$id": "76", "name": "param", "nameInRequest": "param", "type": { - "$id": "82", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -1075,7 +1037,7 @@ ], "responses": [ { - "$id": "84", + "$id": "77", "statusCodes": [ 204 ], @@ -1094,22 +1056,11 @@ }, "parameters": [ { - "$id": "85", + "$id": "78", "name": "param", "nameInRequest": "param", "type": { - "$id": "86", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -1129,39 +1080,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array" }, { - "$id": "88", + "$id": "79", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "89", + "$id": "80", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "90", + "$id": "81", "name": "param", "nameInRequest": "param", "type": { - "$id": "91", - "kind": "dict", - "keyType": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "93", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -1176,7 +1111,7 @@ ], "responses": [ { - "$id": "94", + "$id": "82", "statusCodes": [ 204 ], @@ -1195,27 +1130,11 @@ }, "parameters": [ { - "$id": "95", + "$id": "83", "name": "param", "nameInRequest": "param", "type": { - "$id": "96", - "kind": "dict", - "keyType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "98", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -1273,7 +1192,7 @@ ] }, { - "$id": "99", + "$id": "84", "kind": "client", "name": "PathExpansion", "namespace": "Routes.PathParameters.PathExpansion", @@ -1314,29 +1233,29 @@ }, "children": [ { - "$id": "100", + "$id": "85", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.PathExpansion.Standard", "methods": [ { - "$id": "101", + "$id": "86", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "102", + "$id": "87", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "103", + "$id": "88", "name": "param", "nameInRequest": "param", "type": { - "$id": "104", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1355,7 +1274,7 @@ ], "responses": [ { - "$id": "105", + "$id": "90", "statusCodes": [ 204 ], @@ -1374,11 +1293,11 @@ }, "parameters": [ { - "$id": "106", + "$id": "91", "name": "param", "nameInRequest": "param", "type": { - "$id": "107", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1402,34 +1321,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive" }, { - "$id": "108", + "$id": "93", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "109", + "$id": "94", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "110", + "$id": "95", "name": "param", "nameInRequest": "param", "type": { - "$id": "111", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -1444,7 +1352,7 @@ ], "responses": [ { - "$id": "113", + "$id": "96", "statusCodes": [ 204 ], @@ -1463,22 +1371,11 @@ }, "parameters": [ { - "$id": "114", + "$id": "97", "name": "param", "nameInRequest": "param", "type": { - "$id": "115", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -1498,39 +1395,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array" }, { - "$id": "117", + "$id": "98", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "118", + "$id": "99", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "119", + "$id": "100", "name": "param", "nameInRequest": "param", "type": { - "$id": "120", - "kind": "dict", - "keyType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "122", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -1545,7 +1426,7 @@ ], "responses": [ { - "$id": "123", + "$id": "101", "statusCodes": [ 204 ], @@ -1564,27 +1445,11 @@ }, "parameters": [ { - "$id": "124", + "$id": "102", "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": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -1636,33 +1501,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "99" + "$ref": "84" } }, { - "$id": "128", + "$id": "103", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.PathExpansion.Explode", "methods": [ { - "$id": "129", + "$id": "104", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "130", + "$id": "105", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "131", + "$id": "106", "name": "param", "nameInRequest": "param", "type": { - "$id": "132", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1681,7 +1546,7 @@ ], "responses": [ { - "$id": "133", + "$id": "108", "statusCodes": [ 204 ], @@ -1700,11 +1565,11 @@ }, "parameters": [ { - "$id": "134", + "$id": "109", "name": "param", "nameInRequest": "param", "type": { - "$id": "135", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1728,34 +1593,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive" }, { - "$id": "136", + "$id": "111", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "137", + "$id": "112", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "138", + "$id": "113", "name": "param", "nameInRequest": "param", "type": { - "$id": "139", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -1770,7 +1624,7 @@ ], "responses": [ { - "$id": "141", + "$id": "114", "statusCodes": [ 204 ], @@ -1789,22 +1643,11 @@ }, "parameters": [ { - "$id": "142", + "$id": "115", "name": "param", "nameInRequest": "param", "type": { - "$id": "143", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -1824,39 +1667,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array" }, { - "$id": "145", + "$id": "116", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "146", + "$id": "117", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "147", + "$id": "118", "name": "param", "nameInRequest": "param", "type": { - "$id": "148", - "kind": "dict", - "keyType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "150", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -1871,7 +1698,7 @@ ], "responses": [ { - "$id": "151", + "$id": "119", "statusCodes": [ 204 ], @@ -1890,27 +1717,11 @@ }, "parameters": [ { - "$id": "152", + "$id": "120", "name": "param", "nameInRequest": "param", "type": { - "$id": "153", - "kind": "dict", - "keyType": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "155", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -1962,13 +1773,13 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "99" + "$ref": "84" } } ] }, { - "$id": "156", + "$id": "121", "kind": "client", "name": "LabelExpansion", "namespace": "Routes.PathParameters.LabelExpansion", @@ -2009,29 +1820,29 @@ }, "children": [ { - "$id": "157", + "$id": "122", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.LabelExpansion.Standard", "methods": [ { - "$id": "158", + "$id": "123", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "159", + "$id": "124", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "160", + "$id": "125", "name": "param", "nameInRequest": "param", "type": { - "$id": "161", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2050,7 +1861,7 @@ ], "responses": [ { - "$id": "162", + "$id": "127", "statusCodes": [ 204 ], @@ -2069,11 +1880,11 @@ }, "parameters": [ { - "$id": "163", + "$id": "128", "name": "param", "nameInRequest": "param", "type": { - "$id": "164", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2097,34 +1908,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive" }, { - "$id": "165", + "$id": "130", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "166", + "$id": "131", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "167", + "$id": "132", "name": "param", "nameInRequest": "param", "type": { - "$id": "168", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -2139,7 +1939,7 @@ ], "responses": [ { - "$id": "170", + "$id": "133", "statusCodes": [ 204 ], @@ -2158,22 +1958,11 @@ }, "parameters": [ { - "$id": "171", + "$id": "134", "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": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -2193,39 +1982,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array" }, { - "$id": "174", + "$id": "135", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "175", + "$id": "136", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "176", + "$id": "137", "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": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -2240,7 +2013,7 @@ ], "responses": [ { - "$id": "180", + "$id": "138", "statusCodes": [ 204 ], @@ -2259,27 +2032,11 @@ }, "parameters": [ { - "$id": "181", + "$id": "139", "name": "param", "nameInRequest": "param", "type": { - "$id": "182", - "kind": "dict", - "keyType": { - "$id": "183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "184", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -2331,33 +2088,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "156" + "$ref": "121" } }, { - "$id": "185", + "$id": "140", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.LabelExpansion.Explode", "methods": [ { - "$id": "186", + "$id": "141", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "187", + "$id": "142", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "188", + "$id": "143", "name": "param", "nameInRequest": "param", "type": { - "$id": "189", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2376,7 +2133,7 @@ ], "responses": [ { - "$id": "190", + "$id": "145", "statusCodes": [ 204 ], @@ -2395,11 +2152,11 @@ }, "parameters": [ { - "$id": "191", + "$id": "146", "name": "param", "nameInRequest": "param", "type": { - "$id": "192", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2423,34 +2180,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive" }, { - "$id": "193", + "$id": "148", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "194", + "$id": "149", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "195", + "$id": "150", "name": "param", "nameInRequest": "param", "type": { - "$id": "196", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "197", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -2465,7 +2211,7 @@ ], "responses": [ { - "$id": "198", + "$id": "151", "statusCodes": [ 204 ], @@ -2484,22 +2230,11 @@ }, "parameters": [ { - "$id": "199", + "$id": "152", "name": "param", "nameInRequest": "param", "type": { - "$id": "200", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "201", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -2519,39 +2254,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array" }, { - "$id": "202", + "$id": "153", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "203", + "$id": "154", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "155", "name": "param", "nameInRequest": "param", "type": { - "$id": "205", - "kind": "dict", - "keyType": { - "$id": "206", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "207", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -2566,7 +2285,7 @@ ], "responses": [ { - "$id": "208", + "$id": "156", "statusCodes": [ 204 ], @@ -2585,27 +2304,11 @@ }, "parameters": [ { - "$id": "209", + "$id": "157", "name": "param", "nameInRequest": "param", "type": { - "$id": "210", - "kind": "dict", - "keyType": { - "$id": "211", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "212", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -2657,13 +2360,13 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "156" + "$ref": "121" } } ] }, { - "$id": "213", + "$id": "158", "kind": "client", "name": "MatrixExpansion", "namespace": "Routes.PathParameters.MatrixExpansion", @@ -2704,29 +2407,29 @@ }, "children": [ { - "$id": "214", + "$id": "159", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.MatrixExpansion.Standard", "methods": [ { - "$id": "215", + "$id": "160", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "216", + "$id": "161", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "217", + "$id": "162", "name": "param", "nameInRequest": "param", "type": { - "$id": "218", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2745,7 +2448,7 @@ ], "responses": [ { - "$id": "219", + "$id": "164", "statusCodes": [ 204 ], @@ -2764,11 +2467,11 @@ }, "parameters": [ { - "$id": "220", + "$id": "165", "name": "param", "nameInRequest": "param", "type": { - "$id": "221", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2792,34 +2495,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive" }, { - "$id": "222", + "$id": "167", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "223", + "$id": "168", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "169", "name": "param", "nameInRequest": "param", "type": { - "$id": "225", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -2834,7 +2526,7 @@ ], "responses": [ { - "$id": "227", + "$id": "170", "statusCodes": [ 204 ], @@ -2853,22 +2545,11 @@ }, "parameters": [ { - "$id": "228", + "$id": "171", "name": "param", "nameInRequest": "param", "type": { - "$id": "229", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -2888,39 +2569,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array" }, { - "$id": "231", + "$id": "172", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "232", + "$id": "173", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "174", "name": "param", "nameInRequest": "param", "type": { - "$id": "234", - "kind": "dict", - "keyType": { - "$id": "235", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "236", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -2935,7 +2600,7 @@ ], "responses": [ { - "$id": "237", + "$id": "175", "statusCodes": [ 204 ], @@ -2954,27 +2619,11 @@ }, "parameters": [ { - "$id": "238", + "$id": "176", "name": "param", "nameInRequest": "param", "type": { - "$id": "239", - "kind": "dict", - "keyType": { - "$id": "240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "241", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -3026,33 +2675,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "158" } }, { - "$id": "242", + "$id": "177", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.MatrixExpansion.Explode", "methods": [ { - "$id": "243", + "$id": "178", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "244", + "$id": "179", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "245", + "$id": "180", "name": "param", "nameInRequest": "param", "type": { - "$id": "246", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3071,7 +2720,7 @@ ], "responses": [ { - "$id": "247", + "$id": "182", "statusCodes": [ 204 ], @@ -3090,11 +2739,11 @@ }, "parameters": [ { - "$id": "248", + "$id": "183", "name": "param", "nameInRequest": "param", "type": { - "$id": "249", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3118,34 +2767,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive" }, { - "$id": "250", + "$id": "185", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "251", + "$id": "186", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "252", + "$id": "187", "name": "param", "nameInRequest": "param", "type": { - "$id": "253", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -3160,7 +2798,7 @@ ], "responses": [ { - "$id": "255", + "$id": "188", "statusCodes": [ 204 ], @@ -3179,22 +2817,11 @@ }, "parameters": [ { - "$id": "256", + "$id": "189", "name": "param", "nameInRequest": "param", "type": { - "$id": "257", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Path", "isApiVersion": false, @@ -3214,39 +2841,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array" }, { - "$id": "259", + "$id": "190", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "260", + "$id": "191", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "192", "name": "param", "nameInRequest": "param", "type": { - "$id": "262", - "kind": "dict", - "keyType": { - "$id": "263", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "264", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -3261,7 +2872,7 @@ ], "responses": [ { - "$id": "265", + "$id": "193", "statusCodes": [ 204 ], @@ -3280,27 +2891,11 @@ }, "parameters": [ { - "$id": "266", + "$id": "194", "name": "param", "nameInRequest": "param", "type": { - "$id": "267", - "kind": "dict", - "keyType": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "269", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Path", "isApiVersion": false, @@ -3352,7 +2947,7 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "158" } } ] @@ -3360,29 +2955,29 @@ ] }, { - "$id": "270", + "$id": "195", "kind": "client", "name": "QueryParameters", "namespace": "Routes.QueryParameters", "methods": [ { - "$id": "271", + "$id": "196", "kind": "basic", "name": "templateOnly", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "272", + "$id": "197", "name": "templateOnly", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "198", "name": "param", "nameInRequest": "param", "type": { - "$id": "274", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3401,7 +2996,7 @@ ], "responses": [ { - "$id": "275", + "$id": "200", "statusCodes": [ 204 ], @@ -3420,11 +3015,11 @@ }, "parameters": [ { - "$id": "276", + "$id": "201", "name": "param", "nameInRequest": "param", "type": { - "$id": "277", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3448,24 +3043,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly" }, { -<<<<<<< HEAD - "$id": "278", + "$id": "203", "kind": "basic", "name": "explicit", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "279", + "$id": "204", "name": "explicit", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "280", + "$id": "205", "name": "param", "nameInRequest": "param", "type": { - "$id": "281", + "$id": "206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3484,7 +3078,7 @@ ], "responses": [ { - "$id": "282", + "$id": "207", "statusCodes": [ 204 ], @@ -3503,11 +3097,11 @@ }, "parameters": [ { - "$id": "283", + "$id": "208", "name": "param", "nameInRequest": "param", "type": { - "$id": "284", + "$id": "209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3531,23 +3125,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.explicit" }, { - "$id": "285", + "$id": "210", "kind": "basic", "name": "annotationOnly", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "286", + "$id": "211", "name": "annotationOnly", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "212", "name": "param", "nameInRequest": "param", "type": { - "$id": "288", + "$id": "213", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3566,7 +3160,7 @@ ], "responses": [ { - "$id": "289", + "$id": "214", "statusCodes": [ 204 ], @@ -3585,11 +3179,11 @@ }, "parameters": [ { - "$id": "290", + "$id": "215", "name": "param", "nameInRequest": "param", "type": { - "$id": "291", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3649,7 +3243,7 @@ }, "children": [ { - "$id": "292", + "$id": "217", "kind": "client", "name": "QueryExpansion", "namespace": "Routes.QueryParameters.QueryExpansion", @@ -3686,33 +3280,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", "apiVersions": [], "parent": { - "$ref": "270" + "$ref": "195" }, "children": [ { - "$id": "293", + "$id": "218", "kind": "client", "name": "Standard", "namespace": "Routes.QueryParameters.QueryExpansion.Standard", "methods": [ { - "$id": "294", + "$id": "219", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "295", + "$id": "220", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "296", + "$id": "221", "name": "param", "nameInRequest": "param", "type": { - "$id": "297", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3731,7 +3325,7 @@ ], "responses": [ { - "$id": "298", + "$id": "223", "statusCodes": [ 204 ], @@ -3750,11 +3344,11 @@ }, "parameters": [ { - "$id": "299", + "$id": "224", "name": "param", "nameInRequest": "param", "type": { - "$id": "300", + "$id": "225", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3778,34 +3372,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive" }, { - "$id": "301", + "$id": "226", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "302", + "$id": "227", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "228", "name": "param", "nameInRequest": "param", "type": { - "$id": "304", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -3820,7 +3403,7 @@ ], "responses": [ { - "$id": "306", + "$id": "229", "statusCodes": [ 204 ], @@ -3839,22 +3422,11 @@ }, "parameters": [ { - "$id": "307", + "$id": "230", "name": "param", "nameInRequest": "param", "type": { - "$id": "308", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -3874,39 +3446,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array" }, { - "$id": "310", + "$id": "231", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "311", + "$id": "232", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "312", + "$id": "233", "name": "param", "nameInRequest": "param", "type": { - "$id": "313", - "kind": "dict", - "keyType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "315", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -3921,7 +3477,7 @@ ], "responses": [ { - "$id": "316", + "$id": "234", "statusCodes": [ 204 ], @@ -3940,27 +3496,11 @@ }, "parameters": [ { - "$id": "317", + "$id": "235", "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": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -4012,33 +3552,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "292" + "$ref": "217" } }, { - "$id": "321", + "$id": "236", "kind": "client", "name": "Explode", "namespace": "Routes.QueryParameters.QueryExpansion.Explode", "methods": [ { - "$id": "322", + "$id": "237", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "323", + "$id": "238", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "239", "name": "param", "nameInRequest": "param", "type": { - "$id": "325", + "$id": "240", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4057,7 +3597,7 @@ ], "responses": [ { - "$id": "326", + "$id": "241", "statusCodes": [ 204 ], @@ -4076,11 +3616,11 @@ }, "parameters": [ { - "$id": "327", + "$id": "242", "name": "param", "nameInRequest": "param", "type": { - "$id": "328", + "$id": "243", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4104,34 +3644,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive" }, { - "$id": "329", + "$id": "244", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "330", + "$id": "245", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "331", + "$id": "246", "name": "param", "nameInRequest": "param", "type": { - "$id": "332", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "333", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -4146,7 +3675,7 @@ ], "responses": [ { - "$id": "334", + "$id": "247", "statusCodes": [ 204 ], @@ -4165,22 +3694,11 @@ }, "parameters": [ { - "$id": "335", + "$id": "248", "name": "param", "nameInRequest": "param", "type": { - "$id": "336", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "337", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -4200,39 +3718,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array" }, { - "$id": "338", + "$id": "249", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "339", + "$id": "250", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "340", + "$id": "251", "name": "param", "nameInRequest": "param", "type": { - "$id": "341", - "kind": "dict", - "keyType": { - "$id": "342", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "343", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -4247,7 +3749,7 @@ ], "responses": [ { - "$id": "344", + "$id": "252", "statusCodes": [ 204 ], @@ -4266,27 +3768,11 @@ }, "parameters": [ { - "$id": "345", + "$id": "253", "name": "param", "nameInRequest": "param", "type": { - "$id": "346", - "kind": "dict", - "keyType": { - "$id": "347", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "348", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -4338,13 +3824,13 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "292" + "$ref": "217" } } ] }, { - "$id": "349", + "$id": "254", "kind": "client", "name": "QueryContinuation", "namespace": "Routes.QueryParameters.QueryContinuation", @@ -4381,33 +3867,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", "apiVersions": [], "parent": { - "$ref": "270" + "$ref": "195" }, "children": [ { - "$id": "350", + "$id": "255", "kind": "client", "name": "Standard", "namespace": "Routes.QueryParameters.QueryContinuation.Standard", "methods": [ { - "$id": "351", + "$id": "256", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "352", + "$id": "257", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "353", + "$id": "258", "name": "param", "nameInRequest": "param", "type": { - "$id": "354", + "$id": "259", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4426,7 +3912,7 @@ ], "responses": [ { - "$id": "355", + "$id": "260", "statusCodes": [ 204 ], @@ -4445,11 +3931,11 @@ }, "parameters": [ { - "$id": "356", + "$id": "261", "name": "param", "nameInRequest": "param", "type": { - "$id": "357", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4473,34 +3959,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive" }, { - "$id": "358", + "$id": "263", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "359", + "$id": "264", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "360", + "$id": "265", "name": "param", "nameInRequest": "param", "type": { - "$id": "361", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -4515,7 +3990,7 @@ ], "responses": [ { - "$id": "363", + "$id": "266", "statusCodes": [ 204 ], @@ -4534,22 +4009,11 @@ }, "parameters": [ { - "$id": "364", + "$id": "267", "name": "param", "nameInRequest": "param", "type": { - "$id": "365", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -4569,39 +4033,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array" }, { - "$id": "367", + "$id": "268", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "368", + "$id": "269", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "369", + "$id": "270", "name": "param", "nameInRequest": "param", "type": { - "$id": "370", - "kind": "dict", - "keyType": { - "$id": "371", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "372", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -4616,7 +4064,7 @@ ], "responses": [ { - "$id": "373", + "$id": "271", "statusCodes": [ 204 ], @@ -4635,27 +4083,11 @@ }, "parameters": [ { - "$id": "374", + "$id": "272", "name": "param", "nameInRequest": "param", "type": { - "$id": "375", - "kind": "dict", - "keyType": { - "$id": "376", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "377", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -4707,33 +4139,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", "apiVersions": [], "parent": { - "$ref": "349" + "$ref": "254" } }, { - "$id": "378", + "$id": "273", "kind": "client", "name": "Explode", "namespace": "Routes.QueryParameters.QueryContinuation.Explode", "methods": [ { - "$id": "379", + "$id": "274", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "380", + "$id": "275", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "381", + "$id": "276", "name": "param", "nameInRequest": "param", "type": { - "$id": "382", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4752,7 +4184,7 @@ ], "responses": [ { - "$id": "383", + "$id": "278", "statusCodes": [ 204 ], @@ -4771,11 +4203,11 @@ }, "parameters": [ { - "$id": "384", + "$id": "279", "name": "param", "nameInRequest": "param", "type": { - "$id": "385", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4799,34 +4231,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive" }, { - "$id": "386", + "$id": "281", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "387", + "$id": "282", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "388", + "$id": "283", "name": "param", "nameInRequest": "param", "type": { - "$id": "389", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "390", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -4841,7 +4262,7 @@ ], "responses": [ { - "$id": "391", + "$id": "284", "statusCodes": [ 204 ], @@ -4860,22 +4281,11 @@ }, "parameters": [ { - "$id": "392", + "$id": "285", "name": "param", "nameInRequest": "param", "type": { - "$id": "393", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "54" }, "location": "Query", "isApiVersion": false, @@ -4895,39 +4305,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array" }, { - "$id": "395", + "$id": "286", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "396", + "$id": "287", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "397", + "$id": "288", "name": "param", "nameInRequest": "param", "type": { - "$id": "398", - "kind": "dict", - "keyType": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "400", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -4942,7 +4336,7 @@ ], "responses": [ { - "$id": "401", + "$id": "289", "statusCodes": [ 204 ], @@ -4961,27 +4355,11 @@ }, "parameters": [ { - "$id": "402", + "$id": "290", "name": "param", "nameInRequest": "param", "type": { - "$id": "403", - "kind": "dict", - "keyType": { - "$id": "404", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "405", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "61" }, "location": "Query", "isApiVersion": false, @@ -5033,7 +4411,7 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", "apiVersions": [], "parent": { - "$ref": "349" + "$ref": "254" } } ] @@ -5041,26 +4419,26 @@ ] }, { - "$id": "406", + "$id": "291", "kind": "client", "name": "InInterface", "namespace": "Routes", "methods": [ { - "$id": "407", + "$id": "292", "kind": "basic", "name": "fixed", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "408", + "$id": "293", "name": "fixed", "resourceName": "InInterface", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "409", + "$id": "294", "statusCodes": [ 204 ], @@ -5121,3982 +4499,6 @@ } } ] -======= - "$id": "72", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "73", - "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 - } - ], - "response": { - "$id": "74" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive" - }, - { - "$id": "75", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "76", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "77", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "78", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "79", - "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": "80", - "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": [] - }, - "parameters": [ - { - "$id": "81", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "82" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array" - }, - { - "$id": "83", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "84", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "85", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "86", - "kind": "dict", - "keyType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "88", - "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": "89", - "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": [] - }, - "parameters": [ - { - "$id": "90", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "91" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "92", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "93", - "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": "94", - "type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "61" - } - }, - { - "$id": "96", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.SimpleExpansion.Explode", - "methods": [ - { - "$id": "97", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "98", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "99", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "100", - "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": "101", - "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": [] - }, - "parameters": [ - { - "$id": "102", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "103", - "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 - } - ], - "response": { - "$id": "104" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive" - }, - { - "$id": "105", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "106", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "107", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "108", - "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": [] - }, - "parameters": [ - { - "$id": "109", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "110" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array" - }, - { - "$id": "111", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "112", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "113", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "114", - "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": [] - }, - "parameters": [ - { - "$id": "115", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "116" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "117", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "118", - "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": "119", - "type": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "61" - } - } - ] - }, - { - "$id": "121", - "kind": "client", - "name": "PathExpansion", - "namespace": "Routes.PathParameters.PathExpansion", - "methods": [], - "parameters": [ - { - "$id": "122", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "123", - "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": "124", - "type": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "126", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.PathExpansion.Standard", - "methods": [ - { - "$id": "127", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "128", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "129", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "130", - "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": "131", - "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": [] - }, - "parameters": [ - { - "$id": "132", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "133", - "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 - } - ], - "response": { - "$id": "134" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive" - }, - { - "$id": "135", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "136", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "137", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "138", - "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": [] - }, - "parameters": [ - { - "$id": "139", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "140" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array" - }, - { - "$id": "141", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "142", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "143", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "144", - "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": [] - }, - "parameters": [ - { - "$id": "145", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "146" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "147", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "148", - "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": "149", - "type": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "121" - } - }, - { - "$id": "151", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.PathExpansion.Explode", - "methods": [ - { - "$id": "152", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "153", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "154", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "155", - "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": "156", - "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": [] - }, - "parameters": [ - { - "$id": "157", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "158", - "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 - } - ], - "response": { - "$id": "159" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive" - }, - { - "$id": "160", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "161", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "162", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "163", - "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": [] - }, - "parameters": [ - { - "$id": "164", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "165" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array" - }, - { - "$id": "166", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "167", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "168", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "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/path/explode/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", - "decorators": [] - }, - "parameters": [ - { - "$id": "170", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "171" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "172", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "173", - "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": "174", - "type": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "121" - } - } - ] - }, - { - "$id": "176", - "kind": "client", - "name": "LabelExpansion", - "namespace": "Routes.PathParameters.LabelExpansion", - "methods": [], - "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": "Routes.PathParameters.LabelExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "181", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.LabelExpansion.Standard", - "methods": [ - { - "$id": "182", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "183", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "184", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "185", - "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": "186", - "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": [] - }, - "parameters": [ - { - "$id": "187", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "188", - "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 - } - ], - "response": { - "$id": "189" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive" - }, - { - "$id": "190", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "191", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "192", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "193", - "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": [] - }, - "parameters": [ - { - "$id": "194", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "195" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array" - }, - { - "$id": "196", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "197", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "198", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "199", - "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": [] - }, - "parameters": [ - { - "$id": "200", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "201" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "202", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "203", - "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": "204", - "type": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "176" - } - }, - { - "$id": "206", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.LabelExpansion.Explode", - "methods": [ - { - "$id": "207", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "208", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "209", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "210", - "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": "211", - "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": [] - }, - "parameters": [ - { - "$id": "212", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "213", - "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 - } - ], - "response": { - "$id": "214" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive" - }, - { - "$id": "215", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "216", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "217", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "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/label/explode/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", - "decorators": [] - }, - "parameters": [ - { - "$id": "219", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "220" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array" - }, - { - "$id": "221", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "222", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "223", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "224", - "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": [] - }, - "parameters": [ - { - "$id": "225", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "226" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "227", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "228", - "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": "229", - "type": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "176" - } - } - ] - }, - { - "$id": "231", - "kind": "client", - "name": "MatrixExpansion", - "namespace": "Routes.PathParameters.MatrixExpansion", - "methods": [], - "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.PathParameters.MatrixExpansion", - "apiVersions": [], - "parent": { - "$ref": "11" - }, - "children": [ - { - "$id": "236", - "kind": "client", - "name": "Standard", - "namespace": "Routes.PathParameters.MatrixExpansion.Standard", - "methods": [ - { - "$id": "237", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "238", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "239", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "240", - "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": "241", - "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": [] - }, - "parameters": [ - { - "$id": "242", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "243", - "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 - } - ], - "response": { - "$id": "244" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive" - }, - { - "$id": "245", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "246", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "247", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "248", - "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": [] - }, - "parameters": [ - { - "$id": "249", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "250" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array" - }, - { - "$id": "251", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "252", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "253", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "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/path/matrix/standard/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", - "decorators": [] - }, - "parameters": [ - { - "$id": "255", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "256" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "257", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "258", - "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": "259", - "type": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "231" - } - }, - { - "$id": "261", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.MatrixExpansion.Explode", - "methods": [ - { - "$id": "262", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "263", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "264", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "265", - "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": "266", - "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": [] - }, - "parameters": [ - { - "$id": "267", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "268", - "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 - } - ], - "response": { - "$id": "269" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive" - }, - { - "$id": "270", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "271", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "272", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "273", - "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": [] - }, - "parameters": [ - { - "$id": "274", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "275" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array" - }, - { - "$id": "276", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "277", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "278", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "279", - "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": [] - }, - "parameters": [ - { - "$id": "280", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "281" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "282", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "283", - "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": "284", - "type": { - "$id": "285", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "231" - } - } - ] - } - ] - }, - { - "$id": "286", - "kind": "client", - "name": "QueryParameters", - "namespace": "Routes.QueryParameters", - "methods": [ - { - "$id": "287", - "kind": "basic", - "name": "templateOnly", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "288", - "name": "templateOnly", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "289", - "name": "param", - "nameInRequest": "param", - "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 - } - ], - "responses": [ - { - "$id": "291", - "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": [] - }, - "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 - } - ], - "response": { - "$id": "294" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly" - }, - { - "$id": "295", - "kind": "basic", - "name": "explicit", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "296", - "name": "explicit", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "297", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "298", - "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": "299", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/explicit", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.explicit", - "decorators": [] - }, - "parameters": [ - { - "$id": "300", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "301", - "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 - } - ], - "response": { - "$id": "302" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.explicit" - }, - { - "$id": "303", - "kind": "basic", - "name": "annotationOnly", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "304", - "name": "annotationOnly", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "305", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "306", - "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": "307", - "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": [] - }, - "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 - } - ], - "response": { - "$id": "310" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly" - } - ], - "parameters": [ - { - "$id": "311", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "312", - "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": "313", - "type": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters", - "apiVersions": [], - "parent": { - "$ref": "2" - }, - "children": [ - { - "$id": "315", - "kind": "client", - "name": "QueryExpansion", - "namespace": "Routes.QueryParameters.QueryExpansion", - "methods": [], - "parameters": [ - { - "$id": "316", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "317", - "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": "318", - "type": { - "$id": "319", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", - "apiVersions": [], - "parent": { - "$ref": "286" - }, - "children": [ - { - "$id": "320", - "kind": "client", - "name": "Standard", - "namespace": "Routes.QueryParameters.QueryExpansion.Standard", - "methods": [ - { - "$id": "321", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "322", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "323", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "324", - "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": "325", - "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": [] - }, - "parameters": [ - { - "$id": "326", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "327", - "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 - } - ], - "response": { - "$id": "328" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive" - }, - { - "$id": "329", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "330", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "331", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "332", - "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": [] - }, - "parameters": [ - { - "$id": "333", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "334" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array" - }, - { - "$id": "335", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "336", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "337", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "338", - "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": [] - }, - "parameters": [ - { - "$id": "339", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "340" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record" - } - ], - "parameters": [ - { - "$id": "341", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "342", - "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": "343", - "type": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", - "apiVersions": [], - "parent": { - "$ref": "315" - } - }, - { - "$id": "345", - "kind": "client", - "name": "Explode", - "namespace": "Routes.QueryParameters.QueryExpansion.Explode", - "methods": [ - { - "$id": "346", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "347", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "348", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "349", - "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": "350", - "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": [] - }, - "parameters": [ - { - "$id": "351", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "352", - "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 - } - ], - "response": { - "$id": "353" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive" - }, - { - "$id": "354", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "355", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "356", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "357", - "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": [] - }, - "parameters": [ - { - "$id": "358", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "359" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array" - }, - { - "$id": "360", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "361", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "362", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "363", - "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": [] - }, - "parameters": [ - { - "$id": "364", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "365" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record" - } - ], - "parameters": [ - { - "$id": "366", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "367", - "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": "368", - "type": { - "$id": "369", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", - "apiVersions": [], - "parent": { - "$ref": "315" - } - } - ] - }, - { - "$id": "370", - "kind": "client", - "name": "QueryContinuation", - "namespace": "Routes.QueryParameters.QueryContinuation", - "methods": [], - "parameters": [ - { - "$id": "371", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "372", - "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": "373", - "type": { - "$id": "374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", - "apiVersions": [], - "parent": { - "$ref": "286" - }, - "children": [ - { - "$id": "375", - "kind": "client", - "name": "Standard", - "namespace": "Routes.QueryParameters.QueryContinuation.Standard", - "methods": [ - { - "$id": "376", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "377", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "378", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "379", - "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": "380", - "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": [] - }, - "parameters": [ - { - "$id": "381", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "382", - "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 - } - ], - "response": { - "$id": "383" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive" - }, - { - "$id": "384", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "385", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "386", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "387", - "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": [] - }, - "parameters": [ - { - "$id": "388", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "389" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array" - }, - { - "$id": "390", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "391", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "392", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "393", - "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": [] - }, - "parameters": [ - { - "$id": "394", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "395" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record" - } - ], - "parameters": [ - { - "$id": "396", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "397", - "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": "398", - "type": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", - "apiVersions": [], - "parent": { - "$ref": "370" - } - }, - { - "$id": "400", - "kind": "client", - "name": "Explode", - "namespace": "Routes.QueryParameters.QueryContinuation.Explode", - "methods": [ - { - "$id": "401", - "kind": "basic", - "name": "primitive", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "402", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "403", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "404", - "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": "405", - "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": [] - }, - "parameters": [ - { - "$id": "406", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "407", - "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 - } - ], - "response": { - "$id": "408" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive" - }, - { - "$id": "409", - "kind": "basic", - "name": "array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "410", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "411", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "412", - "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": [] - }, - "parameters": [ - { - "$id": "413", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "78" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "414" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array" - }, - { - "$id": "415", - "kind": "basic", - "name": "record", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "416", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "417", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "418", - "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": [] - }, - "parameters": [ - { - "$id": "419", - "name": "param", - "nameInRequest": "param", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "420" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record" - } - ], - "parameters": [ - { - "$id": "421", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "422", - "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": "423", - "type": { - "$id": "424", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", - "apiVersions": [], - "parent": { - "$ref": "370" - } - } - ] - } - ] - }, - { - "$id": "425", - "kind": "client", - "name": "InInterface", - "namespace": "Routes", - "methods": [ - { - "$id": "426", - "kind": "basic", - "name": "fixed", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "427", - "name": "fixed", - "resourceName": "InInterface", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "428", - "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": [], - "response": { - "$id": "429" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Routes.InInterface.fixed" - } - ], - "parameters": [ - { - "$id": "430", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "431", - "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": "432", - "type": { - "$id": "433", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.InInterface", - "apiVersions": [], - "parent": { - "$ref": "2" - } ->>>>>>> origin/main } ] } 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 462eab6b18e..e8f0dd793de 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 @@ -494,7 +494,6 @@ "name": "children", "serializedName": "children", "type": { - "$id": "61", "kind": "array", "name": "ArrayInnerModel", "valueType": { @@ -520,7 +519,7 @@ ], "clients": [ { - "$id": "62", + "$id": "61", "kind": "client", "name": "ArrayClient", "namespace": "Type.Array", @@ -559,26 +558,26 @@ "apiVersions": [], "children": [ { - "$id": "63", + "$id": "62", "kind": "client", "name": "Int32Value", "namespace": "Type.Array", "doc": "Array of int32 values", "methods": [ { - "$id": "64", + "$id": "63", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "65", + "$id": "64", "name": "get", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "65", "name": "accept", "nameInRequest": "Accept", "type": { @@ -597,16 +596,16 @@ ], "responses": [ { - "$id": "67", + "$id": "66", "statusCodes": [ 200 ], "bodyType": { - "$id": "68", + "$id": "67", "kind": "array", "name": "Array", "valueType": { - "$id": "69", + "$id": "68", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -633,7 +632,7 @@ }, "parameters": [ { - "$id": "70", + "$id": "69", "name": "accept", "nameInRequest": "accept", "type": { @@ -652,7 +651,7 @@ ], "response": { "type": { - "$ref": "68" + "$ref": "67" } }, "isOverride": false, @@ -661,19 +660,19 @@ "crossLanguageDefinitionId": "Type.Array.Int32Value.get" }, { - "$id": "71", + "$id": "70", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "72", + "$id": "71", "name": "put", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "73", + "$id": "72", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -691,22 +690,11 @@ "skipUrlEncoding": false }, { - "$id": "74", + "$id": "73", "name": "body", "nameInRequest": "body", "type": { - "$id": "75", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "76", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "67" }, "location": "Body", "isApiVersion": false, @@ -721,7 +709,7 @@ ], "responses": [ { - "$id": "77", + "$id": "74", "statusCodes": [ 204 ], @@ -743,22 +731,11 @@ }, "parameters": [ { - "$id": "78", + "$id": "75", "name": "body", "nameInRequest": "body", "type": { - "$id": "79", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "80", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "67" }, "location": "Body", "isApiVersion": false, @@ -771,7 +748,7 @@ "skipUrlEncoding": false }, { - "$id": "81", + "$id": "76", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -828,30 +805,30 @@ "crossLanguageDefinitionId": "Type.Array.Int32Value", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "82", + "$id": "77", "kind": "client", "name": "Int64Value", "namespace": "Type.Array", "doc": "Array of int64 values", "methods": [ { - "$id": "83", + "$id": "78", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "84", + "$id": "79", "name": "get", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "80", "name": "accept", "nameInRequest": "Accept", "type": { @@ -870,16 +847,16 @@ ], "responses": [ { - "$id": "86", + "$id": "81", "statusCodes": [ 200 ], "bodyType": { - "$id": "87", + "$id": "82", "kind": "array", "name": "Array1", "valueType": { - "$id": "88", + "$id": "83", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -906,7 +883,7 @@ }, "parameters": [ { - "$id": "89", + "$id": "84", "name": "accept", "nameInRequest": "accept", "type": { @@ -925,7 +902,7 @@ ], "response": { "type": { - "$ref": "87" + "$ref": "82" } }, "isOverride": false, @@ -934,19 +911,19 @@ "crossLanguageDefinitionId": "Type.Array.Int64Value.get" }, { - "$id": "90", + "$id": "85", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "91", + "$id": "86", "name": "put", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "87", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -964,22 +941,11 @@ "skipUrlEncoding": false }, { - "$id": "93", + "$id": "88", "name": "body", "nameInRequest": "body", "type": { - "$id": "94", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "95", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "82" }, "location": "Body", "isApiVersion": false, @@ -994,7 +960,7 @@ ], "responses": [ { - "$id": "96", + "$id": "89", "statusCodes": [ 204 ], @@ -1016,22 +982,11 @@ }, "parameters": [ { - "$id": "97", + "$id": "90", "name": "body", "nameInRequest": "body", "type": { - "$id": "98", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "99", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "82" }, "location": "Body", "isApiVersion": false, @@ -1044,7 +999,7 @@ "skipUrlEncoding": false }, { - "$id": "100", + "$id": "91", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1101,30 +1056,30 @@ "crossLanguageDefinitionId": "Type.Array.Int64Value", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "101", + "$id": "92", "kind": "client", "name": "BooleanValue", "namespace": "Type.Array", "doc": "Array of boolean values", "methods": [ { - "$id": "102", + "$id": "93", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "103", + "$id": "94", "name": "get", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "104", + "$id": "95", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1143,16 +1098,16 @@ ], "responses": [ { - "$id": "105", + "$id": "96", "statusCodes": [ 200 ], "bodyType": { - "$id": "106", + "$id": "97", "kind": "array", "name": "Array2", "valueType": { - "$id": "107", + "$id": "98", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1179,7 +1134,7 @@ }, "parameters": [ { - "$id": "108", + "$id": "99", "name": "accept", "nameInRequest": "accept", "type": { @@ -1198,7 +1153,7 @@ ], "response": { "type": { - "$ref": "106" + "$ref": "97" } }, "isOverride": false, @@ -1207,19 +1162,19 @@ "crossLanguageDefinitionId": "Type.Array.BooleanValue.get" }, { - "$id": "109", + "$id": "100", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "110", + "$id": "101", "name": "put", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "111", + "$id": "102", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1237,22 +1192,11 @@ "skipUrlEncoding": false }, { - "$id": "112", + "$id": "103", "name": "body", "nameInRequest": "body", "type": { - "$id": "113", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "114", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "97" }, "location": "Body", "isApiVersion": false, @@ -1267,7 +1211,7 @@ ], "responses": [ { - "$id": "115", + "$id": "104", "statusCodes": [ 204 ], @@ -1289,22 +1233,11 @@ }, "parameters": [ { - "$id": "116", + "$id": "105", "name": "body", "nameInRequest": "body", "type": { - "$id": "117", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "118", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "97" }, "location": "Body", "isApiVersion": false, @@ -1317,7 +1250,7 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "106", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1374,30 +1307,30 @@ "crossLanguageDefinitionId": "Type.Array.BooleanValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "120", + "$id": "107", "kind": "client", "name": "StringValue", "namespace": "Type.Array", "doc": "Array of string values", "methods": [ { - "$id": "121", + "$id": "108", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "122", + "$id": "109", "name": "get", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "123", + "$id": "110", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1416,16 +1349,16 @@ ], "responses": [ { - "$id": "124", + "$id": "111", "statusCodes": [ 200 ], "bodyType": { - "$id": "125", + "$id": "112", "kind": "array", "name": "Array3", "valueType": { - "$id": "126", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1452,7 +1385,7 @@ }, "parameters": [ { - "$id": "127", + "$id": "114", "name": "accept", "nameInRequest": "accept", "type": { @@ -1471,7 +1404,7 @@ ], "response": { "type": { - "$ref": "125" + "$ref": "112" } }, "isOverride": false, @@ -1480,19 +1413,19 @@ "crossLanguageDefinitionId": "Type.Array.StringValue.get" }, { - "$id": "128", + "$id": "115", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "129", + "$id": "116", "name": "put", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "130", + "$id": "117", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1510,22 +1443,11 @@ "skipUrlEncoding": false }, { - "$id": "131", + "$id": "118", "name": "body", "nameInRequest": "body", "type": { - "$id": "132", - "kind": "array", - "name": "Array3", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "112" }, "location": "Body", "isApiVersion": false, @@ -1540,7 +1462,7 @@ ], "responses": [ { - "$id": "134", + "$id": "119", "statusCodes": [ 204 ], @@ -1562,22 +1484,11 @@ }, "parameters": [ { - "$id": "135", + "$id": "120", "name": "body", "nameInRequest": "body", "type": { - "$id": "136", - "kind": "array", - "name": "Array3", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "112" }, "location": "Body", "isApiVersion": false, @@ -1590,7 +1501,7 @@ "skipUrlEncoding": false }, { - "$id": "138", + "$id": "121", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1647,30 +1558,30 @@ "crossLanguageDefinitionId": "Type.Array.StringValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "139", + "$id": "122", "kind": "client", "name": "Float32Value", "namespace": "Type.Array", "doc": "Array of float values", "methods": [ { - "$id": "140", + "$id": "123", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "141", + "$id": "124", "name": "get", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "142", + "$id": "125", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1689,16 +1600,16 @@ ], "responses": [ { - "$id": "143", + "$id": "126", "statusCodes": [ 200 ], "bodyType": { - "$id": "144", + "$id": "127", "kind": "array", "name": "Array4", "valueType": { - "$id": "145", + "$id": "128", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1725,7 +1636,7 @@ }, "parameters": [ { - "$id": "146", + "$id": "129", "name": "accept", "nameInRequest": "accept", "type": { @@ -1744,7 +1655,7 @@ ], "response": { "type": { - "$ref": "144" + "$ref": "127" } }, "isOverride": false, @@ -1753,19 +1664,19 @@ "crossLanguageDefinitionId": "Type.Array.Float32Value.get" }, { - "$id": "147", + "$id": "130", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "148", + "$id": "131", "name": "put", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "149", + "$id": "132", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1783,22 +1694,11 @@ "skipUrlEncoding": false }, { - "$id": "150", + "$id": "133", "name": "body", "nameInRequest": "body", "type": { - "$id": "151", - "kind": "array", - "name": "Array4", - "valueType": { - "$id": "152", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "127" }, "location": "Body", "isApiVersion": false, @@ -1813,7 +1713,7 @@ ], "responses": [ { - "$id": "153", + "$id": "134", "statusCodes": [ 204 ], @@ -1835,22 +1735,11 @@ }, "parameters": [ { - "$id": "154", + "$id": "135", "name": "body", "nameInRequest": "body", "type": { - "$id": "155", - "kind": "array", - "name": "Array4", - "valueType": { - "$id": "156", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "127" }, "location": "Body", "isApiVersion": false, @@ -1863,7 +1752,7 @@ "skipUrlEncoding": false }, { - "$id": "157", + "$id": "136", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1920,30 +1809,30 @@ "crossLanguageDefinitionId": "Type.Array.Float32Value", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "158", + "$id": "137", "kind": "client", "name": "DatetimeValue", "namespace": "Type.Array", "doc": "Array of datetime values", "methods": [ { - "$id": "159", + "$id": "138", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "160", + "$id": "139", "name": "get", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "161", + "$id": "140", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1962,21 +1851,21 @@ ], "responses": [ { - "$id": "162", + "$id": "141", "statusCodes": [ 200 ], "bodyType": { - "$id": "163", + "$id": "142", "kind": "array", "name": "Array5", "valueType": { - "$id": "164", + "$id": "143", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "165", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2006,7 +1895,7 @@ }, "parameters": [ { - "$id": "166", + "$id": "145", "name": "accept", "nameInRequest": "accept", "type": { @@ -2025,7 +1914,7 @@ ], "response": { "type": { - "$ref": "163" + "$ref": "142" } }, "isOverride": false, @@ -2034,19 +1923,19 @@ "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get" }, { - "$id": "167", + "$id": "146", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "168", + "$id": "147", "name": "put", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "169", + "$id": "148", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2064,30 +1953,11 @@ "skipUrlEncoding": false }, { - "$id": "170", + "$id": "149", "name": "body", "nameInRequest": "body", "type": { - "$id": "171", - "kind": "array", - "name": "Array5", - "valueType": { - "$id": "172", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "142" }, "location": "Body", "isApiVersion": false, @@ -2102,7 +1972,7 @@ ], "responses": [ { - "$id": "174", + "$id": "150", "statusCodes": [ 204 ], @@ -2124,30 +1994,11 @@ }, "parameters": [ { - "$id": "175", + "$id": "151", "name": "body", "nameInRequest": "body", "type": { - "$id": "176", - "kind": "array", - "name": "Array5", - "valueType": { - "$id": "177", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "142" }, "location": "Body", "isApiVersion": false, @@ -2160,7 +2011,7 @@ "skipUrlEncoding": false }, { - "$id": "179", + "$id": "152", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2217,30 +2068,30 @@ "crossLanguageDefinitionId": "Type.Array.DatetimeValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "180", + "$id": "153", "kind": "client", "name": "DurationValue", "namespace": "Type.Array", "doc": "Array of duration values", "methods": [ { - "$id": "181", + "$id": "154", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "182", + "$id": "155", "name": "get", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "183", + "$id": "156", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2259,21 +2110,21 @@ ], "responses": [ { - "$id": "184", + "$id": "157", "statusCodes": [ 200 ], "bodyType": { - "$id": "185", + "$id": "158", "kind": "array", "name": "Array6", "valueType": { - "$id": "186", + "$id": "159", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "187", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2303,7 +2154,7 @@ }, "parameters": [ { - "$id": "188", + "$id": "161", "name": "accept", "nameInRequest": "accept", "type": { @@ -2322,7 +2173,7 @@ ], "response": { "type": { - "$ref": "185" + "$ref": "158" } }, "isOverride": false, @@ -2331,19 +2182,19 @@ "crossLanguageDefinitionId": "Type.Array.DurationValue.get" }, { - "$id": "189", + "$id": "162", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "190", + "$id": "163", "name": "put", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "191", + "$id": "164", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2361,30 +2212,11 @@ "skipUrlEncoding": false }, { - "$id": "192", + "$id": "165", "name": "body", "nameInRequest": "body", "type": { - "$id": "193", - "kind": "array", - "name": "Array6", - "valueType": { - "$id": "194", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "158" }, "location": "Body", "isApiVersion": false, @@ -2399,7 +2231,7 @@ ], "responses": [ { - "$id": "196", + "$id": "166", "statusCodes": [ 204 ], @@ -2421,30 +2253,11 @@ }, "parameters": [ { - "$id": "197", + "$id": "167", "name": "body", "nameInRequest": "body", "type": { - "$id": "198", - "kind": "array", - "name": "Array6", - "valueType": { - "$id": "199", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "158" }, "location": "Body", "isApiVersion": false, @@ -2457,7 +2270,7 @@ "skipUrlEncoding": false }, { - "$id": "201", + "$id": "168", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2514,30 +2327,30 @@ "crossLanguageDefinitionId": "Type.Array.DurationValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "202", + "$id": "169", "kind": "client", "name": "UnknownValue", "namespace": "Type.Array", "doc": "Array of unknown values", "methods": [ { - "$id": "203", + "$id": "170", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "204", + "$id": "171", "name": "get", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "205", + "$id": "172", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2556,16 +2369,16 @@ ], "responses": [ { - "$id": "206", + "$id": "173", "statusCodes": [ 200 ], "bodyType": { - "$id": "207", + "$id": "174", "kind": "array", "name": "Array7", "valueType": { - "$id": "208", + "$id": "175", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2592,7 +2405,7 @@ }, "parameters": [ { - "$id": "209", + "$id": "176", "name": "accept", "nameInRequest": "accept", "type": { @@ -2611,7 +2424,7 @@ ], "response": { "type": { - "$ref": "207" + "$ref": "174" } }, "isOverride": false, @@ -2620,19 +2433,19 @@ "crossLanguageDefinitionId": "Type.Array.UnknownValue.get" }, { - "$id": "210", + "$id": "177", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "211", + "$id": "178", "name": "put", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "212", + "$id": "179", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2650,22 +2463,11 @@ "skipUrlEncoding": false }, { - "$id": "213", + "$id": "180", "name": "body", "nameInRequest": "body", "type": { - "$id": "214", - "kind": "array", - "name": "Array7", - "valueType": { - "$id": "215", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "174" }, "location": "Body", "isApiVersion": false, @@ -2680,7 +2482,7 @@ ], "responses": [ { - "$id": "216", + "$id": "181", "statusCodes": [ 204 ], @@ -2702,22 +2504,11 @@ }, "parameters": [ { - "$id": "217", + "$id": "182", "name": "body", "nameInRequest": "body", "type": { - "$id": "218", - "kind": "array", - "name": "Array7", - "valueType": { - "$id": "219", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "174" }, "location": "Body", "isApiVersion": false, @@ -2730,7 +2521,7 @@ "skipUrlEncoding": false }, { - "$id": "220", + "$id": "183", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2787,30 +2578,30 @@ "crossLanguageDefinitionId": "Type.Array.UnknownValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "221", + "$id": "184", "kind": "client", "name": "ModelValue", "namespace": "Type.Array", "doc": "Array of model values", "methods": [ { - "$id": "222", + "$id": "185", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "223", + "$id": "186", "name": "get", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "187", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2829,12 +2620,12 @@ ], "responses": [ { - "$id": "225", + "$id": "188", "statusCodes": [ 200 ], "bodyType": { - "$id": "226", + "$id": "189", "kind": "array", "name": "ArrayInnerModel", "valueType": { @@ -2861,7 +2652,7 @@ }, "parameters": [ { - "$id": "227", + "$id": "190", "name": "accept", "nameInRequest": "accept", "type": { @@ -2880,7 +2671,7 @@ ], "response": { "type": { - "$ref": "226" + "$ref": "189" } }, "isOverride": false, @@ -2889,19 +2680,19 @@ "crossLanguageDefinitionId": "Type.Array.ModelValue.get" }, { - "$id": "228", + "$id": "191", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "229", + "$id": "192", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "230", + "$id": "193", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2919,18 +2710,11 @@ "skipUrlEncoding": false }, { - "$id": "231", + "$id": "194", "name": "body", "nameInRequest": "body", "type": { - "$id": "232", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "57" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "189" }, "location": "Body", "isApiVersion": false, @@ -2945,7 +2729,7 @@ ], "responses": [ { - "$id": "233", + "$id": "195", "statusCodes": [ 204 ], @@ -2967,18 +2751,11 @@ }, "parameters": [ { - "$id": "234", + "$id": "196", "name": "body", "nameInRequest": "body", "type": { - "$id": "235", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "57" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "189" }, "location": "Body", "isApiVersion": false, @@ -2991,7 +2768,7 @@ "skipUrlEncoding": false }, { - "$id": "236", + "$id": "197", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3048,30 +2825,30 @@ "crossLanguageDefinitionId": "Type.Array.ModelValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "237", + "$id": "198", "kind": "client", "name": "NullableFloatValue", "namespace": "Type.Array", "doc": "Array of nullable float values", "methods": [ { - "$id": "238", + "$id": "199", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "239", + "$id": "200", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "240", + "$id": "201", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3090,19 +2867,19 @@ ], "responses": [ { - "$id": "241", + "$id": "202", "statusCodes": [ 200 ], "bodyType": { - "$id": "242", + "$id": "203", "kind": "array", "name": "Array8", "valueType": { - "$id": "243", + "$id": "204", "kind": "nullable", "type": { - "$id": "244", + "$id": "205", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -3131,7 +2908,7 @@ }, "parameters": [ { - "$id": "245", + "$id": "206", "name": "accept", "nameInRequest": "accept", "type": { @@ -3150,7 +2927,7 @@ ], "response": { "type": { - "$ref": "242" + "$ref": "203" } }, "isOverride": false, @@ -3159,19 +2936,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" }, { - "$id": "246", + "$id": "207", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "247", + "$id": "208", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "209", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3189,18 +2966,11 @@ "skipUrlEncoding": false }, { - "$id": "249", + "$id": "210", "name": "body", "nameInRequest": "body", "type": { - "$id": "250", - "kind": "array", - "name": "Array8", - "valueType": { - "$ref": "243" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "203" }, "location": "Body", "isApiVersion": false, @@ -3215,7 +2985,7 @@ ], "responses": [ { - "$id": "251", + "$id": "211", "statusCodes": [ 204 ], @@ -3237,18 +3007,11 @@ }, "parameters": [ { - "$id": "252", + "$id": "212", "name": "body", "nameInRequest": "body", "type": { - "$id": "253", - "kind": "array", - "name": "Array8", - "valueType": { - "$ref": "243" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "203" }, "location": "Body", "isApiVersion": false, @@ -3261,7 +3024,7 @@ "skipUrlEncoding": false }, { - "$id": "254", + "$id": "213", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3318,30 +3081,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "255", + "$id": "214", "kind": "client", "name": "NullableInt32Value", "namespace": "Type.Array", "doc": "Array of nullable int32 values", "methods": [ { - "$id": "256", + "$id": "215", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "257", + "$id": "216", "name": "get", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "258", + "$id": "217", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3360,19 +3123,19 @@ ], "responses": [ { - "$id": "259", + "$id": "218", "statusCodes": [ 200 ], "bodyType": { - "$id": "260", + "$id": "219", "kind": "array", "name": "Array9", "valueType": { - "$id": "261", + "$id": "220", "kind": "nullable", "type": { - "$id": "262", + "$id": "221", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3401,7 +3164,7 @@ }, "parameters": [ { - "$id": "263", + "$id": "222", "name": "accept", "nameInRequest": "accept", "type": { @@ -3420,7 +3183,7 @@ ], "response": { "type": { - "$ref": "260" + "$ref": "219" } }, "isOverride": false, @@ -3429,19 +3192,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" }, { - "$id": "264", + "$id": "223", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "265", + "$id": "224", "name": "put", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "266", + "$id": "225", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3459,18 +3222,11 @@ "skipUrlEncoding": false }, { - "$id": "267", + "$id": "226", "name": "body", "nameInRequest": "body", "type": { - "$id": "268", - "kind": "array", - "name": "Array9", - "valueType": { - "$ref": "261" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "219" }, "location": "Body", "isApiVersion": false, @@ -3485,7 +3241,7 @@ ], "responses": [ { - "$id": "269", + "$id": "227", "statusCodes": [ 204 ], @@ -3507,18 +3263,11 @@ }, "parameters": [ { - "$id": "270", + "$id": "228", "name": "body", "nameInRequest": "body", "type": { - "$id": "271", - "kind": "array", - "name": "Array9", - "valueType": { - "$ref": "261" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "219" }, "location": "Body", "isApiVersion": false, @@ -3531,7 +3280,7 @@ "skipUrlEncoding": false }, { - "$id": "272", + "$id": "229", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3588,30 +3337,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "273", + "$id": "230", "kind": "client", "name": "NullableBooleanValue", "namespace": "Type.Array", "doc": "Array of nullable boolean values", "methods": [ { - "$id": "274", + "$id": "231", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "275", + "$id": "232", "name": "get", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "276", + "$id": "233", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3630,19 +3379,19 @@ ], "responses": [ { - "$id": "277", + "$id": "234", "statusCodes": [ 200 ], "bodyType": { - "$id": "278", + "$id": "235", "kind": "array", "name": "Array10", "valueType": { - "$id": "279", + "$id": "236", "kind": "nullable", "type": { - "$id": "280", + "$id": "237", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3671,7 +3420,7 @@ }, "parameters": [ { - "$id": "281", + "$id": "238", "name": "accept", "nameInRequest": "accept", "type": { @@ -3690,7 +3439,7 @@ ], "response": { "type": { - "$ref": "278" + "$ref": "235" } }, "isOverride": false, @@ -3699,19 +3448,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" }, { - "$id": "282", + "$id": "239", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "283", + "$id": "240", "name": "put", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "284", + "$id": "241", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3729,18 +3478,11 @@ "skipUrlEncoding": false }, { - "$id": "285", + "$id": "242", "name": "body", "nameInRequest": "body", "type": { - "$id": "286", - "kind": "array", - "name": "Array10", - "valueType": { - "$ref": "279" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "location": "Body", "isApiVersion": false, @@ -3755,7 +3497,7 @@ ], "responses": [ { - "$id": "287", + "$id": "243", "statusCodes": [ 204 ], @@ -3777,18 +3519,11 @@ }, "parameters": [ { - "$id": "288", + "$id": "244", "name": "body", "nameInRequest": "body", "type": { - "$id": "289", - "kind": "array", - "name": "Array10", - "valueType": { - "$ref": "279" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "235" }, "location": "Body", "isApiVersion": false, @@ -3801,7 +3536,7 @@ "skipUrlEncoding": false }, { - "$id": "290", + "$id": "245", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3858,30 +3593,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "291", + "$id": "246", "kind": "client", "name": "NullableStringValue", "namespace": "Type.Array", "doc": "Array of nullable string values", "methods": [ { - "$id": "292", + "$id": "247", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "293", + "$id": "248", "name": "get", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "294", + "$id": "249", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3900,19 +3635,19 @@ ], "responses": [ { - "$id": "295", + "$id": "250", "statusCodes": [ 200 ], "bodyType": { - "$id": "296", + "$id": "251", "kind": "array", "name": "Array11", "valueType": { - "$id": "297", + "$id": "252", "kind": "nullable", "type": { - "$id": "298", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3941,7 +3676,7 @@ }, "parameters": [ { - "$id": "299", + "$id": "254", "name": "accept", "nameInRequest": "accept", "type": { @@ -3960,7 +3695,7 @@ ], "response": { "type": { - "$ref": "296" + "$ref": "251" } }, "isOverride": false, @@ -3969,19 +3704,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" }, { - "$id": "300", + "$id": "255", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "301", + "$id": "256", "name": "put", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "302", + "$id": "257", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3999,18 +3734,11 @@ "skipUrlEncoding": false }, { - "$id": "303", + "$id": "258", "name": "body", "nameInRequest": "body", "type": { - "$id": "304", - "kind": "array", - "name": "Array11", - "valueType": { - "$ref": "297" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "251" }, "location": "Body", "isApiVersion": false, @@ -4025,7 +3753,7 @@ ], "responses": [ { - "$id": "305", + "$id": "259", "statusCodes": [ 204 ], @@ -4047,18 +3775,11 @@ }, "parameters": [ { - "$id": "306", + "$id": "260", "name": "body", "nameInRequest": "body", "type": { - "$id": "307", - "kind": "array", - "name": "Array11", - "valueType": { - "$ref": "297" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "251" }, "location": "Body", "isApiVersion": false, @@ -4071,7 +3792,7 @@ "skipUrlEncoding": false }, { - "$id": "308", + "$id": "261", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4128,30 +3849,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableStringValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } }, { - "$id": "309", + "$id": "262", "kind": "client", "name": "NullableModelValue", "namespace": "Type.Array", "doc": "Array of nullable model values", "methods": [ { - "$id": "310", + "$id": "263", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "311", + "$id": "264", "name": "get", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "312", + "$id": "265", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4170,16 +3891,16 @@ ], "responses": [ { - "$id": "313", + "$id": "266", "statusCodes": [ 200 ], "bodyType": { - "$id": "314", + "$id": "267", "kind": "array", "name": "Array12", "valueType": { - "$id": "315", + "$id": "268", "kind": "nullable", "type": { "$ref": "57" @@ -4207,7 +3928,7 @@ }, "parameters": [ { - "$id": "316", + "$id": "269", "name": "accept", "nameInRequest": "accept", "type": { @@ -4226,7 +3947,7 @@ ], "response": { "type": { - "$ref": "314" + "$ref": "267" } }, "isOverride": false, @@ -4235,19 +3956,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" }, { - "$id": "317", + "$id": "270", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "318", + "$id": "271", "name": "put", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "319", + "$id": "272", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4265,18 +3986,11 @@ "skipUrlEncoding": false }, { - "$id": "320", + "$id": "273", "name": "body", "nameInRequest": "body", "type": { - "$id": "321", - "kind": "array", - "name": "Array12", - "valueType": { - "$ref": "315" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "267" }, "location": "Body", "isApiVersion": false, @@ -4291,7 +4005,7 @@ ], "responses": [ { - "$id": "322", + "$id": "274", "statusCodes": [ 204 ], @@ -4313,18 +4027,11 @@ }, "parameters": [ { - "$id": "323", + "$id": "275", "name": "body", "nameInRequest": "body", "type": { - "$id": "324", - "kind": "array", - "name": "Array12", - "valueType": { - "$ref": "315" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "267" }, "location": "Body", "isApiVersion": false, @@ -4337,7 +4044,7 @@ "skipUrlEncoding": false }, { - "$id": "325", + "$id": "276", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4394,7 +4101,7 @@ "crossLanguageDefinitionId": "Type.Array.NullableModelValue", "apiVersions": [], "parent": { - "$ref": "62" + "$ref": "61" } } ] 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 0f3d4e915af..79eef5074be 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 @@ -398,10 +398,9 @@ "name": "children", "serializedName": "children", "type": { - "$id": "49", "kind": "dict", "keyType": { - "$id": "50", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -429,7 +428,7 @@ ], "clients": [ { - "$id": "51", + "$id": "50", "kind": "client", "name": "DictionaryClient", "namespace": "Type.Dictionary", @@ -468,26 +467,26 @@ "apiVersions": [], "children": [ { - "$id": "52", + "$id": "51", "kind": "client", "name": "Int32Value", "namespace": "Type.Dictionary", "doc": "Dictionary of int32 values", "methods": [ { - "$id": "53", + "$id": "52", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "54", + "$id": "53", "name": "get", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "55", + "$id": "54", "name": "accept", "nameInRequest": "Accept", "type": { @@ -506,22 +505,22 @@ ], "responses": [ { - "$id": "56", + "$id": "55", "statusCodes": [ 200 ], "bodyType": { - "$id": "57", + "$id": "56", "kind": "dict", "keyType": { - "$id": "58", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "59", + "$id": "58", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -547,7 +546,7 @@ }, "parameters": [ { - "$id": "60", + "$id": "59", "name": "accept", "nameInRequest": "accept", "type": { @@ -566,7 +565,7 @@ ], "response": { "type": { - "$ref": "57" + "$ref": "56" } }, "isOverride": false, @@ -575,19 +574,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get" }, { - "$id": "61", + "$id": "60", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "62", + "$id": "61", "name": "put", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "63", + "$id": "62", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -605,27 +604,11 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "63", "name": "body", "nameInRequest": "body", "type": { - "$id": "65", - "kind": "dict", - "keyType": { - "$id": "66", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "67", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "56" }, "location": "Body", "isApiVersion": false, @@ -640,7 +623,7 @@ ], "responses": [ { - "$id": "68", + "$id": "64", "statusCodes": [ 204 ], @@ -662,27 +645,11 @@ }, "parameters": [ { - "$id": "69", + "$id": "65", "name": "body", "nameInRequest": "body", "type": { - "$id": "70", - "kind": "dict", - "keyType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "72", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] + "$ref": "56" }, "location": "Body", "isApiVersion": false, @@ -695,7 +662,7 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "66", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -752,30 +719,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "74", + "$id": "67", "kind": "client", "name": "Int64Value", "namespace": "Type.Dictionary", "doc": "Dictionary of int64 values", "methods": [ { - "$id": "75", + "$id": "68", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "76", + "$id": "69", "name": "get", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "70", "name": "accept", "nameInRequest": "Accept", "type": { @@ -794,22 +761,22 @@ ], "responses": [ { - "$id": "78", + "$id": "71", "statusCodes": [ 200 ], "bodyType": { - "$id": "79", + "$id": "72", "kind": "dict", "keyType": { - "$id": "80", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "81", + "$id": "74", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -835,7 +802,7 @@ }, "parameters": [ { - "$id": "82", + "$id": "75", "name": "accept", "nameInRequest": "accept", "type": { @@ -854,7 +821,7 @@ ], "response": { "type": { - "$ref": "79" + "$ref": "72" } }, "isOverride": false, @@ -863,19 +830,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get" }, { - "$id": "83", + "$id": "76", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "84", + "$id": "77", "name": "put", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "78", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -893,27 +860,11 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "79", "name": "body", "nameInRequest": "body", "type": { - "$id": "87", - "kind": "dict", - "keyType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "89", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] + "$ref": "72" }, "location": "Body", "isApiVersion": false, @@ -928,7 +879,7 @@ ], "responses": [ { - "$id": "90", + "$id": "80", "statusCodes": [ 204 ], @@ -950,27 +901,11 @@ }, "parameters": [ { - "$id": "91", + "$id": "81", "name": "body", "nameInRequest": "body", "type": { - "$id": "92", - "kind": "dict", - "keyType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "94", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] + "$ref": "72" }, "location": "Body", "isApiVersion": false, @@ -983,7 +918,7 @@ "skipUrlEncoding": false }, { - "$id": "95", + "$id": "82", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1040,30 +975,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "96", + "$id": "83", "kind": "client", "name": "BooleanValue", "namespace": "Type.Dictionary", "doc": "Dictionary of boolean values", "methods": [ { - "$id": "97", + "$id": "84", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "98", + "$id": "85", "name": "get", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "99", + "$id": "86", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1082,22 +1017,22 @@ ], "responses": [ { - "$id": "100", + "$id": "87", "statusCodes": [ 200 ], "bodyType": { - "$id": "101", + "$id": "88", "kind": "dict", "keyType": { - "$id": "102", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "103", + "$id": "90", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1123,7 +1058,7 @@ }, "parameters": [ { - "$id": "104", + "$id": "91", "name": "accept", "nameInRequest": "accept", "type": { @@ -1142,7 +1077,7 @@ ], "response": { "type": { - "$ref": "101" + "$ref": "88" } }, "isOverride": false, @@ -1151,19 +1086,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get" }, { - "$id": "105", + "$id": "92", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "106", + "$id": "93", "name": "put", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "107", + "$id": "94", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1181,27 +1116,11 @@ "skipUrlEncoding": false }, { - "$id": "108", + "$id": "95", "name": "body", "nameInRequest": "body", "type": { - "$id": "109", - "kind": "dict", - "keyType": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "111", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "decorators": [] + "$ref": "88" }, "location": "Body", "isApiVersion": false, @@ -1216,7 +1135,7 @@ ], "responses": [ { - "$id": "112", + "$id": "96", "statusCodes": [ 204 ], @@ -1238,27 +1157,11 @@ }, "parameters": [ { - "$id": "113", + "$id": "97", "name": "body", "nameInRequest": "body", "type": { - "$id": "114", - "kind": "dict", - "keyType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "116", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "decorators": [] + "$ref": "88" }, "location": "Body", "isApiVersion": false, @@ -1271,7 +1174,7 @@ "skipUrlEncoding": false }, { - "$id": "117", + "$id": "98", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1328,30 +1231,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "118", + "$id": "99", "kind": "client", "name": "StringValue", "namespace": "Type.Dictionary", "doc": "Dictionary of string values", "methods": [ { - "$id": "119", + "$id": "100", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "120", + "$id": "101", "name": "get", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "121", + "$id": "102", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1370,22 +1273,22 @@ ], "responses": [ { - "$id": "122", + "$id": "103", "statusCodes": [ 200 ], "bodyType": { - "$id": "123", + "$id": "104", "kind": "dict", "keyType": { - "$id": "124", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "125", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1411,7 +1314,7 @@ }, "parameters": [ { - "$id": "126", + "$id": "107", "name": "accept", "nameInRequest": "accept", "type": { @@ -1430,7 +1333,7 @@ ], "response": { "type": { - "$ref": "123" + "$ref": "104" } }, "isOverride": false, @@ -1439,19 +1342,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get" }, { - "$id": "127", + "$id": "108", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "128", + "$id": "109", "name": "put", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "129", + "$id": "110", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1469,27 +1372,11 @@ "skipUrlEncoding": false }, { - "$id": "130", + "$id": "111", "name": "body", "nameInRequest": "body", "type": { - "$id": "131", - "kind": "dict", - "keyType": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] + "$ref": "104" }, "location": "Body", "isApiVersion": false, @@ -1504,7 +1391,7 @@ ], "responses": [ { - "$id": "134", + "$id": "112", "statusCodes": [ 204 ], @@ -1526,27 +1413,11 @@ }, "parameters": [ { - "$id": "135", + "$id": "113", "name": "body", "nameInRequest": "body", "type": { - "$id": "136", - "kind": "dict", - "keyType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] + "$ref": "104" }, "location": "Body", "isApiVersion": false, @@ -1559,7 +1430,7 @@ "skipUrlEncoding": false }, { - "$id": "139", + "$id": "114", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1616,30 +1487,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.StringValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "140", + "$id": "115", "kind": "client", "name": "Float32Value", "namespace": "Type.Dictionary", "doc": "Dictionary of float values", "methods": [ { - "$id": "141", + "$id": "116", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "142", + "$id": "117", "name": "get", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "118", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1658,22 +1529,22 @@ ], "responses": [ { - "$id": "144", + "$id": "119", "statusCodes": [ 200 ], "bodyType": { - "$id": "145", + "$id": "120", "kind": "dict", "keyType": { - "$id": "146", + "$id": "121", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "147", + "$id": "122", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1699,7 +1570,7 @@ }, "parameters": [ { - "$id": "148", + "$id": "123", "name": "accept", "nameInRequest": "accept", "type": { @@ -1718,7 +1589,7 @@ ], "response": { "type": { - "$ref": "145" + "$ref": "120" } }, "isOverride": false, @@ -1727,19 +1598,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get" }, { - "$id": "149", + "$id": "124", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "150", + "$id": "125", "name": "put", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "151", + "$id": "126", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1757,27 +1628,11 @@ "skipUrlEncoding": false }, { - "$id": "152", + "$id": "127", "name": "body", "nameInRequest": "body", "type": { - "$id": "153", - "kind": "dict", - "keyType": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "155", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] + "$ref": "120" }, "location": "Body", "isApiVersion": false, @@ -1792,7 +1647,7 @@ ], "responses": [ { - "$id": "156", + "$id": "128", "statusCodes": [ 204 ], @@ -1814,27 +1669,11 @@ }, "parameters": [ { - "$id": "157", + "$id": "129", "name": "body", "nameInRequest": "body", "type": { - "$id": "158", - "kind": "dict", - "keyType": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "160", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] + "$ref": "120" }, "location": "Body", "isApiVersion": false, @@ -1847,7 +1686,7 @@ "skipUrlEncoding": false }, { - "$id": "161", + "$id": "130", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1904,30 +1743,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "162", + "$id": "131", "kind": "client", "name": "DatetimeValue", "namespace": "Type.Dictionary", "doc": "Dictionary of datetime values", "methods": [ { - "$id": "163", + "$id": "132", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "164", + "$id": "133", "name": "get", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "165", + "$id": "134", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1946,27 +1785,27 @@ ], "responses": [ { - "$id": "166", + "$id": "135", "statusCodes": [ 200 ], "bodyType": { - "$id": "167", + "$id": "136", "kind": "dict", "keyType": { - "$id": "168", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "169", + "$id": "138", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "170", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1995,7 +1834,7 @@ }, "parameters": [ { - "$id": "171", + "$id": "140", "name": "accept", "nameInRequest": "accept", "type": { @@ -2014,7 +1853,7 @@ ], "response": { "type": { - "$ref": "167" + "$ref": "136" } }, "isOverride": false, @@ -2023,19 +1862,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get" }, { - "$id": "172", + "$id": "141", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "173", + "$id": "142", "name": "put", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "174", + "$id": "143", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2053,35 +1892,11 @@ "skipUrlEncoding": false }, { - "$id": "175", + "$id": "144", "name": "body", "nameInRequest": "body", "type": { - "$id": "176", - "kind": "dict", - "keyType": { - "$id": "177", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "178", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] + "$ref": "136" }, "location": "Body", "isApiVersion": false, @@ -2096,7 +1911,7 @@ ], "responses": [ { - "$id": "180", + "$id": "145", "statusCodes": [ 204 ], @@ -2118,35 +1933,11 @@ }, "parameters": [ { - "$id": "181", + "$id": "146", "name": "body", "nameInRequest": "body", "type": { - "$id": "182", - "kind": "dict", - "keyType": { - "$id": "183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "184", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] + "$ref": "136" }, "location": "Body", "isApiVersion": false, @@ -2159,7 +1950,7 @@ "skipUrlEncoding": false }, { - "$id": "186", + "$id": "147", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2216,30 +2007,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "187", + "$id": "148", "kind": "client", "name": "DurationValue", "namespace": "Type.Dictionary", "doc": "Dictionary of duration values", "methods": [ { - "$id": "188", + "$id": "149", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "189", + "$id": "150", "name": "get", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "190", + "$id": "151", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2258,27 +2049,27 @@ ], "responses": [ { - "$id": "191", + "$id": "152", "statusCodes": [ 200 ], "bodyType": { - "$id": "192", + "$id": "153", "kind": "dict", "keyType": { - "$id": "193", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "194", + "$id": "155", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "195", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2307,7 +2098,7 @@ }, "parameters": [ { - "$id": "196", + "$id": "157", "name": "accept", "nameInRequest": "accept", "type": { @@ -2326,7 +2117,7 @@ ], "response": { "type": { - "$ref": "192" + "$ref": "153" } }, "isOverride": false, @@ -2335,19 +2126,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get" }, { - "$id": "197", + "$id": "158", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "198", + "$id": "159", "name": "put", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "199", + "$id": "160", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2365,35 +2156,11 @@ "skipUrlEncoding": false }, { - "$id": "200", + "$id": "161", "name": "body", "nameInRequest": "body", "type": { - "$id": "201", - "kind": "dict", - "keyType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "203", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] + "$ref": "153" }, "location": "Body", "isApiVersion": false, @@ -2408,7 +2175,7 @@ ], "responses": [ { - "$id": "205", + "$id": "162", "statusCodes": [ 204 ], @@ -2430,35 +2197,11 @@ }, "parameters": [ { - "$id": "206", + "$id": "163", "name": "body", "nameInRequest": "body", "type": { - "$id": "207", - "kind": "dict", - "keyType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "209", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] + "$ref": "153" }, "location": "Body", "isApiVersion": false, @@ -2471,7 +2214,7 @@ "skipUrlEncoding": false }, { - "$id": "211", + "$id": "164", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2528,30 +2271,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "212", + "$id": "165", "kind": "client", "name": "UnknownValue", "namespace": "Type.Dictionary", "doc": "Dictionary of unknown values", "methods": [ { - "$id": "213", + "$id": "166", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "214", + "$id": "167", "name": "get", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "215", + "$id": "168", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2570,22 +2313,22 @@ ], "responses": [ { - "$id": "216", + "$id": "169", "statusCodes": [ 200 ], "bodyType": { - "$id": "217", + "$id": "170", "kind": "dict", "keyType": { - "$id": "218", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "219", + "$id": "172", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2611,7 +2354,7 @@ }, "parameters": [ { - "$id": "220", + "$id": "173", "name": "accept", "nameInRequest": "accept", "type": { @@ -2630,7 +2373,7 @@ ], "response": { "type": { - "$ref": "217" + "$ref": "170" } }, "isOverride": false, @@ -2639,19 +2382,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get" }, { - "$id": "221", + "$id": "174", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "222", + "$id": "175", "name": "put", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "223", + "$id": "176", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2669,27 +2412,11 @@ "skipUrlEncoding": false }, { - "$id": "224", + "$id": "177", "name": "body", "nameInRequest": "body", "type": { - "$id": "225", - "kind": "dict", - "keyType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "227", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] + "$ref": "170" }, "location": "Body", "isApiVersion": false, @@ -2704,7 +2431,7 @@ ], "responses": [ { - "$id": "228", + "$id": "178", "statusCodes": [ 204 ], @@ -2726,27 +2453,11 @@ }, "parameters": [ { - "$id": "229", + "$id": "179", "name": "body", "nameInRequest": "body", "type": { - "$id": "230", - "kind": "dict", - "keyType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "232", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] + "$ref": "170" }, "location": "Body", "isApiVersion": false, @@ -2759,7 +2470,7 @@ "skipUrlEncoding": false }, { - "$id": "233", + "$id": "180", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2816,30 +2527,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "234", + "$id": "181", "kind": "client", "name": "ModelValue", "namespace": "Type.Dictionary", "doc": "Dictionary of model values", "methods": [ { - "$id": "235", + "$id": "182", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "236", + "$id": "183", "name": "get", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "237", + "$id": "184", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2858,19 +2569,15 @@ ], "responses": [ { - "$id": "238", + "$id": "185", "statusCodes": [ 200 ], "bodyType": { - "$id": "239", + "$id": "186", "kind": "dict", "keyType": { - "$id": "240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$ref": "49" }, "valueType": { "$ref": "45" @@ -2895,7 +2602,7 @@ }, "parameters": [ { - "$id": "241", + "$id": "187", "name": "accept", "nameInRequest": "accept", "type": { @@ -2914,7 +2621,7 @@ ], "response": { "type": { - "$ref": "239" + "$ref": "186" } }, "isOverride": false, @@ -2923,19 +2630,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" }, { - "$id": "242", + "$id": "188", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "243", + "$id": "189", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "244", + "$id": "190", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2953,23 +2660,11 @@ "skipUrlEncoding": false }, { - "$id": "245", + "$id": "191", "name": "body", "nameInRequest": "body", "type": { - "$id": "246", - "kind": "dict", - "keyType": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "45" - }, - "decorators": [] + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -2984,7 +2679,7 @@ ], "responses": [ { - "$id": "248", + "$id": "192", "statusCodes": [ 204 ], @@ -3006,23 +2701,11 @@ }, "parameters": [ { - "$id": "249", + "$id": "193", "name": "body", "nameInRequest": "body", "type": { - "$id": "250", - "kind": "dict", - "keyType": { - "$id": "251", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "45" - }, - "decorators": [] + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -3035,7 +2718,7 @@ "skipUrlEncoding": false }, { - "$id": "252", + "$id": "194", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3092,30 +2775,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "253", + "$id": "195", "kind": "client", "name": "RecursiveModelValue", "namespace": "Type.Dictionary", "doc": "Dictionary of model values", "methods": [ { - "$id": "254", + "$id": "196", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "255", + "$id": "197", "name": "get", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "256", + "$id": "198", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3134,24 +2817,12 @@ ], "responses": [ { - "$id": "257", + "$id": "199", "statusCodes": [ 200 ], "bodyType": { - "$id": "258", - "kind": "dict", - "keyType": { - "$id": "259", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "45" - }, - "decorators": [] + "$ref": "186" }, "headers": [], "isErrorResponse": false, @@ -3171,7 +2842,7 @@ }, "parameters": [ { - "$id": "260", + "$id": "200", "name": "accept", "nameInRequest": "accept", "type": { @@ -3190,7 +2861,7 @@ ], "response": { "type": { - "$ref": "258" + "$ref": "186" } }, "isOverride": false, @@ -3199,19 +2870,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" }, { - "$id": "261", + "$id": "201", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "262", + "$id": "202", "name": "put", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "263", + "$id": "203", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3229,23 +2900,11 @@ "skipUrlEncoding": false }, { - "$id": "264", + "$id": "204", "name": "body", "nameInRequest": "body", "type": { - "$id": "265", - "kind": "dict", - "keyType": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "45" - }, - "decorators": [] + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -3260,7 +2919,7 @@ ], "responses": [ { - "$id": "267", + "$id": "205", "statusCodes": [ 204 ], @@ -3282,23 +2941,11 @@ }, "parameters": [ { - "$id": "268", + "$id": "206", "name": "body", "nameInRequest": "body", "type": { - "$id": "269", - "kind": "dict", - "keyType": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "45" - }, - "decorators": [] + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -3311,7 +2958,7 @@ "skipUrlEncoding": false }, { - "$id": "271", + "$id": "207", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3368,30 +3015,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } }, { - "$id": "272", + "$id": "208", "kind": "client", "name": "NullableFloatValue", "namespace": "Type.Dictionary", "doc": "Dictionary of nullable float values", "methods": [ { - "$id": "273", + "$id": "209", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "274", + "$id": "210", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "275", + "$id": "211", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3410,25 +3057,25 @@ ], "responses": [ { - "$id": "276", + "$id": "212", "statusCodes": [ 200 ], "bodyType": { - "$id": "277", + "$id": "213", "kind": "dict", "keyType": { - "$id": "278", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "279", + "$id": "215", "kind": "nullable", "type": { - "$id": "280", + "$id": "216", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -3456,7 +3103,7 @@ }, "parameters": [ { - "$id": "281", + "$id": "217", "name": "accept", "nameInRequest": "accept", "type": { @@ -3475,7 +3122,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "213" } }, "isOverride": false, @@ -3484,19 +3131,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" }, { - "$id": "282", + "$id": "218", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "283", + "$id": "219", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "284", + "$id": "220", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3514,23 +3161,11 @@ "skipUrlEncoding": false }, { - "$id": "285", + "$id": "221", "name": "body", "nameInRequest": "body", "type": { - "$id": "286", - "kind": "dict", - "keyType": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "279" - }, - "decorators": [] + "$ref": "213" }, "location": "Body", "isApiVersion": false, @@ -3545,7 +3180,7 @@ ], "responses": [ { - "$id": "288", + "$id": "222", "statusCodes": [ 204 ], @@ -3567,23 +3202,11 @@ }, "parameters": [ { - "$id": "289", + "$id": "223", "name": "body", "nameInRequest": "body", "type": { - "$id": "290", - "kind": "dict", - "keyType": { - "$id": "291", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "279" - }, - "decorators": [] + "$ref": "213" }, "location": "Body", "isApiVersion": false, @@ -3596,7 +3219,7 @@ "skipUrlEncoding": false }, { - "$id": "292", + "$id": "224", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3653,7 +3276,7 @@ "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", "apiVersions": [], "parent": { - "$ref": "51" + "$ref": "50" } } ] 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 bbd37d6e1e4..f1fdfbeeb9f 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 @@ -314,18 +314,7 @@ "$id": "34", "kind": "nullable", "type": { - "$id": "35", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "36", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "28" }, "namespace": "" }, @@ -342,23 +331,23 @@ } }, { - "$id": "37", + "$id": "35", "kind": "property", "name": "optionalStringRecord", "serializedName": "optionalStringRecord", "doc": "Optional readonly string dictionary.", "type": { - "$id": "38", + "$id": "36", "kind": "dict", "keyType": { - "$id": "39", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "40", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -383,31 +372,31 @@ ], "clients": [ { - "$id": "41", + "$id": "39", "kind": "client", "name": "VisibilityClient", "namespace": "Type.Model.Visibility", "doc": "Illustrates models with visibility properties.", "methods": [ { - "$id": "42", + "$id": "40", "kind": "basic", "name": "getModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "43", + "$id": "41", "name": "getModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "44", + "$id": "42", "name": "queryProp", "nameInRequest": "queryProp", "doc": "Required int32, illustrating a query property.", "type": { - "$id": "45", + "$id": "43", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -424,7 +413,7 @@ "skipUrlEncoding": false }, { - "$id": "46", + "$id": "44", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -442,7 +431,7 @@ "skipUrlEncoding": false }, { - "$id": "47", + "$id": "45", "name": "accept", "nameInRequest": "Accept", "type": { @@ -459,7 +448,7 @@ "skipUrlEncoding": false }, { - "$id": "48", + "$id": "46", "name": "input", "nameInRequest": "input", "type": { @@ -478,7 +467,7 @@ ], "responses": [ { - "$id": "49", + "$id": "47", "statusCodes": [ 200 ], @@ -506,7 +495,7 @@ }, "parameters": [ { - "$id": "50", + "$id": "48", "name": "input", "nameInRequest": "input", "type": { @@ -523,7 +512,7 @@ "skipUrlEncoding": false }, { - "$id": "51", + "$id": "49", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -541,7 +530,7 @@ "skipUrlEncoding": false }, { - "$id": "52", + "$id": "50", "name": "accept", "nameInRequest": "accept", "type": { @@ -569,24 +558,24 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.getModel" }, { - "$id": "53", + "$id": "51", "kind": "basic", "name": "headModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "54", + "$id": "52", "name": "headModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "55", + "$id": "53", "name": "queryProp", "nameInRequest": "queryProp", "doc": "Required int32, illustrating a query property.", "type": { - "$id": "56", + "$id": "54", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -603,7 +592,7 @@ "skipUrlEncoding": false }, { - "$id": "57", + "$id": "55", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -621,7 +610,7 @@ "skipUrlEncoding": false }, { - "$id": "58", + "$id": "56", "name": "input", "nameInRequest": "input", "type": { @@ -640,7 +629,7 @@ ], "responses": [ { - "$id": "59", + "$id": "57", "statusCodes": [ 200 ], @@ -662,7 +651,7 @@ }, "parameters": [ { - "$id": "60", + "$id": "58", "name": "input", "nameInRequest": "input", "type": { @@ -679,7 +668,7 @@ "skipUrlEncoding": false }, { - "$id": "61", + "$id": "59", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -704,19 +693,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.headModel" }, { - "$id": "62", + "$id": "60", "kind": "basic", "name": "putModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "63", + "$id": "61", "name": "putModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "64", + "$id": "62", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -734,7 +723,7 @@ "skipUrlEncoding": false }, { - "$id": "65", + "$id": "63", "name": "input", "nameInRequest": "input", "type": { @@ -753,7 +742,7 @@ ], "responses": [ { - "$id": "66", + "$id": "64", "statusCodes": [ 204 ], @@ -775,7 +764,7 @@ }, "parameters": [ { - "$id": "67", + "$id": "65", "name": "input", "nameInRequest": "input", "type": { @@ -792,7 +781,7 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "66", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -817,19 +806,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.putModel" }, { - "$id": "69", + "$id": "67", "kind": "basic", "name": "patchModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "70", + "$id": "68", "name": "patchModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "69", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -847,7 +836,7 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "70", "name": "input", "nameInRequest": "input", "type": { @@ -866,7 +855,7 @@ ], "responses": [ { - "$id": "73", + "$id": "71", "statusCodes": [ 204 ], @@ -888,7 +877,7 @@ }, "parameters": [ { - "$id": "74", + "$id": "72", "name": "input", "nameInRequest": "input", "type": { @@ -905,7 +894,7 @@ "skipUrlEncoding": false }, { - "$id": "75", + "$id": "73", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -930,19 +919,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel" }, { - "$id": "76", + "$id": "74", "kind": "basic", "name": "postModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "77", + "$id": "75", "name": "postModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "76", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -960,7 +949,7 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "77", "name": "input", "nameInRequest": "input", "type": { @@ -979,7 +968,7 @@ ], "responses": [ { - "$id": "80", + "$id": "78", "statusCodes": [ 204 ], @@ -1001,7 +990,7 @@ }, "parameters": [ { - "$id": "81", + "$id": "79", "name": "input", "nameInRequest": "input", "type": { @@ -1018,7 +1007,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "80", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1043,19 +1032,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.postModel" }, { - "$id": "83", + "$id": "81", "kind": "basic", "name": "deleteModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "84", + "$id": "82", "name": "deleteModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "83", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1073,7 +1062,7 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "84", "name": "input", "nameInRequest": "input", "type": { @@ -1092,7 +1081,7 @@ ], "responses": [ { - "$id": "87", + "$id": "85", "statusCodes": [ 204 ], @@ -1114,7 +1103,7 @@ }, "parameters": [ { - "$id": "88", + "$id": "86", "name": "input", "nameInRequest": "input", "type": { @@ -1131,7 +1120,7 @@ "skipUrlEncoding": false }, { - "$id": "89", + "$id": "87", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1156,19 +1145,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel" }, { - "$id": "90", + "$id": "88", "kind": "basic", "name": "putReadOnlyModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "91", + "$id": "89", "name": "putReadOnlyModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "90", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1186,7 +1175,7 @@ "skipUrlEncoding": false }, { - "$id": "93", + "$id": "91", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1203,7 +1192,7 @@ "skipUrlEncoding": false }, { - "$id": "94", + "$id": "92", "name": "input", "nameInRequest": "input", "type": { @@ -1222,7 +1211,7 @@ ], "responses": [ { - "$id": "95", + "$id": "93", "statusCodes": [ 200 ], @@ -1250,7 +1239,7 @@ }, "parameters": [ { - "$id": "96", + "$id": "94", "name": "input", "nameInRequest": "input", "type": { @@ -1267,7 +1256,7 @@ "skipUrlEncoding": false }, { - "$id": "97", + "$id": "95", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1285,7 +1274,7 @@ "skipUrlEncoding": false }, { - "$id": "98", + "$id": "96", "name": "accept", "nameInRequest": "accept", "type": { 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 a6124198e7c..3da63c75934 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 @@ -1196,20 +1196,16 @@ "doc": "The model extends from Record with a discriminator.", "decorators": [], "additionalProperties": { - "$id": "145", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] + "$ref": "136" }, "discriminatorProperty": { - "$id": "146", + "$id": "145", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "The discriminator", "type": { - "$id": "147", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1229,13 +1225,13 @@ }, "properties": [ { - "$id": "148", + "$id": "147", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "149", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1254,12 +1250,12 @@ } }, { - "$ref": "146" + "$ref": "145" } ], "discriminatedSubtypes": { "derived": { - "$id": "150", + "$id": "149", "kind": "model", "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerived", "namespace": "Type.Property.AdditionalProperties", @@ -1273,7 +1269,7 @@ }, "properties": [ { - "$id": "151", + "$id": "150", "kind": "property", "name": "kind", "serializedName": "kind", @@ -1293,13 +1289,13 @@ } }, { - "$id": "152", + "$id": "151", "kind": "property", "name": "index", "serializedName": "index", "doc": "The index property", "type": { - "$id": "153", + "$id": "152", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1318,13 +1314,13 @@ } }, { - "$id": "154", + "$id": "153", "kind": "property", "name": "age", "serializedName": "age", "doc": "The age property", "type": { - "$id": "155", + "$id": "154", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1347,10 +1343,10 @@ } }, { - "$ref": "150" + "$ref": "149" }, { - "$id": "156", + "$id": "155", "kind": "model", "name": "IsUnknownAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1359,7 +1355,7 @@ "doc": "The model is from Record type.", "decorators": [], "additionalProperties": { - "$id": "157", + "$id": "156", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1367,13 +1363,13 @@ }, "properties": [ { - "$id": "158", + "$id": "157", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "159", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1394,7 +1390,7 @@ ] }, { - "$id": "160", + "$id": "159", "kind": "model", "name": "IsUnknownAdditionalPropertiesDerived", "namespace": "Type.Property.AdditionalProperties", @@ -1403,17 +1399,17 @@ "doc": "The model extends from a type that is Record type", "decorators": [], "baseModel": { - "$ref": "156" + "$ref": "155" }, "properties": [ { - "$id": "161", + "$id": "160", "kind": "property", "name": "index", "serializedName": "index", "doc": "The index property", "type": { - "$id": "162", + "$id": "161", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1432,13 +1428,13 @@ } }, { - "$id": "163", + "$id": "162", "kind": "property", "name": "age", "serializedName": "age", "doc": "The age property", "type": { - "$id": "164", + "$id": "163", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1459,7 +1455,7 @@ ] }, { - "$id": "165", + "$id": "164", "kind": "model", "name": "IsUnknownAdditionalPropertiesDiscriminated", "namespace": "Type.Property.AdditionalProperties", @@ -1468,20 +1464,20 @@ "doc": "The model is Record with a discriminator.", "decorators": [], "additionalProperties": { - "$id": "166", + "$id": "165", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", "decorators": [] }, "discriminatorProperty": { - "$id": "167", + "$id": "166", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "The discriminator", "type": { - "$id": "168", + "$id": "167", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1501,13 +1497,13 @@ }, "properties": [ { - "$id": "169", + "$id": "168", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "170", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1526,12 +1522,12 @@ } }, { - "$ref": "167" + "$ref": "166" } ], "discriminatedSubtypes": { "derived": { - "$id": "171", + "$id": "170", "kind": "model", "name": "IsUnknownAdditionalPropertiesDiscriminatedDerived", "namespace": "Type.Property.AdditionalProperties", @@ -1541,11 +1537,11 @@ "discriminatorValue": "derived", "decorators": [], "baseModel": { - "$ref": "165" + "$ref": "164" }, "properties": [ { - "$id": "172", + "$id": "171", "kind": "property", "name": "kind", "serializedName": "kind", @@ -1565,13 +1561,13 @@ } }, { - "$id": "173", + "$id": "172", "kind": "property", "name": "index", "serializedName": "index", "doc": "The index property", "type": { - "$id": "174", + "$id": "173", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1590,13 +1586,13 @@ } }, { - "$id": "175", + "$id": "174", "kind": "property", "name": "age", "serializedName": "age", "doc": "The age property", "type": { - "$id": "176", + "$id": "175", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1619,10 +1615,10 @@ } }, { - "$ref": "171" + "$ref": "170" }, { - "$id": "177", + "$id": "176", "kind": "model", "name": "ExtendsStringAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1631,7 +1627,7 @@ "doc": "The model extends from Record type.", "decorators": [], "additionalProperties": { - "$id": "178", + "$id": "177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1639,13 +1635,13 @@ }, "properties": [ { - "$id": "179", + "$id": "178", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "180", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1666,7 +1662,7 @@ ] }, { - "$id": "181", + "$id": "180", "kind": "model", "name": "IsStringAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1675,7 +1671,7 @@ "doc": "The model is from Record type.", "decorators": [], "additionalProperties": { - "$id": "182", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1683,13 +1679,13 @@ }, "properties": [ { - "$id": "183", + "$id": "182", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "184", + "$id": "183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1710,7 +1706,7 @@ ] }, { - "$id": "185", + "$id": "184", "kind": "model", "name": "SpreadStringRecord", "namespace": "Type.Property.AdditionalProperties", @@ -1719,7 +1715,7 @@ "doc": "The model spread Record with the same known property type", "decorators": [], "additionalProperties": { - "$id": "186", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1727,13 +1723,13 @@ }, "properties": [ { - "$id": "187", + "$id": "186", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "188", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1754,7 +1750,7 @@ ] }, { - "$id": "189", + "$id": "188", "kind": "model", "name": "ExtendsFloatAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1763,7 +1759,7 @@ "doc": "The model extends from Record type.", "decorators": [], "additionalProperties": { - "$id": "190", + "$id": "189", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1771,13 +1767,13 @@ }, "properties": [ { - "$id": "191", + "$id": "190", "kind": "property", "name": "id", "serializedName": "id", "doc": "The id property", "type": { - "$id": "192", + "$id": "191", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1798,7 +1794,7 @@ ] }, { - "$id": "193", + "$id": "192", "kind": "model", "name": "IsFloatAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1807,7 +1803,7 @@ "doc": "The model is from Record type.", "decorators": [], "additionalProperties": { - "$id": "194", + "$id": "193", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1815,13 +1811,13 @@ }, "properties": [ { - "$id": "195", + "$id": "194", "kind": "property", "name": "id", "serializedName": "id", "doc": "The id property", "type": { - "$id": "196", + "$id": "195", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1842,7 +1838,7 @@ ] }, { - "$id": "197", + "$id": "196", "kind": "model", "name": "SpreadFloatRecord", "namespace": "Type.Property.AdditionalProperties", @@ -1851,7 +1847,7 @@ "doc": "The model spread Record with the same known property type", "decorators": [], "additionalProperties": { - "$id": "198", + "$id": "197", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1859,13 +1855,13 @@ }, "properties": [ { - "$id": "199", + "$id": "198", "kind": "property", "name": "id", "serializedName": "id", "doc": "The id property", "type": { - "$id": "200", + "$id": "199", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1886,7 +1882,7 @@ ] }, { - "$id": "201", + "$id": "200", "kind": "model", "name": "ExtendsModelAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1895,7 +1891,7 @@ "doc": "The model extends from Record type.", "decorators": [], "additionalProperties": { - "$id": "202", + "$id": "201", "kind": "model", "name": "ModelForRecord", "namespace": "Type.Property.AdditionalProperties", @@ -1905,13 +1901,13 @@ "decorators": [], "properties": [ { - "$id": "203", + "$id": "202", "kind": "property", "name": "state", "serializedName": "state", "doc": "The state property", "type": { - "$id": "204", + "$id": "203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1933,12 +1929,12 @@ }, "properties": [ { - "$id": "205", + "$id": "204", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$ref": "202" + "$ref": "201" }, "optional": false, "readOnly": false, @@ -1955,10 +1951,10 @@ ] }, { - "$ref": "202" + "$ref": "201" }, { - "$id": "206", + "$id": "205", "kind": "model", "name": "IsModelAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -1967,16 +1963,16 @@ "doc": "The model is from Record type.", "decorators": [], "additionalProperties": { - "$ref": "202" + "$ref": "201" }, "properties": [ { - "$id": "207", + "$id": "206", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$ref": "202" + "$ref": "201" }, "optional": false, "readOnly": false, @@ -1993,7 +1989,7 @@ ] }, { - "$id": "208", + "$id": "207", "kind": "model", "name": "SpreadModelRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2002,16 +1998,16 @@ "doc": "The model spread Record with the same known property type", "decorators": [], "additionalProperties": { - "$ref": "202" + "$ref": "201" }, "properties": [ { - "$id": "209", + "$id": "208", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$ref": "202" + "$ref": "201" }, "optional": false, "readOnly": false, @@ -2028,7 +2024,7 @@ ] }, { - "$id": "210", + "$id": "209", "kind": "model", "name": "ExtendsModelArrayAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -2037,30 +2033,23 @@ "doc": "The model extends from Record type.", "decorators": [], "additionalProperties": { - "$id": "211", + "$id": "210", "kind": "array", "name": "ArrayModelForRecord", "valueType": { - "$ref": "202" + "$ref": "201" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] }, "properties": [ { - "$id": "212", + "$id": "211", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$id": "213", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "optional": false, "readOnly": false, @@ -2077,7 +2066,7 @@ ] }, { - "$id": "214", + "$id": "212", "kind": "model", "name": "IsModelArrayAdditionalProperties", "namespace": "Type.Property.AdditionalProperties", @@ -2086,30 +2075,16 @@ "doc": "The model is from Record type.", "decorators": [], "additionalProperties": { - "$id": "215", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "properties": [ { - "$id": "216", + "$id": "213", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$id": "217", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "optional": false, "readOnly": false, @@ -2126,7 +2101,7 @@ ] }, { - "$id": "218", + "$id": "214", "kind": "model", "name": "SpreadModelArrayRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2134,30 +2109,16 @@ "usage": "Input,Output,Json", "decorators": [], "additionalProperties": { - "$id": "219", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "properties": [ { - "$id": "220", + "$id": "215", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$id": "221", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "optional": false, "readOnly": false, @@ -2174,7 +2135,7 @@ ] }, { - "$id": "222", + "$id": "216", "kind": "model", "name": "DifferentSpreadStringRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2183,7 +2144,7 @@ "doc": "The model spread Record with the different known property type", "decorators": [], "additionalProperties": { - "$id": "223", + "$id": "217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2191,13 +2152,13 @@ }, "properties": [ { - "$id": "224", + "$id": "218", "kind": "property", "name": "id", "serializedName": "id", "doc": "The name property", "type": { - "$id": "225", + "$id": "219", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2218,7 +2179,7 @@ ] }, { - "$id": "226", + "$id": "220", "kind": "model", "name": "DifferentSpreadFloatRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2227,7 +2188,7 @@ "doc": "The model spread Record with the different known property type", "decorators": [], "additionalProperties": { - "$id": "227", + "$id": "221", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2235,13 +2196,13 @@ }, "properties": [ { - "$id": "228", + "$id": "222", "kind": "property", "name": "name", "serializedName": "name", "doc": "The id property", "type": { - "$id": "229", + "$id": "223", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2262,7 +2223,7 @@ ] }, { - "$id": "230", + "$id": "224", "kind": "model", "name": "DifferentSpreadModelRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2271,16 +2232,16 @@ "doc": "The model spread Record with the different known property type", "decorators": [], "additionalProperties": { - "$ref": "202" + "$ref": "201" }, "properties": [ { - "$id": "231", + "$id": "225", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$id": "232", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2301,7 +2262,7 @@ ] }, { - "$id": "233", + "$id": "227", "kind": "model", "name": "DifferentSpreadModelArrayRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2310,23 +2271,16 @@ "doc": "The model spread Record with the different known property type", "decorators": [], "additionalProperties": { - "$id": "234", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "properties": [ { - "$id": "235", + "$id": "228", "kind": "property", "name": "knownProp", "serializedName": "knownProp", "type": { - "$id": "236", + "$id": "229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2347,7 +2301,7 @@ ] }, { - "$id": "237", + "$id": "230", "kind": "model", "name": "DifferentSpreadStringDerived", "namespace": "Type.Property.AdditionalProperties", @@ -2356,17 +2310,17 @@ "doc": "The model extends from a model that spread Record with the different known property type", "decorators": [], "baseModel": { - "$ref": "222" + "$ref": "216" }, "properties": [ { - "$id": "238", + "$id": "231", "kind": "property", "name": "derivedProp", "serializedName": "derivedProp", "doc": "The index property", "type": { - "$id": "239", + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2387,7 +2341,7 @@ ] }, { - "$id": "240", + "$id": "233", "kind": "model", "name": "DifferentSpreadFloatDerived", "namespace": "Type.Property.AdditionalProperties", @@ -2396,17 +2350,17 @@ "doc": "The model extends from a model that spread Record with the different known property type", "decorators": [], "baseModel": { - "$ref": "226" + "$ref": "220" }, "properties": [ { - "$id": "241", + "$id": "234", "kind": "property", "name": "derivedProp", "serializedName": "derivedProp", "doc": "The index property", "type": { - "$id": "242", + "$id": "235", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2427,7 +2381,7 @@ ] }, { - "$id": "243", + "$id": "236", "kind": "model", "name": "DifferentSpreadModelDerived", "namespace": "Type.Property.AdditionalProperties", @@ -2436,17 +2390,17 @@ "doc": "The model extends from a model that spread Record with the different known property type", "decorators": [], "baseModel": { - "$ref": "230" + "$ref": "224" }, "properties": [ { - "$id": "244", + "$id": "237", "kind": "property", "name": "derivedProp", "serializedName": "derivedProp", "doc": "The index property", "type": { - "$ref": "202" + "$ref": "201" }, "optional": false, "readOnly": false, @@ -2463,7 +2417,7 @@ ] }, { - "$id": "245", + "$id": "238", "kind": "model", "name": "DifferentSpreadModelArrayDerived", "namespace": "Type.Property.AdditionalProperties", @@ -2472,24 +2426,17 @@ "doc": "The model extends from a model that spread Record with the different known property type", "decorators": [], "baseModel": { - "$ref": "233" + "$ref": "227" }, "properties": [ { - "$id": "246", + "$id": "239", "kind": "property", "name": "derivedProp", "serializedName": "derivedProp", "doc": "The index property", "type": { - "$id": "247", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "202" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "210" }, "optional": false, "readOnly": false, @@ -2506,7 +2453,7 @@ ] }, { - "$id": "248", + "$id": "240", "kind": "model", "name": "MultipleSpreadRecord", "namespace": "Type.Property.AdditionalProperties", @@ -2515,19 +2462,19 @@ "doc": "The model spread Record and Record", "decorators": [], "additionalProperties": { - "$id": "249", + "$id": "241", "kind": "union", "name": "MultipleSpreadRecordAdditionalProperty", "variantTypes": [ { - "$id": "250", + "$id": "242", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "251", + "$id": "243", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2539,13 +2486,13 @@ }, "properties": [ { - "$id": "252", + "$id": "244", "kind": "property", "name": "flag", "serializedName": "flag", "doc": "The name property", "type": { - "$id": "253", + "$id": "245", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2566,7 +2513,7 @@ ] }, { - "$id": "254", + "$id": "246", "kind": "model", "name": "SpreadRecordForUnion", "namespace": "Type.Property.AdditionalProperties", @@ -2575,19 +2522,19 @@ "doc": "The model spread Record", "decorators": [], "additionalProperties": { - "$id": "255", + "$id": "247", "kind": "union", "name": "SpreadRecordForUnionAdditionalProperty", "variantTypes": [ { - "$id": "256", + "$id": "248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "257", + "$id": "249", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2599,13 +2546,13 @@ }, "properties": [ { - "$id": "258", + "$id": "250", "kind": "property", "name": "flag", "serializedName": "flag", "doc": "The name property", "type": { - "$id": "259", + "$id": "251", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2626,7 +2573,7 @@ ] }, { - "$id": "260", + "$id": "252", "kind": "model", "name": "SpreadRecordForNonDiscriminatedUnion", "namespace": "Type.Property.AdditionalProperties", @@ -2635,12 +2582,12 @@ "doc": "The model spread Record", "decorators": [], "additionalProperties": { - "$id": "261", + "$id": "253", "kind": "union", "name": "SpreadRecordForNonDiscriminatedUnionAdditionalProperty", "variantTypes": [ { - "$id": "262", + "$id": "254", "kind": "model", "name": "WidgetData0", "namespace": "Type.Property.AdditionalProperties", @@ -2649,7 +2596,7 @@ "decorators": [], "properties": [ { - "$id": "263", + "$id": "255", "kind": "property", "name": "kind", "serializedName": "kind", @@ -2669,12 +2616,12 @@ } }, { - "$id": "264", + "$id": "256", "kind": "property", "name": "fooProp", "serializedName": "fooProp", "type": { - "$id": "265", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2695,7 +2642,7 @@ ] }, { - "$id": "266", + "$id": "258", "kind": "model", "name": "WidgetData1", "namespace": "Type.Property.AdditionalProperties", @@ -2704,7 +2651,7 @@ "decorators": [], "properties": [ { - "$id": "267", + "$id": "259", "kind": "property", "name": "kind", "serializedName": "kind", @@ -2724,17 +2671,17 @@ } }, { - "$id": "268", + "$id": "260", "kind": "property", "name": "start", "serializedName": "start", "type": { - "$id": "269", + "$id": "261", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "270", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2756,17 +2703,17 @@ } }, { - "$id": "271", + "$id": "263", "kind": "property", "name": "end", "serializedName": "end", "type": { - "$id": "272", + "$id": "264", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "273", + "$id": "265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2795,13 +2742,13 @@ }, "properties": [ { - "$id": "274", + "$id": "266", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "275", + "$id": "267", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2822,13 +2769,13 @@ ] }, { - "$ref": "262" + "$ref": "254" }, { - "$ref": "266" + "$ref": "258" }, { - "$id": "276", + "$id": "268", "kind": "model", "name": "SpreadRecordForNonDiscriminatedUnion2", "namespace": "Type.Property.AdditionalProperties", @@ -2837,12 +2784,12 @@ "doc": "The model spread Record", "decorators": [], "additionalProperties": { - "$id": "277", + "$id": "269", "kind": "union", "name": "SpreadRecordForNonDiscriminatedUnion2AdditionalProperty", "variantTypes": [ { - "$id": "278", + "$id": "270", "kind": "model", "name": "WidgetData2", "namespace": "Type.Property.AdditionalProperties", @@ -2851,7 +2798,7 @@ "decorators": [], "properties": [ { - "$id": "279", + "$id": "271", "kind": "property", "name": "kind", "serializedName": "kind", @@ -2871,12 +2818,12 @@ } }, { - "$id": "280", + "$id": "272", "kind": "property", "name": "start", "serializedName": "start", "type": { - "$id": "281", + "$id": "273", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2897,7 +2844,7 @@ ] }, { - "$ref": "266" + "$ref": "258" } ], "namespace": "", @@ -2905,13 +2852,13 @@ }, "properties": [ { - "$id": "282", + "$id": "274", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "283", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2932,10 +2879,10 @@ ] }, { - "$ref": "278" + "$ref": "270" }, { - "$id": "284", + "$id": "276", "kind": "model", "name": "SpreadRecordForNonDiscriminatedUnion3", "namespace": "Type.Property.AdditionalProperties", @@ -2944,22 +2891,22 @@ "doc": "The model spread Record", "decorators": [], "additionalProperties": { - "$id": "285", + "$id": "277", "kind": "union", "name": "SpreadRecordForNonDiscriminatedUnion3AdditionalProperty", "variantTypes": [ { - "$id": "286", + "$id": "278", "kind": "array", "name": "ArrayWidgetData2", "valueType": { - "$ref": "278" + "$ref": "270" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] }, { - "$ref": "266" + "$ref": "258" } ], "namespace": "", @@ -2967,13 +2914,13 @@ }, "properties": [ { - "$id": "287", + "$id": "279", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name property", "type": { - "$id": "288", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2996,7 +2943,7 @@ ], "clients": [ { - "$id": "289", + "$id": "281", "kind": "client", "name": "AdditionalPropertiesClient", "namespace": "Type.Property.AdditionalProperties", @@ -3035,27 +2982,27 @@ "apiVersions": [], "children": [ { - "$id": "290", + "$id": "282", "kind": "client", "name": "ExtendsUnknown", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "291", + "$id": "283", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "292", + "$id": "284", "name": "get", "resourceName": "ExtendsUnknown", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "293", + "$id": "285", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3074,7 +3021,7 @@ ], "responses": [ { - "$id": "294", + "$id": "286", "statusCodes": [ 200 ], @@ -3099,7 +3046,7 @@ }, "parameters": [ { - "$id": "295", + "$id": "287", "name": "accept", "nameInRequest": "accept", "type": { @@ -3127,21 +3074,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get" }, { - "$id": "296", + "$id": "288", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "297", + "$id": "289", "name": "put", "resourceName": "ExtendsUnknown", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "298", + "$id": "290", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3159,7 +3106,7 @@ "skipUrlEncoding": false }, { - "$id": "299", + "$id": "291", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3179,7 +3126,7 @@ ], "responses": [ { - "$id": "300", + "$id": "292", "statusCodes": [ 204 ], @@ -3201,7 +3148,7 @@ }, "parameters": [ { - "$id": "301", + "$id": "293", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3219,7 +3166,7 @@ "skipUrlEncoding": false }, { - "$id": "302", + "$id": "294", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3276,31 +3223,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "303", + "$id": "295", "kind": "client", "name": "ExtendsUnknownDerived", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "304", + "$id": "296", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "305", + "$id": "297", "name": "get", "resourceName": "ExtendsUnknownDerived", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "306", + "$id": "298", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3319,7 +3266,7 @@ ], "responses": [ { - "$id": "307", + "$id": "299", "statusCodes": [ 200 ], @@ -3344,7 +3291,7 @@ }, "parameters": [ { - "$id": "308", + "$id": "300", "name": "accept", "nameInRequest": "accept", "type": { @@ -3372,21 +3319,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get" }, { - "$id": "309", + "$id": "301", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "310", + "$id": "302", "name": "put", "resourceName": "ExtendsUnknownDerived", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "311", + "$id": "303", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3404,7 +3351,7 @@ "skipUrlEncoding": false }, { - "$id": "312", + "$id": "304", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3424,7 +3371,7 @@ ], "responses": [ { - "$id": "313", + "$id": "305", "statusCodes": [ 204 ], @@ -3446,7 +3393,7 @@ }, "parameters": [ { - "$id": "314", + "$id": "306", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3464,7 +3411,7 @@ "skipUrlEncoding": false }, { - "$id": "315", + "$id": "307", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3521,31 +3468,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "316", + "$id": "308", "kind": "client", "name": "ExtendsUnknownDiscriminated", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "317", + "$id": "309", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "318", + "$id": "310", "name": "get", "resourceName": "ExtendsUnknownDiscriminated", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "319", + "$id": "311", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3564,7 +3511,7 @@ ], "responses": [ { - "$id": "320", + "$id": "312", "statusCodes": [ 200 ], @@ -3589,7 +3536,7 @@ }, "parameters": [ { - "$id": "321", + "$id": "313", "name": "accept", "nameInRequest": "accept", "type": { @@ -3617,21 +3564,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get" }, { - "$id": "322", + "$id": "314", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "323", + "$id": "315", "name": "put", "resourceName": "ExtendsUnknownDiscriminated", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "316", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3649,7 +3596,7 @@ "skipUrlEncoding": false }, { - "$id": "325", + "$id": "317", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3669,7 +3616,7 @@ ], "responses": [ { - "$id": "326", + "$id": "318", "statusCodes": [ 204 ], @@ -3691,7 +3638,7 @@ }, "parameters": [ { - "$id": "327", + "$id": "319", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3709,7 +3656,7 @@ "skipUrlEncoding": false }, { - "$id": "328", + "$id": "320", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3766,31 +3713,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "329", + "$id": "321", "kind": "client", "name": "IsUnknown", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "330", + "$id": "322", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "331", + "$id": "323", "name": "get", "resourceName": "IsUnknown", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "332", + "$id": "324", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3809,12 +3756,12 @@ ], "responses": [ { - "$id": "333", + "$id": "325", "statusCodes": [ 200 ], "bodyType": { - "$ref": "156" + "$ref": "155" }, "headers": [], "isErrorResponse": false, @@ -3834,7 +3781,7 @@ }, "parameters": [ { - "$id": "334", + "$id": "326", "name": "accept", "nameInRequest": "accept", "type": { @@ -3853,7 +3800,7 @@ ], "response": { "type": { - "$ref": "156" + "$ref": "155" } }, "isOverride": false, @@ -3862,21 +3809,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get" }, { - "$id": "335", + "$id": "327", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "336", + "$id": "328", "name": "put", "resourceName": "IsUnknown", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "337", + "$id": "329", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3894,12 +3841,12 @@ "skipUrlEncoding": false }, { - "$id": "338", + "$id": "330", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "156" + "$ref": "155" }, "location": "Body", "isApiVersion": false, @@ -3914,7 +3861,7 @@ ], "responses": [ { - "$id": "339", + "$id": "331", "statusCodes": [ 204 ], @@ -3936,12 +3883,12 @@ }, "parameters": [ { - "$id": "340", + "$id": "332", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "156" + "$ref": "155" }, "location": "Body", "isApiVersion": false, @@ -3954,7 +3901,7 @@ "skipUrlEncoding": false }, { - "$id": "341", + "$id": "333", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4011,31 +3958,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "342", + "$id": "334", "kind": "client", "name": "IsUnknownDerived", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "343", + "$id": "335", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "344", + "$id": "336", "name": "get", "resourceName": "IsUnknownDerived", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "345", + "$id": "337", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4054,12 +4001,12 @@ ], "responses": [ { - "$id": "346", + "$id": "338", "statusCodes": [ 200 ], "bodyType": { - "$ref": "160" + "$ref": "159" }, "headers": [], "isErrorResponse": false, @@ -4079,7 +4026,7 @@ }, "parameters": [ { - "$id": "347", + "$id": "339", "name": "accept", "nameInRequest": "accept", "type": { @@ -4098,7 +4045,7 @@ ], "response": { "type": { - "$ref": "160" + "$ref": "159" } }, "isOverride": false, @@ -4107,21 +4054,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get" }, { - "$id": "348", + "$id": "340", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "349", + "$id": "341", "name": "put", "resourceName": "IsUnknownDerived", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "350", + "$id": "342", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4139,12 +4086,12 @@ "skipUrlEncoding": false }, { - "$id": "351", + "$id": "343", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "160" + "$ref": "159" }, "location": "Body", "isApiVersion": false, @@ -4159,7 +4106,7 @@ ], "responses": [ { - "$id": "352", + "$id": "344", "statusCodes": [ 204 ], @@ -4181,12 +4128,12 @@ }, "parameters": [ { - "$id": "353", + "$id": "345", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "160" + "$ref": "159" }, "location": "Body", "isApiVersion": false, @@ -4199,7 +4146,7 @@ "skipUrlEncoding": false }, { - "$id": "354", + "$id": "346", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4256,31 +4203,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "355", + "$id": "347", "kind": "client", "name": "IsUnknownDiscriminated", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "356", + "$id": "348", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "357", + "$id": "349", "name": "get", "resourceName": "IsUnknownDiscriminated", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "358", + "$id": "350", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4299,12 +4246,12 @@ ], "responses": [ { - "$id": "359", + "$id": "351", "statusCodes": [ 200 ], "bodyType": { - "$ref": "165" + "$ref": "164" }, "headers": [], "isErrorResponse": false, @@ -4324,7 +4271,7 @@ }, "parameters": [ { - "$id": "360", + "$id": "352", "name": "accept", "nameInRequest": "accept", "type": { @@ -4343,7 +4290,7 @@ ], "response": { "type": { - "$ref": "165" + "$ref": "164" } }, "isOverride": false, @@ -4352,21 +4299,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get" }, { - "$id": "361", + "$id": "353", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "362", + "$id": "354", "name": "put", "resourceName": "IsUnknownDiscriminated", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "355", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4384,12 +4331,12 @@ "skipUrlEncoding": false }, { - "$id": "364", + "$id": "356", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "165" + "$ref": "164" }, "location": "Body", "isApiVersion": false, @@ -4404,7 +4351,7 @@ ], "responses": [ { - "$id": "365", + "$id": "357", "statusCodes": [ 204 ], @@ -4426,12 +4373,12 @@ }, "parameters": [ { - "$id": "366", + "$id": "358", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "165" + "$ref": "164" }, "location": "Body", "isApiVersion": false, @@ -4444,7 +4391,7 @@ "skipUrlEncoding": false }, { - "$id": "367", + "$id": "359", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4501,31 +4448,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "368", + "$id": "360", "kind": "client", "name": "ExtendsString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "369", + "$id": "361", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "370", + "$id": "362", "name": "get", "resourceName": "ExtendsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "371", + "$id": "363", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4544,12 +4491,12 @@ ], "responses": [ { - "$id": "372", + "$id": "364", "statusCodes": [ 200 ], "bodyType": { - "$ref": "177" + "$ref": "176" }, "headers": [], "isErrorResponse": false, @@ -4569,7 +4516,7 @@ }, "parameters": [ { - "$id": "373", + "$id": "365", "name": "accept", "nameInRequest": "accept", "type": { @@ -4588,7 +4535,7 @@ ], "response": { "type": { - "$ref": "177" + "$ref": "176" } }, "isOverride": false, @@ -4597,21 +4544,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get" }, { - "$id": "374", + "$id": "366", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "375", + "$id": "367", "name": "put", "resourceName": "ExtendsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "376", + "$id": "368", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4629,12 +4576,12 @@ "skipUrlEncoding": false }, { - "$id": "377", + "$id": "369", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "177" + "$ref": "176" }, "location": "Body", "isApiVersion": false, @@ -4649,7 +4596,7 @@ ], "responses": [ { - "$id": "378", + "$id": "370", "statusCodes": [ 204 ], @@ -4671,12 +4618,12 @@ }, "parameters": [ { - "$id": "379", + "$id": "371", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "177" + "$ref": "176" }, "location": "Body", "isApiVersion": false, @@ -4689,7 +4636,7 @@ "skipUrlEncoding": false }, { - "$id": "380", + "$id": "372", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4746,31 +4693,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "381", + "$id": "373", "kind": "client", "name": "IsString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "382", + "$id": "374", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "383", + "$id": "375", "name": "get", "resourceName": "IsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "384", + "$id": "376", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4789,12 +4736,12 @@ ], "responses": [ { - "$id": "385", + "$id": "377", "statusCodes": [ 200 ], "bodyType": { - "$ref": "181" + "$ref": "180" }, "headers": [], "isErrorResponse": false, @@ -4814,7 +4761,7 @@ }, "parameters": [ { - "$id": "386", + "$id": "378", "name": "accept", "nameInRequest": "accept", "type": { @@ -4833,7 +4780,7 @@ ], "response": { "type": { - "$ref": "181" + "$ref": "180" } }, "isOverride": false, @@ -4842,21 +4789,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get" }, { - "$id": "387", + "$id": "379", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "388", + "$id": "380", "name": "put", "resourceName": "IsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "389", + "$id": "381", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4874,12 +4821,12 @@ "skipUrlEncoding": false }, { - "$id": "390", + "$id": "382", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "181" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -4894,7 +4841,7 @@ ], "responses": [ { - "$id": "391", + "$id": "383", "statusCodes": [ 204 ], @@ -4916,12 +4863,12 @@ }, "parameters": [ { - "$id": "392", + "$id": "384", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "181" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -4934,7 +4881,7 @@ "skipUrlEncoding": false }, { - "$id": "393", + "$id": "385", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4991,31 +4938,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "394", + "$id": "386", "kind": "client", "name": "SpreadString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "395", + "$id": "387", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "396", + "$id": "388", "name": "get", "resourceName": "SpreadString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "397", + "$id": "389", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5034,12 +4981,12 @@ ], "responses": [ { - "$id": "398", + "$id": "390", "statusCodes": [ 200 ], "bodyType": { - "$ref": "185" + "$ref": "184" }, "headers": [], "isErrorResponse": false, @@ -5059,7 +5006,7 @@ }, "parameters": [ { - "$id": "399", + "$id": "391", "name": "accept", "nameInRequest": "accept", "type": { @@ -5078,7 +5025,7 @@ ], "response": { "type": { - "$ref": "185" + "$ref": "184" } }, "isOverride": false, @@ -5087,21 +5034,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get" }, { - "$id": "400", + "$id": "392", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "401", + "$id": "393", "name": "put", "resourceName": "SpreadString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "402", + "$id": "394", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5119,12 +5066,12 @@ "skipUrlEncoding": false }, { - "$id": "403", + "$id": "395", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "185" + "$ref": "184" }, "location": "Body", "isApiVersion": false, @@ -5139,7 +5086,7 @@ ], "responses": [ { - "$id": "404", + "$id": "396", "statusCodes": [ 204 ], @@ -5161,12 +5108,12 @@ }, "parameters": [ { - "$id": "405", + "$id": "397", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "185" + "$ref": "184" }, "location": "Body", "isApiVersion": false, @@ -5179,7 +5126,7 @@ "skipUrlEncoding": false }, { - "$id": "406", + "$id": "398", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5236,31 +5183,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "407", + "$id": "399", "kind": "client", "name": "ExtendsFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "408", + "$id": "400", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "409", + "$id": "401", "name": "get", "resourceName": "ExtendsFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "410", + "$id": "402", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5279,12 +5226,12 @@ ], "responses": [ { - "$id": "411", + "$id": "403", "statusCodes": [ 200 ], "bodyType": { - "$ref": "189" + "$ref": "188" }, "headers": [], "isErrorResponse": false, @@ -5304,7 +5251,7 @@ }, "parameters": [ { - "$id": "412", + "$id": "404", "name": "accept", "nameInRequest": "accept", "type": { @@ -5323,7 +5270,7 @@ ], "response": { "type": { - "$ref": "189" + "$ref": "188" } }, "isOverride": false, @@ -5332,21 +5279,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get" }, { - "$id": "413", + "$id": "405", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "414", + "$id": "406", "name": "put", "resourceName": "ExtendsFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "415", + "$id": "407", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5364,12 +5311,12 @@ "skipUrlEncoding": false }, { - "$id": "416", + "$id": "408", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "189" + "$ref": "188" }, "location": "Body", "isApiVersion": false, @@ -5384,7 +5331,7 @@ ], "responses": [ { - "$id": "417", + "$id": "409", "statusCodes": [ 204 ], @@ -5406,12 +5353,12 @@ }, "parameters": [ { - "$id": "418", + "$id": "410", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "189" + "$ref": "188" }, "location": "Body", "isApiVersion": false, @@ -5424,7 +5371,7 @@ "skipUrlEncoding": false }, { - "$id": "419", + "$id": "411", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5481,31 +5428,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "420", + "$id": "412", "kind": "client", "name": "IsFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "421", + "$id": "413", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "422", + "$id": "414", "name": "get", "resourceName": "IsFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "423", + "$id": "415", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5524,12 +5471,12 @@ ], "responses": [ { - "$id": "424", + "$id": "416", "statusCodes": [ 200 ], "bodyType": { - "$ref": "193" + "$ref": "192" }, "headers": [], "isErrorResponse": false, @@ -5549,7 +5496,7 @@ }, "parameters": [ { - "$id": "425", + "$id": "417", "name": "accept", "nameInRequest": "accept", "type": { @@ -5568,7 +5515,7 @@ ], "response": { "type": { - "$ref": "193" + "$ref": "192" } }, "isOverride": false, @@ -5577,21 +5524,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get" }, { - "$id": "426", + "$id": "418", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "427", + "$id": "419", "name": "put", "resourceName": "IsFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "428", + "$id": "420", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5609,12 +5556,12 @@ "skipUrlEncoding": false }, { - "$id": "429", + "$id": "421", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "193" + "$ref": "192" }, "location": "Body", "isApiVersion": false, @@ -5629,7 +5576,7 @@ ], "responses": [ { - "$id": "430", + "$id": "422", "statusCodes": [ 204 ], @@ -5651,12 +5598,12 @@ }, "parameters": [ { - "$id": "431", + "$id": "423", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "193" + "$ref": "192" }, "location": "Body", "isApiVersion": false, @@ -5669,7 +5616,7 @@ "skipUrlEncoding": false }, { - "$id": "432", + "$id": "424", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5726,31 +5673,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "433", + "$id": "425", "kind": "client", "name": "SpreadFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "434", + "$id": "426", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "435", + "$id": "427", "name": "get", "resourceName": "SpreadFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "436", + "$id": "428", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5769,12 +5716,12 @@ ], "responses": [ { - "$id": "437", + "$id": "429", "statusCodes": [ 200 ], "bodyType": { - "$ref": "197" + "$ref": "196" }, "headers": [], "isErrorResponse": false, @@ -5794,7 +5741,7 @@ }, "parameters": [ { - "$id": "438", + "$id": "430", "name": "accept", "nameInRequest": "accept", "type": { @@ -5813,7 +5760,7 @@ ], "response": { "type": { - "$ref": "197" + "$ref": "196" } }, "isOverride": false, @@ -5822,21 +5769,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get" }, { - "$id": "439", + "$id": "431", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "440", + "$id": "432", "name": "put", "resourceName": "SpreadFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "441", + "$id": "433", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5854,12 +5801,12 @@ "skipUrlEncoding": false }, { - "$id": "442", + "$id": "434", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "197" + "$ref": "196" }, "location": "Body", "isApiVersion": false, @@ -5874,7 +5821,7 @@ ], "responses": [ { - "$id": "443", + "$id": "435", "statusCodes": [ 204 ], @@ -5896,12 +5843,12 @@ }, "parameters": [ { - "$id": "444", + "$id": "436", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "197" + "$ref": "196" }, "location": "Body", "isApiVersion": false, @@ -5914,7 +5861,7 @@ "skipUrlEncoding": false }, { - "$id": "445", + "$id": "437", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5971,31 +5918,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "446", + "$id": "438", "kind": "client", "name": "ExtendsModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "447", + "$id": "439", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "448", + "$id": "440", "name": "get", "resourceName": "ExtendsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "449", + "$id": "441", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6014,12 +5961,12 @@ ], "responses": [ { - "$id": "450", + "$id": "442", "statusCodes": [ 200 ], "bodyType": { - "$ref": "201" + "$ref": "200" }, "headers": [], "isErrorResponse": false, @@ -6039,7 +5986,7 @@ }, "parameters": [ { - "$id": "451", + "$id": "443", "name": "accept", "nameInRequest": "accept", "type": { @@ -6058,7 +6005,7 @@ ], "response": { "type": { - "$ref": "201" + "$ref": "200" } }, "isOverride": false, @@ -6067,21 +6014,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get" }, { - "$id": "452", + "$id": "444", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "453", + "$id": "445", "name": "put", "resourceName": "ExtendsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "454", + "$id": "446", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6099,12 +6046,12 @@ "skipUrlEncoding": false }, { - "$id": "455", + "$id": "447", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "201" + "$ref": "200" }, "location": "Body", "isApiVersion": false, @@ -6119,7 +6066,7 @@ ], "responses": [ { - "$id": "456", + "$id": "448", "statusCodes": [ 204 ], @@ -6141,12 +6088,12 @@ }, "parameters": [ { - "$id": "457", + "$id": "449", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "201" + "$ref": "200" }, "location": "Body", "isApiVersion": false, @@ -6159,7 +6106,7 @@ "skipUrlEncoding": false }, { - "$id": "458", + "$id": "450", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6216,31 +6163,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "459", + "$id": "451", "kind": "client", "name": "IsModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "460", + "$id": "452", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "461", + "$id": "453", "name": "get", "resourceName": "IsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "462", + "$id": "454", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6259,12 +6206,12 @@ ], "responses": [ { - "$id": "463", + "$id": "455", "statusCodes": [ 200 ], "bodyType": { - "$ref": "206" + "$ref": "205" }, "headers": [], "isErrorResponse": false, @@ -6284,7 +6231,7 @@ }, "parameters": [ { - "$id": "464", + "$id": "456", "name": "accept", "nameInRequest": "accept", "type": { @@ -6303,7 +6250,7 @@ ], "response": { "type": { - "$ref": "206" + "$ref": "205" } }, "isOverride": false, @@ -6312,21 +6259,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get" }, { - "$id": "465", + "$id": "457", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "466", + "$id": "458", "name": "put", "resourceName": "IsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "467", + "$id": "459", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6344,12 +6291,12 @@ "skipUrlEncoding": false }, { - "$id": "468", + "$id": "460", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "206" + "$ref": "205" }, "location": "Body", "isApiVersion": false, @@ -6364,7 +6311,7 @@ ], "responses": [ { - "$id": "469", + "$id": "461", "statusCodes": [ 204 ], @@ -6386,12 +6333,12 @@ }, "parameters": [ { - "$id": "470", + "$id": "462", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "206" + "$ref": "205" }, "location": "Body", "isApiVersion": false, @@ -6404,7 +6351,7 @@ "skipUrlEncoding": false }, { - "$id": "471", + "$id": "463", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6461,31 +6408,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "472", + "$id": "464", "kind": "client", "name": "SpreadModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "473", + "$id": "465", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "474", + "$id": "466", "name": "get", "resourceName": "SpreadModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "475", + "$id": "467", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6504,12 +6451,12 @@ ], "responses": [ { - "$id": "476", + "$id": "468", "statusCodes": [ 200 ], "bodyType": { - "$ref": "208" + "$ref": "207" }, "headers": [], "isErrorResponse": false, @@ -6529,7 +6476,7 @@ }, "parameters": [ { - "$id": "477", + "$id": "469", "name": "accept", "nameInRequest": "accept", "type": { @@ -6548,7 +6495,7 @@ ], "response": { "type": { - "$ref": "208" + "$ref": "207" } }, "isOverride": false, @@ -6557,21 +6504,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get" }, { - "$id": "478", + "$id": "470", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "479", + "$id": "471", "name": "put", "resourceName": "SpreadModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "480", + "$id": "472", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6589,12 +6536,12 @@ "skipUrlEncoding": false }, { - "$id": "481", + "$id": "473", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "208" + "$ref": "207" }, "location": "Body", "isApiVersion": false, @@ -6609,7 +6556,7 @@ ], "responses": [ { - "$id": "482", + "$id": "474", "statusCodes": [ 204 ], @@ -6631,12 +6578,12 @@ }, "parameters": [ { - "$id": "483", + "$id": "475", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "208" + "$ref": "207" }, "location": "Body", "isApiVersion": false, @@ -6649,7 +6596,7 @@ "skipUrlEncoding": false }, { - "$id": "484", + "$id": "476", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6706,31 +6653,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "485", + "$id": "477", "kind": "client", "name": "ExtendsModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "486", + "$id": "478", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "487", + "$id": "479", "name": "get", "resourceName": "ExtendsModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "488", + "$id": "480", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6749,12 +6696,12 @@ ], "responses": [ { - "$id": "489", + "$id": "481", "statusCodes": [ 200 ], "bodyType": { - "$ref": "210" + "$ref": "209" }, "headers": [], "isErrorResponse": false, @@ -6774,7 +6721,7 @@ }, "parameters": [ { - "$id": "490", + "$id": "482", "name": "accept", "nameInRequest": "accept", "type": { @@ -6793,7 +6740,7 @@ ], "response": { "type": { - "$ref": "210" + "$ref": "209" } }, "isOverride": false, @@ -6802,21 +6749,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get" }, { - "$id": "491", + "$id": "483", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "492", + "$id": "484", "name": "put", "resourceName": "ExtendsModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "493", + "$id": "485", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6834,12 +6781,12 @@ "skipUrlEncoding": false }, { - "$id": "494", + "$id": "486", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "210" + "$ref": "209" }, "location": "Body", "isApiVersion": false, @@ -6854,7 +6801,7 @@ ], "responses": [ { - "$id": "495", + "$id": "487", "statusCodes": [ 204 ], @@ -6876,12 +6823,12 @@ }, "parameters": [ { - "$id": "496", + "$id": "488", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "210" + "$ref": "209" }, "location": "Body", "isApiVersion": false, @@ -6894,7 +6841,7 @@ "skipUrlEncoding": false }, { - "$id": "497", + "$id": "489", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6951,31 +6898,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "498", + "$id": "490", "kind": "client", "name": "IsModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "499", + "$id": "491", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "500", + "$id": "492", "name": "get", "resourceName": "IsModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "501", + "$id": "493", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6994,12 +6941,12 @@ ], "responses": [ { - "$id": "502", + "$id": "494", "statusCodes": [ 200 ], "bodyType": { - "$ref": "214" + "$ref": "212" }, "headers": [], "isErrorResponse": false, @@ -7019,7 +6966,7 @@ }, "parameters": [ { - "$id": "503", + "$id": "495", "name": "accept", "nameInRequest": "accept", "type": { @@ -7038,7 +6985,7 @@ ], "response": { "type": { - "$ref": "214" + "$ref": "212" } }, "isOverride": false, @@ -7047,21 +6994,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get" }, { - "$id": "504", + "$id": "496", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "505", + "$id": "497", "name": "put", "resourceName": "IsModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "506", + "$id": "498", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7079,12 +7026,12 @@ "skipUrlEncoding": false }, { - "$id": "507", + "$id": "499", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "214" + "$ref": "212" }, "location": "Body", "isApiVersion": false, @@ -7099,7 +7046,7 @@ ], "responses": [ { - "$id": "508", + "$id": "500", "statusCodes": [ 204 ], @@ -7121,12 +7068,12 @@ }, "parameters": [ { - "$id": "509", + "$id": "501", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "214" + "$ref": "212" }, "location": "Body", "isApiVersion": false, @@ -7139,7 +7086,7 @@ "skipUrlEncoding": false }, { - "$id": "510", + "$id": "502", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7196,31 +7143,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "511", + "$id": "503", "kind": "client", "name": "SpreadModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "512", + "$id": "504", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "513", + "$id": "505", "name": "get", "resourceName": "SpreadModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "514", + "$id": "506", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7239,12 +7186,12 @@ ], "responses": [ { - "$id": "515", + "$id": "507", "statusCodes": [ 200 ], "bodyType": { - "$ref": "218" + "$ref": "214" }, "headers": [], "isErrorResponse": false, @@ -7264,7 +7211,7 @@ }, "parameters": [ { - "$id": "516", + "$id": "508", "name": "accept", "nameInRequest": "accept", "type": { @@ -7283,7 +7230,7 @@ ], "response": { "type": { - "$ref": "218" + "$ref": "214" } }, "isOverride": false, @@ -7292,21 +7239,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get" }, { - "$id": "517", + "$id": "509", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "518", + "$id": "510", "name": "put", "resourceName": "SpreadModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "519", + "$id": "511", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7324,12 +7271,12 @@ "skipUrlEncoding": false }, { - "$id": "520", + "$id": "512", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "218" + "$ref": "214" }, "location": "Body", "isApiVersion": false, @@ -7344,7 +7291,7 @@ ], "responses": [ { - "$id": "521", + "$id": "513", "statusCodes": [ 204 ], @@ -7366,12 +7313,12 @@ }, "parameters": [ { - "$id": "522", + "$id": "514", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "218" + "$ref": "214" }, "location": "Body", "isApiVersion": false, @@ -7384,7 +7331,7 @@ "skipUrlEncoding": false }, { - "$id": "523", + "$id": "515", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7441,31 +7388,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "524", + "$id": "516", "kind": "client", "name": "SpreadDifferentString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "525", + "$id": "517", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "526", + "$id": "518", "name": "get", "resourceName": "SpreadDifferentString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "527", + "$id": "519", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7484,12 +7431,12 @@ ], "responses": [ { - "$id": "528", + "$id": "520", "statusCodes": [ 200 ], "bodyType": { - "$ref": "222" + "$ref": "216" }, "headers": [], "isErrorResponse": false, @@ -7509,7 +7456,7 @@ }, "parameters": [ { - "$id": "529", + "$id": "521", "name": "accept", "nameInRequest": "accept", "type": { @@ -7528,7 +7475,7 @@ ], "response": { "type": { - "$ref": "222" + "$ref": "216" } }, "isOverride": false, @@ -7537,21 +7484,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get" }, { - "$id": "530", + "$id": "522", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "531", + "$id": "523", "name": "put", "resourceName": "SpreadDifferentString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "532", + "$id": "524", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7569,12 +7516,12 @@ "skipUrlEncoding": false }, { - "$id": "533", + "$id": "525", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "222" + "$ref": "216" }, "location": "Body", "isApiVersion": false, @@ -7589,7 +7536,7 @@ ], "responses": [ { - "$id": "534", + "$id": "526", "statusCodes": [ 204 ], @@ -7611,12 +7558,12 @@ }, "parameters": [ { - "$id": "535", + "$id": "527", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "222" + "$ref": "216" }, "location": "Body", "isApiVersion": false, @@ -7629,7 +7576,7 @@ "skipUrlEncoding": false }, { - "$id": "536", + "$id": "528", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7686,31 +7633,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "537", + "$id": "529", "kind": "client", "name": "SpreadDifferentFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "538", + "$id": "530", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "539", + "$id": "531", "name": "get", "resourceName": "SpreadDifferentFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "540", + "$id": "532", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7729,12 +7676,12 @@ ], "responses": [ { - "$id": "541", + "$id": "533", "statusCodes": [ 200 ], "bodyType": { - "$ref": "226" + "$ref": "220" }, "headers": [], "isErrorResponse": false, @@ -7754,7 +7701,7 @@ }, "parameters": [ { - "$id": "542", + "$id": "534", "name": "accept", "nameInRequest": "accept", "type": { @@ -7773,7 +7720,7 @@ ], "response": { "type": { - "$ref": "226" + "$ref": "220" } }, "isOverride": false, @@ -7782,21 +7729,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get" }, { - "$id": "543", + "$id": "535", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "544", + "$id": "536", "name": "put", "resourceName": "SpreadDifferentFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "545", + "$id": "537", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7814,12 +7761,12 @@ "skipUrlEncoding": false }, { - "$id": "546", + "$id": "538", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "226" + "$ref": "220" }, "location": "Body", "isApiVersion": false, @@ -7834,7 +7781,7 @@ ], "responses": [ { - "$id": "547", + "$id": "539", "statusCodes": [ 204 ], @@ -7856,12 +7803,12 @@ }, "parameters": [ { - "$id": "548", + "$id": "540", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "226" + "$ref": "220" }, "location": "Body", "isApiVersion": false, @@ -7874,7 +7821,7 @@ "skipUrlEncoding": false }, { - "$id": "549", + "$id": "541", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7931,31 +7878,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "550", + "$id": "542", "kind": "client", "name": "SpreadDifferentModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "551", + "$id": "543", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "552", + "$id": "544", "name": "get", "resourceName": "SpreadDifferentModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "553", + "$id": "545", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7974,12 +7921,12 @@ ], "responses": [ { - "$id": "554", + "$id": "546", "statusCodes": [ 200 ], "bodyType": { - "$ref": "230" + "$ref": "224" }, "headers": [], "isErrorResponse": false, @@ -7999,7 +7946,7 @@ }, "parameters": [ { - "$id": "555", + "$id": "547", "name": "accept", "nameInRequest": "accept", "type": { @@ -8018,7 +7965,7 @@ ], "response": { "type": { - "$ref": "230" + "$ref": "224" } }, "isOverride": false, @@ -8027,21 +7974,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get" }, { - "$id": "556", + "$id": "548", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "557", + "$id": "549", "name": "put", "resourceName": "SpreadDifferentModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "558", + "$id": "550", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8059,12 +8006,12 @@ "skipUrlEncoding": false }, { - "$id": "559", + "$id": "551", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "230" + "$ref": "224" }, "location": "Body", "isApiVersion": false, @@ -8079,7 +8026,7 @@ ], "responses": [ { - "$id": "560", + "$id": "552", "statusCodes": [ 204 ], @@ -8101,12 +8048,12 @@ }, "parameters": [ { - "$id": "561", + "$id": "553", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "230" + "$ref": "224" }, "location": "Body", "isApiVersion": false, @@ -8119,7 +8066,7 @@ "skipUrlEncoding": false }, { - "$id": "562", + "$id": "554", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8176,31 +8123,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "563", + "$id": "555", "kind": "client", "name": "SpreadDifferentModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "564", + "$id": "556", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "565", + "$id": "557", "name": "get", "resourceName": "SpreadDifferentModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "566", + "$id": "558", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8219,12 +8166,12 @@ ], "responses": [ { - "$id": "567", + "$id": "559", "statusCodes": [ 200 ], "bodyType": { - "$ref": "233" + "$ref": "227" }, "headers": [], "isErrorResponse": false, @@ -8244,7 +8191,7 @@ }, "parameters": [ { - "$id": "568", + "$id": "560", "name": "accept", "nameInRequest": "accept", "type": { @@ -8263,7 +8210,7 @@ ], "response": { "type": { - "$ref": "233" + "$ref": "227" } }, "isOverride": false, @@ -8272,21 +8219,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get" }, { - "$id": "569", + "$id": "561", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "570", + "$id": "562", "name": "put", "resourceName": "SpreadDifferentModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "571", + "$id": "563", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8304,12 +8251,12 @@ "skipUrlEncoding": false }, { - "$id": "572", + "$id": "564", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "233" + "$ref": "227" }, "location": "Body", "isApiVersion": false, @@ -8324,7 +8271,7 @@ ], "responses": [ { - "$id": "573", + "$id": "565", "statusCodes": [ 204 ], @@ -8346,12 +8293,12 @@ }, "parameters": [ { - "$id": "574", + "$id": "566", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "233" + "$ref": "227" }, "location": "Body", "isApiVersion": false, @@ -8364,7 +8311,7 @@ "skipUrlEncoding": false }, { - "$id": "575", + "$id": "567", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8421,31 +8368,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "576", + "$id": "568", "kind": "client", "name": "ExtendsDifferentSpreadString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "577", + "$id": "569", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "578", + "$id": "570", "name": "get", "resourceName": "ExtendsDifferentSpreadString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "579", + "$id": "571", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8464,12 +8411,12 @@ ], "responses": [ { - "$id": "580", + "$id": "572", "statusCodes": [ 200 ], "bodyType": { - "$ref": "237" + "$ref": "230" }, "headers": [], "isErrorResponse": false, @@ -8489,7 +8436,7 @@ }, "parameters": [ { - "$id": "581", + "$id": "573", "name": "accept", "nameInRequest": "accept", "type": { @@ -8508,7 +8455,7 @@ ], "response": { "type": { - "$ref": "237" + "$ref": "230" } }, "isOverride": false, @@ -8517,21 +8464,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get" }, { - "$id": "582", + "$id": "574", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "583", + "$id": "575", "name": "put", "resourceName": "ExtendsDifferentSpreadString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "584", + "$id": "576", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8549,12 +8496,12 @@ "skipUrlEncoding": false }, { - "$id": "585", + "$id": "577", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "237" + "$ref": "230" }, "location": "Body", "isApiVersion": false, @@ -8569,7 +8516,7 @@ ], "responses": [ { - "$id": "586", + "$id": "578", "statusCodes": [ 204 ], @@ -8591,12 +8538,12 @@ }, "parameters": [ { - "$id": "587", + "$id": "579", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "237" + "$ref": "230" }, "location": "Body", "isApiVersion": false, @@ -8609,7 +8556,7 @@ "skipUrlEncoding": false }, { - "$id": "588", + "$id": "580", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8666,31 +8613,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "589", + "$id": "581", "kind": "client", "name": "ExtendsDifferentSpreadFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "590", + "$id": "582", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "591", + "$id": "583", "name": "get", "resourceName": "ExtendsDifferentSpreadFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "592", + "$id": "584", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8709,12 +8656,12 @@ ], "responses": [ { - "$id": "593", + "$id": "585", "statusCodes": [ 200 ], "bodyType": { - "$ref": "240" + "$ref": "233" }, "headers": [], "isErrorResponse": false, @@ -8734,7 +8681,7 @@ }, "parameters": [ { - "$id": "594", + "$id": "586", "name": "accept", "nameInRequest": "accept", "type": { @@ -8753,7 +8700,7 @@ ], "response": { "type": { - "$ref": "240" + "$ref": "233" } }, "isOverride": false, @@ -8762,21 +8709,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get" }, { - "$id": "595", + "$id": "587", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "596", + "$id": "588", "name": "put", "resourceName": "ExtendsDifferentSpreadFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "597", + "$id": "589", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8794,12 +8741,12 @@ "skipUrlEncoding": false }, { - "$id": "598", + "$id": "590", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "240" + "$ref": "233" }, "location": "Body", "isApiVersion": false, @@ -8814,7 +8761,7 @@ ], "responses": [ { - "$id": "599", + "$id": "591", "statusCodes": [ 204 ], @@ -8836,12 +8783,12 @@ }, "parameters": [ { - "$id": "600", + "$id": "592", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "240" + "$ref": "233" }, "location": "Body", "isApiVersion": false, @@ -8854,7 +8801,7 @@ "skipUrlEncoding": false }, { - "$id": "601", + "$id": "593", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8911,31 +8858,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "602", + "$id": "594", "kind": "client", "name": "ExtendsDifferentSpreadModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "603", + "$id": "595", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "604", + "$id": "596", "name": "get", "resourceName": "ExtendsDifferentSpreadModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "605", + "$id": "597", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8954,12 +8901,12 @@ ], "responses": [ { - "$id": "606", + "$id": "598", "statusCodes": [ 200 ], "bodyType": { - "$ref": "243" + "$ref": "236" }, "headers": [], "isErrorResponse": false, @@ -8979,7 +8926,7 @@ }, "parameters": [ { - "$id": "607", + "$id": "599", "name": "accept", "nameInRequest": "accept", "type": { @@ -8998,7 +8945,7 @@ ], "response": { "type": { - "$ref": "243" + "$ref": "236" } }, "isOverride": false, @@ -9007,21 +8954,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get" }, { - "$id": "608", + "$id": "600", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "609", + "$id": "601", "name": "put", "resourceName": "ExtendsDifferentSpreadModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "610", + "$id": "602", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9039,12 +8986,12 @@ "skipUrlEncoding": false }, { - "$id": "611", + "$id": "603", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "243" + "$ref": "236" }, "location": "Body", "isApiVersion": false, @@ -9059,7 +9006,7 @@ ], "responses": [ { - "$id": "612", + "$id": "604", "statusCodes": [ 204 ], @@ -9081,12 +9028,12 @@ }, "parameters": [ { - "$id": "613", + "$id": "605", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "243" + "$ref": "236" }, "location": "Body", "isApiVersion": false, @@ -9099,7 +9046,7 @@ "skipUrlEncoding": false }, { - "$id": "614", + "$id": "606", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9156,31 +9103,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "615", + "$id": "607", "kind": "client", "name": "ExtendsDifferentSpreadModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "616", + "$id": "608", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "617", + "$id": "609", "name": "get", "resourceName": "ExtendsDifferentSpreadModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "618", + "$id": "610", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9199,12 +9146,12 @@ ], "responses": [ { - "$id": "619", + "$id": "611", "statusCodes": [ 200 ], "bodyType": { - "$ref": "245" + "$ref": "238" }, "headers": [], "isErrorResponse": false, @@ -9224,7 +9171,7 @@ }, "parameters": [ { - "$id": "620", + "$id": "612", "name": "accept", "nameInRequest": "accept", "type": { @@ -9243,7 +9190,7 @@ ], "response": { "type": { - "$ref": "245" + "$ref": "238" } }, "isOverride": false, @@ -9252,21 +9199,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get" }, { - "$id": "621", + "$id": "613", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "622", + "$id": "614", "name": "put", "resourceName": "ExtendsDifferentSpreadModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "623", + "$id": "615", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9284,12 +9231,12 @@ "skipUrlEncoding": false }, { - "$id": "624", + "$id": "616", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "245" + "$ref": "238" }, "location": "Body", "isApiVersion": false, @@ -9304,7 +9251,7 @@ ], "responses": [ { - "$id": "625", + "$id": "617", "statusCodes": [ 204 ], @@ -9326,12 +9273,12 @@ }, "parameters": [ { - "$id": "626", + "$id": "618", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "245" + "$ref": "238" }, "location": "Body", "isApiVersion": false, @@ -9344,7 +9291,7 @@ "skipUrlEncoding": false }, { - "$id": "627", + "$id": "619", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9401,31 +9348,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "628", + "$id": "620", "kind": "client", "name": "MultipleSpread", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "629", + "$id": "621", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "630", + "$id": "622", "name": "get", "resourceName": "MultipleSpread", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "631", + "$id": "623", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9444,12 +9391,12 @@ ], "responses": [ { - "$id": "632", + "$id": "624", "statusCodes": [ 200 ], "bodyType": { - "$ref": "248" + "$ref": "240" }, "headers": [], "isErrorResponse": false, @@ -9469,7 +9416,7 @@ }, "parameters": [ { - "$id": "633", + "$id": "625", "name": "accept", "nameInRequest": "accept", "type": { @@ -9488,7 +9435,7 @@ ], "response": { "type": { - "$ref": "248" + "$ref": "240" } }, "isOverride": false, @@ -9497,21 +9444,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get" }, { - "$id": "634", + "$id": "626", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "635", + "$id": "627", "name": "put", "resourceName": "MultipleSpread", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "636", + "$id": "628", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9529,12 +9476,12 @@ "skipUrlEncoding": false }, { - "$id": "637", + "$id": "629", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "248" + "$ref": "240" }, "location": "Body", "isApiVersion": false, @@ -9549,7 +9496,7 @@ ], "responses": [ { - "$id": "638", + "$id": "630", "statusCodes": [ 204 ], @@ -9571,12 +9518,12 @@ }, "parameters": [ { - "$id": "639", + "$id": "631", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "248" + "$ref": "240" }, "location": "Body", "isApiVersion": false, @@ -9589,7 +9536,7 @@ "skipUrlEncoding": false }, { - "$id": "640", + "$id": "632", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9646,31 +9593,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "641", + "$id": "633", "kind": "client", "name": "SpreadRecordUnion", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "642", + "$id": "634", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "643", + "$id": "635", "name": "get", "resourceName": "SpreadRecordUnion", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "644", + "$id": "636", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9689,12 +9636,12 @@ ], "responses": [ { - "$id": "645", + "$id": "637", "statusCodes": [ 200 ], "bodyType": { - "$ref": "254" + "$ref": "246" }, "headers": [], "isErrorResponse": false, @@ -9714,7 +9661,7 @@ }, "parameters": [ { - "$id": "646", + "$id": "638", "name": "accept", "nameInRequest": "accept", "type": { @@ -9733,7 +9680,7 @@ ], "response": { "type": { - "$ref": "254" + "$ref": "246" } }, "isOverride": false, @@ -9742,21 +9689,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get" }, { - "$id": "647", + "$id": "639", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "648", + "$id": "640", "name": "put", "resourceName": "SpreadRecordUnion", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "649", + "$id": "641", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9774,12 +9721,12 @@ "skipUrlEncoding": false }, { - "$id": "650", + "$id": "642", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "254" + "$ref": "246" }, "location": "Body", "isApiVersion": false, @@ -9794,7 +9741,7 @@ ], "responses": [ { - "$id": "651", + "$id": "643", "statusCodes": [ 204 ], @@ -9816,12 +9763,12 @@ }, "parameters": [ { - "$id": "652", + "$id": "644", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "254" + "$ref": "246" }, "location": "Body", "isApiVersion": false, @@ -9834,7 +9781,7 @@ "skipUrlEncoding": false }, { - "$id": "653", + "$id": "645", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9891,31 +9838,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "654", + "$id": "646", "kind": "client", "name": "SpreadRecordNonDiscriminatedUnion", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "655", + "$id": "647", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "656", + "$id": "648", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "657", + "$id": "649", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9934,12 +9881,12 @@ ], "responses": [ { - "$id": "658", + "$id": "650", "statusCodes": [ 200 ], "bodyType": { - "$ref": "260" + "$ref": "252" }, "headers": [], "isErrorResponse": false, @@ -9959,7 +9906,7 @@ }, "parameters": [ { - "$id": "659", + "$id": "651", "name": "accept", "nameInRequest": "accept", "type": { @@ -9978,7 +9925,7 @@ ], "response": { "type": { - "$ref": "260" + "$ref": "252" } }, "isOverride": false, @@ -9987,21 +9934,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get" }, { - "$id": "660", + "$id": "652", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "661", + "$id": "653", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "662", + "$id": "654", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -10019,12 +9966,12 @@ "skipUrlEncoding": false }, { - "$id": "663", + "$id": "655", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "260" + "$ref": "252" }, "location": "Body", "isApiVersion": false, @@ -10039,7 +9986,7 @@ ], "responses": [ { - "$id": "664", + "$id": "656", "statusCodes": [ 204 ], @@ -10061,12 +10008,12 @@ }, "parameters": [ { - "$id": "665", + "$id": "657", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "260" + "$ref": "252" }, "location": "Body", "isApiVersion": false, @@ -10079,7 +10026,7 @@ "skipUrlEncoding": false }, { - "$id": "666", + "$id": "658", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -10136,31 +10083,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "667", + "$id": "659", "kind": "client", "name": "SpreadRecordNonDiscriminatedUnion2", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "668", + "$id": "660", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "669", + "$id": "661", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion2", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "670", + "$id": "662", "name": "accept", "nameInRequest": "Accept", "type": { @@ -10179,12 +10126,12 @@ ], "responses": [ { - "$id": "671", + "$id": "663", "statusCodes": [ 200 ], "bodyType": { - "$ref": "276" + "$ref": "268" }, "headers": [], "isErrorResponse": false, @@ -10204,7 +10151,7 @@ }, "parameters": [ { - "$id": "672", + "$id": "664", "name": "accept", "nameInRequest": "accept", "type": { @@ -10223,7 +10170,7 @@ ], "response": { "type": { - "$ref": "276" + "$ref": "268" } }, "isOverride": false, @@ -10232,21 +10179,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get" }, { - "$id": "673", + "$id": "665", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "674", + "$id": "666", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion2", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "675", + "$id": "667", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -10264,12 +10211,12 @@ "skipUrlEncoding": false }, { - "$id": "676", + "$id": "668", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "276" + "$ref": "268" }, "location": "Body", "isApiVersion": false, @@ -10284,7 +10231,7 @@ ], "responses": [ { - "$id": "677", + "$id": "669", "statusCodes": [ 204 ], @@ -10306,12 +10253,12 @@ }, "parameters": [ { - "$id": "678", + "$id": "670", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "276" + "$ref": "268" }, "location": "Body", "isApiVersion": false, @@ -10324,7 +10271,7 @@ "skipUrlEncoding": false }, { - "$id": "679", + "$id": "671", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -10381,31 +10328,31 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } }, { - "$id": "680", + "$id": "672", "kind": "client", "name": "SpreadRecordNonDiscriminatedUnion3", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "681", + "$id": "673", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "682", + "$id": "674", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion3", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "683", + "$id": "675", "name": "accept", "nameInRequest": "Accept", "type": { @@ -10424,12 +10371,12 @@ ], "responses": [ { - "$id": "684", + "$id": "676", "statusCodes": [ 200 ], "bodyType": { - "$ref": "284" + "$ref": "276" }, "headers": [], "isErrorResponse": false, @@ -10449,7 +10396,7 @@ }, "parameters": [ { - "$id": "685", + "$id": "677", "name": "accept", "nameInRequest": "accept", "type": { @@ -10468,7 +10415,7 @@ ], "response": { "type": { - "$ref": "284" + "$ref": "276" } }, "isOverride": false, @@ -10477,21 +10424,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get" }, { - "$id": "686", + "$id": "678", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "687", + "$id": "679", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion3", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "688", + "$id": "680", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -10509,12 +10456,12 @@ "skipUrlEncoding": false }, { - "$id": "689", + "$id": "681", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "284" + "$ref": "276" }, "location": "Body", "isApiVersion": false, @@ -10529,7 +10476,7 @@ ], "responses": [ { - "$id": "690", + "$id": "682", "statusCodes": [ 204 ], @@ -10551,12 +10498,12 @@ }, "parameters": [ { - "$id": "691", + "$id": "683", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "284" + "$ref": "276" }, "location": "Body", "isApiVersion": false, @@ -10569,7 +10516,7 @@ "skipUrlEncoding": false }, { - "$id": "692", + "$id": "684", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -10626,7 +10573,7 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", "apiVersions": [], "parent": { - "$ref": "289" + "$ref": "281" } } ] 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 08e231aa9f9..cda4131b0b6 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 @@ -2230,18 +2230,7 @@ 200 ], "bodyType": { - "$id": "170", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "171", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "153" }, "headers": [], "isErrorResponse": false, @@ -2261,7 +2250,7 @@ }, "parameters": [ { - "$id": "172", + "$id": "170", "name": "accept", "nameInRequest": "accept", "type": { @@ -2280,7 +2269,7 @@ ], "response": { "type": { - "$ref": "170" + "$ref": "153" } }, "isOverride": false, @@ -2289,19 +2278,19 @@ "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify" }, { - "$id": "173", + "$id": "171", "kind": "basic", "name": "verify", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "174", + "$id": "172", "name": "verify", "resourceName": "Decimal128Verify", "accessibility": "public", "parameters": [ { - "$id": "175", + "$id": "173", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2318,11 +2307,11 @@ "skipUrlEncoding": false }, { - "$id": "176", + "$id": "174", "name": "body", "nameInRequest": "body", "type": { - "$id": "177", + "$id": "175", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2341,7 +2330,7 @@ ], "responses": [ { - "$id": "178", + "$id": "176", "statusCodes": [ 204 ], @@ -2363,7 +2352,7 @@ }, "parameters": [ { - "$id": "179", + "$id": "177", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2380,11 +2369,11 @@ "skipUrlEncoding": false }, { - "$id": "180", + "$id": "178", "name": "body", "nameInRequest": "body", "type": { - "$id": "181", + "$id": "179", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", 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 2c679c0b1c8..1a4a25db1e1 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 @@ -1452,18 +1452,7 @@ "decorators": [] }, { - "$id": "133", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "128" } ], "namespace": "", @@ -1501,7 +1490,7 @@ "$ref": "124" }, { - "$id": "135", + "$id": "133", "kind": "model", "name": "SendRequest7", "namespace": "Type.Union", @@ -1510,7 +1499,7 @@ "decorators": [], "properties": [ { - "$id": "136", + "$id": "134", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1532,7 +1521,7 @@ ] }, { - "$id": "137", + "$id": "135", "kind": "model", "name": "GetResponse8", "namespace": "Type.Union", @@ -1541,12 +1530,12 @@ "decorators": [], "properties": [ { - "$id": "138", + "$id": "136", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "139", + "$id": "137", "kind": "model", "name": "MixedLiteralsCases", "namespace": "Type.Union", @@ -1555,13 +1544,13 @@ "decorators": [], "properties": [ { - "$id": "140", + "$id": "138", "kind": "property", "name": "stringLiteral", "serializedName": "stringLiteral", "doc": "This should be receive/send the \"a\" variant", "type": { - "$id": "141", + "$id": "139", "kind": "union", "name": "MixedLiteralsCasesStringLiteral", "variantTypes": [ @@ -1594,13 +1583,13 @@ } }, { - "$id": "142", + "$id": "140", "kind": "property", "name": "intLiteral", "serializedName": "intLiteral", "doc": "This should be receive/send the 2 variant", "type": { - "$ref": "141" + "$ref": "139" }, "optional": false, "readOnly": false, @@ -1615,13 +1604,13 @@ } }, { - "$id": "143", + "$id": "141", "kind": "property", "name": "floatLiteral", "serializedName": "floatLiteral", "doc": "This should be receive/send the 3.3 variant", "type": { - "$ref": "141" + "$ref": "139" }, "optional": false, "readOnly": false, @@ -1636,13 +1625,13 @@ } }, { - "$id": "144", + "$id": "142", "kind": "property", "name": "booleanLiteral", "serializedName": "booleanLiteral", "doc": "This should be receive/send the true variant", "type": { - "$ref": "141" + "$ref": "139" }, "optional": false, "readOnly": false, @@ -1673,10 +1662,10 @@ ] }, { - "$ref": "139" + "$ref": "137" }, { - "$id": "145", + "$id": "143", "kind": "model", "name": "SendRequest8", "namespace": "Type.Union", @@ -1685,12 +1674,12 @@ "decorators": [], "properties": [ { - "$id": "146", + "$id": "144", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "139" + "$ref": "137" }, "optional": false, "readOnly": false, @@ -1707,7 +1696,7 @@ ] }, { - "$id": "147", + "$id": "145", "kind": "model", "name": "GetResponse9", "namespace": "Type.Union", @@ -1716,12 +1705,12 @@ "decorators": [], "properties": [ { - "$id": "148", + "$id": "146", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "149", + "$id": "147", "kind": "model", "name": "MixedTypesCases", "namespace": "Type.Union", @@ -1730,13 +1719,13 @@ "decorators": [], "properties": [ { - "$id": "150", + "$id": "148", "kind": "property", "name": "model", "serializedName": "model", "doc": "This should be receive/send the Cat variant", "type": { - "$id": "151", + "$id": "149", "kind": "union", "name": "MixedTypesCasesModel", "variantTypes": [ @@ -1747,14 +1736,14 @@ "$ref": "80" }, { - "$id": "152", + "$id": "150", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, { - "$id": "153", + "$id": "151", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1777,13 +1766,13 @@ } }, { - "$id": "154", + "$id": "152", "kind": "property", "name": "literal", "serializedName": "literal", "doc": "This should be receive/send the \"a\" variant", "type": { - "$ref": "151" + "$ref": "149" }, "optional": false, "readOnly": false, @@ -1798,13 +1787,13 @@ } }, { - "$id": "155", + "$id": "153", "kind": "property", "name": "int", "serializedName": "int", "doc": "This should be receive/send the int variant", "type": { - "$ref": "151" + "$ref": "149" }, "optional": false, "readOnly": false, @@ -1819,13 +1808,13 @@ } }, { - "$id": "156", + "$id": "154", "kind": "property", "name": "boolean", "serializedName": "boolean", "doc": "This should be receive/send the boolean variant", "type": { - "$ref": "151" + "$ref": "149" }, "optional": false, "readOnly": false, @@ -1840,17 +1829,17 @@ } }, { - "$id": "157", + "$id": "155", "kind": "property", "name": "array", "serializedName": "array", "doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", "type": { - "$id": "158", + "$id": "156", "kind": "array", "name": "Array1", "valueType": { - "$ref": "151" + "$ref": "149" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1884,10 +1873,10 @@ ] }, { - "$ref": "149" + "$ref": "147" }, { - "$id": "159", + "$id": "157", "kind": "model", "name": "SendRequest9", "namespace": "Type.Union", @@ -1896,12 +1885,12 @@ "decorators": [], "properties": [ { - "$id": "160", + "$id": "158", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "149" + "$ref": "147" }, "optional": false, "readOnly": false, @@ -1920,7 +1909,7 @@ ], "clients": [ { - "$id": "161", + "$id": "159", "kind": "client", "name": "UnionClient", "namespace": "Type.Union", @@ -1959,26 +1948,26 @@ "apiVersions": [], "children": [ { - "$id": "162", + "$id": "160", "kind": "client", "name": "StringsOnly", "namespace": "Type.Union", "doc": "Describe union of string \"a\" | \"b\" | \"c\"", "methods": [ { - "$id": "163", + "$id": "161", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "164", + "$id": "162", "name": "get", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "165", + "$id": "163", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1997,7 +1986,7 @@ ], "responses": [ { - "$id": "166", + "$id": "164", "statusCodes": [ 200 ], @@ -2022,7 +2011,7 @@ }, "parameters": [ { - "$id": "167", + "$id": "165", "name": "accept", "nameInRequest": "accept", "type": { @@ -2050,19 +2039,19 @@ "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" }, { - "$id": "168", + "$id": "166", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "169", + "$id": "167", "name": "send", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "170", + "$id": "168", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2080,7 +2069,7 @@ "skipUrlEncoding": false }, { - "$id": "171", + "$id": "169", "name": "sendRequest", "nameInRequest": "sendRequest", "type": { @@ -2099,7 +2088,7 @@ ], "responses": [ { - "$id": "172", + "$id": "170", "statusCodes": [ 204 ], @@ -2121,7 +2110,7 @@ }, "parameters": [ { - "$id": "173", + "$id": "171", "name": "prop", "nameInRequest": "prop", "type": { @@ -2138,7 +2127,7 @@ "skipUrlEncoding": false }, { - "$id": "174", + "$id": "172", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2195,30 +2184,30 @@ "crossLanguageDefinitionId": "Type.Union.StringsOnly", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "175", + "$id": "173", "kind": "client", "name": "StringExtensible", "namespace": "Type.Union", "doc": "Describe union of string string | \"b\" | \"c\"", "methods": [ { - "$id": "176", + "$id": "174", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "177", + "$id": "175", "name": "get", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "178", + "$id": "176", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2237,7 +2226,7 @@ ], "responses": [ { - "$id": "179", + "$id": "177", "statusCodes": [ 200 ], @@ -2262,7 +2251,7 @@ }, "parameters": [ { - "$id": "180", + "$id": "178", "name": "accept", "nameInRequest": "accept", "type": { @@ -2290,19 +2279,19 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensible.get" }, { - "$id": "181", + "$id": "179", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "182", + "$id": "180", "name": "send", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "183", + "$id": "181", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2320,7 +2309,7 @@ "skipUrlEncoding": false }, { - "$id": "184", + "$id": "182", "name": "sendRequest1", "nameInRequest": "sendRequest1", "type": { @@ -2339,7 +2328,7 @@ ], "responses": [ { - "$id": "185", + "$id": "183", "statusCodes": [ 204 ], @@ -2361,7 +2350,7 @@ }, "parameters": [ { - "$id": "186", + "$id": "184", "name": "prop", "nameInRequest": "prop", "type": { @@ -2378,7 +2367,7 @@ "skipUrlEncoding": false }, { - "$id": "187", + "$id": "185", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2435,30 +2424,30 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensible", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "188", + "$id": "186", "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", "methods": [ { - "$id": "189", + "$id": "187", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "190", + "$id": "188", "name": "get", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "191", + "$id": "189", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2477,7 +2466,7 @@ ], "responses": [ { - "$id": "192", + "$id": "190", "statusCodes": [ 200 ], @@ -2502,7 +2491,7 @@ }, "parameters": [ { - "$id": "193", + "$id": "191", "name": "accept", "nameInRequest": "accept", "type": { @@ -2530,19 +2519,19 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get" }, { - "$id": "194", + "$id": "192", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "195", + "$id": "193", "name": "send", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "196", + "$id": "194", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2560,7 +2549,7 @@ "skipUrlEncoding": false }, { - "$id": "197", + "$id": "195", "name": "sendRequest2", "nameInRequest": "sendRequest2", "type": { @@ -2579,7 +2568,7 @@ ], "responses": [ { - "$id": "198", + "$id": "196", "statusCodes": [ 204 ], @@ -2601,7 +2590,7 @@ }, "parameters": [ { - "$id": "199", + "$id": "197", "name": "prop", "nameInRequest": "prop", "type": { @@ -2618,7 +2607,7 @@ "skipUrlEncoding": false }, { - "$id": "200", + "$id": "198", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2675,30 +2664,30 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "201", + "$id": "199", "kind": "client", "name": "IntsOnly", "namespace": "Type.Union", "doc": "Describe union of integer 1 | 2 | 3", "methods": [ { - "$id": "202", + "$id": "200", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "203", + "$id": "201", "name": "get", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "202", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2717,7 +2706,7 @@ ], "responses": [ { - "$id": "205", + "$id": "203", "statusCodes": [ 200 ], @@ -2742,7 +2731,7 @@ }, "parameters": [ { - "$id": "206", + "$id": "204", "name": "accept", "nameInRequest": "accept", "type": { @@ -2770,19 +2759,19 @@ "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" }, { - "$id": "207", + "$id": "205", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "208", + "$id": "206", "name": "send", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "209", + "$id": "207", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2800,7 +2789,7 @@ "skipUrlEncoding": false }, { - "$id": "210", + "$id": "208", "name": "sendRequest3", "nameInRequest": "sendRequest3", "type": { @@ -2819,7 +2808,7 @@ ], "responses": [ { - "$id": "211", + "$id": "209", "statusCodes": [ 204 ], @@ -2841,7 +2830,7 @@ }, "parameters": [ { - "$id": "212", + "$id": "210", "name": "prop", "nameInRequest": "prop", "type": { @@ -2858,7 +2847,7 @@ "skipUrlEncoding": false }, { - "$id": "213", + "$id": "211", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2915,30 +2904,30 @@ "crossLanguageDefinitionId": "Type.Union.IntsOnly", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "214", + "$id": "212", "kind": "client", "name": "FloatsOnly", "namespace": "Type.Union", "doc": "Describe union of floats 1.1 | 2.2 | 3.3", "methods": [ { - "$id": "215", + "$id": "213", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "216", + "$id": "214", "name": "get", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "217", + "$id": "215", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2957,7 +2946,7 @@ ], "responses": [ { - "$id": "218", + "$id": "216", "statusCodes": [ 200 ], @@ -2982,7 +2971,7 @@ }, "parameters": [ { - "$id": "219", + "$id": "217", "name": "accept", "nameInRequest": "accept", "type": { @@ -3010,19 +2999,19 @@ "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" }, { - "$id": "220", + "$id": "218", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "221", + "$id": "219", "name": "send", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "222", + "$id": "220", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3040,7 +3029,7 @@ "skipUrlEncoding": false }, { - "$id": "223", + "$id": "221", "name": "sendRequest4", "nameInRequest": "sendRequest4", "type": { @@ -3059,7 +3048,7 @@ ], "responses": [ { - "$id": "224", + "$id": "222", "statusCodes": [ 204 ], @@ -3081,7 +3070,7 @@ }, "parameters": [ { - "$id": "225", + "$id": "223", "name": "prop", "nameInRequest": "prop", "type": { @@ -3098,7 +3087,7 @@ "skipUrlEncoding": false }, { - "$id": "226", + "$id": "224", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3155,30 +3144,30 @@ "crossLanguageDefinitionId": "Type.Union.FloatsOnly", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "227", + "$id": "225", "kind": "client", "name": "ModelsOnly", "namespace": "Type.Union", "doc": "Describe union of models", "methods": [ { - "$id": "228", + "$id": "226", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "229", + "$id": "227", "name": "get", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "230", + "$id": "228", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3197,7 +3186,7 @@ ], "responses": [ { - "$id": "231", + "$id": "229", "statusCodes": [ 200 ], @@ -3222,7 +3211,7 @@ }, "parameters": [ { - "$id": "232", + "$id": "230", "name": "accept", "nameInRequest": "accept", "type": { @@ -3250,19 +3239,19 @@ "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" }, { - "$id": "233", + "$id": "231", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "234", + "$id": "232", "name": "send", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "235", + "$id": "233", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3280,7 +3269,7 @@ "skipUrlEncoding": false }, { - "$id": "236", + "$id": "234", "name": "sendRequest5", "nameInRequest": "sendRequest5", "type": { @@ -3299,7 +3288,7 @@ ], "responses": [ { - "$id": "237", + "$id": "235", "statusCodes": [ 204 ], @@ -3321,7 +3310,7 @@ }, "parameters": [ { - "$id": "238", + "$id": "236", "name": "prop", "nameInRequest": "prop", "type": { @@ -3338,7 +3327,7 @@ "skipUrlEncoding": false }, { - "$id": "239", + "$id": "237", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3395,30 +3384,30 @@ "crossLanguageDefinitionId": "Type.Union.ModelsOnly", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "240", + "$id": "238", "kind": "client", "name": "EnumsOnly", "namespace": "Type.Union", "doc": "Describe union of 2 different enums", "methods": [ { - "$id": "241", + "$id": "239", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "242", + "$id": "240", "name": "get", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "241", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3437,7 +3426,7 @@ ], "responses": [ { - "$id": "244", + "$id": "242", "statusCodes": [ 200 ], @@ -3462,7 +3451,7 @@ }, "parameters": [ { - "$id": "245", + "$id": "243", "name": "accept", "nameInRequest": "accept", "type": { @@ -3490,19 +3479,19 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" }, { - "$id": "246", + "$id": "244", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "247", + "$id": "245", "name": "send", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "246", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3520,7 +3509,7 @@ "skipUrlEncoding": false }, { - "$id": "249", + "$id": "247", "name": "sendRequest6", "nameInRequest": "sendRequest6", "type": { @@ -3539,7 +3528,7 @@ ], "responses": [ { - "$id": "250", + "$id": "248", "statusCodes": [ 204 ], @@ -3561,7 +3550,7 @@ }, "parameters": [ { - "$id": "251", + "$id": "249", "name": "prop", "nameInRequest": "prop", "type": { @@ -3578,7 +3567,7 @@ "skipUrlEncoding": false }, { - "$id": "252", + "$id": "250", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3635,30 +3624,30 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnly", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "253", + "$id": "251", "kind": "client", "name": "StringAndArray", "namespace": "Type.Union", "doc": "Describe union of a string and an array of strings", "methods": [ { - "$id": "254", + "$id": "252", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "255", + "$id": "253", "name": "get", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "256", + "$id": "254", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3677,7 +3666,7 @@ ], "responses": [ { - "$id": "257", + "$id": "255", "statusCodes": [ 200 ], @@ -3702,7 +3691,7 @@ }, "parameters": [ { - "$id": "258", + "$id": "256", "name": "accept", "nameInRequest": "accept", "type": { @@ -3730,19 +3719,19 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArray.get" }, { - "$id": "259", + "$id": "257", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "260", + "$id": "258", "name": "send", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "259", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3760,11 +3749,11 @@ "skipUrlEncoding": false }, { - "$id": "262", + "$id": "260", "name": "sendRequest7", "nameInRequest": "sendRequest7", "type": { - "$ref": "135" + "$ref": "133" }, "location": "Body", "isApiVersion": false, @@ -3779,7 +3768,7 @@ ], "responses": [ { - "$id": "263", + "$id": "261", "statusCodes": [ 204 ], @@ -3801,7 +3790,7 @@ }, "parameters": [ { - "$id": "264", + "$id": "262", "name": "prop", "nameInRequest": "prop", "type": { @@ -3818,7 +3807,7 @@ "skipUrlEncoding": false }, { - "$id": "265", + "$id": "263", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3875,30 +3864,30 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArray", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "266", + "$id": "264", "kind": "client", "name": "MixedLiterals", "namespace": "Type.Union", "doc": "Describe union of floats \"a\" | 2 | 3.3", "methods": [ { - "$id": "267", + "$id": "265", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "268", + "$id": "266", "name": "get", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "269", + "$id": "267", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3917,12 +3906,12 @@ ], "responses": [ { - "$id": "270", + "$id": "268", "statusCodes": [ 200 ], "bodyType": { - "$ref": "137" + "$ref": "135" }, "headers": [], "isErrorResponse": false, @@ -3942,7 +3931,7 @@ }, "parameters": [ { - "$id": "271", + "$id": "269", "name": "accept", "nameInRequest": "accept", "type": { @@ -3961,7 +3950,7 @@ ], "response": { "type": { - "$ref": "137" + "$ref": "135" } }, "isOverride": false, @@ -3970,19 +3959,19 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" }, { - "$id": "272", + "$id": "270", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "273", + "$id": "271", "name": "send", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "274", + "$id": "272", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4000,11 +3989,11 @@ "skipUrlEncoding": false }, { - "$id": "275", + "$id": "273", "name": "sendRequest8", "nameInRequest": "sendRequest8", "type": { - "$ref": "145" + "$ref": "143" }, "location": "Body", "isApiVersion": false, @@ -4019,7 +4008,7 @@ ], "responses": [ { - "$id": "276", + "$id": "274", "statusCodes": [ 204 ], @@ -4041,11 +4030,11 @@ }, "parameters": [ { - "$id": "277", + "$id": "275", "name": "prop", "nameInRequest": "prop", "type": { - "$ref": "139" + "$ref": "137" }, "location": "Body", "isApiVersion": false, @@ -4058,7 +4047,7 @@ "skipUrlEncoding": false }, { - "$id": "278", + "$id": "276", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4115,30 +4104,30 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiterals", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } }, { - "$id": "279", + "$id": "277", "kind": "client", "name": "MixedTypes", "namespace": "Type.Union", "doc": "Describe union of floats \"a\" | 2 | 3.3", "methods": [ { - "$id": "280", + "$id": "278", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "281", + "$id": "279", "name": "get", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "282", + "$id": "280", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4157,12 +4146,12 @@ ], "responses": [ { - "$id": "283", + "$id": "281", "statusCodes": [ 200 ], "bodyType": { - "$ref": "147" + "$ref": "145" }, "headers": [], "isErrorResponse": false, @@ -4182,7 +4171,7 @@ }, "parameters": [ { - "$id": "284", + "$id": "282", "name": "accept", "nameInRequest": "accept", "type": { @@ -4201,7 +4190,7 @@ ], "response": { "type": { - "$ref": "147" + "$ref": "145" } }, "isOverride": false, @@ -4210,19 +4199,19 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" }, { - "$id": "285", + "$id": "283", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "286", + "$id": "284", "name": "send", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "285", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4240,11 +4229,11 @@ "skipUrlEncoding": false }, { - "$id": "288", + "$id": "286", "name": "sendRequest9", "nameInRequest": "sendRequest9", "type": { - "$ref": "159" + "$ref": "157" }, "location": "Body", "isApiVersion": false, @@ -4259,7 +4248,7 @@ ], "responses": [ { - "$id": "289", + "$id": "287", "statusCodes": [ 204 ], @@ -4281,11 +4270,11 @@ }, "parameters": [ { - "$id": "290", + "$id": "288", "name": "prop", "nameInRequest": "prop", "type": { - "$ref": "149" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -4298,7 +4287,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "289", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4355,7 +4344,7 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypes", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "159" } } ] From 01225ad1bc31832390a9fbc790033cfe91fae23e Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 29 May 2025 11:05:55 +0800 Subject: [PATCH 08/22] fix the test case for deserialization of pagingmetadata --- .../tspCodeModel.json | 28 + .../LoadsPagingWithNextLink/tspCodeModel.json | 7 + .../tspCodeModel.json | 6555 ----------------- .../test/TypeSpecInputConverterTests.cs | 76 +- 4 files changed, 78 insertions(+), 6588 deletions(-) create mode 100644 packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithContinuationToken/tspCodeModel.json create mode 100644 packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithNextLink/tspCodeModel.json delete mode 100644 packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsTypeSpecPagingInput/tspCodeModel.json diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithContinuationToken/tspCodeModel.json b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithContinuationToken/tspCodeModel.json new file mode 100644 index 00000000000..f471e12f98f --- /dev/null +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithContinuationToken/tspCodeModel.json @@ -0,0 +1,28 @@ +{ + "itemPropertySegments": ["things"], + "continuationToken": { + "parameter": { + "$id": "598", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "599", + "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 + }, + "responseSegments": ["next-token"], + "responseLocation": "Header" + } +} diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithNextLink/tspCodeModel.json b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithNextLink/tspCodeModel.json new file mode 100644 index 00000000000..6e0fd6de9b1 --- /dev/null +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsPagingWithNextLink/tspCodeModel.json @@ -0,0 +1,7 @@ +{ + "itemPropertySegments": ["things"], + "nextLink": { + "responseSegments": ["next"], + "responseLocation": "Body" + } +} 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 deleted file mode 100644 index d96e511a9a6..00000000000 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsTypeSpecPagingInput/tspCodeModel.json +++ /dev/null @@ -1,6555 +0,0 @@ -{ - "$id": "1", - "name": "SampleTypeSpec", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "StringFixedEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.StringFixedEnum", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "One", - "value": "1", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "Two", - "value": "2", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "Four", - "value": "4", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Simple enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "10", - "kind": "enum", - "name": "StringExtensibleEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.StringExtensibleEnum", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "name": "One", - "value": "1", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] - }, - { - "$id": "14", - "kind": "enumvalue", - "name": "Two", - "value": "2", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] - }, - { - "$id": "16", - "kind": "enumvalue", - "name": "Four", - "value": "4", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "10" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Extensible enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "18", - "kind": "enum", - "name": "IntExtensibleEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.IntExtensibleEnum", - "valueType": { - "$id": "19", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "21", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "decorators": [] - }, - { - "$id": "22", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "decorators": [] - }, - { - "$id": "24", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "25", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "18" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Int based extensible enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "26", - "kind": "enum", - "name": "FloatExtensibleEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatExtensibleEnum", - "valueType": { - "$id": "27", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ - { - "$id": "28", - "kind": "enumvalue", - "name": "OneDotOne", - "value": 1.1, - "valueType": { - "$id": "29", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] - }, - { - "$id": "30", - "kind": "enumvalue", - "name": "TwoDotTwo", - "value": 2.2, - "valueType": { - "$id": "31", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] - }, - { - "$id": "32", - "kind": "enumvalue", - "name": "FourDotFour", - "value": 4.4, - "valueType": { - "$id": "33", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "26" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "Float based extensible enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "34", - "kind": "enum", - "name": "FloatExtensibleEnumWithIntValue", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatExtensibleEnumWithIntValue", - "valueType": { - "$id": "35", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ - { - "$id": "36", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "37", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "34" - }, - "decorators": [] - }, - { - "$id": "38", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "39", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "34" - }, - "decorators": [] - }, - { - "$id": "40", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "41", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "34" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "float fixed enum", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "42", - "kind": "enum", - "name": "FloatFixedEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatFixedEnum", - "valueType": { - "$id": "43", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "values": [ - { - "$id": "44", - "kind": "enumvalue", - "name": "OneDotOne", - "value": 1.1, - "valueType": { - "$id": "45", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] - }, - { - "$id": "46", - "kind": "enumvalue", - "name": "TwoDotTwo", - "value": 2.2, - "valueType": { - "$id": "47", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] - }, - { - "$id": "48", - "kind": "enumvalue", - "name": "FourDotFour", - "value": 4.4, - "valueType": { - "$id": "49", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "float fixed enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "50", - "kind": "enum", - "name": "FloatFixedEnumWithIntValue", - "crossLanguageDefinitionId": "SampleTypeSpec.FloatFixedEnumWithIntValue", - "valueType": { - "$id": "51", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ - { - "$id": "52", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "53", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] - }, - { - "$id": "54", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "55", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] - }, - { - "$id": "56", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "57", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "float fixed enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "58", - "kind": "enum", - "name": "IntFixedEnum", - "crossLanguageDefinitionId": "SampleTypeSpec.IntFixedEnum", - "valueType": { - "$id": "59", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "values": [ - { - "$id": "60", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { - "$id": "61", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] - }, - { - "$id": "62", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { - "$id": "63", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] - }, - { - "$id": "64", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { - "$id": "65", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "doc": "int fixed enum", - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "66", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "SampleTypeSpec.Versions", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "68", - "kind": "enumvalue", - "name": "2024-07-16-preview", - "value": "2024-07-16-preview", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "66" - }, - "decorators": [] - }, - { - "$id": "70", - "kind": "enumvalue", - "name": "2024-08-16-preview", - "value": "2024-08-16-preview", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "66" - }, - "decorators": [] - } - ], - "namespace": "SampleTypeSpec", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "72", - "kind": "constant", - "name": "ThingRequiredLiteralString", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "accept", - "decorators": [] - }, - { - "$id": "74", - "kind": "constant", - "name": "ThingRequiredLiteralInt", - "valueType": { - "$id": "75", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] - }, - { - "$id": "76", - "kind": "constant", - "name": "ThingRequiredLiteralFloat", - "valueType": { - "$id": "77", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 1.23, - "decorators": [] - }, - { - "$id": "78", - "kind": "constant", - "name": "ThingRequiredLiteralBool", - "valueType": { - "$id": "79", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": false, - "decorators": [] - }, - { - "$id": "80", - "kind": "constant", - "name": "ThingOptionalLiteralString", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "reject", - "decorators": [] - }, - { - "$id": "82", - "kind": "constant", - "name": "ThingOptionalLiteralInt", - "valueType": { - "$id": "83", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 456, - "decorators": [] - }, - { - "$id": "84", - "kind": "constant", - "name": "ThingOptionalLiteralFloat", - "valueType": { - "$id": "85", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 4.56, - "decorators": [] - }, - { - "$id": "86", - "kind": "constant", - "name": "ThingOptionalLiteralBool", - "valueType": { - "$id": "87", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - { - "$id": "88", - "kind": "constant", - "name": "sayHiContentType", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "90", - "kind": "constant", - "name": "HelloAgainRequestContentType", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - { - "$id": "92", - "kind": "constant", - "name": "helloAgainContentType", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "94", - "kind": "constant", - "name": "noContentTypeContentType", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "96", - "kind": "constant", - "name": "helloDemo2ContentType", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "98", - "kind": "constant", - "name": "createLiteralContentType", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "100", - "kind": "constant", - "name": "HelloLiteralRequestP1", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "test", - "decorators": [] - }, - { - "$id": "102", - "kind": "constant", - "name": "helloLiteralContentType", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "104", - "kind": "constant", - "name": "topActionContentType", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "106", - "kind": "constant", - "name": "topAction2ContentType", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "108", - "kind": "constant", - "name": "patchActionContentType", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "name": "anonymousBodyContentType", - "valueType": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "name": "friendlyModelContentType", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "name": "projectedNameModelContentType", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "116", - "kind": "constant", - "name": "returnsAnonymousModelContentType", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "118", - "kind": "constant", - "name": "GetUnknownValueResponse6", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "Sunday", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "name": "internalProtocolContentType", - "valueType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "name": "ListWithNextLinkContentType", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "name": "ListWithContinuationTokenContentType", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "126", - "kind": "constant", - "name": "ListWithContinuationTokenHeaderResponseContentType", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "128", - "kind": "constant", - "name": "ListWithPagingContentType", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "name": "EmbeddedParametersContentType", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "132", - "kind": "model", - "name": "Thing", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.Thing", - "usage": "Input,Output,Spread,Json", - "doc": "A model with a few properties of literal types", - "decorators": [], - "properties": [ - { - "$id": "133", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the Thing", - "type": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.name", - "serializationOptions": { - "$id": "135", - "json": { - "$id": "136", - "name": "name" - } - } - }, - { - "$id": "137", - "kind": "property", - "name": "requiredUnion", - "serializedName": "requiredUnion", - "doc": "required Union", - "type": { - "$id": "138", - "kind": "union", - "name": "ThingRequiredUnion", - "variantTypes": [ - { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - { - "$id": "140", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - { - "$id": "142", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } - ], - "namespace": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredUnion", - "serializationOptions": { - "$id": "143", - "json": { - "$id": "144", - "name": "requiredUnion" - } - } - }, - { - "$id": "145", - "kind": "property", - "name": "requiredLiteralString", - "serializedName": "requiredLiteralString", - "doc": "required literal string", - "type": { - "$ref": "72" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralString", - "serializationOptions": { - "$id": "146", - "json": { - "$id": "147", - "name": "requiredLiteralString" - } - } - }, - { - "$id": "148", - "kind": "property", - "name": "requiredNullableString", - "serializedName": "requiredNullableString", - "doc": "required nullable string", - "type": { - "$id": "149", - "kind": "nullable", - "type": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableString", - "serializationOptions": { - "$id": "151", - "json": { - "$id": "152", - "name": "requiredNullableString" - } - } - }, - { - "$id": "153", - "kind": "property", - "name": "optionalNullableString", - "serializedName": "optionalNullableString", - "doc": "required optional string", - "type": { - "$id": "154", - "kind": "nullable", - "type": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "namespace": "" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalNullableString", - "serializationOptions": { - "$id": "156", - "json": { - "$id": "157", - "name": "optionalNullableString" - } - } - }, - { - "$id": "158", - "kind": "property", - "name": "requiredLiteralInt", - "serializedName": "requiredLiteralInt", - "doc": "required literal int", - "type": { - "$ref": "74" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralInt", - "serializationOptions": { - "$id": "159", - "json": { - "$id": "160", - "name": "requiredLiteralInt" - } - } - }, - { - "$id": "161", - "kind": "property", - "name": "requiredLiteralFloat", - "serializedName": "requiredLiteralFloat", - "doc": "required literal float", - "type": { - "$ref": "76" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralFloat", - "serializationOptions": { - "$id": "162", - "json": { - "$id": "163", - "name": "requiredLiteralFloat" - } - } - }, - { - "$id": "164", - "kind": "property", - "name": "requiredLiteralBool", - "serializedName": "requiredLiteralBool", - "doc": "required literal bool", - "type": { - "$ref": "78" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralBool", - "serializationOptions": { - "$id": "165", - "json": { - "$id": "166", - "name": "requiredLiteralBool" - } - } - }, - { - "$id": "167", - "kind": "property", - "name": "optionalLiteralString", - "serializedName": "optionalLiteralString", - "doc": "optional literal string", - "type": { - "$ref": "80" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralString", - "serializationOptions": { - "$id": "168", - "json": { - "$id": "169", - "name": "optionalLiteralString" - } - } - }, - { - "$id": "170", - "kind": "property", - "name": "optionalLiteralInt", - "serializedName": "optionalLiteralInt", - "doc": "optional literal int", - "type": { - "$ref": "82" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralInt", - "serializationOptions": { - "$id": "171", - "json": { - "$id": "172", - "name": "optionalLiteralInt" - } - } - }, - { - "$id": "173", - "kind": "property", - "name": "optionalLiteralFloat", - "serializedName": "optionalLiteralFloat", - "doc": "optional literal float", - "type": { - "$ref": "84" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralFloat", - "serializationOptions": { - "$id": "174", - "json": { - "$id": "175", - "name": "optionalLiteralFloat" - } - } - }, - { - "$id": "176", - "kind": "property", - "name": "optionalLiteralBool", - "serializedName": "optionalLiteralBool", - "doc": "optional literal bool", - "type": { - "$ref": "86" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralBool", - "serializationOptions": { - "$id": "177", - "json": { - "$id": "178", - "name": "optionalLiteralBool" - } - } - }, - { - "$id": "179", - "kind": "property", - "name": "requiredBadDescription", - "serializedName": "requiredBadDescription", - "doc": "description with xml <|endoftext|>", - "type": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredBadDescription", - "serializationOptions": { - "$id": "181", - "json": { - "$id": "182", - "name": "requiredBadDescription" - } - } - }, - { - "$id": "183", - "kind": "property", - "name": "optionalNullableList", - "serializedName": "optionalNullableList", - "doc": "optional nullable collection", - "type": { - "$id": "184", - "kind": "nullable", - "type": { - "$id": "185", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "186", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "namespace": "" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalNullableList", - "serializationOptions": { - "$id": "187", - "json": { - "$id": "188", - "name": "optionalNullableList" - } - } - }, - { - "$id": "189", - "kind": "property", - "name": "requiredNullableList", - "serializedName": "requiredNullableList", - "doc": "required nullable collection", - "type": { - "$id": "190", - "kind": "nullable", - "type": { - "$id": "191", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "192", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableList", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "requiredNullableList" - } - } - } - ] - }, - { - "$id": "195", - "kind": "model", - "name": "RoundTripModel", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel", - "usage": "Input,Output,Json", - "doc": "this is a roundtrip model", - "decorators": [], - "properties": [ - { - "$id": "196", - "kind": "property", - "name": "requiredString", - "serializedName": "requiredString", - "doc": "Required string, illustrating a reference type property.", - "type": { - "$id": "197", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredString", - "serializationOptions": { - "$id": "198", - "json": { - "$id": "199", - "name": "requiredString" - } - } - }, - { - "$id": "200", - "kind": "property", - "name": "requiredInt", - "serializedName": "requiredInt", - "doc": "Required int, illustrating a value type property.", - "type": { - "$id": "201", - "kind": "int32", - "name": "int32", - "encode": "string", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredInt", - "serializationOptions": { - "$id": "202", - "json": { - "$id": "203", - "name": "requiredInt" - } - } - }, - { - "$id": "204", - "kind": "property", - "name": "requiredCollection", - "serializedName": "requiredCollection", - "doc": "Required collection of enums", - "type": { - "$id": "205", - "kind": "array", - "name": "ArrayStringFixedEnum", - "valueType": { - "$ref": "2" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredCollection", - "serializationOptions": { - "$id": "206", - "json": { - "$id": "207", - "name": "requiredCollection" - } - } - }, - { - "$id": "208", - "kind": "property", - "name": "requiredDictionary", - "serializedName": "requiredDictionary", - "doc": "Required dictionary of enums", - "type": { - "$id": "209", - "kind": "dict", - "keyType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "10" - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredDictionary", - "serializationOptions": { - "$id": "211", - "json": { - "$id": "212", - "name": "requiredDictionary" - } - } - }, - { - "$id": "213", - "kind": "property", - "name": "requiredModel", - "serializedName": "requiredModel", - "doc": "Required model", - "type": { - "$ref": "132" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredModel", - "serializationOptions": { - "$id": "214", - "json": { - "$id": "215", - "name": "requiredModel" - } - } - }, - { - "$id": "216", - "kind": "property", - "name": "intExtensibleEnum", - "serializedName": "intExtensibleEnum", - "doc": "this is an int based extensible enum", - "type": { - "$ref": "18" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnum", - "serializationOptions": { - "$id": "217", - "json": { - "$id": "218", - "name": "intExtensibleEnum" - } - } - }, - { - "$id": "219", - "kind": "property", - "name": "intExtensibleEnumCollection", - "serializedName": "intExtensibleEnumCollection", - "doc": "this is a collection of int based extensible enum", - "type": { - "$id": "220", - "kind": "array", - "name": "ArrayIntExtensibleEnum", - "valueType": { - "$ref": "18" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnumCollection", - "serializationOptions": { - "$id": "221", - "json": { - "$id": "222", - "name": "intExtensibleEnumCollection" - } - } - }, - { - "$id": "223", - "kind": "property", - "name": "floatExtensibleEnum", - "serializedName": "floatExtensibleEnum", - "doc": "this is a float based extensible enum", - "type": { - "$ref": "26" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnum", - "serializationOptions": { - "$id": "224", - "json": { - "$id": "225", - "name": "floatExtensibleEnum" - } - } - }, - { - "$id": "226", - "kind": "property", - "name": "floatExtensibleEnumWithIntValue", - "serializedName": "floatExtensibleEnumWithIntValue", - "doc": "this is a float based extensible enum", - "type": { - "$ref": "34" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumWithIntValue", - "serializationOptions": { - "$id": "227", - "json": { - "$id": "228", - "name": "floatExtensibleEnumWithIntValue" - } - } - }, - { - "$id": "229", - "kind": "property", - "name": "floatExtensibleEnumCollection", - "serializedName": "floatExtensibleEnumCollection", - "doc": "this is a collection of float based extensible enum", - "type": { - "$id": "230", - "kind": "array", - "name": "ArrayFloatExtensibleEnum", - "valueType": { - "$ref": "26" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumCollection", - "serializationOptions": { - "$id": "231", - "json": { - "$id": "232", - "name": "floatExtensibleEnumCollection" - } - } - }, - { - "$id": "233", - "kind": "property", - "name": "floatFixedEnum", - "serializedName": "floatFixedEnum", - "doc": "this is a float based fixed enum", - "type": { - "$ref": "42" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnum", - "serializationOptions": { - "$id": "234", - "json": { - "$id": "235", - "name": "floatFixedEnum" - } - } - }, - { - "$id": "236", - "kind": "property", - "name": "floatFixedEnumWithIntValue", - "serializedName": "floatFixedEnumWithIntValue", - "doc": "this is a float based fixed enum", - "type": { - "$ref": "50" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnumWithIntValue", - "serializationOptions": { - "$id": "237", - "json": { - "$id": "238", - "name": "floatFixedEnumWithIntValue" - } - } - }, - { - "$id": "239", - "kind": "property", - "name": "floatFixedEnumCollection", - "serializedName": "floatFixedEnumCollection", - "doc": "this is a collection of float based fixed enum", - "type": { - "$id": "240", - "kind": "array", - "name": "ArrayFloatFixedEnum", - "valueType": { - "$ref": "42" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.floatFixedEnumCollection", - "serializationOptions": { - "$id": "241", - "json": { - "$id": "242", - "name": "floatFixedEnumCollection" - } - } - }, - { - "$id": "243", - "kind": "property", - "name": "intFixedEnum", - "serializedName": "intFixedEnum", - "doc": "this is a int based fixed enum", - "type": { - "$ref": "58" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intFixedEnum", - "serializationOptions": { - "$id": "244", - "json": { - "$id": "245", - "name": "intFixedEnum" - } - } - }, - { - "$id": "246", - "kind": "property", - "name": "intFixedEnumCollection", - "serializedName": "intFixedEnumCollection", - "doc": "this is a collection of int based fixed enum", - "type": { - "$id": "247", - "kind": "array", - "name": "ArrayIntFixedEnum", - "valueType": { - "$ref": "58" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intFixedEnumCollection", - "serializationOptions": { - "$id": "248", - "json": { - "$id": "249", - "name": "intFixedEnumCollection" - } - } - }, - { - "$id": "250", - "kind": "property", - "name": "stringFixedEnum", - "serializedName": "stringFixedEnum", - "doc": "this is a string based fixed enum", - "type": { - "$ref": "2" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.stringFixedEnum", - "serializationOptions": { - "$id": "251", - "json": { - "$id": "252", - "name": "stringFixedEnum" - } - } - }, - { - "$id": "253", - "kind": "property", - "name": "requiredUnknown", - "serializedName": "requiredUnknown", - "doc": "required unknown", - "type": { - "$id": "254", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredUnknown", - "serializationOptions": { - "$id": "255", - "json": { - "$id": "256", - "name": "requiredUnknown" - } - } - }, - { - "$id": "257", - "kind": "property", - "name": "optionalUnknown", - "serializedName": "optionalUnknown", - "doc": "optional unknown", - "type": { - "$id": "258", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalUnknown", - "serializationOptions": { - "$id": "259", - "json": { - "$id": "260", - "name": "optionalUnknown" - } - } - }, - { - "$id": "261", - "kind": "property", - "name": "requiredRecordUnknown", - "serializedName": "requiredRecordUnknown", - "doc": "required record of unknown", - "type": { - "$id": "262", - "kind": "dict", - "keyType": { - "$id": "263", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "264", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredRecordUnknown", - "serializationOptions": { - "$id": "265", - "json": { - "$id": "266", - "name": "requiredRecordUnknown" - } - } - }, - { - "$id": "267", - "kind": "property", - "name": "optionalRecordUnknown", - "serializedName": "optionalRecordUnknown", - "doc": "optional record of unknown", - "type": { - "$id": "268", - "kind": "dict", - "keyType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "270", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalRecordUnknown", - "serializationOptions": { - "$id": "271", - "json": { - "$id": "272", - "name": "optionalRecordUnknown" - } - } - }, - { - "$id": "273", - "kind": "property", - "name": "readOnlyRequiredRecordUnknown", - "serializedName": "readOnlyRequiredRecordUnknown", - "doc": "required readonly record of unknown", - "type": { - "$id": "274", - "kind": "dict", - "keyType": { - "$id": "275", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "276", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown", - "serializationOptions": { - "$id": "277", - "json": { - "$id": "278", - "name": "readOnlyRequiredRecordUnknown" - } - } - }, - { - "$id": "279", - "kind": "property", - "name": "readOnlyOptionalRecordUnknown", - "serializedName": "readOnlyOptionalRecordUnknown", - "doc": "optional readonly record of unknown", - "type": { - "$id": "280", - "kind": "dict", - "keyType": { - "$id": "281", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "282", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown", - "serializationOptions": { - "$id": "283", - "json": { - "$id": "284", - "name": "readOnlyOptionalRecordUnknown" - } - } - }, - { - "$id": "285", - "kind": "property", - "name": "modelWithRequiredNullable", - "serializedName": "modelWithRequiredNullable", - "doc": "this is a model with required nullable properties", - "type": { - "$id": "286", - "kind": "model", - "name": "ModelWithRequiredNullableProperties", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties", - "usage": "Input,Output,Json", - "doc": "A model with a few required nullable properties", - "decorators": [], - "properties": [ - { - "$id": "287", - "kind": "property", - "name": "requiredNullablePrimitive", - "serializedName": "requiredNullablePrimitive", - "doc": "required nullable primitive type", - "type": { - "$id": "288", - "kind": "nullable", - "type": { - "$id": "289", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive", - "serializationOptions": { - "$id": "290", - "json": { - "$id": "291", - "name": "requiredNullablePrimitive" - } - } - }, - { - "$id": "292", - "kind": "property", - "name": "requiredExtensibleEnum", - "serializedName": "requiredExtensibleEnum", - "doc": "required nullable extensible enum type", - "type": { - "$id": "293", - "kind": "nullable", - "type": { - "$ref": "10" - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum", - "serializationOptions": { - "$id": "294", - "json": { - "$id": "295", - "name": "requiredExtensibleEnum" - } - } - }, - { - "$id": "296", - "kind": "property", - "name": "requiredFixedEnum", - "serializedName": "requiredFixedEnum", - "doc": "required nullable fixed enum type", - "type": { - "$id": "297", - "kind": "nullable", - "type": { - "$ref": "2" - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum", - "serializationOptions": { - "$id": "298", - "json": { - "$id": "299", - "name": "requiredFixedEnum" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.modelWithRequiredNullable", - "serializationOptions": { - "$id": "300", - "json": { - "$id": "301", - "name": "modelWithRequiredNullable" - } - } - }, - { - "$id": "302", - "kind": "property", - "name": "requiredBytes", - "serializedName": "requiredBytes", - "doc": "Required bytes", - "type": { - "$id": "303", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredBytes", - "serializationOptions": { - "$id": "304", - "json": { - "$id": "305", - "name": "requiredBytes" - } - } - } - ] - }, - { - "$ref": "286" - }, - { - "$id": "306", - "kind": "model", - "name": "Friend", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend", - "usage": "Output,Spread,Json", - "doc": "this is not a friendly model but with a friendly name", - "decorators": [], - "properties": [ - { - "$id": "307", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend.name", - "serializationOptions": { - "$id": "309", - "json": { - "$id": "310", - "name": "name" - } - } - } - ] - }, - { - "$id": "311", - "kind": "model", - "name": "RenamedModel", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName", - "usage": "Output,Spread,Json", - "doc": "this is a model with a client name", - "decorators": [], - "properties": [ - { - "$id": "312", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "313", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName.name", - "serializationOptions": { - "$id": "314", - "json": { - "$id": "315", - "name": "name" - } - } - } - ] - }, - { - "$id": "316", - "kind": "model", - "name": "ReturnsAnonymousModelResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [] - }, - { - "$id": "317", - "kind": "model", - "name": "ListWithNextLinkResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "318", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "319", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.things", - "serializationOptions": { - "$id": "320", - "json": { - "$id": "321", - "name": "things" - } - } - }, - { - "$id": "322", - "kind": "property", - "name": "next", - "serializedName": "next", - "type": { - "$id": "323", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.next", - "serializationOptions": { - "$id": "324", - "json": { - "$id": "325", - "name": "next" - } - } - } - ] - }, - { - "$id": "326", - "kind": "model", - "name": "ListWithContinuationTokenResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "327", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "328", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.things", - "serializationOptions": { - "$id": "329", - "json": { - "$id": "330", - "name": "things" - } - } - }, - { - "$id": "331", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "332", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "333", - "json": { - "$id": "334", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "335", - "kind": "model", - "name": "ListWithContinuationTokenHeaderResponseResponse", - "namespace": "", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "336", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "337", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "ListWithContinuationTokenHeaderResponse.Response.anonymous.things", - "serializationOptions": { - "$id": "338", - "json": { - "$id": "339", - "name": "things" - } - } - } - ] - }, - { - "$id": "340", - "kind": "model", - "name": "PageThing", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.Page", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "341", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$id": "342", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Page.items", - "serializationOptions": { - "$id": "343", - "json": { - "$id": "344", - "name": "items" - } - } - } - ] - }, - { - "$id": "345", - "kind": "model", - "name": "ModelWithEmbeddedNonBodyParameters", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters", - "usage": "Input,Json", - "decorators": [], - "properties": [ - { - "$id": "346", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the ModelWithEmbeddedNonBodyParameters", - "type": { - "$id": "347", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.name", - "serializationOptions": { - "$id": "348", - "json": { - "$id": "349", - "name": "name" - } - } - }, - { - "$id": "350", - "kind": "header", - "name": "requiredHeader", - "serializedName": "required-header", - "doc": "required header parameter", - "type": { - "$id": "351", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", - "discriminator": false, - "flatten": false - }, - { - "$id": "352", - "kind": "header", - "name": "optionalHeader", - "serializedName": "optional-header", - "doc": "optional header parameter", - "type": { - "$id": "353", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", - "discriminator": false, - "flatten": false - }, - { - "$id": "354", - "kind": "query", - "name": "requiredQuery", - "serializedName": "requiredQuery", - "doc": "required query parameter", - "type": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", - "discriminator": false, - "flatten": false - }, - { - "$id": "356", - "kind": "query", - "name": "optionalQuery", - "serializedName": "optionalQuery", - "doc": "optional query parameter", - "type": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", - "discriminator": false, - "flatten": false - } - ] - } - ], - "clients": [ - { - "$id": "358", - "kind": "client", - "name": "SampleTypeSpecClient", - "namespace": "SampleTypeSpec", - "doc": "This is a sample typespec project.", - "methods": [ - { - "$id": "359", - "kind": "basic", - "name": "sayHi", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi", - "operation": { - "$id": "360", - "name": "sayHi", - "resourceName": "SampleTypeSpec", - "doc": "Return hi", - "accessibility": "public", - "parameters": [ - { - "$id": "361", - "name": "headParameter", - "nameInRequest": "head-parameter", - "type": { - "$id": "362", - "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": "363", - "name": "queryParameter", - "nameInRequest": "queryParameter", - "type": { - "$id": "364", - "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": "365", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "type": { - "$id": "366", - "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": "367", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "368", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/hello", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi", - "decorators": [] - }, - "parameters": [ - { - "$id": "369", - "name": "headParameter", - "nameInRequest": "head-parameter", - "type": { - "$id": "370", - "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": "371", - "name": "queryParameter", - "nameInRequest": "queryParameter", - "type": { - "$id": "372", - "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": "373", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "type": { - "$id": "374", - "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": "375", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "376", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" - }, - { - "$id": "377", - "kind": "basic", - "name": "helloAgain", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "378", - "name": "helloAgain", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "379", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "380", - "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": "381", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "382", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "383", - "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": "384", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "385", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "195" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "386", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/againHi/{p2}", - "requestMediaTypes": [ - "text/plain" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain", - "decorators": [] - }, - "parameters": [ - { - "$id": "387", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "388", - "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": "389", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "195" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "390", - "name": "contentType", - "nameInRequest": "content-type", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "391", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "392", - "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": "393", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "394", - "type": { - "$ref": "195" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" - }, - { - "$id": "395", - "kind": "basic", - "name": "noContentType", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "396", - "name": "noContentType", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "397", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "398", - "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": "399", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "400", - "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": "401", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "402", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "403", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "195" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "404", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/noContentType/{p2}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType", - "decorators": [] - }, - "parameters": [ - { - "$id": "405", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "406", - "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": "407", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "195" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "408", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "409", - "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": "410", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "411", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "412", - "type": { - "$ref": "195" - } - }, - "isOverride": false, - "generateConvenient": false, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" - }, - { - "$id": "413", - "kind": "basic", - "name": "helloDemo2", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi in demo2", - "operation": { - "$id": "414", - "name": "helloDemo2", - "resourceName": "SampleTypeSpec", - "doc": "Return hi in demo2", - "accessibility": "public", - "parameters": [ - { - "$id": "415", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "416", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/demoHi", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2", - "decorators": [] - }, - "parameters": [ - { - "$id": "417", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "418", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" - }, - { - "$id": "419", - "kind": "basic", - "name": "createLiteral", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Create with literal value", - "operation": { - "$id": "420", - "name": "createLiteral", - "resourceName": "SampleTypeSpec", - "doc": "Create with literal value", - "accessibility": "public", - "parameters": [ - { - "$id": "421", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "422", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "98" - }, - "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": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "424", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral", - "decorators": [] - }, - "parameters": [ - { - "$id": "425", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "426", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "427", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "428", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" - }, - { - "$id": "429", - "kind": "basic", - "name": "helloLiteral", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Send literal parameters", - "operation": { - "$id": "430", - "name": "helloLiteral", - "resourceName": "SampleTypeSpec", - "doc": "Send literal parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "431", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "432", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$ref": "74" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "433", - "name": "p3", - "nameInRequest": "p3", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "434", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "435", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/helloLiteral/{p2}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral", - "decorators": [] - }, - "parameters": [ - { - "$id": "436", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "437", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$ref": "74" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "438", - "name": "p3", - "nameInRequest": "p3", - "type": { - "$ref": "86" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "439", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "440", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" - }, - { - "$id": "441", - "kind": "basic", - "name": "topAction", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level method", - "operation": { - "$id": "442", - "name": "topAction", - "resourceName": "SampleTypeSpec", - "doc": "top level method", - "accessibility": "public", - "parameters": [ - { - "$id": "443", - "name": "action", - "nameInRequest": "action", - "type": { - "$id": "444", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "445", - "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": "446", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "447", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/top/{action}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction", - "decorators": [] - }, - "parameters": [ - { - "$id": "448", - "name": "action", - "nameInRequest": "action", - "type": { - "$id": "449", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "450", - "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": "451", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "452", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction" - }, - { - "$id": "453", - "kind": "basic", - "name": "topAction2", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level method2", - "operation": { - "$id": "454", - "name": "topAction2", - "resourceName": "SampleTypeSpec", - "doc": "top level method2", - "accessibility": "public", - "parameters": [ - { - "$id": "455", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "456", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/top2", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2", - "decorators": [] - }, - "parameters": [ - { - "$id": "457", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "458", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": false, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" - }, - { - "$id": "459", - "kind": "basic", - "name": "patchAction", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level patch", - "operation": { - "$id": "460", - "name": "patchAction", - "resourceName": "SampleTypeSpec", - "doc": "top level patch", - "accessibility": "public", - "parameters": [ - { - "$id": "461", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "462", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "463", - "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": "464", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PATCH", - "uri": "{sampleTypeSpecUrl}", - "path": "/patch", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction", - "decorators": [] - }, - "parameters": [ - { - "$id": "465", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "466", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "467", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "468", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" - }, - { - "$id": "469", - "kind": "basic", - "name": "anonymousBody", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "body parameter without body decorator", - "operation": { - "$id": "470", - "name": "anonymousBody", - "resourceName": "SampleTypeSpec", - "doc": "body parameter without body decorator", - "accessibility": "public", - "parameters": [ - { - "$id": "471", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "472", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "473", - "name": "thing", - "nameInRequest": "thing", - "type": { - "$ref": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/anonymousBody", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody", - "decorators": [] - }, - "parameters": [ - { - "$id": "475", - "name": "name", - "nameInRequest": "name", - "doc": "name of the Thing", - "type": { - "$id": "476", - "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 - }, - { - "$id": "477", - "name": "requiredUnion", - "nameInRequest": "requiredUnion", - "doc": "required Union", - "type": { - "$ref": "138" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "478", - "name": "requiredLiteralString", - "nameInRequest": "requiredLiteralString", - "doc": "required literal string", - "type": { - "$ref": "72" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "479", - "name": "requiredNullableString", - "nameInRequest": "requiredNullableString", - "doc": "required nullable string", - "type": { - "$ref": "149" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "480", - "name": "optionalNullableString", - "nameInRequest": "optionalNullableString", - "doc": "required optional string", - "type": { - "$ref": "154" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "481", - "name": "requiredLiteralInt", - "nameInRequest": "requiredLiteralInt", - "doc": "required literal int", - "type": { - "$ref": "74" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "482", - "name": "requiredLiteralFloat", - "nameInRequest": "requiredLiteralFloat", - "doc": "required literal float", - "type": { - "$ref": "76" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "483", - "name": "requiredLiteralBool", - "nameInRequest": "requiredLiteralBool", - "doc": "required literal bool", - "type": { - "$ref": "78" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "484", - "name": "optionalLiteralString", - "nameInRequest": "optionalLiteralString", - "doc": "optional literal string", - "type": { - "$ref": "80" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "485", - "name": "optionalLiteralInt", - "nameInRequest": "optionalLiteralInt", - "doc": "optional literal int", - "type": { - "$ref": "82" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "486", - "name": "optionalLiteralFloat", - "nameInRequest": "optionalLiteralFloat", - "doc": "optional literal float", - "type": { - "$ref": "84" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "487", - "name": "optionalLiteralBool", - "nameInRequest": "optionalLiteralBool", - "doc": "optional literal bool", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "488", - "name": "requiredBadDescription", - "nameInRequest": "requiredBadDescription", - "doc": "description with xml <|endoftext|>", - "type": { - "$id": "489", - "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 - }, - { - "$id": "490", - "name": "optionalNullableList", - "nameInRequest": "optionalNullableList", - "doc": "optional nullable collection", - "type": { - "$ref": "184" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "491", - "name": "requiredNullableList", - "nameInRequest": "requiredNullableList", - "doc": "required nullable collection", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "492", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "493", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "494", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" - }, - { - "$id": "495", - "kind": "basic", - "name": "friendlyModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Model can have its friendly name", - "operation": { - "$id": "496", - "name": "friendlyModel", - "resourceName": "SampleTypeSpec", - "doc": "Model can have its friendly name", - "accessibility": "public", - "parameters": [ - { - "$id": "497", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "498", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "499", - "name": "friend", - "nameInRequest": "friend", - "type": { - "$ref": "306" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "500", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "306" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/friendlyName", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "501", - "name": "name", - "nameInRequest": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "502", - "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 - }, - { - "$id": "503", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "504", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "505", - "type": { - "$ref": "306" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" - }, - { - "$id": "506", - "kind": "basic", - "name": "addTimeHeader", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "operation": { - "$id": "507", - "name": "addTimeHeader", - "resourceName": "SampleTypeSpec", - "accessibility": "public", - "parameters": [ - { - "$id": "508", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "509", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "510", - "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": "511", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader", - "decorators": [] - }, - "parameters": [ - { - "$id": "512", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "513", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "514", - "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 - } - ], - "response": { - "$id": "515" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" - }, - { - "$id": "516", - "kind": "basic", - "name": "projectedNameModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Model can have its projected name", - "operation": { - "$id": "517", - "name": "projectedNameModel", - "resourceName": "SampleTypeSpec", - "doc": "Model can have its projected name", - "accessibility": "public", - "parameters": [ - { - "$id": "518", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "519", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "520", - "name": "renamedModel", - "nameInRequest": "renamedModel", - "type": { - "$ref": "311" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "521", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "311" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/projectedName", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "522", - "name": "name", - "nameInRequest": "name", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "523", - "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 - }, - { - "$id": "524", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "525", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "526", - "type": { - "$ref": "311" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" - }, - { - "$id": "527", - "kind": "basic", - "name": "returnsAnonymousModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "return anonymous model", - "operation": { - "$id": "528", - "name": "returnsAnonymousModel", - "resourceName": "SampleTypeSpec", - "doc": "return anonymous model", - "accessibility": "public", - "parameters": [ - { - "$id": "529", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "530", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "316" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/returnsAnonymousModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "531", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "532", - "type": { - "$ref": "316" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" - }, - { - "$id": "533", - "kind": "basic", - "name": "getUnknownValue", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "get extensible enum", - "operation": { - "$id": "534", - "name": "getUnknownValue", - "resourceName": "SampleTypeSpec", - "doc": "get extensible enum", - "accessibility": "public", - "parameters": [ - { - "$id": "535", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "536", - "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": "537", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "118" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/unknown-value", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue", - "decorators": [] - }, - "parameters": [ - { - "$id": "538", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "536" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "539", - "type": { - "$ref": "118" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" - }, - { - "$id": "540", - "kind": "basic", - "name": "internalProtocol", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "When set protocol false and convenient true, then the protocol method should be internal", - "operation": { - "$id": "541", - "name": "internalProtocol", - "resourceName": "SampleTypeSpec", - "doc": "When set protocol false and convenient true, then the protocol method should be internal", - "accessibility": "public", - "parameters": [ - { - "$id": "542", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "543", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "544", - "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": "545", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/internalProtocol", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": false, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol", - "decorators": [] - }, - "parameters": [ - { - "$id": "546", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "547", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "548", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "549", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": false, - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" - }, - { - "$id": "550", - "kind": "basic", - "name": "stillConvenient", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", - "operation": { - "$id": "551", - "name": "stillConvenient", - "resourceName": "SampleTypeSpec", - "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "552", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/stillConvenient", - "bufferResponse": true, - "generateProtocolMethod": false, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "553" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": false, - "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" - }, - { - "$id": "554", - "kind": "basic", - "name": "headAsBoolean", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "head as boolean.", - "operation": { - "$id": "555", - "name": "headAsBoolean", - "resourceName": "SampleTypeSpec", - "doc": "head as boolean.", - "accessibility": "public", - "parameters": [ - { - "$id": "556", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "557", - "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": "558", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{sampleTypeSpecUrl}", - "path": "/headAsBoolean/{id}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean", - "decorators": [] - }, - "parameters": [ - { - "$id": "559", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "560", - "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 - } - ], - "response": { - "$id": "561" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" - }, - { - "$id": "562", - "kind": "basic", - "name": "WithApiVersion", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "563", - "name": "WithApiVersion", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "564", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "565", - "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": "566", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "type": { - "$id": "567", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "568", - "type": { - "$id": "569", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2024-08-16-preview" - }, - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "570", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/WithApiVersion", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion", - "decorators": [] - }, - "parameters": [ - { - "$id": "571", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "572", - "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 - } - ], - "response": { - "$id": "573" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" - }, - { - "$id": "574", - "kind": "paging", - "name": "ListWithNextLink", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with nextlink", - "operation": { - "$id": "575", - "name": "ListWithNextLink", - "resourceName": "SampleTypeSpec", - "doc": "List things with nextlink", - "accessibility": "public", - "parameters": [ - { - "$id": "576", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "577", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "317" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/link", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", - "decorators": [] - }, - "parameters": [ - { - "$id": "578", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "579", - "type": { - "$id": "580", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "things" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", - "pagingMetadata": { - "$id": "581", - "itemPropertySegments": [ - "things" - ], - "nextLink": { - "$id": "582", - "responseSegments": [ - "next" - ], - "responseLocation": "Body" - } - } - }, - { - "$id": "583", - "kind": "paging", - "name": "ListWithContinuationToken", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with continuation token", - "operation": { - "$id": "584", - "name": "ListWithContinuationToken", - "resourceName": "SampleTypeSpec", - "doc": "List things with continuation token", - "accessibility": "public", - "parameters": [ - { - "$id": "585", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "586", - "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": "587", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "588", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "326" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/continuation", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", - "decorators": [] - }, - "parameters": [ - { - "$id": "589", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "590", - "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": "591", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "592", - "type": { - "$id": "593", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "things" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", - "pagingMetadata": { - "$id": "594", - "itemPropertySegments": [ - "things" - ], - "continuationToken": { - "$id": "595", - "parameter": { - "$ref": "585" - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" - } - } - }, - { - "$id": "596", - "kind": "paging", - "name": "ListWithContinuationTokenHeaderResponse", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with continuation token header response", - "operation": { - "$id": "597", - "name": "ListWithContinuationTokenHeaderResponse", - "resourceName": "SampleTypeSpec", - "doc": "List things with continuation token header response", - "accessibility": "public", - "parameters": [ - { - "$id": "598", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "599", - "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": "600", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "601", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "335" - }, - "headers": [ - { - "$id": "602", - "name": "nextToken", - "nameInResponse": "next-token", - "type": { - "$id": "603", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/continuation/header", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", - "decorators": [] - }, - "parameters": [ - { - "$id": "604", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "605", - "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": "606", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "607", - "type": { - "$id": "608", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "things" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", - "pagingMetadata": { - "$id": "609", - "itemPropertySegments": [ - "things" - ], - "continuationToken": { - "$id": "610", - "parameter": { - "$ref": "598" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" - } - } - }, - { - "$id": "611", - "kind": "paging", - "name": "ListWithPaging", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with paging", - "operation": { - "$id": "612", - "name": "ListWithPaging", - "resourceName": "SampleTypeSpec", - "doc": "List things with paging", - "accessibility": "public", - "parameters": [ - { - "$id": "613", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "614", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "340" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/list/paging", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging", - "decorators": [] - }, - "parameters": [ - { - "$id": "615", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "616", - "type": { - "$id": "617", - "kind": "array", - "name": "ArrayThing", - "valueType": { - "$ref": "132" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "items" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging", - "pagingMetadata": { - "$id": "618", - "itemPropertySegments": [ - "items" - ] - } - }, - { - "$id": "619", - "kind": "basic", - "name": "EmbeddedParameters", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "An operation with embedded parameters within the body", - "operation": { - "$id": "620", - "name": "EmbeddedParameters", - "resourceName": "SampleTypeSpec", - "doc": "An operation with embedded parameters within the body", - "accessibility": "public", - "parameters": [ - { - "$id": "621", - "name": "requiredHeader", - "nameInRequest": "required-header", - "doc": "required header parameter", - "type": { - "$id": "622", - "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": "623", - "name": "optionalHeader", - "nameInRequest": "optional-header", - "doc": "optional header parameter", - "type": { - "$id": "624", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "625", - "name": "requiredQuery", - "nameInRequest": "requiredQuery", - "doc": "required query parameter", - "type": { - "$id": "626", - "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": "627", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "doc": "optional query parameter", - "type": { - "$id": "628", - "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": "629", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "630", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "345" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "631", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/embeddedParameters", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters", - "decorators": [] - }, - "parameters": [ - { - "$id": "632", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "345" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "633", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "634" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters" - } - ], - "parameters": [ - { - "$id": "635", - "name": "sampleTypeSpecUrl", - "nameInRequest": "sampleTypeSpecUrl", - "type": { - "$id": "636", - "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": "SampleTypeSpec", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ] - } - ], - "auth": { - "$id": "637", - "apiKey": { - "$id": "638", - "name": "my-api-key", - "in": "header" - } - } -} diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs index 325fe075146..dac20a5ada5 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs @@ -1,4 +1,7 @@ +using System.IO; using System.Linq; +using System.Text.Json; +using System.Text.Json.Serialization; using Microsoft.TypeSpec.Generator.Tests.Common; using NUnit.Framework; @@ -7,43 +10,50 @@ namespace Microsoft.TypeSpec.Generator.Input.Tests public class TypeSpecInputConverterTests { [Test] - public void LoadsTypeSpecPagingInput() + public void LoadsPagingWithNextLink() { - var inputLibrary = new InputLibrary(Helpers.GetAssetFileOrDirectoryPath(false)); - var inputNamespace = inputLibrary.Load(); - - var nextLinkMethod = inputNamespace.RootClients.First().Methods.FirstOrDefault(x => x.Operation.Name == "ListWithNextLink"); - Assert.IsNotNull(nextLinkMethod); - - InputPagingServiceMetadata? nextLinkPaging = null; - if (nextLinkMethod is InputPagingServiceMethod pagingServiceMethod) - { - nextLinkPaging = pagingServiceMethod.PagingMetadata; - } - else + var directory = Helpers.GetAssetFileOrDirectoryPath(false); + // this tspCodeModel.json contains a partial part of the full tspCodeModel.json + var content = File.ReadAllText(Path.Combine(directory, "tspCodeModel.json")); + var options = new JsonSerializerOptions { - Assert.Fail("Expected InputPagingServiceMethod"); - } - - Assert.IsNotNull(nextLinkPaging); - var nextLink = nextLinkPaging!.NextLink; - Assert.IsNotNull(nextLink); - Assert.AreEqual(1, nextLink!.ResponseSegments.Count); - Assert.AreEqual("next", nextLink.ResponseSegments[0]); - Assert.AreEqual(InputResponseLocation.Body, nextLink.ResponseLocation); - - var continuationMethod = inputNamespace.RootClients.First().Methods.FirstOrDefault(x => x.Operation.Name == "ListWithContinuationTokenHeaderResponse"); - Assert.IsNotNull(continuationMethod); + AllowTrailingCommas = true, + Converters = + { + new JsonStringEnumConverter(JsonNamingPolicy.CamelCase), + new InputPagingServiceMetadataConverter(), + new InputNextLinkConverter(), + } + }; + var pagingMetadata = JsonSerializer.Deserialize(content, options); + Assert.IsNotNull(pagingMetadata); + Assert.IsNotNull(pagingMetadata?.NextLink); + Assert.AreEqual(1, pagingMetadata!.NextLink!.ResponseSegments.Count); + Assert.AreEqual("next", pagingMetadata.NextLink.ResponseSegments[0]); + Assert.AreEqual(InputResponseLocation.Body, pagingMetadata.NextLink.ResponseLocation); + } - InputPagingServiceMetadata? continuationPaging = null; - if (continuationMethod is InputPagingServiceMethod continuationPagingServiceMethod) - { - continuationPaging = continuationPagingServiceMethod.PagingMetadata; - } - else + [Test] + public void LoadsPagingWithContinuationToken() + { + var directory = Helpers.GetAssetFileOrDirectoryPath(false); + // this tspCodeModel.json contains a partial part of the full tspCodeModel.json + var content = File.ReadAllText(Path.Combine(directory, "tspCodeModel.json")); + var referenceHandler = new TypeSpecReferenceHandler(); + var options = new JsonSerializerOptions { - Assert.Fail("Expected InputPagingServiceMethod"); - } + AllowTrailingCommas = true, + Converters = + { + new JsonStringEnumConverter(JsonNamingPolicy.CamelCase), + new InputPagingServiceMetadataConverter(), + new InputContinuationTokenConverter(), + new InputParameterConverter(referenceHandler), + new InputTypeConverter(referenceHandler), + new InputPrimitiveTypeConverter(referenceHandler), + } + }; + var continuationPaging = JsonSerializer.Deserialize(content, options); Assert.IsNotNull(continuationPaging); var continuation = continuationPaging!.ContinuationToken; From 2f2178a764d57bb15e43a45cedfbe342a2628227 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 29 May 2025 11:08:51 +0800 Subject: [PATCH 09/22] refine and clean up --- .../emitter/src/code-model-writer.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/code-model-writer.ts b/packages/http-client-csharp/emitter/src/code-model-writer.ts index f27a2636bb1..c0e0125bd68 100644 --- a/packages/http-client-csharp/emitter/src/code-model-writer.ts +++ b/packages/http-client-csharp/emitter/src/code-model-writer.ts @@ -42,9 +42,9 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { ]); const objectsIds = new Map(); - return doBuildJson(context, codeModel); + return doBuildJson(codeModel); - function doBuildJson(context: CSharpEmitterContext, obj: any): any { + function doBuildJson(obj: any): any { // check if this is a primitive type or null or undefined if (!obj || typeof obj !== "object") { return obj; @@ -52,7 +52,7 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { // we switch here for object, arrays and primitives if (Array.isArray(obj)) { // array types - return obj.map((item) => doBuildJson(context, item)); + return obj.map((item) => doBuildJson(item)); } else { // this is an object if (shouldHaveRef(obj)) { @@ -68,16 +68,17 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { // this is the first time we see this object id = (objectsIds.size + 1).toString(); objectsIds.set(obj, id); - return handleObject(context, obj, id); + return handleObject(obj, id); } } else { // this is not an object to ref - return handleObject(context, obj, undefined); + return handleObject(obj, undefined); } } } - function handleObject(context: CSharpEmitterContext, obj: any, id: string | undefined): any { + // TODO -- we need to detect cyclical references here and break them. + function handleObject(obj: any, id: string | undefined): any { const result: any = id === undefined ? {} : { $id: id }; for (const property in obj) { @@ -85,7 +86,7 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { continue; // skip __raw property } const v = obj[property]; - result[property] = doBuildJson(context, v); + result[property] = doBuildJson(v); } return result; From 4c3f143d32209173cca63358c65c3a1b6dfec2b1 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 29 May 2025 11:16:32 +0800 Subject: [PATCH 10/22] clean up --- .../emitter/src/lib/model.ts | 34 ------------------- .../emitter/src/lib/typespec-server.ts | 22 ++++++++++-- 2 files changed, 19 insertions(+), 37 deletions(-) delete mode 100644 packages/http-client-csharp/emitter/src/lib/model.ts diff --git a/packages/http-client-csharp/emitter/src/lib/model.ts b/packages/http-client-csharp/emitter/src/lib/model.ts deleted file mode 100644 index 2c29bd8bfc9..00000000000 --- a/packages/http-client-csharp/emitter/src/lib/model.ts +++ /dev/null @@ -1,34 +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 { getClientType } from "@azure-tools/typespec-client-generator-core"; -import { Operation, Type, Value } from "@typespec/compiler"; -import { CSharpEmitterContext } from "../sdk-context.js"; -import { InputType } from "../type/input-type.js"; -import { fromSdkType } from "./type-converter.js"; - -export function getDefaultValue(value: Value): any { - switch (value.valueKind) { - case "StringValue": - return value.value; - case "NumericValue": - return value.value; - case "BooleanValue": - return value.value; - case "ArrayValue": - return value.values.map(getDefaultValue); - default: - return undefined; - } -} - -export function getInputType( - context: CSharpEmitterContext, - type: Type, - operation?: Operation, -): InputType { - context.logger.debug(`getInputType for kind: ${type.kind}`); - - const sdkType = getClientType(context, type, operation); - return fromSdkType(context, sdkType); -} diff --git a/packages/http-client-csharp/emitter/src/lib/typespec-server.ts b/packages/http-client-csharp/emitter/src/lib/typespec-server.ts index 7e948de002c..648805b0558 100644 --- a/packages/http-client-csharp/emitter/src/lib/typespec-server.ts +++ b/packages/http-client-csharp/emitter/src/lib/typespec-server.ts @@ -1,7 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { getDoc, getSummary } from "@typespec/compiler"; +import { getClientType } from "@azure-tools/typespec-client-generator-core"; +import { getDoc, getSummary, Value } from "@typespec/compiler"; import { HttpServer } from "@typespec/http"; import { getExtensions } from "@typespec/openapi"; import { CSharpEmitterContext } from "../sdk-context.js"; @@ -10,7 +11,7 @@ import { InputParameterKind } from "../type/input-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 { getDefaultValue, getInputType } from "./model.js"; +import { fromSdkType } from "./type-converter.js"; export interface TypeSpecServer { url: string; @@ -36,7 +37,7 @@ export function resolveServers( name: "url", crossLanguageDefinitionId: "TypeSpec.url", } - : getInputType(sdkContext, prop); + : fromSdkType(sdkContext, getClientType(sdkContext, prop)); if (value) { defaultValue = { @@ -103,3 +104,18 @@ export function resolveServers( }; }); } + +function getDefaultValue(value: Value): any { + switch (value.valueKind) { + case "StringValue": + return value.value; + case "NumericValue": + return value.value; + case "BooleanValue": + return value.value; + case "ArrayValue": + return value.values.map(getDefaultValue); + default: + return undefined; + } +} From 7af2806eddc88c645a4720de9db5e41b99e33bc2 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 29 May 2025 11:38:02 +0800 Subject: [PATCH 11/22] clean up --- .../emitter/src/code-model-writer.ts | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/code-model-writer.ts b/packages/http-client-csharp/emitter/src/code-model-writer.ts index c0e0125bd68..54871ad458a 100644 --- a/packages/http-client-csharp/emitter/src/code-model-writer.ts +++ b/packages/http-client-csharp/emitter/src/code-model-writer.ts @@ -41,10 +41,11 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { ...context.__typeCache.types.values(), ]); const objectsIds = new Map(); + const stack: any[] = []; - return doBuildJson(codeModel); + return doBuildJson(codeModel, stack); - function doBuildJson(obj: any): any { + function doBuildJson(obj: any, stack: any[]): any { // check if this is a primitive type or null or undefined if (!obj || typeof obj !== "object") { return obj; @@ -52,7 +53,7 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { // we switch here for object, arrays and primitives if (Array.isArray(obj)) { // array types - return obj.map((item) => doBuildJson(item)); + return obj.map((item) => doBuildJson(item, stack)); } else { // this is an object if (shouldHaveRef(obj)) { @@ -68,27 +69,36 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { // this is the first time we see this object id = (objectsIds.size + 1).toString(); objectsIds.set(obj, id); - return handleObject(obj, id); + return handleObject(obj, id, stack); } } else { // this is not an object to ref - return handleObject(obj, undefined); + return handleObject(obj, undefined, stack); } } } - // TODO -- we need to detect cyclical references here and break them. - function handleObject(obj: any, id: string | undefined): any { + function handleObject(obj: any, id: string | undefined, stack: any[]): any { + if (stack.includes(obj)) { + // we have a cyclical reference, we should not continue + context.logger.warn( + `Cyclical reference detected in the code model (id: ${id}).` + ); + return undefined; + } + const result: any = id === undefined ? {} : { $id: id }; + stack.push(obj); for (const property in obj) { if (property === "__raw") { continue; // skip __raw property } const v = obj[property]; - result[property] = doBuildJson(v); + result[property] = doBuildJson(v, stack); } + stack.pop(); return result; } From c411c7f6cd33267acc7f8b0cf9eb01eacdef3327 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 29 May 2025 13:48:45 +0800 Subject: [PATCH 12/22] removes the dependency --- packages/http-client-csharp/package-lock.json | 9 --------- packages/http-client-csharp/package.json | 3 --- 2 files changed, 12 deletions(-) diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index 4ef6d3b4daf..cbde9e362dc 100644 --- a/packages/http-client-csharp/package-lock.json +++ b/packages/http-client-csharp/package-lock.json @@ -8,9 +8,6 @@ "name": "@typespec/http-client-csharp", "version": "1.0.0", "license": "MIT", - "dependencies": { - "json-serialize-refs": "0.1.0-0" - }, "devDependencies": { "@azure-tools/azure-http-specs": "0.1.0-alpha.17", "@azure-tools/typespec-azure-core": "0.56.0", @@ -4694,12 +4691,6 @@ "dev": true, "license": "MIT" }, - "node_modules/json-serialize-refs": { - "version": "0.1.0-0", - "resolved": "https://registry.npmjs.org/json-serialize-refs/-/json-serialize-refs-0.1.0-0.tgz", - "integrity": "sha512-SnNMfW2RRPDXIMKa8zdLb59UjMSI1UFZCtIb8ae68GcZ0a6x8b77lIWqqTOdq1azzmkXupD6UWriPLd0JCrFng==", - "license": "MIT" - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index bb95523badf..e73db0ed689 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -47,9 +47,6 @@ "dist/emitter/src/**", "dist/generator/**" ], - "dependencies": { - "json-serialize-refs": "0.1.0-0" - }, "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.56.0 <0.57.0 || ~0.57.0-0", "@azure-tools/typespec-client-generator-core": ">=0.56.2 <0.57.0 || ~0.57.0-0", From 73fb489f311cf96d523dbf17b526dba459204f66 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 30 May 2025 14:16:49 +0800 Subject: [PATCH 13/22] format --- packages/http-client-csharp/emitter/src/code-model-writer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/code-model-writer.ts b/packages/http-client-csharp/emitter/src/code-model-writer.ts index 54871ad458a..49815d33de4 100644 --- a/packages/http-client-csharp/emitter/src/code-model-writer.ts +++ b/packages/http-client-csharp/emitter/src/code-model-writer.ts @@ -81,9 +81,7 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { function handleObject(obj: any, id: string | undefined, stack: any[]): any { if (stack.includes(obj)) { // we have a cyclical reference, we should not continue - context.logger.warn( - `Cyclical reference detected in the code model (id: ${id}).` - ); + context.logger.warn(`Cyclical reference detected in the code model (id: ${id}).`); return undefined; } From 7bf3b42ef192467149ea31758437db5e3af771b8 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 5 Jun 2025 16:35:13 +0800 Subject: [PATCH 14/22] update and regen --- .../emitter/src/code-model-writer.ts | 12 +- .../emitter/src/type/input-type.ts | 12 - .../Local/Sample-TypeSpec/tspCodeModel.json | 443 ++--- .../authentication/api-key/tspCodeModel.json | 13 +- .../http/custom/tspCodeModel.json | 13 +- .../authentication/oauth2/tspCodeModel.json | 13 +- .../authentication/union/tspCodeModel.json | 9 +- .../client-operation-group/tspCodeModel.json | 51 +- .../structure/default/tspCodeModel.json | 78 +- .../structure/multi-client/tspCodeModel.json | 28 +- .../renamed-operation/tspCodeModel.json | 28 +- .../two-operation-group/tspCodeModel.json | 43 +- .../http/encode/bytes/tspCodeModel.json | 294 ++- .../http/encode/datetime/tspCodeModel.json | 266 ++- .../http/encode/duration/tspCodeModel.json | 304 ++- .../http/encode/numeric/tspCodeModel.json | 53 +- .../http/parameters/basic/tspCodeModel.json | 39 +- .../body-optionality/tspCodeModel.json | 42 +- .../collection-format/tspCodeModel.json | 72 +- .../http/parameters/path/tspCodeModel.json | 21 +- .../http/parameters/spread/tspCodeModel.json | 227 ++- .../content-negotiation/tspCodeModel.json | 61 +- .../json-merge-patch/tspCodeModel.json | 44 +- .../http/payload/media-type/tspCodeModel.json | 56 +- .../http/payload/multipart/tspCodeModel.json | 389 ++-- .../http/payload/pageable/tspCodeModel.json | 168 +- .../srv-driven/v1/tspCodeModel.json | 34 +- .../srv-driven/v2/tspCodeModel.json | 63 +- .../status-code-range/tspCodeModel.json | 15 +- .../Spector/http/routes/tspCodeModel.json | 719 +++---- .../encoded-name/json/tspCodeModel.json | 30 +- .../endpoint/not-defined/tspCodeModel.json | 3 +- .../server/path/multiple/tspCodeModel.json | 18 +- .../http/server/path/single/tspCodeModel.json | 3 +- .../versions/not-versioned/tspCodeModel.json | 29 +- .../versions/versioned/tspCodeModel.json | 33 +- .../conditional-request/tspCodeModel.json | 55 +- .../repeatability/tspCodeModel.json | 14 +- .../http/special-words/tspCodeModel.json | 1060 +++++----- .../Spector/http/type/array/tspCodeModel.json | 562 +++--- .../http/type/dictionary/tspCodeModel.json | 459 ++--- .../type/enum/extensible/tspCodeModel.json | 40 +- .../http/type/enum/fixed/tspCodeModel.json | 39 +- .../http/type/model/empty/tspCodeModel.json | 34 +- .../enum-discriminator/tspCodeModel.json | 77 +- .../nested-discriminator/tspCodeModel.json | 59 +- .../not-discriminated/tspCodeModel.json | 34 +- .../inheritance/recursive/tspCodeModel.json | 17 +- .../single-discriminator/tspCodeModel.json | 68 +- .../http/type/model/usage/tspCodeModel.json | 34 +- .../type/model/visibility/tspCodeModel.json | 96 +- .../additional-properties/tspCodeModel.json | 840 ++++---- .../type/property/nullable/tspCodeModel.json | 308 ++- .../property/optionality/tspCodeModel.json | 749 ++++--- .../property/value-types/tspCodeModel.json | 1739 +++++++++-------- .../http/type/scalar/tspCodeModel.json | 276 +-- .../Spector/http/type/union/tspCodeModel.json | 273 +-- .../versioning/added/v1/tspCodeModel.json | 10 +- .../versioning/added/v2/tspCodeModel.json | 47 +- .../madeOptional/v1/tspCodeModel.json | 14 +- .../madeOptional/v2/tspCodeModel.json | 14 +- .../versioning/removed/v1/tspCodeModel.json | 62 +- .../versioning/removed/v2/tspCodeModel.json | 27 +- .../removed/v2Preview/tspCodeModel.json | 62 +- .../renamedFrom/v1/tspCodeModel.json | 36 +- .../renamedFrom/v2/tspCodeModel.json | 36 +- .../v1/tspCodeModel.json | 16 +- .../v2/tspCodeModel.json | 16 +- .../typeChangedFrom/v1/tspCodeModel.json | 14 +- .../typeChangedFrom/v2/tspCodeModel.json | 14 +- 70 files changed, 5455 insertions(+), 5472 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/code-model-writer.ts b/packages/http-client-csharp/emitter/src/code-model-writer.ts index 49815d33de4..994d0bad2e7 100644 --- a/packages/http-client-csharp/emitter/src/code-model-writer.ts +++ b/packages/http-client-csharp/emitter/src/code-model-writer.ts @@ -32,14 +32,6 @@ export async function writeCodeModel( * @param codeModel - The code model to build */ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { - const typesToRef = new Set([ - ...context.__typeCache.clients.values(), - ...context.__typeCache.methods.values(), - ...context.__typeCache.operations.values(), - ...context.__typeCache.responses.values(), - ...context.__typeCache.properties.values(), - ...context.__typeCache.types.values(), - ]); const objectsIds = new Map(); const stack: any[] = []; @@ -101,7 +93,9 @@ function buildJson(context: CSharpEmitterContext, codeModel: CodeModel): any { } function shouldHaveRef(obj: any): boolean { - return typesToRef.has(obj); + // we only add reference to those types with a crossLanguageDefinitionId or a kind property. + // TODO -- crossLanguageDefinitionId should be enough but there is something that should be referenced but does not have it. + return "crossLanguageDefinitionId" in obj || "kind" in obj; } } 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 990350f512b..b44f37a4dd3 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -225,10 +225,6 @@ export interface InputNullableType extends InputTypeBase { namespace: string; } -export function isInputEnumType(type: InputType): type is InputEnumType { - return type.kind === "enum"; -} - export interface InputArrayType extends InputTypeBase { kind: "array"; name: string; @@ -236,16 +232,8 @@ export interface InputArrayType extends InputTypeBase { crossLanguageDefinitionId: string; } -export function isInputArrayType(type: InputType): type is InputArrayType { - return type.kind === "array"; -} - export interface InputDictionaryType extends InputTypeBase { kind: "dict"; keyType: InputType; valueType: InputType; } - -export function isInputDictionaryType(type: InputType): type is InputDictionaryType { - return type.kind === "dict"; -} diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index ac4bc568576..d9e8e2dcdf8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -2938,7 +2938,6 @@ ], "responses": [ { - "$id": "267", "statusCodes": [ 200 ], @@ -2963,11 +2962,11 @@ }, "parameters": [ { - "$id": "268", + "$id": "267", "name": "headParameter", "nameInRequest": "head-parameter", "type": { - "$id": "269", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2984,11 +2983,11 @@ "skipUrlEncoding": false }, { - "$id": "270", + "$id": "269", "name": "queryParameter", "nameInRequest": "queryParameter", "type": { - "$id": "271", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3005,11 +3004,11 @@ "skipUrlEncoding": false }, { - "$id": "272", + "$id": "271", "name": "optionalQuery", "nameInRequest": "optionalQuery", "type": { - "$id": "273", + "$id": "272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3026,7 +3025,7 @@ "skipUrlEncoding": false }, { - "$id": "274", + "$id": "273", "name": "accept", "nameInRequest": "accept", "type": { @@ -3054,7 +3053,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, { - "$id": "275", + "$id": "274", "kind": "basic", "name": "helloAgain", "accessibility": "public", @@ -3064,18 +3063,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "276", + "$id": "275", "name": "helloAgain", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "277", + "$id": "276", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "278", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3092,7 +3091,7 @@ "skipUrlEncoding": false }, { - "$id": "279", + "$id": "278", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -3109,11 +3108,11 @@ "skipUrlEncoding": false }, { - "$id": "280", + "$id": "279", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "281", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3130,7 +3129,7 @@ "skipUrlEncoding": false }, { - "$id": "282", + "$id": "281", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3147,7 +3146,7 @@ "skipUrlEncoding": false }, { - "$id": "283", + "$id": "282", "name": "action", "nameInRequest": "action", "type": { @@ -3166,7 +3165,6 @@ ], "responses": [ { - "$id": "284", "statusCodes": [ 200 ], @@ -3194,11 +3192,11 @@ }, "parameters": [ { - "$id": "285", + "$id": "283", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "286", + "$id": "284", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3215,7 +3213,7 @@ "skipUrlEncoding": false }, { - "$id": "287", + "$id": "285", "name": "action", "nameInRequest": "action", "type": { @@ -3232,7 +3230,7 @@ "skipUrlEncoding": false }, { - "$id": "288", + "$id": "286", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -3249,11 +3247,11 @@ "skipUrlEncoding": false }, { - "$id": "289", + "$id": "287", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "290", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3270,7 +3268,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "289", "name": "accept", "nameInRequest": "accept", "type": { @@ -3298,7 +3296,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, { - "$id": "292", + "$id": "290", "kind": "basic", "name": "noContentType", "accessibility": "public", @@ -3308,18 +3306,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "293", + "$id": "291", "name": "noContentType", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "294", + "$id": "292", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "295", + "$id": "293", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3336,11 +3334,11 @@ "skipUrlEncoding": false }, { - "$id": "296", + "$id": "294", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "297", + "$id": "295", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3357,7 +3355,7 @@ "skipUrlEncoding": false }, { - "$id": "298", + "$id": "296", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3375,7 +3373,7 @@ "skipUrlEncoding": false }, { - "$id": "299", + "$id": "297", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3392,7 +3390,7 @@ "skipUrlEncoding": false }, { - "$id": "300", + "$id": "298", "name": "action", "nameInRequest": "action", "type": { @@ -3411,7 +3409,6 @@ ], "responses": [ { - "$id": "301", "statusCodes": [ 200 ], @@ -3439,11 +3436,11 @@ }, "parameters": [ { - "$id": "302", + "$id": "299", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "303", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3460,7 +3457,7 @@ "skipUrlEncoding": false }, { - "$id": "304", + "$id": "301", "name": "action", "nameInRequest": "action", "type": { @@ -3477,11 +3474,11 @@ "skipUrlEncoding": false }, { - "$id": "305", + "$id": "302", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "306", + "$id": "303", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3498,7 +3495,7 @@ "skipUrlEncoding": false }, { - "$id": "307", + "$id": "304", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3516,7 +3513,7 @@ "skipUrlEncoding": false }, { - "$id": "308", + "$id": "305", "name": "accept", "nameInRequest": "accept", "type": { @@ -3544,7 +3541,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" }, { - "$id": "309", + "$id": "306", "kind": "basic", "name": "helloDemo2", "accessibility": "public", @@ -3554,14 +3551,14 @@ ], "doc": "Return hi in demo2", "operation": { - "$id": "310", + "$id": "307", "name": "helloDemo2", "resourceName": "SampleTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "311", + "$id": "308", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3580,7 +3577,6 @@ ], "responses": [ { - "$id": "312", "statusCodes": [ 200 ], @@ -3605,7 +3601,7 @@ }, "parameters": [ { - "$id": "313", + "$id": "309", "name": "accept", "nameInRequest": "accept", "type": { @@ -3633,7 +3629,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, { - "$id": "314", + "$id": "310", "kind": "basic", "name": "createLiteral", "accessibility": "public", @@ -3643,14 +3639,14 @@ ], "doc": "Create with literal value", "operation": { - "$id": "315", + "$id": "311", "name": "createLiteral", "resourceName": "SampleTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "312", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3668,7 +3664,7 @@ "skipUrlEncoding": false }, { - "$id": "317", + "$id": "313", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3685,7 +3681,7 @@ "skipUrlEncoding": false }, { - "$id": "318", + "$id": "314", "name": "body", "nameInRequest": "body", "type": { @@ -3704,7 +3700,6 @@ ], "responses": [ { - "$id": "319", "statusCodes": [ 200 ], @@ -3732,7 +3727,7 @@ }, "parameters": [ { - "$id": "320", + "$id": "315", "name": "body", "nameInRequest": "body", "type": { @@ -3749,7 +3744,7 @@ "skipUrlEncoding": false }, { - "$id": "321", + "$id": "316", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3767,7 +3762,7 @@ "skipUrlEncoding": false }, { - "$id": "322", + "$id": "317", "name": "accept", "nameInRequest": "accept", "type": { @@ -3795,7 +3790,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" }, { - "$id": "323", + "$id": "318", "kind": "basic", "name": "helloLiteral", "accessibility": "public", @@ -3805,14 +3800,14 @@ ], "doc": "Send literal parameters", "operation": { - "$id": "324", + "$id": "319", "name": "helloLiteral", "resourceName": "SampleTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "325", + "$id": "320", "name": "p1", "nameInRequest": "p1", "type": { @@ -3829,7 +3824,7 @@ "skipUrlEncoding": false }, { - "$id": "326", + "$id": "321", "name": "p2", "nameInRequest": "p2", "type": { @@ -3846,7 +3841,7 @@ "skipUrlEncoding": false }, { - "$id": "327", + "$id": "322", "name": "p3", "nameInRequest": "p3", "type": { @@ -3863,7 +3858,7 @@ "skipUrlEncoding": false }, { - "$id": "328", + "$id": "323", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3882,7 +3877,6 @@ ], "responses": [ { - "$id": "329", "statusCodes": [ 200 ], @@ -3907,7 +3901,7 @@ }, "parameters": [ { - "$id": "330", + "$id": "324", "name": "p1", "nameInRequest": "p1", "type": { @@ -3924,7 +3918,7 @@ "skipUrlEncoding": false }, { - "$id": "331", + "$id": "325", "name": "p2", "nameInRequest": "p2", "type": { @@ -3941,7 +3935,7 @@ "skipUrlEncoding": false }, { - "$id": "332", + "$id": "326", "name": "p3", "nameInRequest": "p3", "type": { @@ -3958,7 +3952,7 @@ "skipUrlEncoding": false }, { - "$id": "333", + "$id": "327", "name": "accept", "nameInRequest": "accept", "type": { @@ -3986,7 +3980,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" }, { - "$id": "334", + "$id": "328", "kind": "basic", "name": "topAction", "accessibility": "public", @@ -3996,23 +3990,23 @@ ], "doc": "top level method", "operation": { - "$id": "335", + "$id": "329", "name": "topAction", "resourceName": "SampleTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "336", + "$id": "330", "name": "action", "nameInRequest": "action", "type": { - "$id": "337", + "$id": "331", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "338", + "$id": "332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4032,7 +4026,7 @@ "skipUrlEncoding": false }, { - "$id": "339", + "$id": "333", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4051,7 +4045,6 @@ ], "responses": [ { - "$id": "340", "statusCodes": [ 200 ], @@ -4076,16 +4069,16 @@ }, "parameters": [ { - "$id": "341", + "$id": "334", "name": "action", "nameInRequest": "action", "type": { - "$id": "342", + "$id": "335", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "343", + "$id": "336", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4105,7 +4098,7 @@ "skipUrlEncoding": false }, { - "$id": "344", + "$id": "337", "name": "accept", "nameInRequest": "accept", "type": { @@ -4133,7 +4126,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction" }, { - "$id": "345", + "$id": "338", "kind": "basic", "name": "topAction2", "accessibility": "public", @@ -4143,14 +4136,14 @@ ], "doc": "top level method2", "operation": { - "$id": "346", + "$id": "339", "name": "topAction2", "resourceName": "SampleTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "347", + "$id": "340", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4169,7 +4162,6 @@ ], "responses": [ { - "$id": "348", "statusCodes": [ 200 ], @@ -4194,7 +4186,7 @@ }, "parameters": [ { - "$id": "349", + "$id": "341", "name": "accept", "nameInRequest": "accept", "type": { @@ -4222,7 +4214,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" }, { - "$id": "350", + "$id": "342", "kind": "basic", "name": "patchAction", "accessibility": "public", @@ -4232,14 +4224,14 @@ ], "doc": "top level patch", "operation": { - "$id": "351", + "$id": "343", "name": "patchAction", "resourceName": "SampleTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "352", + "$id": "344", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4257,7 +4249,7 @@ "skipUrlEncoding": false }, { - "$id": "353", + "$id": "345", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4274,7 +4266,7 @@ "skipUrlEncoding": false }, { - "$id": "354", + "$id": "346", "name": "body", "nameInRequest": "body", "type": { @@ -4293,7 +4285,6 @@ ], "responses": [ { - "$id": "355", "statusCodes": [ 200 ], @@ -4321,7 +4312,7 @@ }, "parameters": [ { - "$id": "356", + "$id": "347", "name": "body", "nameInRequest": "body", "type": { @@ -4338,7 +4329,7 @@ "skipUrlEncoding": false }, { - "$id": "357", + "$id": "348", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4356,7 +4347,7 @@ "skipUrlEncoding": false }, { - "$id": "358", + "$id": "349", "name": "accept", "nameInRequest": "accept", "type": { @@ -4384,7 +4375,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" }, { - "$id": "359", + "$id": "350", "kind": "basic", "name": "anonymousBody", "accessibility": "public", @@ -4394,14 +4385,14 @@ ], "doc": "body parameter without body decorator", "operation": { - "$id": "360", + "$id": "351", "name": "anonymousBody", "resourceName": "SampleTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "361", + "$id": "352", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4419,7 +4410,7 @@ "skipUrlEncoding": false }, { - "$id": "362", + "$id": "353", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4436,7 +4427,7 @@ "skipUrlEncoding": false }, { - "$id": "363", + "$id": "354", "name": "thing", "nameInRequest": "thing", "type": { @@ -4455,7 +4446,6 @@ ], "responses": [ { - "$id": "364", "statusCodes": [ 200 ], @@ -4483,12 +4473,12 @@ }, "parameters": [ { - "$id": "365", + "$id": "355", "name": "name", "nameInRequest": "name", "doc": "name of the Thing", "type": { - "$id": "366", + "$id": "356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4505,7 +4495,7 @@ "skipUrlEncoding": false }, { - "$id": "367", + "$id": "357", "name": "requiredUnion", "nameInRequest": "requiredUnion", "doc": "required Union", @@ -4523,7 +4513,7 @@ "skipUrlEncoding": false }, { - "$id": "368", + "$id": "358", "name": "requiredLiteralString", "nameInRequest": "requiredLiteralString", "doc": "required literal string", @@ -4541,7 +4531,7 @@ "skipUrlEncoding": false }, { - "$id": "369", + "$id": "359", "name": "requiredNullableString", "nameInRequest": "requiredNullableString", "doc": "required nullable string", @@ -4559,7 +4549,7 @@ "skipUrlEncoding": false }, { - "$id": "370", + "$id": "360", "name": "optionalNullableString", "nameInRequest": "optionalNullableString", "doc": "required optional string", @@ -4577,7 +4567,7 @@ "skipUrlEncoding": false }, { - "$id": "371", + "$id": "361", "name": "requiredLiteralInt", "nameInRequest": "requiredLiteralInt", "doc": "required literal int", @@ -4595,7 +4585,7 @@ "skipUrlEncoding": false }, { - "$id": "372", + "$id": "362", "name": "requiredLiteralFloat", "nameInRequest": "requiredLiteralFloat", "doc": "required literal float", @@ -4613,7 +4603,7 @@ "skipUrlEncoding": false }, { - "$id": "373", + "$id": "363", "name": "requiredLiteralBool", "nameInRequest": "requiredLiteralBool", "doc": "required literal bool", @@ -4631,7 +4621,7 @@ "skipUrlEncoding": false }, { - "$id": "374", + "$id": "364", "name": "optionalLiteralString", "nameInRequest": "optionalLiteralString", "doc": "optional literal string", @@ -4649,7 +4639,7 @@ "skipUrlEncoding": false }, { - "$id": "375", + "$id": "365", "name": "optionalLiteralInt", "nameInRequest": "optionalLiteralInt", "doc": "optional literal int", @@ -4667,7 +4657,7 @@ "skipUrlEncoding": false }, { - "$id": "376", + "$id": "366", "name": "optionalLiteralFloat", "nameInRequest": "optionalLiteralFloat", "doc": "optional literal float", @@ -4685,7 +4675,7 @@ "skipUrlEncoding": false }, { - "$id": "377", + "$id": "367", "name": "optionalLiteralBool", "nameInRequest": "optionalLiteralBool", "doc": "optional literal bool", @@ -4703,12 +4693,12 @@ "skipUrlEncoding": false }, { - "$id": "378", + "$id": "368", "name": "requiredBadDescription", "nameInRequest": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "379", + "$id": "369", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4725,7 +4715,7 @@ "skipUrlEncoding": false }, { - "$id": "380", + "$id": "370", "name": "optionalNullableList", "nameInRequest": "optionalNullableList", "doc": "optional nullable collection", @@ -4743,7 +4733,7 @@ "skipUrlEncoding": false }, { - "$id": "381", + "$id": "371", "name": "requiredNullableList", "nameInRequest": "requiredNullableList", "doc": "required nullable collection", @@ -4761,7 +4751,7 @@ "skipUrlEncoding": false }, { - "$id": "382", + "$id": "372", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4779,7 +4769,7 @@ "skipUrlEncoding": false }, { - "$id": "383", + "$id": "373", "name": "accept", "nameInRequest": "accept", "type": { @@ -4807,7 +4797,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" }, { - "$id": "384", + "$id": "374", "kind": "basic", "name": "friendlyModel", "accessibility": "public", @@ -4817,14 +4807,14 @@ ], "doc": "Model can have its friendly name", "operation": { - "$id": "385", + "$id": "375", "name": "friendlyModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "386", + "$id": "376", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4842,7 +4832,7 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "377", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4859,7 +4849,7 @@ "skipUrlEncoding": false }, { - "$id": "388", + "$id": "378", "name": "friend", "nameInRequest": "friend", "type": { @@ -4878,7 +4868,6 @@ ], "responses": [ { - "$id": "389", "statusCodes": [ 200 ], @@ -4906,12 +4895,12 @@ }, "parameters": [ { - "$id": "390", + "$id": "379", "name": "name", "nameInRequest": "name", "doc": "name of the NotFriend", "type": { - "$id": "391", + "$id": "380", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4928,7 +4917,7 @@ "skipUrlEncoding": false }, { - "$id": "392", + "$id": "381", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4946,7 +4935,7 @@ "skipUrlEncoding": false }, { - "$id": "393", + "$id": "382", "name": "accept", "nameInRequest": "accept", "type": { @@ -4974,7 +4963,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" }, { - "$id": "394", + "$id": "383", "kind": "basic", "name": "addTimeHeader", "accessibility": "public", @@ -4983,22 +4972,22 @@ "2024-08-16-preview" ], "operation": { - "$id": "395", + "$id": "384", "name": "addTimeHeader", "resourceName": "SampleTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "396", + "$id": "385", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "397", + "$id": "386", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "398", + "$id": "387", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5020,7 +5009,6 @@ ], "responses": [ { - "$id": "399", "statusCodes": [ 204 ], @@ -5039,16 +5027,16 @@ }, "parameters": [ { - "$id": "400", + "$id": "388", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "401", + "$id": "389", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "402", + "$id": "390", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5075,7 +5063,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" }, { - "$id": "403", + "$id": "391", "kind": "basic", "name": "projectedNameModel", "accessibility": "public", @@ -5085,14 +5073,14 @@ ], "doc": "Model can have its projected name", "operation": { - "$id": "404", + "$id": "392", "name": "projectedNameModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "405", + "$id": "393", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5110,7 +5098,7 @@ "skipUrlEncoding": false }, { - "$id": "406", + "$id": "394", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5127,7 +5115,7 @@ "skipUrlEncoding": false }, { - "$id": "407", + "$id": "395", "name": "renamedModel", "nameInRequest": "renamedModel", "type": { @@ -5146,7 +5134,6 @@ ], "responses": [ { - "$id": "408", "statusCodes": [ 200 ], @@ -5174,12 +5161,12 @@ }, "parameters": [ { - "$id": "409", + "$id": "396", "name": "name", "nameInRequest": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "410", + "$id": "397", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5196,7 +5183,7 @@ "skipUrlEncoding": false }, { - "$id": "411", + "$id": "398", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5214,7 +5201,7 @@ "skipUrlEncoding": false }, { - "$id": "412", + "$id": "399", "name": "accept", "nameInRequest": "accept", "type": { @@ -5242,7 +5229,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" }, { - "$id": "413", + "$id": "400", "kind": "basic", "name": "returnsAnonymousModel", "accessibility": "public", @@ -5252,14 +5239,14 @@ ], "doc": "return anonymous model", "operation": { - "$id": "414", + "$id": "401", "name": "returnsAnonymousModel", "resourceName": "SampleTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "415", + "$id": "402", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5278,7 +5265,6 @@ ], "responses": [ { - "$id": "416", "statusCodes": [ 200 ], @@ -5303,7 +5289,7 @@ }, "parameters": [ { - "$id": "417", + "$id": "403", "name": "accept", "nameInRequest": "accept", "type": { @@ -5331,7 +5317,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" }, { - "$id": "418", + "$id": "404", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", @@ -5341,18 +5327,18 @@ ], "doc": "get extensible enum", "operation": { - "$id": "419", + "$id": "405", "name": "getUnknownValue", "resourceName": "SampleTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "420", + "$id": "406", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "421", + "$id": "407", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5371,7 +5357,6 @@ ], "responses": [ { - "$id": "422", "statusCodes": [ 200 ], @@ -5403,11 +5388,11 @@ }, "parameters": [ { - "$id": "423", + "$id": "408", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "421" + "$ref": "407" }, "location": "Header", "isApiVersion": false, @@ -5431,7 +5416,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" }, { - "$id": "424", + "$id": "409", "kind": "basic", "name": "internalProtocol", "accessibility": "public", @@ -5441,14 +5426,14 @@ ], "doc": "When set protocol false and convenient true, then the protocol method should be internal", "operation": { - "$id": "425", + "$id": "410", "name": "internalProtocol", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "426", + "$id": "411", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5466,7 +5451,7 @@ "skipUrlEncoding": false }, { - "$id": "427", + "$id": "412", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5483,7 +5468,7 @@ "skipUrlEncoding": false }, { - "$id": "428", + "$id": "413", "name": "body", "nameInRequest": "body", "type": { @@ -5502,7 +5487,6 @@ ], "responses": [ { - "$id": "429", "statusCodes": [ 200 ], @@ -5530,7 +5514,7 @@ }, "parameters": [ { - "$id": "430", + "$id": "414", "name": "body", "nameInRequest": "body", "type": { @@ -5547,7 +5531,7 @@ "skipUrlEncoding": false }, { - "$id": "431", + "$id": "415", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5565,7 +5549,7 @@ "skipUrlEncoding": false }, { - "$id": "432", + "$id": "416", "name": "accept", "nameInRequest": "accept", "type": { @@ -5593,7 +5577,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" }, { - "$id": "433", + "$id": "417", "kind": "basic", "name": "stillConvenient", "accessibility": "public", @@ -5603,7 +5587,7 @@ ], "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", "operation": { - "$id": "434", + "$id": "418", "name": "stillConvenient", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -5611,7 +5595,6 @@ "parameters": [], "responses": [ { - "$id": "435", "statusCodes": [ 204 ], @@ -5636,7 +5619,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" }, { - "$id": "436", + "$id": "419", "kind": "basic", "name": "headAsBoolean", "accessibility": "public", @@ -5646,18 +5629,18 @@ ], "doc": "head as boolean.", "operation": { - "$id": "437", + "$id": "420", "name": "headAsBoolean", "resourceName": "SampleTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "438", + "$id": "421", "name": "id", "nameInRequest": "id", "type": { - "$id": "439", + "$id": "422", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5676,7 +5659,6 @@ ], "responses": [ { - "$id": "440", "statusCodes": [ 204 ], @@ -5695,11 +5677,11 @@ }, "parameters": [ { - "$id": "441", + "$id": "423", "name": "id", "nameInRequest": "id", "type": { - "$id": "442", + "$id": "424", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5723,7 +5705,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" }, { - "$id": "443", + "$id": "425", "kind": "basic", "name": "WithApiVersion", "accessibility": "public", @@ -5733,18 +5715,18 @@ ], "doc": "Return hi again", "operation": { - "$id": "444", + "$id": "426", "name": "WithApiVersion", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "445", + "$id": "427", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "446", + "$id": "428", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5761,11 +5743,11 @@ "skipUrlEncoding": false }, { - "$id": "447", + "$id": "429", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "448", + "$id": "430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5780,6 +5762,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "431", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5792,7 +5775,6 @@ ], "responses": [ { - "$id": "449", "statusCodes": [ 204 ], @@ -5811,11 +5793,11 @@ }, "parameters": [ { - "$id": "450", + "$id": "432", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "451", + "$id": "433", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5839,7 +5821,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" }, { - "$id": "452", + "$id": "434", "kind": "paging", "name": "ListWithNextLink", "accessibility": "public", @@ -5849,14 +5831,14 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "453", + "$id": "435", "name": "ListWithNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "454", + "$id": "436", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5875,7 +5857,6 @@ ], "responses": [ { - "$id": "455", "statusCodes": [ 200 ], @@ -5900,7 +5881,7 @@ }, "parameters": [ { - "$id": "456", + "$id": "437", "name": "accept", "nameInRequest": "accept", "type": { @@ -5942,7 +5923,7 @@ } }, { - "$id": "457", + "$id": "438", "kind": "paging", "name": "ListWithContinuationToken", "accessibility": "public", @@ -5952,18 +5933,18 @@ ], "doc": "List things with continuation token", "operation": { - "$id": "458", + "$id": "439", "name": "ListWithContinuationToken", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "459", + "$id": "440", "name": "token", "nameInRequest": "token", "type": { - "$id": "460", + "$id": "441", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5980,7 +5961,7 @@ "skipUrlEncoding": false }, { - "$id": "461", + "$id": "442", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5999,7 +5980,6 @@ ], "responses": [ { - "$id": "462", "statusCodes": [ 200 ], @@ -6024,11 +6004,11 @@ }, "parameters": [ { - "$id": "463", + "$id": "443", "name": "token", "nameInRequest": "token", "type": { - "$id": "464", + "$id": "444", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6045,7 +6025,7 @@ "skipUrlEncoding": false }, { - "$id": "465", + "$id": "445", "name": "accept", "nameInRequest": "accept", "type": { @@ -6080,7 +6060,7 @@ ], "continuationToken": { "parameter": { - "$ref": "459" + "$ref": "440" }, "responseSegments": [ "nextToken" @@ -6090,7 +6070,7 @@ } }, { - "$id": "466", + "$id": "446", "kind": "paging", "name": "ListWithContinuationTokenHeaderResponse", "accessibility": "public", @@ -6100,18 +6080,18 @@ ], "doc": "List things with continuation token header response", "operation": { - "$id": "467", + "$id": "447", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "468", + "$id": "448", "name": "token", "nameInRequest": "token", "type": { - "$id": "469", + "$id": "449", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6128,7 +6108,7 @@ "skipUrlEncoding": false }, { - "$id": "470", + "$id": "450", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6147,7 +6127,6 @@ ], "responses": [ { - "$id": "471", "statusCodes": [ 200 ], @@ -6159,7 +6138,7 @@ "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "472", + "$id": "451", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6184,11 +6163,11 @@ }, "parameters": [ { - "$id": "473", + "$id": "452", "name": "token", "nameInRequest": "token", "type": { - "$id": "474", + "$id": "453", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6205,7 +6184,7 @@ "skipUrlEncoding": false }, { - "$id": "475", + "$id": "454", "name": "accept", "nameInRequest": "accept", "type": { @@ -6240,7 +6219,7 @@ ], "continuationToken": { "parameter": { - "$ref": "468" + "$ref": "448" }, "responseSegments": [ "next-token" @@ -6250,7 +6229,7 @@ } }, { - "$id": "476", + "$id": "455", "kind": "paging", "name": "ListWithPaging", "accessibility": "public", @@ -6260,14 +6239,14 @@ ], "doc": "List things with paging", "operation": { - "$id": "477", + "$id": "456", "name": "ListWithPaging", "resourceName": "SampleTypeSpec", "doc": "List things with paging", "accessibility": "public", "parameters": [ { - "$id": "478", + "$id": "457", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6286,7 +6265,6 @@ ], "responses": [ { - "$id": "479", "statusCodes": [ 200 ], @@ -6311,7 +6289,7 @@ }, "parameters": [ { - "$id": "480", + "$id": "458", "name": "accept", "nameInRequest": "accept", "type": { @@ -6347,7 +6325,7 @@ } }, { - "$id": "481", + "$id": "459", "kind": "basic", "name": "EmbeddedParameters", "accessibility": "public", @@ -6357,19 +6335,19 @@ ], "doc": "An operation with embedded parameters within the body", "operation": { - "$id": "482", + "$id": "460", "name": "EmbeddedParameters", "resourceName": "SampleTypeSpec", "doc": "An operation with embedded parameters within the body", "accessibility": "public", "parameters": [ { - "$id": "483", + "$id": "461", "name": "requiredHeader", "nameInRequest": "required-header", "doc": "required header parameter", "type": { - "$id": "484", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6386,12 +6364,12 @@ "skipUrlEncoding": false }, { - "$id": "485", + "$id": "463", "name": "optionalHeader", "nameInRequest": "optional-header", "doc": "optional header parameter", "type": { - "$id": "486", + "$id": "464", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6408,12 +6386,12 @@ "skipUrlEncoding": false }, { - "$id": "487", + "$id": "465", "name": "requiredQuery", "nameInRequest": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "488", + "$id": "466", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6430,12 +6408,12 @@ "skipUrlEncoding": false }, { - "$id": "489", + "$id": "467", "name": "optionalQuery", "nameInRequest": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "490", + "$id": "468", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6452,7 +6430,7 @@ "skipUrlEncoding": false }, { - "$id": "491", + "$id": "469", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6470,7 +6448,7 @@ "skipUrlEncoding": false }, { - "$id": "492", + "$id": "470", "name": "body", "nameInRequest": "body", "type": { @@ -6489,7 +6467,6 @@ ], "responses": [ { - "$id": "493", "statusCodes": [ 204 ], @@ -6511,7 +6488,7 @@ }, "parameters": [ { - "$id": "494", + "$id": "471", "name": "body", "nameInRequest": "body", "type": { @@ -6528,7 +6505,7 @@ "skipUrlEncoding": false }, { - "$id": "495", + "$id": "472", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6555,9 +6532,11 @@ ], "parameters": [ { + "$id": "473", "name": "sampleTypeSpecUrl", "nameInRequest": "sampleTypeSpecUrl", "type": { + "$id": "474", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" 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 c721837f32f..b30c7003e60 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 @@ -81,7 +81,6 @@ "parameters": [], "responses": [ { - "$id": "9", "statusCodes": [ 204 ], @@ -106,21 +105,21 @@ "crossLanguageDefinitionId": "Authentication.ApiKey.valid" }, { - "$id": "10", + "$id": "9", "kind": "basic", "name": "invalid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated.", "operation": { - "$id": "11", + "$id": "10", "name": "invalid", "resourceName": "ApiKey", "doc": "Check whether client is authenticated.", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { @@ -139,7 +138,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -158,7 +156,7 @@ }, "parameters": [ { - "$id": "14", + "$id": "12", "name": "accept", "nameInRequest": "accept", "type": { @@ -184,10 +182,12 @@ ], "parameters": [ { + "$id": "13", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -202,6 +202,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 7933e61f1bb..e7e74363c1c 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 @@ -81,7 +81,6 @@ "parameters": [], "responses": [ { - "$id": "9", "statusCodes": [ 204 ], @@ -106,21 +105,21 @@ "crossLanguageDefinitionId": "Authentication.Http.Custom.valid" }, { - "$id": "10", + "$id": "9", "kind": "basic", "name": "invalid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated.", "operation": { - "$id": "11", + "$id": "10", "name": "invalid", "resourceName": "Custom", "doc": "Check whether client is authenticated.", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { @@ -139,7 +138,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -158,7 +156,7 @@ }, "parameters": [ { - "$id": "14", + "$id": "12", "name": "accept", "nameInRequest": "accept", "type": { @@ -184,10 +182,12 @@ ], "parameters": [ { + "$id": "13", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -202,6 +202,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 bf0443279aa..5abd4b3b992 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 @@ -81,7 +81,6 @@ "parameters": [], "responses": [ { - "$id": "9", "statusCodes": [ 204 ], @@ -106,21 +105,21 @@ "crossLanguageDefinitionId": "Authentication.OAuth2.valid" }, { - "$id": "10", + "$id": "9", "kind": "basic", "name": "invalid", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated. Will return an invalid bearer error.", "operation": { - "$id": "11", + "$id": "10", "name": "invalid", "resourceName": "OAuth2", "doc": "Check whether client is authenticated. Will return an invalid bearer error.", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { @@ -139,7 +138,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -158,7 +156,7 @@ }, "parameters": [ { - "$id": "14", + "$id": "12", "name": "accept", "nameInRequest": "accept", "type": { @@ -184,10 +182,12 @@ ], "parameters": [ { + "$id": "13", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -202,6 +202,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 69cba53353e..83dae90ab84 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 @@ -28,7 +28,6 @@ "parameters": [], "responses": [ { - "$id": "4", "statusCodes": [ 204 ], @@ -53,14 +52,14 @@ "crossLanguageDefinitionId": "Authentication.Union.validKey" }, { - "$id": "5", + "$id": "4", "kind": "basic", "name": "validToken", "accessibility": "public", "apiVersions": [], "doc": "Check whether client is authenticated", "operation": { - "$id": "6", + "$id": "5", "name": "validToken", "resourceName": "Union", "doc": "Check whether client is authenticated", @@ -68,7 +67,6 @@ "parameters": [], "responses": [ { - "$id": "7", "statusCodes": [ 204 ], @@ -95,10 +93,12 @@ ], "parameters": [ { + "$id": "6", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "7", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -113,6 +113,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 f017253fa73..7190df20312 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 @@ -111,7 +111,6 @@ "parameters": [], "responses": [ { - "$id": "11", "statusCodes": [ 204 ], @@ -138,10 +137,12 @@ ], "parameters": [ { + "$id": "11", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "12", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -156,6 +157,7 @@ "kind": "Client" }, { + "$id": "13", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -177,26 +179,25 @@ "apiVersions": [], "children": [ { - "$id": "12", + "$id": "14", "kind": "client", "name": "Group3", "namespace": "Client.Structure.ClientOperationGroup", "methods": [ { - "$id": "13", + "$id": "15", "kind": "basic", "name": "two", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "14", + "$id": "16", "name": "two", "resourceName": "Group3", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "15", "statusCodes": [ 204 ], @@ -221,20 +222,19 @@ "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two" }, { - "$id": "16", + "$id": "17", "kind": "basic", "name": "three", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "17", + "$id": "18", "name": "three", "resourceName": "Group3", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "18", "statusCodes": [ 204 ], @@ -261,10 +261,12 @@ ], "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" @@ -279,6 +281,7 @@ "kind": "Client" }, { + "$id": "21", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -303,26 +306,25 @@ } }, { - "$id": "19", + "$id": "22", "kind": "client", "name": "Group4", "namespace": "Client.Structure.ClientOperationGroup", "methods": [ { - "$id": "20", + "$id": "23", "kind": "basic", "name": "four", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "24", "name": "four", "resourceName": "Group4", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "22", "statusCodes": [ 204 ], @@ -349,10 +351,12 @@ ], "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" @@ -367,6 +371,7 @@ "kind": "Client" }, { + "$id": "27", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -393,26 +398,25 @@ ] }, { - "$id": "23", + "$id": "28", "kind": "client", "name": "SubNamespace.SecondClient", "namespace": "Client.Structure.AnotherClientOperationGroup", "methods": [ { - "$id": "24", + "$id": "29", "kind": "basic", "name": "five", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "25", + "$id": "30", "name": "five", "resourceName": "AnotherClientOperationGroup", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "26", "statusCodes": [ 204 ], @@ -439,10 +443,12 @@ ], "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" @@ -457,6 +463,7 @@ "kind": "Client" }, { + "$id": "33", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -478,26 +485,25 @@ "apiVersions": [], "children": [ { - "$id": "27", + "$id": "34", "kind": "client", "name": "Group5", "namespace": "Client.Structure.AnotherClientOperationGroup", "methods": [ { - "$id": "28", + "$id": "35", "kind": "basic", "name": "six", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "36", "name": "six", "resourceName": "Group5", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "30", "statusCodes": [ 204 ], @@ -524,10 +530,12 @@ ], "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" @@ -542,6 +550,7 @@ "kind": "Client" }, { + "$id": "39", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -562,7 +571,7 @@ "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", "apiVersions": [], "parent": { - "$ref": "23" + "$ref": "28" } } ] 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 3c91982de77..240336a3ef3 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 @@ -112,7 +112,6 @@ "parameters": [], "responses": [ { - "$id": "11", "statusCodes": [ 204 ], @@ -137,20 +136,19 @@ "crossLanguageDefinitionId": "Client.Structure.Service.one" }, { - "$id": "12", + "$id": "11", "kind": "basic", "name": "two", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "13", + "$id": "12", "name": "two", "resourceName": "Service", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "14", "statusCodes": [ 204 ], @@ -177,10 +175,12 @@ ], "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" @@ -195,6 +195,7 @@ "kind": "Client" }, { + "$id": "15", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -216,17 +217,19 @@ "apiVersions": [], "children": [ { - "$id": "15", + "$id": "16", "kind": "client", "name": "Baz", "namespace": "Client.Structure.Service.Baz", "methods": [], "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" @@ -241,6 +244,7 @@ "kind": "Client" }, { + "$id": "19", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -265,26 +269,25 @@ }, "children": [ { - "$id": "16", + "$id": "20", "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service.Baz", "methods": [ { - "$id": "17", + "$id": "21", "kind": "basic", "name": "seven", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "18", + "$id": "22", "name": "seven", "resourceName": "Foo", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "19", "statusCodes": [ 204 ], @@ -311,10 +314,12 @@ ], "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" @@ -329,6 +334,7 @@ "kind": "Client" }, { + "$id": "25", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -349,32 +355,31 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "16" } } ] }, { - "$id": "20", + "$id": "26", "kind": "client", "name": "Qux", "namespace": "Client.Structure.Service.Qux", "methods": [ { - "$id": "21", + "$id": "27", "kind": "basic", "name": "eight", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "22", + "$id": "28", "name": "eight", "resourceName": "Qux", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "23", "statusCodes": [ 204 ], @@ -401,10 +406,12 @@ ], "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" @@ -419,6 +426,7 @@ "kind": "Client" }, { + "$id": "31", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -443,26 +451,25 @@ }, "children": [ { - "$id": "24", + "$id": "32", "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service.Qux", "methods": [ { - "$id": "25", + "$id": "33", "kind": "basic", "name": "nine", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "26", + "$id": "34", "name": "nine", "resourceName": "Bar", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "27", "statusCodes": [ 204 ], @@ -489,10 +496,12 @@ ], "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" @@ -507,6 +516,7 @@ "kind": "Client" }, { + "$id": "37", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -527,32 +537,31 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", "apiVersions": [], "parent": { - "$ref": "20" + "$ref": "26" } } ] }, { - "$id": "28", + "$id": "38", "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service", "methods": [ { - "$id": "29", + "$id": "39", "kind": "basic", "name": "three", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "30", + "$id": "40", "name": "three", "resourceName": "Foo", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "31", "statusCodes": [ 204 ], @@ -577,20 +586,19 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Foo.three" }, { - "$id": "32", + "$id": "41", "kind": "basic", "name": "four", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "33", + "$id": "42", "name": "four", "resourceName": "Foo", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "34", "statusCodes": [ 204 ], @@ -617,10 +625,12 @@ ], "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" @@ -635,6 +645,7 @@ "kind": "Client" }, { + "$id": "45", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -659,26 +670,25 @@ } }, { - "$id": "35", + "$id": "46", "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service", "methods": [ { - "$id": "36", + "$id": "47", "kind": "basic", "name": "five", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "37", + "$id": "48", "name": "five", "resourceName": "Bar", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "38", "statusCodes": [ 204 ], @@ -703,20 +713,19 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Bar.five" }, { - "$id": "39", + "$id": "49", "kind": "basic", "name": "six", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "40", + "$id": "50", "name": "six", "resourceName": "Bar", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "41", "statusCodes": [ 204 ], @@ -743,10 +752,12 @@ ], "parameters": [ { + "$id": "51", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "52", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -761,6 +772,7 @@ "kind": "Client" }, { + "$id": "53", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", 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 ede2aaf2d53..bdb2cba8096 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 @@ -111,7 +111,6 @@ "parameters": [], "responses": [ { - "$id": "11", "statusCodes": [ 204 ], @@ -136,20 +135,19 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedOne" }, { - "$id": "12", + "$id": "11", "kind": "basic", "name": "renamedThree", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "13", + "$id": "12", "name": "renamedThree", "resourceName": "ClientA", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "14", "statusCodes": [ 204 ], @@ -174,20 +172,19 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedThree" }, { - "$id": "15", + "$id": "13", "kind": "basic", "name": "renamedFive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "16", + "$id": "14", "name": "renamedFive", "resourceName": "ClientA", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "17", "statusCodes": [ 204 ], @@ -214,10 +211,12 @@ ], "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" @@ -232,6 +231,7 @@ "kind": "Client" }, { + "$id": "17", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -272,7 +272,6 @@ "parameters": [], "responses": [ { - "$id": "21", "statusCodes": [ 204 ], @@ -297,20 +296,19 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedTwo" }, { - "$id": "22", + "$id": "21", "kind": "basic", "name": "renamedFour", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "23", + "$id": "22", "name": "renamedFour", "resourceName": "ClientB", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "24", "statusCodes": [ 204 ], @@ -335,20 +333,19 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedFour" }, { - "$id": "25", + "$id": "23", "kind": "basic", "name": "renamedSix", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "26", + "$id": "24", "name": "renamedSix", "resourceName": "ClientB", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "27", "statusCodes": [ 204 ], @@ -375,10 +372,12 @@ ], "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" @@ -393,6 +392,7 @@ "kind": "Client" }, { + "$id": "27", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", 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 17aa5ccd95b..808e54439bb 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 @@ -111,7 +111,6 @@ "parameters": [], "responses": [ { - "$id": "11", "statusCodes": [ 204 ], @@ -136,20 +135,19 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne" }, { - "$id": "12", + "$id": "11", "kind": "basic", "name": "renamedThree", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "13", + "$id": "12", "name": "renamedThree", "resourceName": "RenamedOperation", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "14", "statusCodes": [ 204 ], @@ -174,20 +172,19 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree" }, { - "$id": "15", + "$id": "13", "kind": "basic", "name": "renamedFive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "16", + "$id": "14", "name": "renamedFive", "resourceName": "RenamedOperation", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "17", "statusCodes": [ 204 ], @@ -214,10 +211,12 @@ ], "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" @@ -232,6 +231,7 @@ "kind": "Client" }, { + "$id": "17", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -272,7 +272,6 @@ "parameters": [], "responses": [ { - "$id": "21", "statusCodes": [ 204 ], @@ -297,20 +296,19 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo" }, { - "$id": "22", + "$id": "21", "kind": "basic", "name": "renamedFour", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "23", + "$id": "22", "name": "renamedFour", "resourceName": "Group", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "24", "statusCodes": [ 204 ], @@ -335,20 +333,19 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour" }, { - "$id": "25", + "$id": "23", "kind": "basic", "name": "renamedSix", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "26", + "$id": "24", "name": "renamedSix", "resourceName": "Group", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "27", "statusCodes": [ 204 ], @@ -375,10 +372,12 @@ ], "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" @@ -393,6 +392,7 @@ "kind": "Client" }, { + "$id": "27", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", 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 c741ff92b39..9cbae8f49d7 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 @@ -99,10 +99,12 @@ "methods": [], "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" @@ -117,6 +119,7 @@ "kind": "Client" }, { + "$id": "11", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -138,26 +141,25 @@ "apiVersions": [], "children": [ { - "$id": "9", + "$id": "12", "kind": "client", "name": "Group1", "namespace": "Client.Structure.TwoOperationGroup", "methods": [ { - "$id": "10", + "$id": "13", "kind": "basic", "name": "one", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "11", + "$id": "14", "name": "one", "resourceName": "Group1", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "12", "statusCodes": [ 204 ], @@ -182,20 +184,19 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one" }, { - "$id": "13", + "$id": "15", "kind": "basic", "name": "three", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "14", + "$id": "16", "name": "three", "resourceName": "Group1", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "15", "statusCodes": [ 204 ], @@ -220,20 +221,19 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three" }, { - "$id": "16", + "$id": "17", "kind": "basic", "name": "four", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "17", + "$id": "18", "name": "four", "resourceName": "Group1", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "18", "statusCodes": [ 204 ], @@ -260,10 +260,12 @@ ], "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" @@ -278,6 +280,7 @@ "kind": "Client" }, { + "$id": "21", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -302,26 +305,25 @@ } }, { - "$id": "19", + "$id": "22", "kind": "client", "name": "Group2", "namespace": "Client.Structure.TwoOperationGroup", "methods": [ { - "$id": "20", + "$id": "23", "kind": "basic", "name": "two", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "24", "name": "two", "resourceName": "Group2", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "22", "statusCodes": [ 204 ], @@ -346,20 +348,19 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two" }, { - "$id": "23", + "$id": "25", "kind": "basic", "name": "five", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "24", + "$id": "26", "name": "five", "resourceName": "Group2", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "25", "statusCodes": [ 204 ], @@ -384,20 +385,19 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five" }, { - "$id": "26", + "$id": "27", "kind": "basic", "name": "six", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "27", + "$id": "28", "name": "six", "resourceName": "Group2", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "28", "statusCodes": [ 204 ], @@ -424,10 +424,12 @@ ], "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" @@ -442,6 +444,7 @@ "kind": "Client" }, { + "$id": "31", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", 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 6893cfe1157..9093dbb2e27 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 @@ -591,10 +591,12 @@ "methods": [], "parameters": [ { + "$id": "68", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "69", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -609,6 +611,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -622,29 +625,29 @@ "apiVersions": [], "children": [ { - "$id": "68", + "$id": "71", "kind": "client", "name": "Query", "namespace": "Encode.Bytes.Query", "methods": [ { - "$id": "69", + "$id": "72", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "70", + "$id": "73", "name": "default", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "74", "name": "value", "nameInRequest": "value", "type": { - "$id": "72", + "$id": "75", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -664,7 +667,6 @@ ], "responses": [ { - "$id": "73", "statusCodes": [ 204 ], @@ -683,11 +685,11 @@ }, "parameters": [ { - "$id": "74", + "$id": "76", "name": "value", "nameInRequest": "value", "type": { - "$id": "75", + "$id": "77", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -712,23 +714,23 @@ "crossLanguageDefinitionId": "Encode.Bytes.Query.default" }, { - "$id": "76", + "$id": "78", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "77", + "$id": "79", "name": "base64", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "80", "name": "value", "nameInRequest": "value", "type": { - "$id": "79", + "$id": "81", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -748,7 +750,6 @@ ], "responses": [ { - "$id": "80", "statusCodes": [ 204 ], @@ -767,11 +768,11 @@ }, "parameters": [ { - "$id": "81", + "$id": "82", "name": "value", "nameInRequest": "value", "type": { - "$id": "82", + "$id": "83", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -796,23 +797,23 @@ "crossLanguageDefinitionId": "Encode.Bytes.Query.base64" }, { - "$id": "83", + "$id": "84", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "84", + "$id": "85", "name": "base64url", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "86", "name": "value", "nameInRequest": "value", "type": { - "$id": "86", + "$id": "87", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -832,7 +833,6 @@ ], "responses": [ { - "$id": "87", "statusCodes": [ 204 ], @@ -912,7 +912,6 @@ ], "responses": [ { - "$id": "93", "statusCodes": [ 204 ], @@ -931,7 +930,7 @@ }, "parameters": [ { - "$id": "94", + "$id": "93", "name": "value", "nameInRequest": "value", "type": { @@ -957,10 +956,12 @@ ], "parameters": [ { + "$id": "94", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "95", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -975,6 +976,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -991,25 +993,25 @@ } }, { - "$id": "95", + "$id": "97", "kind": "client", "name": "Property", "namespace": "Encode.Bytes.Property", "methods": [ { - "$id": "96", + "$id": "98", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "97", + "$id": "99", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "98", + "$id": "100", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1027,7 +1029,7 @@ "skipUrlEncoding": false }, { - "$id": "99", + "$id": "101", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1044,7 +1046,7 @@ "skipUrlEncoding": false }, { - "$id": "100", + "$id": "102", "name": "body", "nameInRequest": "body", "type": { @@ -1063,7 +1065,6 @@ ], "responses": [ { - "$id": "101", "statusCodes": [ 200 ], @@ -1091,7 +1092,7 @@ }, "parameters": [ { - "$id": "102", + "$id": "103", "name": "body", "nameInRequest": "body", "type": { @@ -1108,7 +1109,7 @@ "skipUrlEncoding": false }, { - "$id": "103", + "$id": "104", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1126,7 +1127,7 @@ "skipUrlEncoding": false }, { - "$id": "104", + "$id": "105", "name": "accept", "nameInRequest": "accept", "type": { @@ -1154,19 +1155,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.Property.default" }, { - "$id": "105", + "$id": "106", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "106", + "$id": "107", "name": "base64", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "107", + "$id": "108", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1184,7 +1185,7 @@ "skipUrlEncoding": false }, { - "$id": "108", + "$id": "109", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1201,7 +1202,7 @@ "skipUrlEncoding": false }, { - "$id": "109", + "$id": "110", "name": "body", "nameInRequest": "body", "type": { @@ -1220,7 +1221,6 @@ ], "responses": [ { - "$id": "110", "statusCodes": [ 200 ], @@ -1377,7 +1377,6 @@ ], "responses": [ { - "$id": "119", "statusCodes": [ 200 ], @@ -1405,7 +1404,7 @@ }, "parameters": [ { - "$id": "120", + "$id": "119", "name": "body", "nameInRequest": "body", "type": { @@ -1422,7 +1421,7 @@ "skipUrlEncoding": false }, { - "$id": "121", + "$id": "120", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1440,7 +1439,7 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "121", "name": "accept", "nameInRequest": "accept", "type": { @@ -1468,19 +1467,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url" }, { - "$id": "123", + "$id": "122", "kind": "basic", "name": "base64urlArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "124", + "$id": "123", "name": "base64urlArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "125", + "$id": "124", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1498,7 +1497,7 @@ "skipUrlEncoding": false }, { - "$id": "126", + "$id": "125", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1515,7 +1514,7 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "126", "name": "body", "nameInRequest": "body", "type": { @@ -1534,7 +1533,6 @@ ], "responses": [ { - "$id": "128", "statusCodes": [ 200 ], @@ -1562,7 +1560,7 @@ }, "parameters": [ { - "$id": "129", + "$id": "127", "name": "body", "nameInRequest": "body", "type": { @@ -1579,7 +1577,7 @@ "skipUrlEncoding": false }, { - "$id": "130", + "$id": "128", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1597,7 +1595,7 @@ "skipUrlEncoding": false }, { - "$id": "131", + "$id": "129", "name": "accept", "nameInRequest": "accept", "type": { @@ -1627,10 +1625,12 @@ ], "parameters": [ { + "$id": "130", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "131", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1645,6 +1645,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1661,29 +1662,29 @@ } }, { - "$id": "132", + "$id": "133", "kind": "client", "name": "Header", "namespace": "Encode.Bytes.Header", "methods": [ { - "$id": "133", + "$id": "134", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "134", + "$id": "135", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "136", "name": "value", "nameInRequest": "value", "type": { - "$id": "136", + "$id": "137", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1703,7 +1704,6 @@ ], "responses": [ { - "$id": "137", "statusCodes": [ 204 ], @@ -1787,7 +1787,6 @@ ], "responses": [ { - "$id": "144", "statusCodes": [ 204 ], @@ -1806,11 +1805,11 @@ }, "parameters": [ { - "$id": "145", + "$id": "144", "name": "value", "nameInRequest": "value", "type": { - "$id": "146", + "$id": "145", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1835,23 +1834,23 @@ "crossLanguageDefinitionId": "Encode.Bytes.Header.base64" }, { - "$id": "147", + "$id": "146", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "148", + "$id": "147", "name": "base64url", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "149", + "$id": "148", "name": "value", "nameInRequest": "value", "type": { - "$id": "150", + "$id": "149", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -1871,7 +1870,6 @@ ], "responses": [ { - "$id": "151", "statusCodes": [ 204 ], @@ -1890,11 +1888,11 @@ }, "parameters": [ { - "$id": "152", + "$id": "150", "name": "value", "nameInRequest": "value", "type": { - "$id": "153", + "$id": "151", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -1919,19 +1917,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url" }, { - "$id": "154", + "$id": "152", "kind": "basic", "name": "base64urlArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "155", + "$id": "153", "name": "base64urlArray", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "156", + "$id": "154", "name": "value", "nameInRequest": "value", "type": { @@ -1951,7 +1949,6 @@ ], "responses": [ { - "$id": "157", "statusCodes": [ 204 ], @@ -1970,7 +1967,7 @@ }, "parameters": [ { - "$id": "158", + "$id": "155", "name": "value", "nameInRequest": "value", "type": { @@ -1996,10 +1993,12 @@ ], "parameters": [ { + "$id": "156", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "157", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2014,6 +2013,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2089,7 +2089,6 @@ ], "responses": [ { - "$id": "165", "statusCodes": [ 204 ], @@ -2111,11 +2110,11 @@ }, "parameters": [ { - "$id": "166", + "$id": "165", "name": "value", "nameInRequest": "value", "type": { - "$id": "167", + "$id": "166", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2132,7 +2131,7 @@ "skipUrlEncoding": false }, { - "$id": "168", + "$id": "167", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/octet-stream", @@ -2157,19 +2156,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default" }, { - "$id": "169", + "$id": "168", "kind": "basic", "name": "octetStream", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "170", + "$id": "169", "name": "octetStream", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "171", + "$id": "170", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2186,11 +2185,11 @@ "skipUrlEncoding": false }, { - "$id": "172", + "$id": "171", "name": "value", "nameInRequest": "value", "type": { - "$id": "173", + "$id": "172", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2209,7 +2208,6 @@ ], "responses": [ { - "$id": "174", "statusCodes": [ 204 ], @@ -2231,7 +2229,7 @@ }, "parameters": [ { - "$id": "175", + "$id": "173", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2248,11 +2246,11 @@ "skipUrlEncoding": false }, { - "$id": "176", + "$id": "174", "name": "value", "nameInRequest": "value", "type": { - "$id": "177", + "$id": "175", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2276,19 +2274,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream" }, { - "$id": "178", + "$id": "176", "kind": "basic", "name": "customContentType", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "179", + "$id": "177", "name": "customContentType", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "180", + "$id": "178", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2305,11 +2303,11 @@ "skipUrlEncoding": false }, { - "$id": "181", + "$id": "179", "name": "value", "nameInRequest": "value", "type": { - "$id": "182", + "$id": "180", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2328,7 +2326,6 @@ ], "responses": [ { - "$id": "183", "statusCodes": [ 204 ], @@ -2350,7 +2347,7 @@ }, "parameters": [ { - "$id": "184", + "$id": "181", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2367,11 +2364,11 @@ "skipUrlEncoding": false }, { - "$id": "185", + "$id": "182", "name": "value", "nameInRequest": "value", "type": { - "$id": "186", + "$id": "183", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2395,19 +2392,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType" }, { - "$id": "187", + "$id": "184", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "188", + "$id": "185", "name": "base64", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "186", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2424,11 +2421,11 @@ "skipUrlEncoding": false }, { - "$id": "190", + "$id": "187", "name": "value", "nameInRequest": "value", "type": { - "$id": "191", + "$id": "188", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2448,7 +2445,6 @@ ], "responses": [ { - "$id": "192", "statusCodes": [ 204 ], @@ -2470,7 +2466,7 @@ }, "parameters": [ { - "$id": "193", + "$id": "189", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2487,11 +2483,11 @@ "skipUrlEncoding": false }, { - "$id": "194", + "$id": "190", "name": "value", "nameInRequest": "value", "type": { - "$id": "195", + "$id": "191", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2516,19 +2512,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64" }, { - "$id": "196", + "$id": "192", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "197", + "$id": "193", "name": "base64url", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "198", + "$id": "194", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2545,11 +2541,11 @@ "skipUrlEncoding": false }, { - "$id": "199", + "$id": "195", "name": "value", "nameInRequest": "value", "type": { - "$id": "200", + "$id": "196", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -2569,7 +2565,6 @@ ], "responses": [ { - "$id": "201", "statusCodes": [ 204 ], @@ -2591,7 +2586,7 @@ }, "parameters": [ { - "$id": "202", + "$id": "197", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2608,11 +2603,11 @@ "skipUrlEncoding": false }, { - "$id": "203", + "$id": "198", "name": "value", "nameInRequest": "value", "type": { - "$id": "204", + "$id": "199", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -2639,10 +2634,12 @@ ], "parameters": [ { + "$id": "200", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "201", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2657,6 +2654,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2673,25 +2671,25 @@ } }, { - "$id": "205", + "$id": "203", "kind": "client", "name": "ResponseBody", "namespace": "Encode.Bytes.ResponseBody", "methods": [ { - "$id": "206", + "$id": "204", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "207", + "$id": "205", "name": "default", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "208", + "$id": "206", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2710,12 +2708,11 @@ ], "responses": [ { - "$id": "209", "statusCodes": [ 200 ], "bodyType": { - "$id": "210", + "$id": "207", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2739,7 +2736,7 @@ }, "parameters": [ { - "$id": "211", + "$id": "208", "name": "accept", "nameInRequest": "accept", "type": { @@ -2758,7 +2755,7 @@ ], "response": { "type": { - "$ref": "210" + "$ref": "207" } }, "isOverride": false, @@ -2767,19 +2764,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default" }, { - "$id": "212", + "$id": "209", "kind": "basic", "name": "octetStream", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "213", + "$id": "210", "name": "octetStream", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "214", + "$id": "211", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2798,12 +2795,11 @@ ], "responses": [ { - "$id": "215", "statusCodes": [ 200 ], "bodyType": { - "$id": "216", + "$id": "212", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2835,7 +2831,7 @@ }, "parameters": [ { - "$id": "217", + "$id": "213", "name": "accept", "nameInRequest": "accept", "type": { @@ -2854,7 +2850,7 @@ ], "response": { "type": { - "$ref": "216" + "$ref": "212" } }, "isOverride": false, @@ -2863,19 +2859,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream" }, { - "$id": "218", + "$id": "214", "kind": "basic", "name": "customContentType", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "219", + "$id": "215", "name": "customContentType", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "220", + "$id": "216", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2894,12 +2890,11 @@ ], "responses": [ { - "$id": "221", "statusCodes": [ 200 ], "bodyType": { - "$id": "222", + "$id": "217", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2931,7 +2926,7 @@ }, "parameters": [ { - "$id": "223", + "$id": "218", "name": "accept", "nameInRequest": "accept", "type": { @@ -2950,7 +2945,7 @@ ], "response": { "type": { - "$ref": "222" + "$ref": "217" } }, "isOverride": false, @@ -2959,19 +2954,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType" }, { - "$id": "224", + "$id": "219", "kind": "basic", "name": "base64", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "225", + "$id": "220", "name": "base64", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "226", + "$id": "221", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2990,12 +2985,11 @@ ], "responses": [ { - "$id": "227", "statusCodes": [ 200 ], "bodyType": { - "$id": "228", + "$id": "222", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3028,7 +3022,7 @@ }, "parameters": [ { - "$id": "229", + "$id": "223", "name": "accept", "nameInRequest": "accept", "type": { @@ -3047,7 +3041,7 @@ ], "response": { "type": { - "$ref": "228" + "$ref": "222" } }, "isOverride": false, @@ -3056,19 +3050,19 @@ "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64" }, { - "$id": "230", + "$id": "224", "kind": "basic", "name": "base64url", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "231", + "$id": "225", "name": "base64url", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "232", + "$id": "226", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3087,18 +3081,17 @@ ], "responses": [ { - "$id": "233", "statusCodes": [ 200 ], "bodyType": { - "$id": "234", + "$id": "227", "kind": "bytes", "name": "base64urlBytes", "encode": "base64url", "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", "baseType": { - "$id": "235", + "$id": "228", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3133,7 +3126,7 @@ }, "parameters": [ { - "$id": "236", + "$id": "229", "name": "accept", "nameInRequest": "accept", "type": { @@ -3152,7 +3145,7 @@ ], "response": { "type": { - "$ref": "234" + "$ref": "227" } }, "isOverride": false, @@ -3163,10 +3156,12 @@ ], "parameters": [ { + "$id": "230", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "231", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3181,6 +3176,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 5461d57d004..e225d6cda31 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 @@ -413,10 +413,12 @@ "methods": [], "parameters": [ { + "$id": "45", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "46", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -431,6 +433,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -444,34 +447,34 @@ "apiVersions": [], "children": [ { - "$id": "45", + "$id": "48", "kind": "client", "name": "Query", "namespace": "Encode.Datetime.Query", "methods": [ { - "$id": "46", + "$id": "49", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "47", + "$id": "50", "name": "default", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "48", + "$id": "51", "name": "value", "nameInRequest": "value", "type": { - "$id": "49", + "$id": "52", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "50", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -493,7 +496,6 @@ ], "responses": [ { - "$id": "51", "statusCodes": [ 204 ], @@ -512,16 +514,16 @@ }, "parameters": [ { - "$id": "52", + "$id": "54", "name": "value", "nameInRequest": "value", "type": { - "$id": "53", + "$id": "55", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "54", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -548,28 +550,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Query.default" }, { - "$id": "55", + "$id": "57", "kind": "basic", "name": "rfc3339", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "56", + "$id": "58", "name": "rfc3339", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "57", + "$id": "59", "name": "value", "nameInRequest": "value", "type": { - "$id": "58", + "$id": "60", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "59", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -591,7 +593,6 @@ ], "responses": [ { - "$id": "60", "statusCodes": [ 204 ], @@ -610,16 +611,16 @@ }, "parameters": [ { - "$id": "61", + "$id": "62", "name": "value", "nameInRequest": "value", "type": { - "$id": "62", + "$id": "63", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "63", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -646,28 +647,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339" }, { - "$id": "64", + "$id": "65", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "65", + "$id": "66", "name": "rfc7231", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "67", "name": "value", "nameInRequest": "value", "type": { - "$id": "67", + "$id": "68", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "68", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -689,7 +690,6 @@ ], "responses": [ { - "$id": "69", "statusCodes": [ 204 ], @@ -787,7 +787,6 @@ ], "responses": [ { - "$id": "78", "statusCodes": [ 204 ], @@ -806,16 +805,16 @@ }, "parameters": [ { - "$id": "79", + "$id": "78", "name": "value", "nameInRequest": "value", "type": { - "$id": "80", + "$id": "79", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "81", + "$id": "80", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -842,19 +841,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp" }, { - "$id": "82", + "$id": "81", "kind": "basic", "name": "unixTimestampArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "83", + "$id": "82", "name": "unixTimestampArray", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "84", + "$id": "83", "name": "value", "nameInRequest": "value", "type": { @@ -874,7 +873,6 @@ ], "responses": [ { - "$id": "85", "statusCodes": [ 204 ], @@ -893,7 +891,7 @@ }, "parameters": [ { - "$id": "86", + "$id": "84", "name": "value", "nameInRequest": "value", "type": { @@ -919,10 +917,12 @@ ], "parameters": [ { + "$id": "85", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "86", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -937,6 +937,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -953,25 +954,25 @@ } }, { - "$id": "87", + "$id": "88", "kind": "client", "name": "Property", "namespace": "Encode.Datetime.Property", "methods": [ { - "$id": "88", + "$id": "89", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "89", + "$id": "90", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "90", + "$id": "91", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -989,7 +990,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "92", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1006,7 +1007,7 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "93", "name": "body", "nameInRequest": "body", "type": { @@ -1025,7 +1026,6 @@ ], "responses": [ { - "$id": "93", "statusCodes": [ 200 ], @@ -1182,7 +1182,6 @@ ], "responses": [ { - "$id": "102", "statusCodes": [ 200 ], @@ -1210,7 +1209,7 @@ }, "parameters": [ { - "$id": "103", + "$id": "102", "name": "body", "nameInRequest": "body", "type": { @@ -1227,7 +1226,7 @@ "skipUrlEncoding": false }, { - "$id": "104", + "$id": "103", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1245,7 +1244,7 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "104", "name": "accept", "nameInRequest": "accept", "type": { @@ -1273,19 +1272,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339" }, { - "$id": "106", + "$id": "105", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "107", + "$id": "106", "name": "rfc7231", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "108", + "$id": "107", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1303,7 +1302,7 @@ "skipUrlEncoding": false }, { - "$id": "109", + "$id": "108", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1320,7 +1319,7 @@ "skipUrlEncoding": false }, { - "$id": "110", + "$id": "109", "name": "body", "nameInRequest": "body", "type": { @@ -1339,7 +1338,6 @@ ], "responses": [ { - "$id": "111", "statusCodes": [ 200 ], @@ -1367,7 +1365,7 @@ }, "parameters": [ { - "$id": "112", + "$id": "110", "name": "body", "nameInRequest": "body", "type": { @@ -1384,7 +1382,7 @@ "skipUrlEncoding": false }, { - "$id": "113", + "$id": "111", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1402,7 +1400,7 @@ "skipUrlEncoding": false }, { - "$id": "114", + "$id": "112", "name": "accept", "nameInRequest": "accept", "type": { @@ -1430,19 +1428,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231" }, { - "$id": "115", + "$id": "113", "kind": "basic", "name": "unixTimestamp", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "116", + "$id": "114", "name": "unixTimestamp", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "117", + "$id": "115", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1460,7 +1458,7 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "116", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1477,7 +1475,7 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "117", "name": "body", "nameInRequest": "body", "type": { @@ -1496,7 +1494,6 @@ ], "responses": [ { - "$id": "120", "statusCodes": [ 200 ], @@ -1524,7 +1521,7 @@ }, "parameters": [ { - "$id": "121", + "$id": "118", "name": "body", "nameInRequest": "body", "type": { @@ -1541,7 +1538,7 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "119", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1559,7 +1556,7 @@ "skipUrlEncoding": false }, { - "$id": "123", + "$id": "120", "name": "accept", "nameInRequest": "accept", "type": { @@ -1587,19 +1584,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp" }, { - "$id": "124", + "$id": "121", "kind": "basic", "name": "unixTimestampArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "125", + "$id": "122", "name": "unixTimestampArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "126", + "$id": "123", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1617,7 +1614,7 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "124", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1634,7 +1631,7 @@ "skipUrlEncoding": false }, { - "$id": "128", + "$id": "125", "name": "body", "nameInRequest": "body", "type": { @@ -1653,7 +1650,6 @@ ], "responses": [ { - "$id": "129", "statusCodes": [ 200 ], @@ -1681,7 +1677,7 @@ }, "parameters": [ { - "$id": "130", + "$id": "126", "name": "body", "nameInRequest": "body", "type": { @@ -1698,7 +1694,7 @@ "skipUrlEncoding": false }, { - "$id": "131", + "$id": "127", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1716,7 +1712,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "128", "name": "accept", "nameInRequest": "accept", "type": { @@ -1746,10 +1742,12 @@ ], "parameters": [ { + "$id": "129", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "130", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1764,6 +1762,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1780,34 +1779,34 @@ } }, { - "$id": "133", + "$id": "132", "kind": "client", "name": "Header", "namespace": "Encode.Datetime.Header", "methods": [ { - "$id": "134", + "$id": "133", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "135", + "$id": "134", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "136", + "$id": "135", "name": "value", "nameInRequest": "value", "type": { - "$id": "137", + "$id": "136", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "138", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1829,7 +1828,6 @@ ], "responses": [ { - "$id": "139", "statusCodes": [ 204 ], @@ -1848,16 +1846,16 @@ }, "parameters": [ { - "$id": "140", + "$id": "138", "name": "value", "nameInRequest": "value", "type": { - "$id": "141", + "$id": "139", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "142", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1884,28 +1882,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.default" }, { - "$id": "143", + "$id": "141", "kind": "basic", "name": "rfc3339", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "144", + "$id": "142", "name": "rfc3339", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "145", + "$id": "143", "name": "value", "nameInRequest": "value", "type": { - "$id": "146", + "$id": "144", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "147", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1927,7 +1925,6 @@ ], "responses": [ { - "$id": "148", "statusCodes": [ 204 ], @@ -1946,16 +1943,16 @@ }, "parameters": [ { - "$id": "149", + "$id": "146", "name": "value", "nameInRequest": "value", "type": { - "$id": "150", + "$id": "147", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "151", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1982,28 +1979,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339" }, { - "$id": "152", + "$id": "149", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "153", + "$id": "150", "name": "rfc7231", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "154", + "$id": "151", "name": "value", "nameInRequest": "value", "type": { - "$id": "155", + "$id": "152", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "156", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2025,7 +2022,6 @@ ], "responses": [ { - "$id": "157", "statusCodes": [ 204 ], @@ -2044,16 +2040,16 @@ }, "parameters": [ { - "$id": "158", + "$id": "154", "name": "value", "nameInRequest": "value", "type": { - "$id": "159", + "$id": "155", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "160", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2080,28 +2076,28 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231" }, { - "$id": "161", + "$id": "157", "kind": "basic", "name": "unixTimestamp", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "162", + "$id": "158", "name": "unixTimestamp", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "163", + "$id": "159", "name": "value", "nameInRequest": "value", "type": { - "$id": "164", + "$id": "160", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "165", + "$id": "161", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -2123,7 +2119,6 @@ ], "responses": [ { - "$id": "166", "statusCodes": [ 204 ], @@ -2142,16 +2137,16 @@ }, "parameters": [ { - "$id": "167", + "$id": "162", "name": "value", "nameInRequest": "value", "type": { - "$id": "168", + "$id": "163", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "169", + "$id": "164", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -2178,19 +2173,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp" }, { - "$id": "170", + "$id": "165", "kind": "basic", "name": "unixTimestampArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "171", + "$id": "166", "name": "unixTimestampArray", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "172", + "$id": "167", "name": "value", "nameInRequest": "value", "type": { @@ -2210,7 +2205,6 @@ ], "responses": [ { - "$id": "173", "statusCodes": [ 204 ], @@ -2229,7 +2223,7 @@ }, "parameters": [ { - "$id": "174", + "$id": "168", "name": "value", "nameInRequest": "value", "type": { @@ -2255,10 +2249,12 @@ ], "parameters": [ { + "$id": "169", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "170", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2273,6 +2269,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2289,26 +2286,25 @@ } }, { - "$id": "175", + "$id": "172", "kind": "client", "name": "ResponseHeader", "namespace": "Encode.Datetime.ResponseHeader", "methods": [ { - "$id": "176", + "$id": "173", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "177", + "$id": "174", "name": "default", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "178", "statusCodes": [ 204 ], @@ -2317,12 +2313,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "179", + "$id": "175", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "180", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2353,20 +2349,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default" }, { - "$id": "181", + "$id": "177", "kind": "basic", "name": "rfc3339", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "182", + "$id": "178", "name": "rfc3339", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "183", "statusCodes": [ 204 ], @@ -2375,12 +2370,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "184", + "$id": "179", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "185", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2411,20 +2406,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339" }, { - "$id": "186", + "$id": "181", "kind": "basic", "name": "rfc7231", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "187", + "$id": "182", "name": "rfc7231", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "188", "statusCodes": [ 204 ], @@ -2433,12 +2427,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "189", + "$id": "183", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "190", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2469,20 +2463,19 @@ "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231" }, { - "$id": "191", + "$id": "185", "kind": "basic", "name": "unixTimestamp", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "192", + "$id": "186", "name": "unixTimestamp", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "193", "statusCodes": [ 204 ], @@ -2491,12 +2484,12 @@ "name": "value", "nameInResponse": "value", "type": { - "$id": "194", + "$id": "187", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "195", + "$id": "188", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -2529,10 +2522,12 @@ ], "parameters": [ { + "$id": "189", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "190", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2547,6 +2542,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 54b544e7ff0..402148a30d2 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 @@ -488,10 +488,12 @@ "methods": [], "parameters": [ { + "$id": "53", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "54", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -506,6 +508,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -519,34 +522,34 @@ "apiVersions": [], "children": [ { - "$id": "53", + "$id": "56", "kind": "client", "name": "Query", "namespace": "Encode.Duration.Query", "methods": [ { - "$id": "54", + "$id": "57", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "55", + "$id": "58", "name": "default", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "59", "name": "input", "nameInRequest": "input", "type": { - "$id": "57", + "$id": "60", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "58", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -568,7 +571,6 @@ ], "responses": [ { - "$id": "59", "statusCodes": [ 204 ], @@ -587,16 +589,16 @@ }, "parameters": [ { - "$id": "60", + "$id": "62", "name": "input", "nameInRequest": "input", "type": { - "$id": "61", + "$id": "63", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "62", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -623,28 +625,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Query.default" }, { - "$id": "63", + "$id": "65", "kind": "basic", "name": "iso8601", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "64", + "$id": "66", "name": "iso8601", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "65", + "$id": "67", "name": "input", "nameInRequest": "input", "type": { - "$id": "66", + "$id": "68", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "67", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -666,7 +668,6 @@ ], "responses": [ { - "$id": "68", "statusCodes": [ 204 ], @@ -685,16 +686,16 @@ }, "parameters": [ { - "$id": "69", + "$id": "70", "name": "input", "nameInRequest": "input", "type": { - "$id": "70", + "$id": "71", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "71", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -721,28 +722,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601" }, { - "$id": "72", + "$id": "73", "kind": "basic", "name": "int32Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "73", + "$id": "74", "name": "int32Seconds", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "74", + "$id": "75", "name": "input", "nameInRequest": "input", "type": { - "$id": "75", + "$id": "76", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "76", + "$id": "77", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -764,7 +765,6 @@ ], "responses": [ { - "$id": "77", "statusCodes": [ 204 ], @@ -862,7 +862,6 @@ ], "responses": [ { - "$id": "86", "statusCodes": [ 204 ], @@ -881,16 +880,16 @@ }, "parameters": [ { - "$id": "87", + "$id": "86", "name": "input", "nameInRequest": "input", "type": { - "$id": "88", + "$id": "87", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "89", + "$id": "88", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -917,28 +916,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds" }, { - "$id": "90", + "$id": "89", "kind": "basic", "name": "float64Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "91", + "$id": "90", "name": "float64Seconds", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "91", "name": "input", "nameInRequest": "input", "type": { - "$id": "93", + "$id": "92", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "94", + "$id": "93", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -960,7 +959,6 @@ ], "responses": [ { - "$id": "95", "statusCodes": [ 204 ], @@ -979,16 +977,16 @@ }, "parameters": [ { - "$id": "96", + "$id": "94", "name": "input", "nameInRequest": "input", "type": { - "$id": "97", + "$id": "95", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "98", + "$id": "96", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -1015,32 +1013,32 @@ "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds" }, { - "$id": "99", + "$id": "97", "kind": "basic", "name": "int32SecondsArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "100", + "$id": "98", "name": "int32SecondsArray", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "101", + "$id": "99", "name": "input", "nameInRequest": "input", "type": { - "$id": "102", + "$id": "100", "kind": "array", "name": "Array", "valueType": { - "$id": "103", + "$id": "101", "kind": "duration", "name": "Int32Duration", "encode": "seconds", "wireType": { - "$id": "104", + "$id": "102", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1048,12 +1046,12 @@ }, "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", "baseType": { - "$id": "105", + "$id": "103", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "106", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1081,7 +1079,6 @@ ], "responses": [ { - "$id": "107", "statusCodes": [ 204 ], @@ -1100,11 +1097,11 @@ }, "parameters": [ { - "$id": "108", + "$id": "105", "name": "input", "nameInRequest": "input", "type": { - "$ref": "102" + "$ref": "100" }, "location": "Query", "isApiVersion": false, @@ -1126,10 +1123,12 @@ ], "parameters": [ { + "$id": "106", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "107", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1144,6 +1143,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1232,7 +1232,6 @@ ], "responses": [ { - "$id": "115", "statusCodes": [ 200 ], @@ -1260,7 +1259,7 @@ }, "parameters": [ { - "$id": "116", + "$id": "115", "name": "body", "nameInRequest": "body", "type": { @@ -1277,7 +1276,7 @@ "skipUrlEncoding": false }, { - "$id": "117", + "$id": "116", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1295,7 +1294,7 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "117", "name": "accept", "nameInRequest": "accept", "type": { @@ -1323,19 +1322,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.default" }, { - "$id": "119", + "$id": "118", "kind": "basic", "name": "iso8601", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "120", + "$id": "119", "name": "iso8601", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "121", + "$id": "120", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1353,7 +1352,7 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "121", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1370,7 +1369,7 @@ "skipUrlEncoding": false }, { - "$id": "123", + "$id": "122", "name": "body", "nameInRequest": "body", "type": { @@ -1389,7 +1388,6 @@ ], "responses": [ { - "$id": "124", "statusCodes": [ 200 ], @@ -1417,7 +1415,7 @@ }, "parameters": [ { - "$id": "125", + "$id": "123", "name": "body", "nameInRequest": "body", "type": { @@ -1434,7 +1432,7 @@ "skipUrlEncoding": false }, { - "$id": "126", + "$id": "124", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1452,7 +1450,7 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "125", "name": "accept", "nameInRequest": "accept", "type": { @@ -1480,19 +1478,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601" }, { - "$id": "128", + "$id": "126", "kind": "basic", "name": "int32Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "129", + "$id": "127", "name": "int32Seconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "130", + "$id": "128", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1510,7 +1508,7 @@ "skipUrlEncoding": false }, { - "$id": "131", + "$id": "129", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1527,7 +1525,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "130", "name": "body", "nameInRequest": "body", "type": { @@ -1546,7 +1544,6 @@ ], "responses": [ { - "$id": "133", "statusCodes": [ 200 ], @@ -1574,7 +1571,7 @@ }, "parameters": [ { - "$id": "134", + "$id": "131", "name": "body", "nameInRequest": "body", "type": { @@ -1591,7 +1588,7 @@ "skipUrlEncoding": false }, { - "$id": "135", + "$id": "132", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1609,7 +1606,7 @@ "skipUrlEncoding": false }, { - "$id": "136", + "$id": "133", "name": "accept", "nameInRequest": "accept", "type": { @@ -1637,19 +1634,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds" }, { - "$id": "137", + "$id": "134", "kind": "basic", "name": "floatSeconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "138", + "$id": "135", "name": "floatSeconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "139", + "$id": "136", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1667,7 +1664,7 @@ "skipUrlEncoding": false }, { - "$id": "140", + "$id": "137", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1684,7 +1681,7 @@ "skipUrlEncoding": false }, { - "$id": "141", + "$id": "138", "name": "body", "nameInRequest": "body", "type": { @@ -1703,7 +1700,6 @@ ], "responses": [ { - "$id": "142", "statusCodes": [ 200 ], @@ -1731,7 +1727,7 @@ }, "parameters": [ { - "$id": "143", + "$id": "139", "name": "body", "nameInRequest": "body", "type": { @@ -1748,7 +1744,7 @@ "skipUrlEncoding": false }, { - "$id": "144", + "$id": "140", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1766,7 +1762,7 @@ "skipUrlEncoding": false }, { - "$id": "145", + "$id": "141", "name": "accept", "nameInRequest": "accept", "type": { @@ -1794,19 +1790,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds" }, { - "$id": "146", + "$id": "142", "kind": "basic", "name": "float64Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "147", + "$id": "143", "name": "float64Seconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "148", + "$id": "144", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1824,7 +1820,7 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "145", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1841,7 +1837,7 @@ "skipUrlEncoding": false }, { - "$id": "150", + "$id": "146", "name": "body", "nameInRequest": "body", "type": { @@ -1860,7 +1856,6 @@ ], "responses": [ { - "$id": "151", "statusCodes": [ 200 ], @@ -1888,7 +1883,7 @@ }, "parameters": [ { - "$id": "152", + "$id": "147", "name": "body", "nameInRequest": "body", "type": { @@ -1905,7 +1900,7 @@ "skipUrlEncoding": false }, { - "$id": "153", + "$id": "148", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1923,7 +1918,7 @@ "skipUrlEncoding": false }, { - "$id": "154", + "$id": "149", "name": "accept", "nameInRequest": "accept", "type": { @@ -1951,19 +1946,19 @@ "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds" }, { - "$id": "155", + "$id": "150", "kind": "basic", "name": "floatSecondsArray", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "156", + "$id": "151", "name": "floatSecondsArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "157", + "$id": "152", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1981,7 +1976,7 @@ "skipUrlEncoding": false }, { - "$id": "158", + "$id": "153", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1998,7 +1993,7 @@ "skipUrlEncoding": false }, { - "$id": "159", + "$id": "154", "name": "body", "nameInRequest": "body", "type": { @@ -2017,7 +2012,6 @@ ], "responses": [ { - "$id": "160", "statusCodes": [ 200 ], @@ -2045,7 +2039,7 @@ }, "parameters": [ { - "$id": "161", + "$id": "155", "name": "body", "nameInRequest": "body", "type": { @@ -2062,7 +2056,7 @@ "skipUrlEncoding": false }, { - "$id": "162", + "$id": "156", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2080,7 +2074,7 @@ "skipUrlEncoding": false }, { - "$id": "163", + "$id": "157", "name": "accept", "nameInRequest": "accept", "type": { @@ -2110,10 +2104,12 @@ ], "parameters": [ { + "$id": "158", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "159", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2128,6 +2124,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2144,34 +2141,34 @@ } }, { - "$id": "164", + "$id": "161", "kind": "client", "name": "Header", "namespace": "Encode.Duration.Header", "methods": [ { - "$id": "165", + "$id": "162", "kind": "basic", "name": "default", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "166", + "$id": "163", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "167", + "$id": "164", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "168", + "$id": "165", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "169", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2193,7 +2190,6 @@ ], "responses": [ { - "$id": "170", "statusCodes": [ 204 ], @@ -2212,16 +2208,16 @@ }, "parameters": [ { - "$id": "171", + "$id": "167", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "172", + "$id": "168", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "173", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2248,28 +2244,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.default" }, { - "$id": "174", + "$id": "170", "kind": "basic", "name": "iso8601", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "175", + "$id": "171", "name": "iso8601", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "176", + "$id": "172", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "177", + "$id": "173", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "178", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2291,7 +2287,6 @@ ], "responses": [ { - "$id": "179", "statusCodes": [ 204 ], @@ -2310,16 +2305,16 @@ }, "parameters": [ { - "$id": "180", + "$id": "175", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "181", + "$id": "176", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "182", + "$id": "177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2346,32 +2341,32 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601" }, { - "$id": "183", + "$id": "178", "kind": "basic", "name": "iso8601Array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "184", + "$id": "179", "name": "iso8601Array", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "185", + "$id": "180", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "186", + "$id": "181", "kind": "array", "name": "Array2", "valueType": { - "$id": "187", + "$id": "182", "kind": "duration", "name": "Iso8601Duration", "encode": "ISO8601", "wireType": { - "$id": "188", + "$id": "183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2379,12 +2374,12 @@ }, "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", "baseType": { - "$id": "189", + "$id": "184", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "190", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2412,7 +2407,6 @@ ], "responses": [ { - "$id": "191", "statusCodes": [ 204 ], @@ -2431,11 +2425,11 @@ }, "parameters": [ { - "$id": "192", + "$id": "186", "name": "duration", "nameInRequest": "duration", "type": { - "$ref": "186" + "$ref": "181" }, "location": "Header", "isApiVersion": false, @@ -2455,28 +2449,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array" }, { - "$id": "193", + "$id": "187", "kind": "basic", "name": "int32Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "194", + "$id": "188", "name": "int32Seconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "195", + "$id": "189", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "196", + "$id": "190", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "197", + "$id": "191", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2498,7 +2492,6 @@ ], "responses": [ { - "$id": "198", "statusCodes": [ 204 ], @@ -2517,16 +2510,16 @@ }, "parameters": [ { - "$id": "199", + "$id": "192", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "200", + "$id": "193", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "201", + "$id": "194", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2553,28 +2546,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds" }, { - "$id": "202", + "$id": "195", "kind": "basic", "name": "floatSeconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "203", + "$id": "196", "name": "floatSeconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "197", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "205", + "$id": "198", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "206", + "$id": "199", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -2596,7 +2589,6 @@ ], "responses": [ { - "$id": "207", "statusCodes": [ 204 ], @@ -2615,16 +2607,16 @@ }, "parameters": [ { - "$id": "208", + "$id": "200", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "209", + "$id": "201", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "210", + "$id": "202", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -2651,28 +2643,28 @@ "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds" }, { - "$id": "211", + "$id": "203", "kind": "basic", "name": "float64Seconds", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "212", + "$id": "204", "name": "float64Seconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "213", + "$id": "205", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "214", + "$id": "206", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "215", + "$id": "207", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -2694,7 +2686,6 @@ ], "responses": [ { - "$id": "216", "statusCodes": [ 204 ], @@ -2713,16 +2704,16 @@ }, "parameters": [ { - "$id": "217", + "$id": "208", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "218", + "$id": "209", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "219", + "$id": "210", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -2751,10 +2742,12 @@ ], "parameters": [ { + "$id": "211", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "212", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2769,6 +2762,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "213", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 514a2d0deb9..ea4fba364b7 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 @@ -220,10 +220,12 @@ "methods": [], "parameters": [ { + "$id": "23", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "24", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -238,6 +240,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -251,25 +254,25 @@ "apiVersions": [], "children": [ { - "$id": "23", + "$id": "26", "kind": "client", "name": "Property", "namespace": "Encode.Numeric.Property", "methods": [ { - "$id": "24", + "$id": "27", "kind": "basic", "name": "safeintAsString", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "25", + "$id": "28", "name": "safeintAsString", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "26", + "$id": "29", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -287,7 +290,7 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "30", "name": "accept", "nameInRequest": "Accept", "type": { @@ -304,7 +307,7 @@ "skipUrlEncoding": false }, { - "$id": "28", + "$id": "31", "name": "value", "nameInRequest": "value", "type": { @@ -323,7 +326,6 @@ ], "responses": [ { - "$id": "29", "statusCodes": [ 200 ], @@ -351,7 +353,7 @@ }, "parameters": [ { - "$id": "30", + "$id": "32", "name": "value", "nameInRequest": "value", "type": { @@ -368,7 +370,7 @@ "skipUrlEncoding": false }, { - "$id": "31", + "$id": "33", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -386,7 +388,7 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "34", "name": "accept", "nameInRequest": "accept", "type": { @@ -414,19 +416,19 @@ "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString" }, { - "$id": "33", + "$id": "35", "kind": "basic", "name": "uint32AsStringOptional", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "34", + "$id": "36", "name": "uint32AsStringOptional", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "35", + "$id": "37", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -444,7 +446,7 @@ "skipUrlEncoding": false }, { - "$id": "36", + "$id": "38", "name": "accept", "nameInRequest": "Accept", "type": { @@ -461,7 +463,7 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "39", "name": "value", "nameInRequest": "value", "type": { @@ -480,7 +482,6 @@ ], "responses": [ { - "$id": "38", "statusCodes": [ 200 ], @@ -508,7 +509,7 @@ }, "parameters": [ { - "$id": "39", + "$id": "40", "name": "value", "nameInRequest": "value", "type": { @@ -525,7 +526,7 @@ "skipUrlEncoding": false }, { - "$id": "40", + "$id": "41", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -543,7 +544,7 @@ "skipUrlEncoding": false }, { - "$id": "41", + "$id": "42", "name": "accept", "nameInRequest": "accept", "type": { @@ -571,19 +572,19 @@ "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional" }, { - "$id": "42", + "$id": "43", "kind": "basic", "name": "uint8AsString", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "43", + "$id": "44", "name": "uint8AsString", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "44", + "$id": "45", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -601,7 +602,7 @@ "skipUrlEncoding": false }, { - "$id": "45", + "$id": "46", "name": "accept", "nameInRequest": "Accept", "type": { @@ -618,7 +619,7 @@ "skipUrlEncoding": false }, { - "$id": "46", + "$id": "47", "name": "value", "nameInRequest": "value", "type": { @@ -637,7 +638,6 @@ ], "responses": [ { - "$id": "47", "statusCodes": [ 200 ], @@ -730,10 +730,12 @@ ], "parameters": [ { + "$id": "51", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "52", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -748,6 +750,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 ce12f0d23e8..33f306567f4 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 @@ -119,10 +119,12 @@ "methods": [], "parameters": [ { + "$id": "12", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "13", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -137,6 +139,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -150,25 +153,25 @@ "apiVersions": [], "children": [ { - "$id": "12", + "$id": "15", "kind": "client", "name": "ExplicitBody", "namespace": "Parameters.Basic.ExplicitBody", "methods": [ { - "$id": "13", + "$id": "16", "kind": "basic", "name": "simple", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "14", + "$id": "17", "name": "simple", "resourceName": "ExplicitBody", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "18", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -186,7 +189,7 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "19", "name": "body", "nameInRequest": "body", "type": { @@ -205,7 +208,6 @@ ], "responses": [ { - "$id": "17", "statusCodes": [ 204 ], @@ -227,7 +229,7 @@ }, "parameters": [ { - "$id": "18", + "$id": "20", "name": "body", "nameInRequest": "body", "type": { @@ -244,7 +246,7 @@ "skipUrlEncoding": false }, { - "$id": "19", + "$id": "21", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -271,10 +273,12 @@ ], "parameters": [ { + "$id": "22", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "23", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -289,6 +293,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -305,25 +310,25 @@ } }, { - "$id": "20", + "$id": "25", "kind": "client", "name": "ImplicitBody", "namespace": "Parameters.Basic.ImplicitBody", "methods": [ { - "$id": "21", + "$id": "26", "kind": "basic", "name": "simple", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "22", + "$id": "27", "name": "simple", "resourceName": "ImplicitBody", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "28", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -341,7 +346,7 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "29", "name": "simpleRequest", "nameInRequest": "simpleRequest", "type": { @@ -360,7 +365,6 @@ ], "responses": [ { - "$id": "25", "statusCodes": [ 204 ], @@ -382,7 +386,7 @@ }, "parameters": [ { - "$id": "26", + "$id": "30", "name": "name", "nameInRequest": "name", "type": { @@ -399,7 +403,7 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "31", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -426,10 +430,12 @@ ], "parameters": [ { + "$id": "32", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "33", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -444,6 +450,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 4ccceee1553..9060e0dcb52 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 @@ -163,7 +163,6 @@ ], "responses": [ { - "$id": "17", "statusCodes": [ 204 ], @@ -185,7 +184,7 @@ }, "parameters": [ { - "$id": "18", + "$id": "17", "name": "body", "nameInRequest": "body", "type": { @@ -202,7 +201,7 @@ "skipUrlEncoding": false }, { - "$id": "19", + "$id": "18", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -227,19 +226,19 @@ "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit" }, { - "$id": "20", + "$id": "19", "kind": "basic", "name": "requiredImplicit", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "20", "name": "requiredImplicit", "resourceName": "BodyOptionality", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "21", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -257,7 +256,7 @@ "skipUrlEncoding": false }, { - "$id": "23", + "$id": "22", "name": "bodyModel", "nameInRequest": "bodyModel", "type": { @@ -276,7 +275,6 @@ ], "responses": [ { - "$id": "24", "statusCodes": [ 204 ], @@ -298,11 +296,11 @@ }, "parameters": [ { - "$id": "25", + "$id": "23", "name": "name", "nameInRequest": "name", "type": { - "$id": "26", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -319,7 +317,7 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "25", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -346,10 +344,12 @@ ], "parameters": [ { + "$id": "26", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "27", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -364,6 +364,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -377,25 +378,25 @@ "apiVersions": [], "children": [ { - "$id": "28", + "$id": "29", "kind": "client", "name": "OptionalExplicit", "namespace": "Parameters.BodyOptionality.OptionalExplicit", "methods": [ { - "$id": "29", + "$id": "30", "kind": "basic", "name": "set", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "30", + "$id": "31", "name": "set", "resourceName": "OptionalExplicit", "accessibility": "public", "parameters": [ { - "$id": "31", + "$id": "32", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -413,7 +414,7 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "33", "name": "body", "nameInRequest": "body", "type": { @@ -432,7 +433,6 @@ ], "responses": [ { - "$id": "33", "statusCodes": [ 204 ], @@ -545,7 +545,6 @@ ], "responses": [ { - "$id": "40", "statusCodes": [ 204 ], @@ -567,7 +566,7 @@ }, "parameters": [ { - "$id": "41", + "$id": "40", "name": "body", "nameInRequest": "body", "type": { @@ -584,7 +583,7 @@ "skipUrlEncoding": false }, { - "$id": "42", + "$id": "41", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -611,10 +610,12 @@ ], "parameters": [ { + "$id": "42", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "43", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -629,6 +630,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 9ebfdd21168..c338a98eb64 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 @@ -14,10 +14,12 @@ "methods": [], "parameters": [ { + "$id": "2", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "3", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -32,6 +34,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "4", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -45,34 +48,34 @@ "apiVersions": [], "children": [ { - "$id": "2", + "$id": "5", "kind": "client", "name": "Query", "namespace": "Parameters.CollectionFormat.Query", "methods": [ { - "$id": "3", + "$id": "6", "kind": "basic", "name": "multi", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "4", + "$id": "7", "name": "multi", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "5", + "$id": "8", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "6", + "$id": "9", "kind": "array", "name": "Array", "valueType": { - "$id": "7", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -94,7 +97,6 @@ ], "responses": [ { - "$id": "8", "statusCodes": [ 204 ], @@ -113,12 +115,12 @@ }, "parameters": [ { - "$id": "9", + "$id": "11", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -138,24 +140,24 @@ "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi" }, { - "$id": "10", + "$id": "12", "kind": "basic", "name": "ssv", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "11", + "$id": "13", "name": "ssv", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "14", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -171,7 +173,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -190,12 +191,12 @@ }, "parameters": [ { - "$id": "14", + "$id": "15", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -215,24 +216,24 @@ "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv" }, { - "$id": "15", + "$id": "16", "kind": "basic", "name": "pipes", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "16", + "$id": "17", "name": "pipes", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "17", + "$id": "18", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -248,7 +249,6 @@ ], "responses": [ { - "$id": "18", "statusCodes": [ 204 ], @@ -272,7 +272,7 @@ "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -309,7 +309,7 @@ "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -325,7 +325,6 @@ ], "responses": [ { - "$id": "23", "statusCodes": [ 204 ], @@ -344,12 +343,12 @@ }, "parameters": [ { - "$id": "24", + "$id": "23", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Query", "isApiVersion": false, @@ -371,10 +370,12 @@ ], "parameters": [ { + "$id": "24", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "25", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -389,6 +390,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -405,30 +407,30 @@ } }, { - "$id": "25", + "$id": "27", "kind": "client", "name": "Header", "namespace": "Parameters.CollectionFormat.Header", "methods": [ { - "$id": "26", + "$id": "28", "kind": "basic", "name": "csv", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "27", + "$id": "29", "name": "csv", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "28", + "$id": "30", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -444,7 +446,6 @@ ], "responses": [ { - "$id": "29", "statusCodes": [ 204 ], @@ -463,12 +464,12 @@ }, "parameters": [ { - "$id": "30", + "$id": "31", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$ref": "6" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -490,10 +491,12 @@ ], "parameters": [ { + "$id": "32", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "33", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -508,6 +511,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json index e4896bfdde4..7ccea512e8d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json @@ -48,7 +48,6 @@ ], "responses": [ { - "$id": "6", "statusCodes": [ 204 ], @@ -67,11 +66,11 @@ }, "parameters": [ { - "$id": "7", + "$id": "6", "name": "name", "nameInRequest": "name", "type": { - "$id": "8", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -95,23 +94,23 @@ "crossLanguageDefinitionId": "Parameters.Path.normal" }, { - "$id": "9", + "$id": "8", "kind": "basic", "name": "optional", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "10", + "$id": "9", "name": "optional", "resourceName": "Path", "accessibility": "public", "parameters": [ { - "$id": "11", + "$id": "10", "name": "name", "nameInRequest": "name", "type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -130,7 +129,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -149,11 +147,11 @@ }, "parameters": [ { - "$id": "14", + "$id": "12", "name": "name", "nameInRequest": "name", "type": { - "$id": "15", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -179,10 +177,12 @@ ], "parameters": [ { + "$id": "14", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "15", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -197,6 +197,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 9cf28708f98..9af21fb914c 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 @@ -522,10 +522,12 @@ "methods": [], "parameters": [ { + "$id": "51", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "52", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -540,6 +542,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -553,25 +556,25 @@ "apiVersions": [], "children": [ { - "$id": "51", + "$id": "54", "kind": "client", "name": "Model", "namespace": "Parameters.Spread.Model", "methods": [ { - "$id": "52", + "$id": "55", "kind": "basic", "name": "spreadAsRequestBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "53", + "$id": "56", "name": "spreadAsRequestBody", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "54", + "$id": "57", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -589,7 +592,7 @@ "skipUrlEncoding": false }, { - "$id": "55", + "$id": "58", "name": "bodyParameter", "nameInRequest": "bodyParameter", "type": { @@ -608,7 +611,6 @@ ], "responses": [ { - "$id": "56", "statusCodes": [ 204 ], @@ -630,11 +632,11 @@ }, "parameters": [ { - "$id": "57", + "$id": "59", "name": "name", "nameInRequest": "name", "type": { - "$id": "58", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -651,7 +653,7 @@ "skipUrlEncoding": false }, { - "$id": "59", + "$id": "61", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -676,19 +678,19 @@ "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody" }, { - "$id": "60", + "$id": "62", "kind": "basic", "name": "spreadCompositeRequestOnlyWithBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "61", + "$id": "63", "name": "spreadCompositeRequestOnlyWithBody", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "64", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -706,7 +708,7 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "65", "name": "body", "nameInRequest": "body", "type": { @@ -725,7 +727,6 @@ ], "responses": [ { - "$id": "64", "statusCodes": [ 204 ], @@ -747,7 +748,7 @@ }, "parameters": [ { - "$id": "65", + "$id": "66", "name": "body", "nameInRequest": "body", "type": { @@ -764,7 +765,7 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "67", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -789,23 +790,23 @@ "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody" }, { - "$id": "67", + "$id": "68", "kind": "basic", "name": "spreadCompositeRequestWithoutBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "68", + "$id": "69", "name": "spreadCompositeRequestWithoutBody", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "69", + "$id": "70", "name": "name", "nameInRequest": "name", "type": { - "$id": "70", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -822,11 +823,11 @@ "skipUrlEncoding": false }, { - "$id": "71", + "$id": "72", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "72", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -845,7 +846,6 @@ ], "responses": [ { - "$id": "73", "statusCodes": [ 204 ], @@ -1004,7 +1004,6 @@ ], "responses": [ { - "$id": "86", "statusCodes": [ 204 ], @@ -1026,11 +1025,11 @@ }, "parameters": [ { - "$id": "87", + "$id": "86", "name": "name", "nameInRequest": "name", "type": { - "$id": "88", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1047,11 +1046,11 @@ "skipUrlEncoding": false }, { - "$id": "89", + "$id": "88", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "90", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1068,7 +1067,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "90", "name": "body", "nameInRequest": "body", "type": { @@ -1085,7 +1084,7 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "91", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1110,23 +1109,23 @@ "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest" }, { - "$id": "93", + "$id": "92", "kind": "basic", "name": "spreadCompositeRequestMix", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "94", + "$id": "93", "name": "spreadCompositeRequestMix", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "94", "name": "name", "nameInRequest": "name", "type": { - "$id": "96", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1143,11 +1142,11 @@ "skipUrlEncoding": false }, { - "$id": "97", + "$id": "96", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "98", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1164,7 +1163,7 @@ "skipUrlEncoding": false }, { - "$id": "99", + "$id": "98", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1182,7 +1181,7 @@ "skipUrlEncoding": false }, { - "$id": "100", + "$id": "99", "name": "spreadCompositeRequestMixRequest", "nameInRequest": "spreadCompositeRequestMixRequest", "type": { @@ -1201,7 +1200,6 @@ ], "responses": [ { - "$id": "101", "statusCodes": [ 204 ], @@ -1223,11 +1221,11 @@ }, "parameters": [ { - "$id": "102", + "$id": "100", "name": "name", "nameInRequest": "name", "type": { - "$id": "103", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1244,11 +1242,11 @@ "skipUrlEncoding": false }, { - "$id": "104", + "$id": "102", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "105", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1265,11 +1263,11 @@ "skipUrlEncoding": false }, { - "$id": "106", + "$id": "104", "name": "prop", "nameInRequest": "prop", "type": { - "$id": "107", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1286,7 +1284,7 @@ "skipUrlEncoding": false }, { - "$id": "108", + "$id": "106", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1313,10 +1311,12 @@ ], "parameters": [ { + "$id": "107", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "108", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1331,6 +1331,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1347,25 +1348,25 @@ } }, { - "$id": "109", + "$id": "110", "kind": "client", "name": "Alias", "namespace": "Parameters.Spread.Alias", "methods": [ { - "$id": "110", + "$id": "111", "kind": "basic", "name": "spreadAsRequestBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "111", + "$id": "112", "name": "spreadAsRequestBody", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "112", + "$id": "113", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1383,7 +1384,7 @@ "skipUrlEncoding": false }, { - "$id": "113", + "$id": "114", "name": "spreadAsRequestBodyRequest", "nameInRequest": "spreadAsRequestBodyRequest", "type": { @@ -1402,7 +1403,6 @@ ], "responses": [ { - "$id": "114", "statusCodes": [ 204 ], @@ -1557,7 +1557,6 @@ ], "responses": [ { - "$id": "125", "statusCodes": [ 204 ], @@ -1579,11 +1578,11 @@ }, "parameters": [ { - "$id": "126", + "$id": "125", "name": "id", "nameInRequest": "id", "type": { - "$id": "127", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1600,11 +1599,11 @@ "skipUrlEncoding": false }, { - "$id": "128", + "$id": "127", "name": "name", "nameInRequest": "name", "type": { - "$id": "129", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1621,11 +1620,11 @@ "skipUrlEncoding": false }, { - "$id": "130", + "$id": "129", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "131", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1642,7 +1641,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "131", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1667,23 +1666,23 @@ "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel" }, { - "$id": "133", + "$id": "132", "kind": "basic", "name": "spreadAsRequestParameter", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "134", + "$id": "133", "name": "spreadAsRequestParameter", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "134", "name": "id", "nameInRequest": "id", "type": { - "$id": "136", + "$id": "135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1700,11 +1699,11 @@ "skipUrlEncoding": false }, { - "$id": "137", + "$id": "136", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "138", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1721,7 +1720,7 @@ "skipUrlEncoding": false }, { - "$id": "139", + "$id": "138", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1739,7 +1738,7 @@ "skipUrlEncoding": false }, { - "$id": "140", + "$id": "139", "name": "spreadAsRequestParameterRequest", "nameInRequest": "spreadAsRequestParameterRequest", "type": { @@ -1758,7 +1757,6 @@ ], "responses": [ { - "$id": "141", "statusCodes": [ 204 ], @@ -1780,11 +1778,11 @@ }, "parameters": [ { - "$id": "142", + "$id": "140", "name": "id", "nameInRequest": "id", "type": { - "$id": "143", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1801,11 +1799,11 @@ "skipUrlEncoding": false }, { - "$id": "144", + "$id": "142", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "145", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1822,11 +1820,11 @@ "skipUrlEncoding": false }, { - "$id": "146", + "$id": "144", "name": "name", "nameInRequest": "name", "type": { - "$id": "147", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1843,7 +1841,7 @@ "skipUrlEncoding": false }, { - "$id": "148", + "$id": "146", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1868,23 +1866,23 @@ "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter" }, { - "$id": "149", + "$id": "147", "kind": "basic", "name": "spreadWithMultipleParameters", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "150", + "$id": "148", "name": "spreadWithMultipleParameters", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "151", + "$id": "149", "name": "id", "nameInRequest": "id", "type": { - "$id": "152", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1901,11 +1899,11 @@ "skipUrlEncoding": false }, { - "$id": "153", + "$id": "151", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "154", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1922,7 +1920,7 @@ "skipUrlEncoding": false }, { - "$id": "155", + "$id": "153", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1940,7 +1938,7 @@ "skipUrlEncoding": false }, { - "$id": "156", + "$id": "154", "name": "spreadWithMultipleParametersRequest", "nameInRequest": "spreadWithMultipleParametersRequest", "type": { @@ -1959,7 +1957,6 @@ ], "responses": [ { - "$id": "157", "statusCodes": [ 204 ], @@ -1981,11 +1978,11 @@ }, "parameters": [ { - "$id": "158", + "$id": "155", "name": "id", "nameInRequest": "id", "type": { - "$id": "159", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2002,11 +1999,11 @@ "skipUrlEncoding": false }, { - "$id": "160", + "$id": "157", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "161", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2023,12 +2020,12 @@ "skipUrlEncoding": false }, { - "$id": "162", + "$id": "159", "name": "requiredString", "nameInRequest": "requiredString", "doc": "required string", "type": { - "$id": "163", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2045,12 +2042,12 @@ "skipUrlEncoding": false }, { - "$id": "164", + "$id": "161", "name": "optionalInt", "nameInRequest": "optionalInt", "doc": "optional int", "type": { - "$id": "165", + "$id": "162", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2067,7 +2064,7 @@ "skipUrlEncoding": false }, { - "$id": "166", + "$id": "163", "name": "requiredIntList", "nameInRequest": "requiredIntList", "doc": "required int", @@ -2085,7 +2082,7 @@ "skipUrlEncoding": false }, { - "$id": "167", + "$id": "164", "name": "optionalStringList", "nameInRequest": "optionalStringList", "doc": "optional string", @@ -2103,7 +2100,7 @@ "skipUrlEncoding": false }, { - "$id": "168", + "$id": "165", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2128,25 +2125,25 @@ "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters" }, { - "$id": "169", + "$id": "166", "kind": "basic", "name": "spreadParameterWithInnerAlias", "accessibility": "public", "apiVersions": [], "doc": "spread an alias with contains another alias property as body.", "operation": { - "$id": "170", + "$id": "167", "name": "spreadParameterWithInnerAlias", "resourceName": "Alias", "doc": "spread an alias with contains another alias property as body.", "accessibility": "public", "parameters": [ { - "$id": "171", + "$id": "168", "name": "id", "nameInRequest": "id", "type": { - "$id": "172", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2163,11 +2160,11 @@ "skipUrlEncoding": false }, { - "$id": "173", + "$id": "170", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "174", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2184,7 +2181,7 @@ "skipUrlEncoding": false }, { - "$id": "175", + "$id": "172", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2202,7 +2199,7 @@ "skipUrlEncoding": false }, { - "$id": "176", + "$id": "173", "name": "spreadParameterWithInnerAliasRequest", "nameInRequest": "spreadParameterWithInnerAliasRequest", "type": { @@ -2221,7 +2218,6 @@ ], "responses": [ { - "$id": "177", "statusCodes": [ 204 ], @@ -2243,11 +2239,11 @@ }, "parameters": [ { - "$id": "178", + "$id": "174", "name": "id", "nameInRequest": "id", "type": { - "$id": "179", + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2264,12 +2260,12 @@ "skipUrlEncoding": false }, { - "$id": "180", + "$id": "176", "name": "name", "nameInRequest": "name", "doc": "name of the Thing", "type": { - "$id": "181", + "$id": "177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2286,12 +2282,12 @@ "skipUrlEncoding": false }, { - "$id": "182", + "$id": "178", "name": "age", "nameInRequest": "age", "doc": "age of the Thing", "type": { - "$id": "183", + "$id": "179", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2308,11 +2304,11 @@ "skipUrlEncoding": false }, { - "$id": "184", + "$id": "180", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "185", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2329,7 +2325,7 @@ "skipUrlEncoding": false }, { - "$id": "186", + "$id": "182", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2356,10 +2352,12 @@ ], "parameters": [ { + "$id": "183", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "184", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2374,6 +2372,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 356cc808fc0..900e0f95608 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 @@ -274,10 +274,12 @@ "methods": [], "parameters": [ { + "$id": "32", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "33", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -292,6 +294,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -305,25 +308,25 @@ "apiVersions": [], "children": [ { - "$id": "32", + "$id": "35", "kind": "client", "name": "SameBody", "namespace": "Payload.ContentNegotiation.SameBody", "methods": [ { - "$id": "33", + "$id": "36", "kind": "basic", "name": "getAvatarAsPng", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "34", + "$id": "37", "name": "getAvatarAsPng", "resourceName": "SameBody", "accessibility": "public", "parameters": [ { - "$id": "35", + "$id": "38", "name": "accept", "nameInRequest": "Accept", "type": { @@ -342,12 +345,11 @@ ], "responses": [ { - "$id": "36", "statusCodes": [ 200 ], "bodyType": { - "$id": "37", + "$id": "39", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -379,7 +381,7 @@ }, "parameters": [ { - "$id": "38", + "$id": "40", "name": "accept", "nameInRequest": "accept", "type": { @@ -398,7 +400,7 @@ ], "response": { "type": { - "$ref": "37" + "$ref": "39" } }, "isOverride": false, @@ -407,19 +409,19 @@ "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng" }, { - "$id": "39", + "$id": "41", "kind": "basic", "name": "getAvatarAsJpeg", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "40", + "$id": "42", "name": "getAvatarAsJpeg", "resourceName": "SameBody", "accessibility": "public", "parameters": [ { - "$id": "41", + "$id": "43", "name": "accept", "nameInRequest": "Accept", "type": { @@ -438,12 +440,11 @@ ], "responses": [ { - "$id": "42", "statusCodes": [ 200 ], "bodyType": { - "$id": "43", + "$id": "44", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -475,7 +476,7 @@ }, "parameters": [ { - "$id": "44", + "$id": "45", "name": "accept", "nameInRequest": "accept", "type": { @@ -494,7 +495,7 @@ ], "response": { "type": { - "$ref": "43" + "$ref": "44" } }, "isOverride": false, @@ -505,10 +506,12 @@ ], "parameters": [ { + "$id": "46", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "47", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -523,6 +526,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -539,25 +543,25 @@ } }, { - "$id": "45", + "$id": "49", "kind": "client", "name": "DifferentBody", "namespace": "Payload.ContentNegotiation.DifferentBody", "methods": [ { - "$id": "46", + "$id": "50", "kind": "basic", "name": "getAvatarAsPng", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "47", + "$id": "51", "name": "getAvatarAsPng", "resourceName": "DifferentBody", "accessibility": "public", "parameters": [ { - "$id": "48", + "$id": "52", "name": "accept", "nameInRequest": "Accept", "type": { @@ -576,12 +580,11 @@ ], "responses": [ { - "$id": "49", "statusCodes": [ 200 ], "bodyType": { - "$id": "50", + "$id": "53", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -613,7 +616,7 @@ }, "parameters": [ { - "$id": "51", + "$id": "54", "name": "accept", "nameInRequest": "accept", "type": { @@ -632,7 +635,7 @@ ], "response": { "type": { - "$ref": "50" + "$ref": "53" } }, "isOverride": false, @@ -641,19 +644,19 @@ "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng" }, { - "$id": "52", + "$id": "55", "kind": "basic", "name": "getAvatarAsJson", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "53", + "$id": "56", "name": "getAvatarAsJson", "resourceName": "DifferentBody", "accessibility": "public", "parameters": [ { - "$id": "54", + "$id": "57", "name": "accept", "nameInRequest": "Accept", "type": { @@ -672,7 +675,6 @@ ], "responses": [ { - "$id": "55", "statusCodes": [ 200 ], @@ -705,7 +707,7 @@ }, "parameters": [ { - "$id": "56", + "$id": "58", "name": "accept", "nameInRequest": "accept", "type": { @@ -735,10 +737,12 @@ ], "parameters": [ { + "$id": "59", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "60", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -753,6 +757,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 076f3e55f3c..1014980abff 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 @@ -653,7 +653,6 @@ ], "responses": [ { - "$id": "57", "statusCodes": [ 200 ], @@ -681,7 +680,7 @@ }, "parameters": [ { - "$id": "58", + "$id": "57", "name": "body", "nameInRequest": "body", "type": { @@ -698,7 +697,7 @@ "skipUrlEncoding": false }, { - "$id": "59", + "$id": "58", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -716,7 +715,7 @@ "skipUrlEncoding": false }, { - "$id": "60", + "$id": "59", "name": "accept", "nameInRequest": "accept", "type": { @@ -744,21 +743,21 @@ "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource" }, { - "$id": "61", + "$id": "60", "kind": "basic", "name": "updateResource", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: application/merge-patch+json with required body", "operation": { - "$id": "62", + "$id": "61", "name": "updateResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with required body", "accessibility": "public", "parameters": [ { - "$id": "63", + "$id": "62", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -775,7 +774,7 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "63", "name": "accept", "nameInRequest": "Accept", "type": { @@ -792,7 +791,7 @@ "skipUrlEncoding": false }, { - "$id": "65", + "$id": "64", "name": "body", "nameInRequest": "body", "type": { @@ -811,7 +810,6 @@ ], "responses": [ { - "$id": "66", "statusCodes": [ 200 ], @@ -839,7 +837,7 @@ }, "parameters": [ { - "$id": "67", + "$id": "65", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -856,7 +854,7 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "66", "name": "body", "nameInRequest": "body", "type": { @@ -873,7 +871,7 @@ "skipUrlEncoding": false }, { - "$id": "69", + "$id": "67", "name": "accept", "nameInRequest": "accept", "type": { @@ -901,21 +899,21 @@ "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource" }, { - "$id": "70", + "$id": "68", "kind": "basic", "name": "updateOptionalResource", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: application/merge-patch+json with optional body", "operation": { - "$id": "71", + "$id": "69", "name": "updateOptionalResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with optional body", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "70", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -932,7 +930,7 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "71", "name": "accept", "nameInRequest": "Accept", "type": { @@ -949,7 +947,7 @@ "skipUrlEncoding": false }, { - "$id": "74", + "$id": "72", "name": "body", "nameInRequest": "body", "type": { @@ -968,7 +966,6 @@ ], "responses": [ { - "$id": "75", "statusCodes": [ 200 ], @@ -996,7 +993,7 @@ }, "parameters": [ { - "$id": "76", + "$id": "73", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -1013,7 +1010,7 @@ "skipUrlEncoding": false }, { - "$id": "77", + "$id": "74", "name": "body", "nameInRequest": "body", "type": { @@ -1030,7 +1027,7 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "75", "name": "accept", "nameInRequest": "accept", "type": { @@ -1060,10 +1057,12 @@ ], "parameters": [ { + "$id": "76", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "77", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1078,6 +1077,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 b84daca5fda..877caf29d95 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 @@ -143,10 +143,12 @@ "methods": [], "parameters": [ { + "$id": "18", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "19", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -161,6 +163,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -174,25 +177,25 @@ "apiVersions": [], "children": [ { - "$id": "18", + "$id": "21", "kind": "client", "name": "StringBody", "namespace": "Payload.MediaType.StringBody", "methods": [ { - "$id": "19", + "$id": "22", "kind": "basic", "name": "sendAsText", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "20", + "$id": "23", "name": "sendAsText", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "21", + "$id": "24", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -209,11 +212,11 @@ "skipUrlEncoding": false }, { - "$id": "22", + "$id": "25", "name": "text", "nameInRequest": "text", "type": { - "$id": "23", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -232,7 +235,6 @@ ], "responses": [ { - "$id": "24", "statusCodes": [ 200 ], @@ -254,7 +256,7 @@ }, "parameters": [ { - "$id": "25", + "$id": "27", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -271,11 +273,11 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "28", "name": "text", "nameInRequest": "text", "type": { - "$id": "27", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -299,19 +301,19 @@ "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText" }, { - "$id": "28", + "$id": "30", "kind": "basic", "name": "getAsText", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "31", "name": "getAsText", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "32", "name": "accept", "nameInRequest": "Accept", "type": { @@ -330,12 +332,11 @@ ], "responses": [ { - "$id": "31", "statusCodes": [ 200 ], "bodyType": { - "$id": "32", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -367,7 +368,7 @@ }, "parameters": [ { - "$id": "33", + "$id": "34", "name": "accept", "nameInRequest": "accept", "type": { @@ -386,7 +387,7 @@ ], "response": { "type": { - "$ref": "32" + "$ref": "33" } }, "isOverride": false, @@ -395,19 +396,19 @@ "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText" }, { - "$id": "34", + "$id": "35", "kind": "basic", "name": "sendAsJson", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "35", + "$id": "36", "name": "sendAsJson", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "36", + "$id": "37", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -424,11 +425,11 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "38", "name": "text", "nameInRequest": "text", "type": { - "$id": "38", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -447,7 +448,6 @@ ], "responses": [ { - "$id": "39", "statusCodes": [ 200 ], @@ -545,12 +545,11 @@ ], "responses": [ { - "$id": "46", "statusCodes": [ 200 ], "bodyType": { - "$id": "47", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -582,7 +581,7 @@ }, "parameters": [ { - "$id": "48", + "$id": "47", "name": "accept", "nameInRequest": "accept", "type": { @@ -601,7 +600,7 @@ ], "response": { "type": { - "$ref": "47" + "$ref": "46" } }, "isOverride": false, @@ -612,10 +611,12 @@ ], "parameters": [ { + "$id": "48", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "49", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -630,6 +631,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 4f2f0c5948f..70c7292ffb6 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 @@ -1123,8 +1123,10 @@ "isFilePart": true, "isMulti": false, "filename": { + "$id": "105", "apiVersions": [], "type": { + "$id": "106", "kind": "string", "decorators": [], "name": "string", @@ -1154,8 +1156,10 @@ "serializationOptions": {} }, "contentType": { + "$id": "107", "apiVersions": [], "type": { + "$id": "108", "kind": "string", "decorators": [], "name": "string", @@ -1192,12 +1196,12 @@ } }, { - "$id": "105", + "$id": "109", "kind": "property", "name": "previousAddresses", "serializedName": "previousAddresses", "type": { - "$id": "106", + "$id": "110", "kind": "array", "name": "ArrayAddress", "valueType": { @@ -1224,12 +1228,12 @@ } }, { - "$id": "107", + "$id": "111", "kind": "property", "name": "pictures", "serializedName": "pictures", "type": { - "$id": "108", + "$id": "112", "kind": "array", "name": "ArrayHttpPart2", "valueType": { @@ -1249,66 +1253,10 @@ "isFilePart": true, "isMulti": true, "filename": { - "apiVersions": [], - "type": { - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "filename", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "filename", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": {} + "$ref": "105" }, "contentType": { - "apiVersions": [], - "type": { - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "contentType", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "contentType", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": {} + "$ref": "107" }, "defaultContentTypes": [ "*/*" @@ -1326,7 +1274,7 @@ "$ref": "94" }, { - "$id": "109", + "$id": "113", "kind": "model", "name": "FileWithHttpPartSpecificContentTypeRequest", "namespace": "Payload.MultiPart", @@ -1335,12 +1283,12 @@ "decorators": [], "properties": [ { - "$id": "110", + "$id": "114", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "111", + "$id": "115", "kind": "model", "name": "FileSpecificContentType", "namespace": "Payload.MultiPart", @@ -1352,12 +1300,12 @@ }, "properties": [ { - "$id": "112", + "$id": "116", "kind": "property", "name": "filename", "serializedName": "filename", "type": { - "$id": "113", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1372,7 +1320,7 @@ "serializationOptions": {} }, { - "$id": "114", + "$id": "118", "kind": "property", "name": "contentType", "serializedName": "contentType", @@ -1400,8 +1348,10 @@ "isFilePart": true, "isMulti": false, "filename": { + "$id": "119", "apiVersions": [], "type": { + "$id": "120", "kind": "string", "decorators": [], "name": "string", @@ -1431,12 +1381,15 @@ "serializationOptions": {} }, "contentType": { + "$id": "121", "apiVersions": [], "type": { + "$id": "122", "kind": "constant", "decorators": [], "value": "image/jpg", "valueType": { + "$id": "123", "kind": "string", "decorators": [], "name": "string", @@ -1478,10 +1431,10 @@ ] }, { - "$ref": "111" + "$ref": "115" }, { - "$id": "115", + "$id": "124", "kind": "model", "name": "FileWithHttpPartRequiredContentTypeRequest", "namespace": "Payload.MultiPart", @@ -1490,7 +1443,7 @@ "decorators": [], "properties": [ { - "$id": "116", + "$id": "125", "kind": "property", "name": "profileImage", "serializedName": "profileImage", @@ -1508,66 +1461,10 @@ "isFilePart": true, "isMulti": false, "filename": { - "apiVersions": [], - "type": { - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "filename", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "filename", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": {} + "$ref": "105" }, "contentType": { - "apiVersions": [], - "type": { - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "contentType", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], - "access": "public", - "kind": "property", - "discriminator": false, - "serializedName": "contentType", - "isMultipartFileInput": false, - "flatten": false, - "serializationOptions": {} + "$ref": "107" }, "defaultContentTypes": [ "*/*" @@ -1579,7 +1476,7 @@ ] }, { - "$id": "117", + "$id": "126", "kind": "model", "name": "FileWithHttpPartOptionalContentTypeRequest", "namespace": "Payload.MultiPart", @@ -1588,12 +1485,12 @@ "decorators": [], "properties": [ { - "$id": "118", + "$id": "127", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "119", + "$id": "128", "kind": "model", "name": "FileOptionalContentType", "namespace": "Payload.MultiPart", @@ -1605,12 +1502,12 @@ }, "properties": [ { - "$id": "120", + "$id": "129", "kind": "property", "name": "filename", "serializedName": "filename", "type": { - "$id": "121", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1637,8 +1534,10 @@ "isFilePart": true, "isMulti": false, "filename": { + "$id": "131", "apiVersions": [], "type": { + "$id": "132", "kind": "string", "decorators": [], "name": "string", @@ -1668,10 +1567,12 @@ "serializationOptions": {} }, "contentType": { + "$id": "133", "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", "summary": "The allowed media (MIME) types of the file contents.", "apiVersions": [], "type": { + "$id": "134", "kind": "string", "decorators": [], "name": "string", @@ -1710,10 +1611,10 @@ ] }, { - "$ref": "119" + "$ref": "128" }, { - "$id": "122", + "$id": "135", "kind": "model", "name": "FloatRequest", "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", @@ -1722,12 +1623,12 @@ "decorators": [], "properties": [ { - "$id": "123", + "$id": "136", "kind": "property", "name": "temperature", "serializedName": "temperature", "type": { - "$id": "124", + "$id": "137", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -1744,12 +1645,15 @@ "isFilePart": false, "isMulti": false, "contentType": { + "$id": "138", "apiVersions": [], "type": { + "$id": "139", "kind": "constant", "decorators": [], "value": "text/plain", "valueType": { + "$id": "140", "kind": "string", "decorators": [], "name": "string", @@ -1788,7 +1692,7 @@ ] }, { - "$id": "125", + "$id": "141", "kind": "model", "name": "FloatRequestTemperature", "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", @@ -1797,7 +1701,7 @@ "decorators": [], "properties": [ { - "$id": "126", + "$id": "142", "kind": "header", "name": "contentType", "serializedName": "content-type", @@ -1815,7 +1719,7 @@ ], "clients": [ { - "$id": "127", + "$id": "143", "kind": "client", "name": "MultiPartClient", "namespace": "Payload.MultiPart", @@ -1823,10 +1727,12 @@ "methods": [], "parameters": [ { + "$id": "144", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "145", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1841,6 +1747,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1854,27 +1761,27 @@ "apiVersions": [], "children": [ { - "$id": "128", + "$id": "147", "kind": "client", "name": "FormData", "namespace": "Payload.MultiPart.FormData", "methods": [ { - "$id": "129", + "$id": "148", "kind": "basic", "name": "basic", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "130", + "$id": "149", "name": "basic", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "131", + "$id": "150", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -1891,7 +1798,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "151", "name": "body", "nameInRequest": "body", "type": { @@ -1910,7 +1817,6 @@ ], "responses": [ { - "$id": "133", "statusCodes": [ 204 ], @@ -1932,7 +1838,7 @@ }, "parameters": [ { - "$id": "134", + "$id": "152", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -1949,7 +1855,7 @@ "skipUrlEncoding": false }, { - "$id": "135", + "$id": "153", "name": "body", "nameInRequest": "body", "type": { @@ -1973,21 +1879,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic" }, { - "$id": "136", + "$id": "154", "kind": "basic", "name": "fileArrayAndBasic", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for mixed scenarios", "operation": { - "$id": "137", + "$id": "155", "name": "fileArrayAndBasic", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for mixed scenarios", "accessibility": "public", "parameters": [ { - "$id": "138", + "$id": "156", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2004,7 +1910,7 @@ "skipUrlEncoding": false }, { - "$id": "139", + "$id": "157", "name": "body", "nameInRequest": "body", "type": { @@ -2023,7 +1929,6 @@ ], "responses": [ { - "$id": "140", "statusCodes": [ 204 ], @@ -2045,7 +1950,7 @@ }, "parameters": [ { - "$id": "141", + "$id": "158", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2062,7 +1967,7 @@ "skipUrlEncoding": false }, { - "$id": "142", + "$id": "159", "name": "body", "nameInRequest": "body", "type": { @@ -2086,21 +1991,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic" }, { - "$id": "143", + "$id": "160", "kind": "basic", "name": "jsonPart", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", "operation": { - "$id": "144", + "$id": "161", "name": "jsonPart", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", "accessibility": "public", "parameters": [ { - "$id": "145", + "$id": "162", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2117,7 +2022,7 @@ "skipUrlEncoding": false }, { - "$id": "146", + "$id": "163", "name": "body", "nameInRequest": "body", "type": { @@ -2136,7 +2041,6 @@ ], "responses": [ { - "$id": "147", "statusCodes": [ 204 ], @@ -2158,7 +2062,7 @@ }, "parameters": [ { - "$id": "148", + "$id": "164", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2175,7 +2079,7 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "165", "name": "body", "nameInRequest": "body", "type": { @@ -2199,21 +2103,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart" }, { - "$id": "150", + "$id": "166", "kind": "basic", "name": "binaryArrayParts", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "operation": { - "$id": "151", + "$id": "167", "name": "binaryArrayParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "accessibility": "public", "parameters": [ { - "$id": "152", + "$id": "168", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2230,7 +2134,7 @@ "skipUrlEncoding": false }, { - "$id": "153", + "$id": "169", "name": "body", "nameInRequest": "body", "type": { @@ -2249,7 +2153,6 @@ ], "responses": [ { - "$id": "154", "statusCodes": [ 204 ], @@ -2271,7 +2174,7 @@ }, "parameters": [ { - "$id": "155", + "$id": "170", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2288,7 +2191,7 @@ "skipUrlEncoding": false }, { - "$id": "156", + "$id": "171", "name": "body", "nameInRequest": "body", "type": { @@ -2312,21 +2215,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts" }, { - "$id": "157", + "$id": "172", "kind": "basic", "name": "multiBinaryParts", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "operation": { - "$id": "158", + "$id": "173", "name": "multiBinaryParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "accessibility": "public", "parameters": [ { - "$id": "159", + "$id": "174", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2343,7 +2246,7 @@ "skipUrlEncoding": false }, { - "$id": "160", + "$id": "175", "name": "body", "nameInRequest": "body", "type": { @@ -2362,7 +2265,6 @@ ], "responses": [ { - "$id": "161", "statusCodes": [ 204 ], @@ -2384,7 +2286,7 @@ }, "parameters": [ { - "$id": "162", + "$id": "176", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2401,7 +2303,7 @@ "skipUrlEncoding": false }, { - "$id": "163", + "$id": "177", "name": "body", "nameInRequest": "body", "type": { @@ -2425,21 +2327,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts" }, { - "$id": "164", + "$id": "178", "kind": "basic", "name": "checkFileNameAndContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "165", + "$id": "179", "name": "checkFileNameAndContentType", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "166", + "$id": "180", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2456,7 +2358,7 @@ "skipUrlEncoding": false }, { - "$id": "167", + "$id": "181", "name": "body", "nameInRequest": "body", "type": { @@ -2475,7 +2377,6 @@ ], "responses": [ { - "$id": "168", "statusCodes": [ 204 ], @@ -2497,7 +2398,7 @@ }, "parameters": [ { - "$id": "169", + "$id": "182", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2514,7 +2415,7 @@ "skipUrlEncoding": false }, { - "$id": "170", + "$id": "183", "name": "body", "nameInRequest": "body", "type": { @@ -2538,21 +2439,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType" }, { - "$id": "171", + "$id": "184", "kind": "basic", "name": "anonymousModel", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "172", + "$id": "185", "name": "anonymousModel", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "173", + "$id": "186", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2569,7 +2470,7 @@ "skipUrlEncoding": false }, { - "$id": "174", + "$id": "187", "name": "body", "nameInRequest": "body", "type": { @@ -2588,7 +2489,6 @@ ], "responses": [ { - "$id": "175", "statusCodes": [ 204 ], @@ -2610,7 +2510,7 @@ }, "parameters": [ { - "$id": "176", + "$id": "188", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2627,7 +2527,7 @@ "skipUrlEncoding": false }, { - "$id": "177", + "$id": "189", "name": "body", "nameInRequest": "body", "type": { @@ -2653,10 +2553,12 @@ ], "parameters": [ { + "$id": "190", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "191", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2671,6 +2573,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "192", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2683,31 +2586,31 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData", "apiVersions": [], "parent": { - "$ref": "127" + "$ref": "143" }, "children": [ { - "$id": "178", + "$id": "193", "kind": "client", "name": "HttpParts", "namespace": "Payload.MultiPart.FormData.HttpParts", "methods": [ { - "$id": "179", + "$id": "194", "kind": "basic", "name": "jsonArrayAndFileArray", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for mixed scenarios", "operation": { - "$id": "180", + "$id": "195", "name": "jsonArrayAndFileArray", "resourceName": "HttpParts", "doc": "Test content-type: multipart/form-data for mixed scenarios", "accessibility": "public", "parameters": [ { - "$id": "181", + "$id": "196", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2724,7 +2627,7 @@ "skipUrlEncoding": false }, { - "$id": "182", + "$id": "197", "name": "body", "nameInRequest": "body", "type": { @@ -2743,7 +2646,6 @@ ], "responses": [ { - "$id": "183", "statusCodes": [ 204 ], @@ -2765,7 +2667,7 @@ }, "parameters": [ { - "$id": "184", + "$id": "198", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2782,7 +2684,7 @@ "skipUrlEncoding": false }, { - "$id": "185", + "$id": "199", "name": "body", "nameInRequest": "body", "type": { @@ -2808,10 +2710,12 @@ ], "parameters": [ { + "$id": "200", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "201", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2826,6 +2730,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2838,31 +2743,31 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", "apiVersions": [], "parent": { - "$ref": "128" + "$ref": "147" }, "children": [ { - "$id": "186", + "$id": "203", "kind": "client", "name": "ContentType", "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", "methods": [ { - "$id": "187", + "$id": "204", "kind": "basic", "name": "imageJpegContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "188", + "$id": "205", "name": "imageJpegContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "206", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2879,11 +2784,11 @@ "skipUrlEncoding": false }, { - "$id": "190", + "$id": "207", "name": "body", "nameInRequest": "body", "type": { - "$ref": "109" + "$ref": "113" }, "location": "Body", "isApiVersion": false, @@ -2898,7 +2803,6 @@ ], "responses": [ { - "$id": "191", "statusCodes": [ 204 ], @@ -2920,7 +2824,7 @@ }, "parameters": [ { - "$id": "192", + "$id": "208", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2937,11 +2841,11 @@ "skipUrlEncoding": false }, { - "$id": "193", + "$id": "209", "name": "body", "nameInRequest": "body", "type": { - "$ref": "109" + "$ref": "113" }, "location": "Body", "isApiVersion": false, @@ -2961,21 +2865,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType" }, { - "$id": "194", + "$id": "210", "kind": "basic", "name": "requiredContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "195", + "$id": "211", "name": "requiredContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "196", + "$id": "212", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2992,11 +2896,11 @@ "skipUrlEncoding": false }, { - "$id": "197", + "$id": "213", "name": "body", "nameInRequest": "body", "type": { - "$ref": "115" + "$ref": "124" }, "location": "Body", "isApiVersion": false, @@ -3011,7 +2915,6 @@ ], "responses": [ { - "$id": "198", "statusCodes": [ 204 ], @@ -3033,7 +2936,7 @@ }, "parameters": [ { - "$id": "199", + "$id": "214", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -3050,11 +2953,11 @@ "skipUrlEncoding": false }, { - "$id": "200", + "$id": "215", "name": "body", "nameInRequest": "body", "type": { - "$ref": "115" + "$ref": "124" }, "location": "Body", "isApiVersion": false, @@ -3074,21 +2977,21 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType" }, { - "$id": "201", + "$id": "216", "kind": "basic", "name": "optionalContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for optional content type", "operation": { - "$id": "202", + "$id": "217", "name": "optionalContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data for optional content type", "accessibility": "public", "parameters": [ { - "$id": "203", + "$id": "218", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -3105,11 +3008,11 @@ "skipUrlEncoding": false }, { - "$id": "204", + "$id": "219", "name": "body", "nameInRequest": "body", "type": { - "$ref": "117" + "$ref": "126" }, "location": "Body", "isApiVersion": false, @@ -3124,7 +3027,6 @@ ], "responses": [ { - "$id": "205", "statusCodes": [ 204 ], @@ -3146,7 +3048,7 @@ }, "parameters": [ { - "$id": "206", + "$id": "220", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -3163,11 +3065,11 @@ "skipUrlEncoding": false }, { - "$id": "207", + "$id": "221", "name": "body", "nameInRequest": "body", "type": { - "$ref": "117" + "$ref": "126" }, "location": "Body", "isApiVersion": false, @@ -3189,10 +3091,12 @@ ], "parameters": [ { + "$id": "222", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "223", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3207,6 +3111,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3219,31 +3124,31 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", "apiVersions": [], "parent": { - "$ref": "178" + "$ref": "193" } }, { - "$id": "208", + "$id": "225", "kind": "client", "name": "NonString", "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", "methods": [ { - "$id": "209", + "$id": "226", "kind": "basic", "name": "float", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for non string", "operation": { - "$id": "210", + "$id": "227", "name": "float", "resourceName": "NonString", "doc": "Test content-type: multipart/form-data for non string", "accessibility": "public", "parameters": [ { - "$id": "211", + "$id": "228", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -3260,11 +3165,11 @@ "skipUrlEncoding": false }, { - "$id": "212", + "$id": "229", "name": "body", "nameInRequest": "body", "type": { - "$ref": "122" + "$ref": "135" }, "location": "Body", "isApiVersion": false, @@ -3279,7 +3184,6 @@ ], "responses": [ { - "$id": "213", "statusCodes": [ 204 ], @@ -3301,7 +3205,7 @@ }, "parameters": [ { - "$id": "214", + "$id": "230", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -3318,11 +3222,11 @@ "skipUrlEncoding": false }, { - "$id": "215", + "$id": "231", "name": "body", "nameInRequest": "body", "type": { - "$ref": "122" + "$ref": "135" }, "location": "Body", "isApiVersion": false, @@ -3344,10 +3248,12 @@ ], "parameters": [ { + "$id": "232", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "233", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3362,6 +3268,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "234", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3374,7 +3281,7 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", "apiVersions": [], "parent": { - "$ref": "178" + "$ref": "193" } } ] 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 b16d8a5c5da..93dddf86021 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 @@ -389,10 +389,12 @@ "methods": [], "parameters": [ { + "$id": "34", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "35", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -407,6 +409,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -420,25 +423,25 @@ "apiVersions": [], "children": [ { - "$id": "34", + "$id": "37", "kind": "client", "name": "ServerDrivenPagination", "namespace": "Payload.Pageable.ServerDrivenPagination", "methods": [ { - "$id": "35", + "$id": "38", "kind": "paging", "name": "link", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "36", + "$id": "39", "name": "link", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "37", + "$id": "40", "name": "accept", "nameInRequest": "Accept", "type": { @@ -457,7 +460,6 @@ ], "responses": [ { - "$id": "38", "statusCodes": [ 200 ], @@ -482,7 +484,7 @@ }, "parameters": [ { - "$id": "39", + "$id": "41", "name": "accept", "nameInRequest": "accept", "type": { @@ -526,10 +528,12 @@ ], "parameters": [ { + "$id": "42", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "43", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -544,6 +548,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -560,29 +565,29 @@ }, "children": [ { - "$id": "40", + "$id": "45", "kind": "client", "name": "ContinuationToken", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "methods": [ { - "$id": "41", + "$id": "46", "kind": "paging", "name": "requestQueryResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "42", + "$id": "47", "name": "requestQueryResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "43", + "$id": "48", "name": "token", "nameInRequest": "token", "type": { - "$id": "44", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -599,11 +604,11 @@ "skipUrlEncoding": false }, { - "$id": "45", + "$id": "50", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "46", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -620,11 +625,11 @@ "skipUrlEncoding": false }, { - "$id": "47", + "$id": "52", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "48", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -641,7 +646,7 @@ "skipUrlEncoding": false }, { - "$id": "49", + "$id": "54", "name": "accept", "nameInRequest": "Accept", "type": { @@ -660,7 +665,6 @@ ], "responses": [ { - "$id": "50", "statusCodes": [ 200 ], @@ -685,11 +689,11 @@ }, "parameters": [ { - "$id": "51", + "$id": "55", "name": "token", "nameInRequest": "token", "type": { - "$id": "52", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -706,11 +710,11 @@ "skipUrlEncoding": false }, { - "$id": "53", + "$id": "57", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "54", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -727,11 +731,11 @@ "skipUrlEncoding": false }, { - "$id": "55", + "$id": "59", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "56", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -748,7 +752,7 @@ "skipUrlEncoding": false }, { - "$id": "57", + "$id": "61", "name": "accept", "nameInRequest": "accept", "type": { @@ -783,7 +787,7 @@ ], "continuationToken": { "parameter": { - "$ref": "43" + "$ref": "48" }, "responseSegments": [ "nextToken" @@ -793,23 +797,23 @@ } }, { - "$id": "58", + "$id": "62", "kind": "paging", "name": "requestHeaderResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "59", + "$id": "63", "name": "requestHeaderResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "60", + "$id": "64", "name": "token", "nameInRequest": "token", "type": { - "$id": "61", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -826,11 +830,11 @@ "skipUrlEncoding": false }, { - "$id": "62", + "$id": "66", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "63", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -847,11 +851,11 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "68", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "65", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -868,7 +872,7 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "70", "name": "accept", "nameInRequest": "Accept", "type": { @@ -887,7 +891,6 @@ ], "responses": [ { - "$id": "67", "statusCodes": [ 200 ], @@ -912,11 +915,11 @@ }, "parameters": [ { - "$id": "68", + "$id": "71", "name": "token", "nameInRequest": "token", "type": { - "$id": "69", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -933,11 +936,11 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "73", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "71", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -954,11 +957,11 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "75", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "73", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -975,7 +978,7 @@ "skipUrlEncoding": false }, { - "$id": "74", + "$id": "77", "name": "accept", "nameInRequest": "accept", "type": { @@ -1010,7 +1013,7 @@ ], "continuationToken": { "parameter": { - "$ref": "60" + "$ref": "64" }, "responseSegments": [ "nextToken" @@ -1020,23 +1023,23 @@ } }, { - "$id": "75", + "$id": "78", "kind": "paging", "name": "requestQueryResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "76", + "$id": "79", "name": "requestQueryResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "80", "name": "token", "nameInRequest": "token", "type": { - "$id": "78", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1053,11 +1056,11 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "82", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "80", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1074,11 +1077,11 @@ "skipUrlEncoding": false }, { - "$id": "81", + "$id": "84", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "82", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1095,7 +1098,7 @@ "skipUrlEncoding": false }, { - "$id": "83", + "$id": "86", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1114,7 +1117,6 @@ ], "responses": [ { - "$id": "84", "statusCodes": [ 200 ], @@ -1126,7 +1128,7 @@ "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "85", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1151,11 +1153,11 @@ }, "parameters": [ { - "$id": "86", + "$id": "88", "name": "token", "nameInRequest": "token", "type": { - "$id": "87", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1172,11 +1174,11 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "90", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "89", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1193,11 +1195,11 @@ "skipUrlEncoding": false }, { - "$id": "90", + "$id": "92", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "91", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1214,7 +1216,7 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "94", "name": "accept", "nameInRequest": "accept", "type": { @@ -1249,7 +1251,7 @@ ], "continuationToken": { "parameter": { - "$ref": "77" + "$ref": "80" }, "responseSegments": [ "next-token" @@ -1259,23 +1261,23 @@ } }, { - "$id": "93", + "$id": "95", "kind": "paging", "name": "requestHeaderResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "94", + "$id": "96", "name": "requestHeaderResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "97", "name": "token", "nameInRequest": "token", "type": { - "$id": "96", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1292,11 +1294,11 @@ "skipUrlEncoding": false }, { - "$id": "97", + "$id": "99", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "98", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1313,11 +1315,11 @@ "skipUrlEncoding": false }, { - "$id": "99", + "$id": "101", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "100", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1334,7 +1336,7 @@ "skipUrlEncoding": false }, { - "$id": "101", + "$id": "103", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1353,7 +1355,6 @@ ], "responses": [ { - "$id": "102", "statusCodes": [ 200 ], @@ -1365,7 +1366,7 @@ "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "103", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1390,11 +1391,11 @@ }, "parameters": [ { - "$id": "104", + "$id": "105", "name": "token", "nameInRequest": "token", "type": { - "$id": "105", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1411,11 +1412,11 @@ "skipUrlEncoding": false }, { - "$id": "106", + "$id": "107", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "107", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1432,11 +1433,11 @@ "skipUrlEncoding": false }, { - "$id": "108", + "$id": "109", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "109", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1453,7 +1454,7 @@ "skipUrlEncoding": false }, { - "$id": "110", + "$id": "111", "name": "accept", "nameInRequest": "accept", "type": { @@ -1488,7 +1489,7 @@ ], "continuationToken": { "parameter": { - "$ref": "95" + "$ref": "97" }, "responseSegments": [ "next-token" @@ -1500,10 +1501,12 @@ ], "parameters": [ { + "$id": "112", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "113", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1518,6 +1521,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1530,7 +1534,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "apiVersions": [], "parent": { - "$ref": "34" + "$ref": "37" } } ] 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 a9fe535b86a..52585373193 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 @@ -68,7 +68,6 @@ "parameters": [], "responses": [ { - "$id": "7", "statusCodes": [ 204 ], @@ -93,7 +92,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" }, { - "$id": "8", + "$id": "7", "kind": "basic", "name": "fromOneRequired", "accessibility": "public", @@ -102,19 +101,19 @@ ], "doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", "operation": { - "$id": "9", + "$id": "8", "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": "9", "name": "parameter", "nameInRequest": "parameter", "doc": "I am a required parameter", "type": { - "$id": "11", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -133,7 +132,6 @@ ], "responses": [ { - "$id": "12", "statusCodes": [ 204 ], @@ -152,12 +150,12 @@ }, "parameters": [ { - "$id": "13", + "$id": "11", "name": "parameter", "nameInRequest": "parameter", "doc": "I am a required parameter", "type": { - "$id": "14", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -181,7 +179,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" }, { - "$id": "15", + "$id": "13", "kind": "basic", "name": "fromOneOptional", "accessibility": "public", @@ -190,19 +188,19 @@ ], "doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", "operation": { - "$id": "16", + "$id": "14", "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": "17", + "$id": "15", "name": "parameter", "nameInRequest": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "18", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -221,7 +219,6 @@ ], "responses": [ { - "$id": "19", "statusCodes": [ 204 ], @@ -240,12 +237,12 @@ }, "parameters": [ { - "$id": "20", + "$id": "17", "name": "parameter", "nameInRequest": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "21", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -271,10 +268,12 @@ ], "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" @@ -289,6 +288,7 @@ "kind": "Client" }, { + "$id": "21", "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'.", @@ -309,11 +309,12 @@ "kind": "Client" }, { + "$id": "23", "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", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -329,6 +330,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 eebbf2a8cd7..eb23337de22 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 @@ -83,7 +83,6 @@ "parameters": [], "responses": [ { - "$id": "8", "statusCodes": [ 204 ], @@ -108,7 +107,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.addOperation" }, { - "$id": "9", + "$id": "8", "kind": "basic", "name": "fromNone", "accessibility": "public", @@ -118,19 +117,19 @@ ], "doc": "Test that grew up from accepting no parameters to an optional input parameter", "operation": { - "$id": "10", + "$id": "9", "name": "fromNone", "resourceName": "AddOptionalParam", "doc": "Test that grew up from accepting no parameters to an optional input parameter", "accessibility": "public", "parameters": [ { - "$id": "11", + "$id": "10", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -149,7 +148,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -168,12 +166,12 @@ }, "parameters": [ { - "$id": "14", + "$id": "12", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "15", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -197,7 +195,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" }, { - "$id": "16", + "$id": "14", "kind": "basic", "name": "fromOneRequired", "accessibility": "public", @@ -207,19 +205,19 @@ ], "doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", "operation": { - "$id": "17", + "$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": "18", + "$id": "16", "name": "parameter", "nameInRequest": "parameter", "doc": "I am a required parameter", "type": { - "$id": "19", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -236,12 +234,12 @@ "skipUrlEncoding": false }, { - "$id": "20", + "$id": "18", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "21", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -260,7 +258,6 @@ ], "responses": [ { - "$id": "22", "statusCodes": [ 204 ], @@ -279,12 +276,12 @@ }, "parameters": [ { - "$id": "23", + "$id": "20", "name": "parameter", "nameInRequest": "parameter", "doc": "I am a required parameter", "type": { - "$id": "24", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -301,12 +298,12 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "22", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "26", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -330,7 +327,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" }, { - "$id": "27", + "$id": "24", "kind": "basic", "name": "fromOneOptional", "accessibility": "public", @@ -340,19 +337,19 @@ ], "doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", "operation": { - "$id": "28", + "$id": "25", "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": "29", + "$id": "26", "name": "parameter", "nameInRequest": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "30", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -369,12 +366,12 @@ "skipUrlEncoding": false }, { - "$id": "31", + "$id": "28", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "32", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -393,7 +390,6 @@ ], "responses": [ { - "$id": "33", "statusCodes": [ 204 ], @@ -412,12 +408,12 @@ }, "parameters": [ { - "$id": "34", + "$id": "30", "name": "parameter", "nameInRequest": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "35", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -434,12 +430,12 @@ "skipUrlEncoding": false }, { - "$id": "36", + "$id": "32", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "37", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -465,10 +461,12 @@ ], "parameters": [ { + "$id": "34", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "35", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -483,11 +481,12 @@ "kind": "Client" }, { + "$id": "36", "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": "38", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -503,6 +502,7 @@ "kind": "Client" }, { + "$id": "38", "name": "apiVersion", "nameInRequest": "apiVersion", "doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", @@ -523,6 +523,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 9430e0cec89..65fab4ddb89 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 @@ -266,7 +266,6 @@ ], "responses": [ { - "$id": "25", "statusCodes": [ 204 ], @@ -285,7 +284,7 @@ }, "parameters": [ { - "$id": "26", + "$id": "25", "name": "accept", "nameInRequest": "accept", "type": { @@ -309,19 +308,19 @@ "crossLanguageDefinitionId": "Response.StatusCodeRange.errorResponseStatusCodeInRange" }, { - "$id": "27", + "$id": "26", "kind": "basic", "name": "errorResponseStatusCode404", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "28", + "$id": "27", "name": "errorResponseStatusCode404", "resourceName": "StatusCodeRange", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "28", "name": "accept", "nameInRequest": "Accept", "type": { @@ -340,7 +339,6 @@ ], "responses": [ { - "$id": "30", "statusCodes": [ 204 ], @@ -359,7 +357,7 @@ }, "parameters": [ { - "$id": "31", + "$id": "29", "name": "accept", "nameInRequest": "accept", "type": { @@ -385,10 +383,12 @@ ], "parameters": [ { + "$id": "30", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "31", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -403,6 +403,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 61a0f51f4d5..d186c2a218a 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 @@ -26,7 +26,6 @@ "parameters": [], "responses": [ { - "$id": "4", "statusCodes": [ 204 ], @@ -53,10 +52,12 @@ ], "parameters": [ { + "$id": "4", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "5", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -71,6 +72,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -84,29 +86,29 @@ "apiVersions": [], "children": [ { - "$id": "5", + "$id": "7", "kind": "client", "name": "PathParameters", "namespace": "Routes.PathParameters", "methods": [ { - "$id": "6", + "$id": "8", "kind": "basic", "name": "templateOnly", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "7", + "$id": "9", "name": "templateOnly", "resourceName": "PathParameters", "accessibility": "public", "parameters": [ { - "$id": "8", + "$id": "10", "name": "param", "nameInRequest": "param", "type": { - "$id": "9", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -125,7 +127,6 @@ ], "responses": [ { - "$id": "10", "statusCodes": [ 204 ], @@ -144,11 +145,11 @@ }, "parameters": [ { - "$id": "11", + "$id": "12", "name": "param", "nameInRequest": "param", "type": { - "$id": "12", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -172,23 +173,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly" }, { - "$id": "13", + "$id": "14", "kind": "basic", "name": "explicit", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "14", + "$id": "15", "name": "explicit", "resourceName": "PathParameters", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "16", "name": "param", "nameInRequest": "param", "type": { - "$id": "16", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -207,7 +208,6 @@ ], "responses": [ { - "$id": "17", "statusCodes": [ 204 ], @@ -289,7 +289,6 @@ ], "responses": [ { - "$id": "24", "statusCodes": [ 204 ], @@ -308,11 +307,11 @@ }, "parameters": [ { - "$id": "25", + "$id": "24", "name": "param", "nameInRequest": "param", "type": { - "$id": "26", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -338,10 +337,12 @@ ], "parameters": [ { + "$id": "26", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "27", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -356,6 +357,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -372,29 +374,29 @@ }, "children": [ { - "$id": "27", + "$id": "29", "kind": "client", "name": "ReservedExpansion", "namespace": "Routes.PathParameters.ReservedExpansion", "methods": [ { - "$id": "28", + "$id": "30", "kind": "basic", "name": "template", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "31", "name": "template", "resourceName": "ReservedExpansion", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "32", "name": "param", "nameInRequest": "param", "type": { - "$id": "31", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -413,7 +415,6 @@ ], "responses": [ { - "$id": "32", "statusCodes": [ 204 ], @@ -432,11 +433,11 @@ }, "parameters": [ { - "$id": "33", + "$id": "34", "name": "param", "nameInRequest": "param", "type": { - "$id": "34", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -460,23 +461,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template" }, { - "$id": "35", + "$id": "36", "kind": "basic", "name": "annotation", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "36", + "$id": "37", "name": "annotation", "resourceName": "ReservedExpansion", "accessibility": "public", "parameters": [ { - "$id": "37", + "$id": "38", "name": "param", "nameInRequest": "param", "type": { - "$id": "38", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -495,7 +496,6 @@ ], "responses": [ { - "$id": "39", "statusCodes": [ 204 ], @@ -544,10 +544,12 @@ ], "parameters": [ { + "$id": "42", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "43", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -562,6 +564,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -574,21 +577,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", "apiVersions": [], "parent": { - "$ref": "5" + "$ref": "7" } }, { - "$id": "42", + "$id": "45", "kind": "client", "name": "SimpleExpansion", "namespace": "Routes.PathParameters.SimpleExpansion", "methods": [], "parameters": [ { + "$id": "46", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "47", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -603,6 +608,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -615,33 +621,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", "apiVersions": [], "parent": { - "$ref": "5" + "$ref": "7" }, "children": [ { - "$id": "43", + "$id": "49", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.SimpleExpansion.Standard", "methods": [ { - "$id": "44", + "$id": "50", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "45", + "$id": "51", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "46", + "$id": "52", "name": "param", "nameInRequest": "param", "type": { - "$id": "47", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -660,7 +666,6 @@ ], "responses": [ { - "$id": "48", "statusCodes": [ 204 ], @@ -679,11 +684,11 @@ }, "parameters": [ { - "$id": "49", + "$id": "54", "name": "param", "nameInRequest": "param", "type": { - "$id": "50", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -707,27 +712,27 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive" }, { - "$id": "51", + "$id": "56", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "52", + "$id": "57", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "53", + "$id": "58", "name": "param", "nameInRequest": "param", "type": { - "$id": "54", + "$id": "59", "kind": "array", "name": "Array", "valueType": { - "$id": "55", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -749,7 +754,6 @@ ], "responses": [ { - "$id": "56", "statusCodes": [ 204 ], @@ -768,11 +772,11 @@ }, "parameters": [ { - "$id": "57", + "$id": "61", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -792,33 +796,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array" }, { - "$id": "58", + "$id": "62", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "59", + "$id": "63", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "60", + "$id": "64", "name": "param", "nameInRequest": "param", "type": { - "$id": "61", + "$id": "65", "kind": "dict", "keyType": { - "$id": "62", + "$id": "66", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "63", + "$id": "67", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -839,7 +843,6 @@ ], "responses": [ { - "$id": "64", "statusCodes": [ 204 ], @@ -858,11 +861,11 @@ }, "parameters": [ { - "$id": "65", + "$id": "68", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -884,10 +887,12 @@ ], "parameters": [ { + "$id": "69", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "70", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -902,6 +907,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -914,33 +920,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "42" + "$ref": "45" } }, { - "$id": "66", + "$id": "72", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.SimpleExpansion.Explode", "methods": [ { - "$id": "67", + "$id": "73", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "68", + "$id": "74", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "69", + "$id": "75", "name": "param", "nameInRequest": "param", "type": { - "$id": "70", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -959,7 +965,6 @@ ], "responses": [ { - "$id": "71", "statusCodes": [ 204 ], @@ -978,11 +983,11 @@ }, "parameters": [ { - "$id": "72", + "$id": "77", "name": "param", "nameInRequest": "param", "type": { - "$id": "73", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1006,23 +1011,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive" }, { - "$id": "74", + "$id": "79", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "75", + "$id": "80", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "76", + "$id": "81", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1037,7 +1042,6 @@ ], "responses": [ { - "$id": "77", "statusCodes": [ 204 ], @@ -1056,11 +1060,11 @@ }, "parameters": [ { - "$id": "78", + "$id": "82", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1080,23 +1084,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array" }, { - "$id": "79", + "$id": "83", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "80", + "$id": "84", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "81", + "$id": "85", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -1111,7 +1115,6 @@ ], "responses": [ { - "$id": "82", "statusCodes": [ 204 ], @@ -1130,11 +1133,11 @@ }, "parameters": [ { - "$id": "83", + "$id": "86", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -1156,10 +1159,12 @@ ], "parameters": [ { + "$id": "87", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "88", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1174,6 +1179,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1186,23 +1192,25 @@ "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "42" + "$ref": "45" } } ] }, { - "$id": "84", + "$id": "90", "kind": "client", "name": "PathExpansion", "namespace": "Routes.PathParameters.PathExpansion", "methods": [], "parameters": [ { + "$id": "91", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "92", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1217,6 +1225,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1229,33 +1238,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", "apiVersions": [], "parent": { - "$ref": "5" + "$ref": "7" }, "children": [ { - "$id": "85", + "$id": "94", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.PathExpansion.Standard", "methods": [ { - "$id": "86", + "$id": "95", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "87", + "$id": "96", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "88", + "$id": "97", "name": "param", "nameInRequest": "param", "type": { - "$id": "89", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1274,7 +1283,6 @@ ], "responses": [ { - "$id": "90", "statusCodes": [ 204 ], @@ -1293,11 +1301,11 @@ }, "parameters": [ { - "$id": "91", + "$id": "99", "name": "param", "nameInRequest": "param", "type": { - "$id": "92", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1321,23 +1329,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive" }, { - "$id": "93", + "$id": "101", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "94", + "$id": "102", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "103", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1352,7 +1360,6 @@ ], "responses": [ { - "$id": "96", "statusCodes": [ 204 ], @@ -1371,11 +1378,11 @@ }, "parameters": [ { - "$id": "97", + "$id": "104", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1395,23 +1402,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array" }, { - "$id": "98", + "$id": "105", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "99", + "$id": "106", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "100", + "$id": "107", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -1426,7 +1433,6 @@ ], "responses": [ { - "$id": "101", "statusCodes": [ 204 ], @@ -1445,11 +1451,11 @@ }, "parameters": [ { - "$id": "102", + "$id": "108", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -1471,10 +1477,12 @@ ], "parameters": [ { + "$id": "109", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "110", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1489,6 +1497,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1501,33 +1510,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "84" + "$ref": "90" } }, { - "$id": "103", + "$id": "112", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.PathExpansion.Explode", "methods": [ { - "$id": "104", + "$id": "113", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "105", + "$id": "114", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "106", + "$id": "115", "name": "param", "nameInRequest": "param", "type": { - "$id": "107", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1546,7 +1555,6 @@ ], "responses": [ { - "$id": "108", "statusCodes": [ 204 ], @@ -1565,11 +1573,11 @@ }, "parameters": [ { - "$id": "109", + "$id": "117", "name": "param", "nameInRequest": "param", "type": { - "$id": "110", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1593,23 +1601,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive" }, { - "$id": "111", + "$id": "119", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "112", + "$id": "120", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "113", + "$id": "121", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1624,7 +1632,6 @@ ], "responses": [ { - "$id": "114", "statusCodes": [ 204 ], @@ -1643,11 +1650,11 @@ }, "parameters": [ { - "$id": "115", + "$id": "122", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1667,23 +1674,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array" }, { - "$id": "116", + "$id": "123", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "117", + "$id": "124", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "118", + "$id": "125", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -1698,7 +1705,6 @@ ], "responses": [ { - "$id": "119", "statusCodes": [ 204 ], @@ -1717,11 +1723,11 @@ }, "parameters": [ { - "$id": "120", + "$id": "126", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -1743,10 +1749,12 @@ ], "parameters": [ { + "$id": "127", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "128", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1761,6 +1769,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1773,23 +1782,25 @@ "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "84" + "$ref": "90" } } ] }, { - "$id": "121", + "$id": "130", "kind": "client", "name": "LabelExpansion", "namespace": "Routes.PathParameters.LabelExpansion", "methods": [], "parameters": [ { + "$id": "131", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "132", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1804,6 +1815,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1816,33 +1828,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", "apiVersions": [], "parent": { - "$ref": "5" + "$ref": "7" }, "children": [ { - "$id": "122", + "$id": "134", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.LabelExpansion.Standard", "methods": [ { - "$id": "123", + "$id": "135", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "124", + "$id": "136", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "125", + "$id": "137", "name": "param", "nameInRequest": "param", "type": { - "$id": "126", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1861,7 +1873,6 @@ ], "responses": [ { - "$id": "127", "statusCodes": [ 204 ], @@ -1880,11 +1891,11 @@ }, "parameters": [ { - "$id": "128", + "$id": "139", "name": "param", "nameInRequest": "param", "type": { - "$id": "129", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1908,23 +1919,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive" }, { - "$id": "130", + "$id": "141", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "131", + "$id": "142", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "132", + "$id": "143", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1939,7 +1950,6 @@ ], "responses": [ { - "$id": "133", "statusCodes": [ 204 ], @@ -1958,11 +1968,11 @@ }, "parameters": [ { - "$id": "134", + "$id": "144", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -1982,23 +1992,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array" }, { - "$id": "135", + "$id": "145", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "136", + "$id": "146", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "137", + "$id": "147", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2013,7 +2023,6 @@ ], "responses": [ { - "$id": "138", "statusCodes": [ 204 ], @@ -2032,11 +2041,11 @@ }, "parameters": [ { - "$id": "139", + "$id": "148", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2058,10 +2067,12 @@ ], "parameters": [ { + "$id": "149", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "150", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2076,6 +2087,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2088,33 +2100,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "121" + "$ref": "130" } }, { - "$id": "140", + "$id": "152", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.LabelExpansion.Explode", "methods": [ { - "$id": "141", + "$id": "153", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "142", + "$id": "154", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "155", "name": "param", "nameInRequest": "param", "type": { - "$id": "144", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2133,7 +2145,6 @@ ], "responses": [ { - "$id": "145", "statusCodes": [ 204 ], @@ -2152,11 +2163,11 @@ }, "parameters": [ { - "$id": "146", + "$id": "157", "name": "param", "nameInRequest": "param", "type": { - "$id": "147", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2180,23 +2191,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive" }, { - "$id": "148", + "$id": "159", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "149", + "$id": "160", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "150", + "$id": "161", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -2211,7 +2222,6 @@ ], "responses": [ { - "$id": "151", "statusCodes": [ 204 ], @@ -2230,11 +2240,11 @@ }, "parameters": [ { - "$id": "152", + "$id": "162", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -2254,23 +2264,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array" }, { - "$id": "153", + "$id": "163", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "154", + "$id": "164", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "155", + "$id": "165", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2285,7 +2295,6 @@ ], "responses": [ { - "$id": "156", "statusCodes": [ 204 ], @@ -2304,11 +2313,11 @@ }, "parameters": [ { - "$id": "157", + "$id": "166", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2330,10 +2339,12 @@ ], "parameters": [ { + "$id": "167", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "168", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2348,6 +2359,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2360,23 +2372,25 @@ "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "121" + "$ref": "130" } } ] }, { - "$id": "158", + "$id": "170", "kind": "client", "name": "MatrixExpansion", "namespace": "Routes.PathParameters.MatrixExpansion", "methods": [], "parameters": [ { + "$id": "171", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "172", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2391,6 +2405,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2403,33 +2418,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", "apiVersions": [], "parent": { - "$ref": "5" + "$ref": "7" }, "children": [ { - "$id": "159", + "$id": "174", "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.MatrixExpansion.Standard", "methods": [ { - "$id": "160", + "$id": "175", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "161", + "$id": "176", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "162", + "$id": "177", "name": "param", "nameInRequest": "param", "type": { - "$id": "163", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2448,7 +2463,6 @@ ], "responses": [ { - "$id": "164", "statusCodes": [ 204 ], @@ -2467,11 +2481,11 @@ }, "parameters": [ { - "$id": "165", + "$id": "179", "name": "param", "nameInRequest": "param", "type": { - "$id": "166", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2495,23 +2509,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive" }, { - "$id": "167", + "$id": "181", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "168", + "$id": "182", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "169", + "$id": "183", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -2526,7 +2540,6 @@ ], "responses": [ { - "$id": "170", "statusCodes": [ 204 ], @@ -2545,11 +2558,11 @@ }, "parameters": [ { - "$id": "171", + "$id": "184", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -2569,23 +2582,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array" }, { - "$id": "172", + "$id": "185", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "173", + "$id": "186", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "174", + "$id": "187", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2600,7 +2613,6 @@ ], "responses": [ { - "$id": "175", "statusCodes": [ 204 ], @@ -2619,11 +2631,11 @@ }, "parameters": [ { - "$id": "176", + "$id": "188", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2645,10 +2657,12 @@ ], "parameters": [ { + "$id": "189", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "190", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2663,6 +2677,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2675,33 +2690,33 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "158" + "$ref": "170" } }, { - "$id": "177", + "$id": "192", "kind": "client", "name": "Explode", "namespace": "Routes.PathParameters.MatrixExpansion.Explode", "methods": [ { - "$id": "178", + "$id": "193", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "179", + "$id": "194", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "180", + "$id": "195", "name": "param", "nameInRequest": "param", "type": { - "$id": "181", + "$id": "196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2720,7 +2735,6 @@ ], "responses": [ { - "$id": "182", "statusCodes": [ 204 ], @@ -2739,11 +2753,11 @@ }, "parameters": [ { - "$id": "183", + "$id": "197", "name": "param", "nameInRequest": "param", "type": { - "$id": "184", + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2767,23 +2781,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive" }, { - "$id": "185", + "$id": "199", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "186", + "$id": "200", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "187", + "$id": "201", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -2798,7 +2812,6 @@ ], "responses": [ { - "$id": "188", "statusCodes": [ 204 ], @@ -2817,11 +2830,11 @@ }, "parameters": [ { - "$id": "189", + "$id": "202", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Path", "isApiVersion": false, @@ -2841,23 +2854,23 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array" }, { - "$id": "190", + "$id": "203", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "191", + "$id": "204", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "192", + "$id": "205", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2872,7 +2885,6 @@ ], "responses": [ { - "$id": "193", "statusCodes": [ 204 ], @@ -2891,11 +2903,11 @@ }, "parameters": [ { - "$id": "194", + "$id": "206", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Path", "isApiVersion": false, @@ -2917,10 +2929,12 @@ ], "parameters": [ { + "$id": "207", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "208", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2935,6 +2949,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2947,7 +2962,7 @@ "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "158" + "$ref": "170" } } ] @@ -2955,29 +2970,29 @@ ] }, { - "$id": "195", + "$id": "210", "kind": "client", "name": "QueryParameters", "namespace": "Routes.QueryParameters", "methods": [ { - "$id": "196", + "$id": "211", "kind": "basic", "name": "templateOnly", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "197", + "$id": "212", "name": "templateOnly", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "198", + "$id": "213", "name": "param", "nameInRequest": "param", "type": { - "$id": "199", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2996,7 +3011,6 @@ ], "responses": [ { - "$id": "200", "statusCodes": [ 204 ], @@ -3015,11 +3029,11 @@ }, "parameters": [ { - "$id": "201", + "$id": "215", "name": "param", "nameInRequest": "param", "type": { - "$id": "202", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3043,23 +3057,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly" }, { - "$id": "203", + "$id": "217", "kind": "basic", "name": "explicit", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "204", + "$id": "218", "name": "explicit", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "205", + "$id": "219", "name": "param", "nameInRequest": "param", "type": { - "$id": "206", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3078,7 +3092,6 @@ ], "responses": [ { - "$id": "207", "statusCodes": [ 204 ], @@ -3097,11 +3110,11 @@ }, "parameters": [ { - "$id": "208", + "$id": "221", "name": "param", "nameInRequest": "param", "type": { - "$id": "209", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3125,23 +3138,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.explicit" }, { - "$id": "210", + "$id": "223", "kind": "basic", "name": "annotationOnly", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "211", + "$id": "224", "name": "annotationOnly", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "212", + "$id": "225", "name": "param", "nameInRequest": "param", "type": { - "$id": "213", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3160,7 +3173,6 @@ ], "responses": [ { - "$id": "214", "statusCodes": [ 204 ], @@ -3179,11 +3191,11 @@ }, "parameters": [ { - "$id": "215", + "$id": "227", "name": "param", "nameInRequest": "param", "type": { - "$id": "216", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3209,10 +3221,12 @@ ], "parameters": [ { + "$id": "229", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "230", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3227,6 +3241,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3243,17 +3258,19 @@ }, "children": [ { - "$id": "217", + "$id": "232", "kind": "client", "name": "QueryExpansion", "namespace": "Routes.QueryParameters.QueryExpansion", "methods": [], "parameters": [ { + "$id": "233", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "234", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3268,6 +3285,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3280,33 +3298,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", "apiVersions": [], "parent": { - "$ref": "195" + "$ref": "210" }, "children": [ { - "$id": "218", + "$id": "236", "kind": "client", "name": "Standard", "namespace": "Routes.QueryParameters.QueryExpansion.Standard", "methods": [ { - "$id": "219", + "$id": "237", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "220", + "$id": "238", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "221", + "$id": "239", "name": "param", "nameInRequest": "param", "type": { - "$id": "222", + "$id": "240", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3325,7 +3343,6 @@ ], "responses": [ { - "$id": "223", "statusCodes": [ 204 ], @@ -3344,11 +3361,11 @@ }, "parameters": [ { - "$id": "224", + "$id": "241", "name": "param", "nameInRequest": "param", "type": { - "$id": "225", + "$id": "242", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3372,23 +3389,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive" }, { - "$id": "226", + "$id": "243", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "227", + "$id": "244", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "228", + "$id": "245", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -3403,7 +3420,6 @@ ], "responses": [ { - "$id": "229", "statusCodes": [ 204 ], @@ -3422,11 +3438,11 @@ }, "parameters": [ { - "$id": "230", + "$id": "246", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -3446,23 +3462,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array" }, { - "$id": "231", + "$id": "247", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "232", + "$id": "248", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "249", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -3477,7 +3493,6 @@ ], "responses": [ { - "$id": "234", "statusCodes": [ 204 ], @@ -3496,11 +3511,11 @@ }, "parameters": [ { - "$id": "235", + "$id": "250", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -3522,10 +3537,12 @@ ], "parameters": [ { + "$id": "251", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "252", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3540,6 +3557,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3552,33 +3570,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", "apiVersions": [], "parent": { - "$ref": "217" + "$ref": "232" } }, { - "$id": "236", + "$id": "254", "kind": "client", "name": "Explode", "namespace": "Routes.QueryParameters.QueryExpansion.Explode", "methods": [ { - "$id": "237", + "$id": "255", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "238", + "$id": "256", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "239", + "$id": "257", "name": "param", "nameInRequest": "param", "type": { - "$id": "240", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3597,7 +3615,6 @@ ], "responses": [ { - "$id": "241", "statusCodes": [ 204 ], @@ -3616,11 +3633,11 @@ }, "parameters": [ { - "$id": "242", + "$id": "259", "name": "param", "nameInRequest": "param", "type": { - "$id": "243", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3644,23 +3661,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive" }, { - "$id": "244", + "$id": "261", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "245", + "$id": "262", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "246", + "$id": "263", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -3675,7 +3692,6 @@ ], "responses": [ { - "$id": "247", "statusCodes": [ 204 ], @@ -3694,11 +3710,11 @@ }, "parameters": [ { - "$id": "248", + "$id": "264", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -3718,23 +3734,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array" }, { - "$id": "249", + "$id": "265", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "250", + "$id": "266", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "251", + "$id": "267", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -3749,7 +3765,6 @@ ], "responses": [ { - "$id": "252", "statusCodes": [ 204 ], @@ -3768,11 +3783,11 @@ }, "parameters": [ { - "$id": "253", + "$id": "268", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -3794,10 +3809,12 @@ ], "parameters": [ { + "$id": "269", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "270", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3812,6 +3829,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "271", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3824,23 +3842,25 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", "apiVersions": [], "parent": { - "$ref": "217" + "$ref": "232" } } ] }, { - "$id": "254", + "$id": "272", "kind": "client", "name": "QueryContinuation", "namespace": "Routes.QueryParameters.QueryContinuation", "methods": [], "parameters": [ { + "$id": "273", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "274", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3855,6 +3875,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3867,33 +3888,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", "apiVersions": [], "parent": { - "$ref": "195" + "$ref": "210" }, "children": [ { - "$id": "255", + "$id": "276", "kind": "client", "name": "Standard", "namespace": "Routes.QueryParameters.QueryContinuation.Standard", "methods": [ { - "$id": "256", + "$id": "277", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "257", + "$id": "278", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "258", + "$id": "279", "name": "param", "nameInRequest": "param", "type": { - "$id": "259", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3912,7 +3933,6 @@ ], "responses": [ { - "$id": "260", "statusCodes": [ 204 ], @@ -3931,11 +3951,11 @@ }, "parameters": [ { - "$id": "261", + "$id": "281", "name": "param", "nameInRequest": "param", "type": { - "$id": "262", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3959,23 +3979,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive" }, { - "$id": "263", + "$id": "283", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "264", + "$id": "284", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "265", + "$id": "285", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -3990,7 +4010,6 @@ ], "responses": [ { - "$id": "266", "statusCodes": [ 204 ], @@ -4009,11 +4028,11 @@ }, "parameters": [ { - "$id": "267", + "$id": "286", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -4033,23 +4052,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array" }, { - "$id": "268", + "$id": "287", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "269", + "$id": "288", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "270", + "$id": "289", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -4064,7 +4083,6 @@ ], "responses": [ { - "$id": "271", "statusCodes": [ 204 ], @@ -4083,11 +4101,11 @@ }, "parameters": [ { - "$id": "272", + "$id": "290", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -4109,10 +4127,12 @@ ], "parameters": [ { + "$id": "291", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "292", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4127,6 +4147,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "293", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4139,33 +4160,33 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "272" } }, { - "$id": "273", + "$id": "294", "kind": "client", "name": "Explode", "namespace": "Routes.QueryParameters.QueryContinuation.Explode", "methods": [ { - "$id": "274", + "$id": "295", "kind": "basic", "name": "primitive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "275", + "$id": "296", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "276", + "$id": "297", "name": "param", "nameInRequest": "param", "type": { - "$id": "277", + "$id": "298", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4184,7 +4205,6 @@ ], "responses": [ { - "$id": "278", "statusCodes": [ 204 ], @@ -4203,11 +4223,11 @@ }, "parameters": [ { - "$id": "279", + "$id": "299", "name": "param", "nameInRequest": "param", "type": { - "$id": "280", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4231,23 +4251,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive" }, { - "$id": "281", + "$id": "301", "kind": "basic", "name": "array", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "282", + "$id": "302", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "283", + "$id": "303", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -4262,7 +4282,6 @@ ], "responses": [ { - "$id": "284", "statusCodes": [ 204 ], @@ -4281,11 +4300,11 @@ }, "parameters": [ { - "$id": "285", + "$id": "304", "name": "param", "nameInRequest": "param", "type": { - "$ref": "54" + "$ref": "59" }, "location": "Query", "isApiVersion": false, @@ -4305,23 +4324,23 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array" }, { - "$id": "286", + "$id": "305", "kind": "basic", "name": "record", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "287", + "$id": "306", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "288", + "$id": "307", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -4336,7 +4355,6 @@ ], "responses": [ { - "$id": "289", "statusCodes": [ 204 ], @@ -4355,11 +4373,11 @@ }, "parameters": [ { - "$id": "290", + "$id": "308", "name": "param", "nameInRequest": "param", "type": { - "$ref": "61" + "$ref": "65" }, "location": "Query", "isApiVersion": false, @@ -4381,10 +4399,12 @@ ], "parameters": [ { + "$id": "309", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "310", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4399,6 +4419,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "311", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4411,7 +4432,7 @@ "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "272" } } ] @@ -4419,26 +4440,25 @@ ] }, { - "$id": "291", + "$id": "312", "kind": "client", "name": "InInterface", "namespace": "Routes", "methods": [ { - "$id": "292", + "$id": "313", "kind": "basic", "name": "fixed", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "293", + "$id": "314", "name": "fixed", "resourceName": "InInterface", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "294", "statusCodes": [ 204 ], @@ -4465,10 +4485,12 @@ ], "parameters": [ { + "$id": "315", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "316", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4483,6 +4505,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "317", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 2104bcb60ec..10e3197b631 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 @@ -84,10 +84,12 @@ "methods": [], "parameters": [ { + "$id": "9", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "10", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -102,6 +104,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -115,25 +118,25 @@ "apiVersions": [], "children": [ { - "$id": "9", + "$id": "12", "kind": "client", "name": "Property", "namespace": "Serialization.EncodedName.Json.Property", "methods": [ { - "$id": "10", + "$id": "13", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "11", + "$id": "14", "name": "send", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "15", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -151,7 +154,7 @@ "skipUrlEncoding": false }, { - "$id": "13", + "$id": "16", "name": "body", "nameInRequest": "body", "type": { @@ -170,7 +173,6 @@ ], "responses": [ { - "$id": "14", "statusCodes": [ 204 ], @@ -192,7 +194,7 @@ }, "parameters": [ { - "$id": "15", + "$id": "17", "name": "body", "nameInRequest": "body", "type": { @@ -209,7 +211,7 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "18", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -234,19 +236,19 @@ "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send" }, { - "$id": "17", + "$id": "19", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "18", + "$id": "20", "name": "get", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "21", "name": "accept", "nameInRequest": "Accept", "type": { @@ -265,7 +267,6 @@ ], "responses": [ { - "$id": "20", "statusCodes": [ 200 ], @@ -290,7 +291,7 @@ }, "parameters": [ { - "$id": "21", + "$id": "22", "name": "accept", "nameInRequest": "accept", "type": { @@ -320,10 +321,12 @@ ], "parameters": [ { + "$id": "23", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "24", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -338,6 +341,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 92348475c45..fdc56d97a58 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 @@ -26,7 +26,6 @@ "parameters": [], "responses": [ { - "$id": "4", "statusCodes": [ 200 ], @@ -53,10 +52,12 @@ ], "parameters": [ { + "$id": "4", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "5", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" 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 3af2ee29814..a52911dd272 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 @@ -65,7 +65,6 @@ "parameters": [], "responses": [ { - "$id": "7", "statusCodes": [ 204 ], @@ -90,7 +89,7 @@ "crossLanguageDefinitionId": "Server.Path.Multiple.noOperationParams" }, { - "$id": "8", + "$id": "7", "kind": "basic", "name": "withOperationPathParam", "accessibility": "public", @@ -98,17 +97,17 @@ "v1.0" ], "operation": { - "$id": "9", + "$id": "8", "name": "withOperationPathParam", "resourceName": "Multiple", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "9", "name": "keyword", "nameInRequest": "keyword", "type": { - "$id": "11", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -127,7 +126,6 @@ ], "responses": [ { - "$id": "12", "statusCodes": [ 204 ], @@ -146,11 +144,11 @@ }, "parameters": [ { - "$id": "13", + "$id": "11", "name": "keyword", "nameInRequest": "keyword", "type": { - "$id": "14", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -176,10 +174,12 @@ ], "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" @@ -194,6 +194,7 @@ "kind": "Client" }, { + "$id": "15", "name": "apiVersion", "nameInRequest": "apiVersion", "doc": "Pass in v1.0 for API version.", @@ -210,6 +211,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 984d07f18b2..5d5b30afcc8 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 @@ -26,7 +26,6 @@ "parameters": [], "responses": [ { - "$id": "4", "statusCodes": [ 200 ], @@ -53,10 +52,12 @@ ], "parameters": [ { + "$id": "4", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "5", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" 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 ec27fd8de1b..a3172b024ed 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 @@ -26,7 +26,6 @@ "parameters": [], "responses": [ { - "$id": "4", "statusCodes": [ 200 ], @@ -51,23 +50,23 @@ "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withoutApiVersion" }, { - "$id": "5", + "$id": "4", "kind": "basic", "name": "withQueryApiVersion", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "6", + "$id": "5", "name": "withQueryApiVersion", "resourceName": "NotVersioned", "accessibility": "public", "parameters": [ { - "$id": "7", + "$id": "6", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "8", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -86,7 +85,6 @@ ], "responses": [ { - "$id": "9", "statusCodes": [ 200 ], @@ -105,11 +103,11 @@ }, "parameters": [ { - "$id": "10", + "$id": "8", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "11", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -133,23 +131,23 @@ "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion" }, { - "$id": "12", + "$id": "10", "kind": "basic", "name": "withPathApiVersion", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "13", + "$id": "11", "name": "withPathApiVersion", "resourceName": "NotVersioned", "accessibility": "public", "parameters": [ { - "$id": "14", + "$id": "12", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "15", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -168,7 +166,6 @@ ], "responses": [ { - "$id": "16", "statusCodes": [ 200 ], @@ -187,11 +184,11 @@ }, "parameters": [ { - "$id": "17", + "$id": "14", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "18", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -217,10 +214,12 @@ ], "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" 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 beb910c3c3f..7d109d17d47 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 @@ -82,7 +82,6 @@ "parameters": [], "responses": [ { - "$id": "8", "statusCodes": [ 200 ], @@ -107,7 +106,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withoutApiVersion" }, { - "$id": "9", + "$id": "8", "kind": "basic", "name": "withQueryApiVersion", "accessibility": "public", @@ -116,17 +115,17 @@ "2022-12-01-preview" ], "operation": { - "$id": "10", + "$id": "9", "name": "withQueryApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "11", + "$id": "10", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -141,6 +140,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -153,7 +153,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 200 ], @@ -178,7 +177,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion" }, { - "$id": "14", + "$id": "13", "kind": "basic", "name": "withPathApiVersion", "accessibility": "public", @@ -187,17 +186,17 @@ "2022-12-01-preview" ], "operation": { - "$id": "15", + "$id": "14", "name": "withPathApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "16", + "$id": "15", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "17", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -212,6 +211,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -224,7 +224,6 @@ ], "responses": [ { - "$id": "18", "statusCodes": [ 200 ], @@ -249,7 +248,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion" }, { - "$id": "19", + "$id": "18", "kind": "basic", "name": "withQueryOldApiVersion", "accessibility": "public", @@ -258,17 +257,17 @@ "2022-12-01-preview" ], "operation": { - "$id": "20", + "$id": "19", "name": "withQueryOldApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "21", + "$id": "20", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "22", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -283,6 +282,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -295,7 +295,6 @@ ], "responses": [ { - "$id": "23", "statusCodes": [ 200 ], @@ -322,10 +321,12 @@ ], "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" 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 b2de06a19f2..442634ba8d2 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 @@ -51,7 +51,6 @@ ], "responses": [ { - "$id": "6", "statusCodes": [ 204 ], @@ -70,12 +69,12 @@ }, "parameters": [ { - "$id": "7", + "$id": "6", "name": "ifMatch", "nameInRequest": "If-Match", "doc": "The request should only proceed if an entity matches this string.", "type": { - "$id": "8", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -99,26 +98,26 @@ "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch" }, { - "$id": "9", + "$id": "8", "kind": "basic", "name": "postIfNoneMatch", "accessibility": "public", "apiVersions": [], "doc": "Check when only If-None-Match in header is defined.", "operation": { - "$id": "10", + "$id": "9", "name": "postIfNoneMatch", "resourceName": "ConditionalRequest", "doc": "Check when only If-None-Match in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "11", + "$id": "10", "name": "ifNoneMatch", "nameInRequest": "If-None-Match", "doc": "The request should only proceed if no entity matches this string.", "type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -137,7 +136,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -156,12 +154,12 @@ }, "parameters": [ { - "$id": "14", + "$id": "12", "name": "ifNoneMatch", "nameInRequest": "If-None-Match", "doc": "The request should only proceed if no entity matches this string.", "type": { - "$id": "15", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -185,31 +183,31 @@ "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch" }, { - "$id": "16", + "$id": "14", "kind": "basic", "name": "headIfModifiedSince", "accessibility": "public", "apiVersions": [], "doc": "Check when only If-Modified-Since in header is defined.", "operation": { - "$id": "17", + "$id": "15", "name": "headIfModifiedSince", "resourceName": "ConditionalRequest", "doc": "Check when only If-Modified-Since in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "18", + "$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": "19", + "$id": "17", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "20", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -231,7 +229,6 @@ ], "responses": [ { - "$id": "21", "statusCodes": [ 204 ], @@ -250,17 +247,17 @@ }, "parameters": [ { - "$id": "22", + "$id": "19", "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": "23", + "$id": "20", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "24", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -287,31 +284,31 @@ "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince" }, { - "$id": "25", + "$id": "22", "kind": "basic", "name": "postIfUnmodifiedSince", "accessibility": "public", "apiVersions": [], "doc": "Check when only If-Unmodified-Since in header is defined.", "operation": { - "$id": "26", + "$id": "23", "name": "postIfUnmodifiedSince", "resourceName": "ConditionalRequest", "doc": "Check when only If-Unmodified-Since in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "27", + "$id": "24", "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": "28", + "$id": "25", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "29", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -333,7 +330,6 @@ ], "responses": [ { - "$id": "30", "statusCodes": [ 204 ], @@ -352,17 +348,17 @@ }, "parameters": [ { - "$id": "31", + "$id": "27", "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": "32", + "$id": "28", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "33", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -391,10 +387,12 @@ ], "parameters": [ { + "$id": "30", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "31", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -409,6 +407,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 8c489b28d96..cb713c83e37 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 @@ -126,7 +126,6 @@ ], "responses": [ { - "$id": "13", "statusCodes": [ 204 ], @@ -154,11 +153,11 @@ }, "parameters": [ { - "$id": "14", + "$id": "13", "name": "repeatabilityRequestID", "nameInRequest": "Repeatability-Request-ID", "type": { - "$id": "15", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -175,16 +174,16 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "15", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "17", + "$id": "16", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "18", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -213,10 +212,12 @@ ], "parameters": [ { + "$id": "18", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "19", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -231,6 +232,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 bc99df92ea6..33c57f13473 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 @@ -1750,10 +1750,12 @@ "methods": [], "parameters": [ { + "$id": "172", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "173", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1768,6 +1770,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1781,26 +1784,26 @@ "apiVersions": [], "children": [ { - "$id": "172", + "$id": "175", "kind": "client", "name": "Models", "namespace": "SpecialWords.Models", "doc": "Verify model names", "methods": [ { - "$id": "173", + "$id": "176", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "174", + "$id": "177", "name": "withAnd", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "175", + "$id": "178", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1818,7 +1821,7 @@ "skipUrlEncoding": false }, { - "$id": "176", + "$id": "179", "name": "body", "nameInRequest": "body", "type": { @@ -1837,7 +1840,6 @@ ], "responses": [ { - "$id": "177", "statusCodes": [ 204 ], @@ -1859,7 +1861,7 @@ }, "parameters": [ { - "$id": "178", + "$id": "180", "name": "body", "nameInRequest": "body", "type": { @@ -1876,7 +1878,7 @@ "skipUrlEncoding": false }, { - "$id": "179", + "$id": "181", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1901,19 +1903,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd" }, { - "$id": "180", + "$id": "182", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "181", + "$id": "183", "name": "withAs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "182", + "$id": "184", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1931,7 +1933,7 @@ "skipUrlEncoding": false }, { - "$id": "183", + "$id": "185", "name": "body", "nameInRequest": "body", "type": { @@ -1950,7 +1952,6 @@ ], "responses": [ { - "$id": "184", "statusCodes": [ 204 ], @@ -1972,7 +1973,7 @@ }, "parameters": [ { - "$id": "185", + "$id": "186", "name": "body", "nameInRequest": "body", "type": { @@ -1989,7 +1990,7 @@ "skipUrlEncoding": false }, { - "$id": "186", + "$id": "187", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2014,19 +2015,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs" }, { - "$id": "187", + "$id": "188", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "188", + "$id": "189", "name": "withAssert", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "190", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2044,7 +2045,7 @@ "skipUrlEncoding": false }, { - "$id": "190", + "$id": "191", "name": "body", "nameInRequest": "body", "type": { @@ -2063,7 +2064,6 @@ ], "responses": [ { - "$id": "191", "statusCodes": [ 204 ], @@ -2176,7 +2176,6 @@ ], "responses": [ { - "$id": "198", "statusCodes": [ 204 ], @@ -2198,7 +2197,7 @@ }, "parameters": [ { - "$id": "199", + "$id": "198", "name": "body", "nameInRequest": "body", "type": { @@ -2215,7 +2214,7 @@ "skipUrlEncoding": false }, { - "$id": "200", + "$id": "199", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2240,19 +2239,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync" }, { - "$id": "201", + "$id": "200", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "202", + "$id": "201", "name": "withAwait", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "203", + "$id": "202", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2270,7 +2269,7 @@ "skipUrlEncoding": false }, { - "$id": "204", + "$id": "203", "name": "body", "nameInRequest": "body", "type": { @@ -2289,7 +2288,6 @@ ], "responses": [ { - "$id": "205", "statusCodes": [ 204 ], @@ -2311,7 +2309,7 @@ }, "parameters": [ { - "$id": "206", + "$id": "204", "name": "body", "nameInRequest": "body", "type": { @@ -2328,7 +2326,7 @@ "skipUrlEncoding": false }, { - "$id": "207", + "$id": "205", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2353,19 +2351,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait" }, { - "$id": "208", + "$id": "206", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "209", + "$id": "207", "name": "withBreak", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "210", + "$id": "208", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2383,7 +2381,7 @@ "skipUrlEncoding": false }, { - "$id": "211", + "$id": "209", "name": "body", "nameInRequest": "body", "type": { @@ -2402,7 +2400,6 @@ ], "responses": [ { - "$id": "212", "statusCodes": [ 204 ], @@ -2424,7 +2421,7 @@ }, "parameters": [ { - "$id": "213", + "$id": "210", "name": "body", "nameInRequest": "body", "type": { @@ -2441,7 +2438,7 @@ "skipUrlEncoding": false }, { - "$id": "214", + "$id": "211", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2466,19 +2463,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak" }, { - "$id": "215", + "$id": "212", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "216", + "$id": "213", "name": "withClass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "217", + "$id": "214", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2496,7 +2493,7 @@ "skipUrlEncoding": false }, { - "$id": "218", + "$id": "215", "name": "body", "nameInRequest": "body", "type": { @@ -2515,7 +2512,6 @@ ], "responses": [ { - "$id": "219", "statusCodes": [ 204 ], @@ -2537,7 +2533,7 @@ }, "parameters": [ { - "$id": "220", + "$id": "216", "name": "body", "nameInRequest": "body", "type": { @@ -2554,7 +2550,7 @@ "skipUrlEncoding": false }, { - "$id": "221", + "$id": "217", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2579,19 +2575,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass" }, { - "$id": "222", + "$id": "218", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "223", + "$id": "219", "name": "withConstructor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "220", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2609,7 +2605,7 @@ "skipUrlEncoding": false }, { - "$id": "225", + "$id": "221", "name": "body", "nameInRequest": "body", "type": { @@ -2628,7 +2624,6 @@ ], "responses": [ { - "$id": "226", "statusCodes": [ 204 ], @@ -2650,7 +2645,7 @@ }, "parameters": [ { - "$id": "227", + "$id": "222", "name": "body", "nameInRequest": "body", "type": { @@ -2667,7 +2662,7 @@ "skipUrlEncoding": false }, { - "$id": "228", + "$id": "223", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2692,19 +2687,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor" }, { - "$id": "229", + "$id": "224", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "230", + "$id": "225", "name": "withContinue", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "231", + "$id": "226", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2722,7 +2717,7 @@ "skipUrlEncoding": false }, { - "$id": "232", + "$id": "227", "name": "body", "nameInRequest": "body", "type": { @@ -2741,7 +2736,6 @@ ], "responses": [ { - "$id": "233", "statusCodes": [ 204 ], @@ -2763,7 +2757,7 @@ }, "parameters": [ { - "$id": "234", + "$id": "228", "name": "body", "nameInRequest": "body", "type": { @@ -2780,7 +2774,7 @@ "skipUrlEncoding": false }, { - "$id": "235", + "$id": "229", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2805,19 +2799,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue" }, { - "$id": "236", + "$id": "230", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "237", + "$id": "231", "name": "withDef", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "232", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2835,7 +2829,7 @@ "skipUrlEncoding": false }, { - "$id": "239", + "$id": "233", "name": "body", "nameInRequest": "body", "type": { @@ -2854,7 +2848,6 @@ ], "responses": [ { - "$id": "240", "statusCodes": [ 204 ], @@ -2876,7 +2869,7 @@ }, "parameters": [ { - "$id": "241", + "$id": "234", "name": "body", "nameInRequest": "body", "type": { @@ -2893,7 +2886,7 @@ "skipUrlEncoding": false }, { - "$id": "242", + "$id": "235", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2918,19 +2911,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef" }, { - "$id": "243", + "$id": "236", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "244", + "$id": "237", "name": "withDel", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "245", + "$id": "238", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2948,7 +2941,7 @@ "skipUrlEncoding": false }, { - "$id": "246", + "$id": "239", "name": "body", "nameInRequest": "body", "type": { @@ -2967,7 +2960,6 @@ ], "responses": [ { - "$id": "247", "statusCodes": [ 204 ], @@ -2989,7 +2981,7 @@ }, "parameters": [ { - "$id": "248", + "$id": "240", "name": "body", "nameInRequest": "body", "type": { @@ -3006,7 +2998,7 @@ "skipUrlEncoding": false }, { - "$id": "249", + "$id": "241", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3031,19 +3023,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel" }, { - "$id": "250", + "$id": "242", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "251", + "$id": "243", "name": "withElif", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "252", + "$id": "244", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3061,7 +3053,7 @@ "skipUrlEncoding": false }, { - "$id": "253", + "$id": "245", "name": "body", "nameInRequest": "body", "type": { @@ -3080,7 +3072,6 @@ ], "responses": [ { - "$id": "254", "statusCodes": [ 204 ], @@ -3102,7 +3093,7 @@ }, "parameters": [ { - "$id": "255", + "$id": "246", "name": "body", "nameInRequest": "body", "type": { @@ -3119,7 +3110,7 @@ "skipUrlEncoding": false }, { - "$id": "256", + "$id": "247", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3144,19 +3135,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif" }, { - "$id": "257", + "$id": "248", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "258", + "$id": "249", "name": "withElse", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "259", + "$id": "250", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3174,7 +3165,7 @@ "skipUrlEncoding": false }, { - "$id": "260", + "$id": "251", "name": "body", "nameInRequest": "body", "type": { @@ -3193,7 +3184,6 @@ ], "responses": [ { - "$id": "261", "statusCodes": [ 204 ], @@ -3215,7 +3205,7 @@ }, "parameters": [ { - "$id": "262", + "$id": "252", "name": "body", "nameInRequest": "body", "type": { @@ -3232,7 +3222,7 @@ "skipUrlEncoding": false }, { - "$id": "263", + "$id": "253", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3257,19 +3247,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse" }, { - "$id": "264", + "$id": "254", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "265", + "$id": "255", "name": "withExcept", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "266", + "$id": "256", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3287,7 +3277,7 @@ "skipUrlEncoding": false }, { - "$id": "267", + "$id": "257", "name": "body", "nameInRequest": "body", "type": { @@ -3306,7 +3296,6 @@ ], "responses": [ { - "$id": "268", "statusCodes": [ 204 ], @@ -3328,7 +3317,7 @@ }, "parameters": [ { - "$id": "269", + "$id": "258", "name": "body", "nameInRequest": "body", "type": { @@ -3345,7 +3334,7 @@ "skipUrlEncoding": false }, { - "$id": "270", + "$id": "259", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3370,19 +3359,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept" }, { - "$id": "271", + "$id": "260", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "272", + "$id": "261", "name": "withExec", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "262", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3400,7 +3389,7 @@ "skipUrlEncoding": false }, { - "$id": "274", + "$id": "263", "name": "body", "nameInRequest": "body", "type": { @@ -3419,7 +3408,6 @@ ], "responses": [ { - "$id": "275", "statusCodes": [ 204 ], @@ -3441,7 +3429,7 @@ }, "parameters": [ { - "$id": "276", + "$id": "264", "name": "body", "nameInRequest": "body", "type": { @@ -3458,7 +3446,7 @@ "skipUrlEncoding": false }, { - "$id": "277", + "$id": "265", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3483,19 +3471,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec" }, { - "$id": "278", + "$id": "266", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "279", + "$id": "267", "name": "withFinally", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "280", + "$id": "268", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3513,7 +3501,7 @@ "skipUrlEncoding": false }, { - "$id": "281", + "$id": "269", "name": "body", "nameInRequest": "body", "type": { @@ -3532,7 +3520,6 @@ ], "responses": [ { - "$id": "282", "statusCodes": [ 204 ], @@ -3554,7 +3541,7 @@ }, "parameters": [ { - "$id": "283", + "$id": "270", "name": "body", "nameInRequest": "body", "type": { @@ -3571,7 +3558,7 @@ "skipUrlEncoding": false }, { - "$id": "284", + "$id": "271", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3596,19 +3583,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally" }, { - "$id": "285", + "$id": "272", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "286", + "$id": "273", "name": "withFor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "274", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3626,7 +3613,7 @@ "skipUrlEncoding": false }, { - "$id": "288", + "$id": "275", "name": "body", "nameInRequest": "body", "type": { @@ -3645,7 +3632,6 @@ ], "responses": [ { - "$id": "289", "statusCodes": [ 204 ], @@ -3667,7 +3653,7 @@ }, "parameters": [ { - "$id": "290", + "$id": "276", "name": "body", "nameInRequest": "body", "type": { @@ -3684,7 +3670,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "277", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3709,19 +3695,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor" }, { - "$id": "292", + "$id": "278", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "293", + "$id": "279", "name": "withFrom", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "294", + "$id": "280", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3739,7 +3725,7 @@ "skipUrlEncoding": false }, { - "$id": "295", + "$id": "281", "name": "body", "nameInRequest": "body", "type": { @@ -3758,7 +3744,6 @@ ], "responses": [ { - "$id": "296", "statusCodes": [ 204 ], @@ -3780,7 +3765,7 @@ }, "parameters": [ { - "$id": "297", + "$id": "282", "name": "body", "nameInRequest": "body", "type": { @@ -3797,7 +3782,7 @@ "skipUrlEncoding": false }, { - "$id": "298", + "$id": "283", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3822,19 +3807,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom" }, { - "$id": "299", + "$id": "284", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "300", + "$id": "285", "name": "withGlobal", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "301", + "$id": "286", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3852,7 +3837,7 @@ "skipUrlEncoding": false }, { - "$id": "302", + "$id": "287", "name": "body", "nameInRequest": "body", "type": { @@ -3871,7 +3856,6 @@ ], "responses": [ { - "$id": "303", "statusCodes": [ 204 ], @@ -3893,7 +3877,7 @@ }, "parameters": [ { - "$id": "304", + "$id": "288", "name": "body", "nameInRequest": "body", "type": { @@ -3910,7 +3894,7 @@ "skipUrlEncoding": false }, { - "$id": "305", + "$id": "289", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3935,19 +3919,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal" }, { - "$id": "306", + "$id": "290", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "307", + "$id": "291", "name": "withIf", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "308", + "$id": "292", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3965,7 +3949,7 @@ "skipUrlEncoding": false }, { - "$id": "309", + "$id": "293", "name": "body", "nameInRequest": "body", "type": { @@ -3984,7 +3968,6 @@ ], "responses": [ { - "$id": "310", "statusCodes": [ 204 ], @@ -4006,7 +3989,7 @@ }, "parameters": [ { - "$id": "311", + "$id": "294", "name": "body", "nameInRequest": "body", "type": { @@ -4023,7 +4006,7 @@ "skipUrlEncoding": false }, { - "$id": "312", + "$id": "295", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4048,19 +4031,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf" }, { - "$id": "313", + "$id": "296", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "314", + "$id": "297", "name": "withImport", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "298", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4078,7 +4061,7 @@ "skipUrlEncoding": false }, { - "$id": "316", + "$id": "299", "name": "body", "nameInRequest": "body", "type": { @@ -4097,7 +4080,6 @@ ], "responses": [ { - "$id": "317", "statusCodes": [ 204 ], @@ -4119,7 +4101,7 @@ }, "parameters": [ { - "$id": "318", + "$id": "300", "name": "body", "nameInRequest": "body", "type": { @@ -4136,7 +4118,7 @@ "skipUrlEncoding": false }, { - "$id": "319", + "$id": "301", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4161,19 +4143,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport" }, { - "$id": "320", + "$id": "302", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "321", + "$id": "303", "name": "withIn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "322", + "$id": "304", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4191,7 +4173,7 @@ "skipUrlEncoding": false }, { - "$id": "323", + "$id": "305", "name": "body", "nameInRequest": "body", "type": { @@ -4210,7 +4192,6 @@ ], "responses": [ { - "$id": "324", "statusCodes": [ 204 ], @@ -4232,7 +4213,7 @@ }, "parameters": [ { - "$id": "325", + "$id": "306", "name": "body", "nameInRequest": "body", "type": { @@ -4249,7 +4230,7 @@ "skipUrlEncoding": false }, { - "$id": "326", + "$id": "307", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4274,19 +4255,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn" }, { - "$id": "327", + "$id": "308", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "328", + "$id": "309", "name": "withIs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "329", + "$id": "310", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4304,7 +4285,7 @@ "skipUrlEncoding": false }, { - "$id": "330", + "$id": "311", "name": "body", "nameInRequest": "body", "type": { @@ -4323,7 +4304,6 @@ ], "responses": [ { - "$id": "331", "statusCodes": [ 204 ], @@ -4345,7 +4325,7 @@ }, "parameters": [ { - "$id": "332", + "$id": "312", "name": "body", "nameInRequest": "body", "type": { @@ -4362,7 +4342,7 @@ "skipUrlEncoding": false }, { - "$id": "333", + "$id": "313", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4387,19 +4367,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs" }, { - "$id": "334", + "$id": "314", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "335", + "$id": "315", "name": "withLambda", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "336", + "$id": "316", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4417,7 +4397,7 @@ "skipUrlEncoding": false }, { - "$id": "337", + "$id": "317", "name": "body", "nameInRequest": "body", "type": { @@ -4436,7 +4416,6 @@ ], "responses": [ { - "$id": "338", "statusCodes": [ 204 ], @@ -4458,7 +4437,7 @@ }, "parameters": [ { - "$id": "339", + "$id": "318", "name": "body", "nameInRequest": "body", "type": { @@ -4475,7 +4454,7 @@ "skipUrlEncoding": false }, { - "$id": "340", + "$id": "319", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4500,19 +4479,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda" }, { - "$id": "341", + "$id": "320", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "342", + "$id": "321", "name": "withNot", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "343", + "$id": "322", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4530,7 +4509,7 @@ "skipUrlEncoding": false }, { - "$id": "344", + "$id": "323", "name": "body", "nameInRequest": "body", "type": { @@ -4549,7 +4528,6 @@ ], "responses": [ { - "$id": "345", "statusCodes": [ 204 ], @@ -4571,7 +4549,7 @@ }, "parameters": [ { - "$id": "346", + "$id": "324", "name": "body", "nameInRequest": "body", "type": { @@ -4588,7 +4566,7 @@ "skipUrlEncoding": false }, { - "$id": "347", + "$id": "325", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4613,19 +4591,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot" }, { - "$id": "348", + "$id": "326", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "349", + "$id": "327", "name": "withOr", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "350", + "$id": "328", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4643,7 +4621,7 @@ "skipUrlEncoding": false }, { - "$id": "351", + "$id": "329", "name": "body", "nameInRequest": "body", "type": { @@ -4662,7 +4640,6 @@ ], "responses": [ { - "$id": "352", "statusCodes": [ 204 ], @@ -4684,7 +4661,7 @@ }, "parameters": [ { - "$id": "353", + "$id": "330", "name": "body", "nameInRequest": "body", "type": { @@ -4701,7 +4678,7 @@ "skipUrlEncoding": false }, { - "$id": "354", + "$id": "331", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4726,19 +4703,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr" }, { - "$id": "355", + "$id": "332", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "356", + "$id": "333", "name": "withPass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "357", + "$id": "334", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4756,7 +4733,7 @@ "skipUrlEncoding": false }, { - "$id": "358", + "$id": "335", "name": "body", "nameInRequest": "body", "type": { @@ -4775,7 +4752,6 @@ ], "responses": [ { - "$id": "359", "statusCodes": [ 204 ], @@ -4797,7 +4773,7 @@ }, "parameters": [ { - "$id": "360", + "$id": "336", "name": "body", "nameInRequest": "body", "type": { @@ -4814,7 +4790,7 @@ "skipUrlEncoding": false }, { - "$id": "361", + "$id": "337", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4839,19 +4815,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass" }, { - "$id": "362", + "$id": "338", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "363", + "$id": "339", "name": "withRaise", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "364", + "$id": "340", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4869,7 +4845,7 @@ "skipUrlEncoding": false }, { - "$id": "365", + "$id": "341", "name": "body", "nameInRequest": "body", "type": { @@ -4888,7 +4864,6 @@ ], "responses": [ { - "$id": "366", "statusCodes": [ 204 ], @@ -4910,7 +4885,7 @@ }, "parameters": [ { - "$id": "367", + "$id": "342", "name": "body", "nameInRequest": "body", "type": { @@ -4927,7 +4902,7 @@ "skipUrlEncoding": false }, { - "$id": "368", + "$id": "343", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4952,19 +4927,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise" }, { - "$id": "369", + "$id": "344", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "370", + "$id": "345", "name": "withReturn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "371", + "$id": "346", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4982,7 +4957,7 @@ "skipUrlEncoding": false }, { - "$id": "372", + "$id": "347", "name": "body", "nameInRequest": "body", "type": { @@ -5001,7 +4976,6 @@ ], "responses": [ { - "$id": "373", "statusCodes": [ 204 ], @@ -5023,7 +4997,7 @@ }, "parameters": [ { - "$id": "374", + "$id": "348", "name": "body", "nameInRequest": "body", "type": { @@ -5040,7 +5014,7 @@ "skipUrlEncoding": false }, { - "$id": "375", + "$id": "349", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5065,19 +5039,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn" }, { - "$id": "376", + "$id": "350", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "377", + "$id": "351", "name": "withTry", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "378", + "$id": "352", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5095,7 +5069,7 @@ "skipUrlEncoding": false }, { - "$id": "379", + "$id": "353", "name": "body", "nameInRequest": "body", "type": { @@ -5114,7 +5088,6 @@ ], "responses": [ { - "$id": "380", "statusCodes": [ 204 ], @@ -5136,7 +5109,7 @@ }, "parameters": [ { - "$id": "381", + "$id": "354", "name": "body", "nameInRequest": "body", "type": { @@ -5153,7 +5126,7 @@ "skipUrlEncoding": false }, { - "$id": "382", + "$id": "355", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5178,19 +5151,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry" }, { - "$id": "383", + "$id": "356", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "384", + "$id": "357", "name": "withWhile", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "385", + "$id": "358", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5208,7 +5181,7 @@ "skipUrlEncoding": false }, { - "$id": "386", + "$id": "359", "name": "body", "nameInRequest": "body", "type": { @@ -5227,7 +5200,6 @@ ], "responses": [ { - "$id": "387", "statusCodes": [ 204 ], @@ -5249,7 +5221,7 @@ }, "parameters": [ { - "$id": "388", + "$id": "360", "name": "body", "nameInRequest": "body", "type": { @@ -5266,7 +5238,7 @@ "skipUrlEncoding": false }, { - "$id": "389", + "$id": "361", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5291,19 +5263,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile" }, { - "$id": "390", + "$id": "362", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "391", + "$id": "363", "name": "withWith", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "392", + "$id": "364", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5321,7 +5293,7 @@ "skipUrlEncoding": false }, { - "$id": "393", + "$id": "365", "name": "body", "nameInRequest": "body", "type": { @@ -5340,7 +5312,6 @@ ], "responses": [ { - "$id": "394", "statusCodes": [ 204 ], @@ -5362,7 +5333,7 @@ }, "parameters": [ { - "$id": "395", + "$id": "366", "name": "body", "nameInRequest": "body", "type": { @@ -5379,7 +5350,7 @@ "skipUrlEncoding": false }, { - "$id": "396", + "$id": "367", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5404,19 +5375,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith" }, { - "$id": "397", + "$id": "368", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "398", + "$id": "369", "name": "withYield", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "399", + "$id": "370", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5434,7 +5405,7 @@ "skipUrlEncoding": false }, { - "$id": "400", + "$id": "371", "name": "body", "nameInRequest": "body", "type": { @@ -5453,7 +5424,6 @@ ], "responses": [ { - "$id": "401", "statusCodes": [ 204 ], @@ -5475,7 +5445,7 @@ }, "parameters": [ { - "$id": "402", + "$id": "372", "name": "body", "nameInRequest": "body", "type": { @@ -5492,7 +5462,7 @@ "skipUrlEncoding": false }, { - "$id": "403", + "$id": "373", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5519,10 +5489,12 @@ ], "parameters": [ { + "$id": "374", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "375", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5537,6 +5509,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "376", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5553,26 +5526,26 @@ } }, { - "$id": "404", + "$id": "377", "kind": "client", "name": "ModelProperties", "namespace": "SpecialWords.ModelProperties", "doc": "Verify model names", "methods": [ { - "$id": "405", + "$id": "378", "kind": "basic", "name": "sameAsModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "406", + "$id": "379", "name": "sameAsModel", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "407", + "$id": "380", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5590,7 +5563,7 @@ "skipUrlEncoding": false }, { - "$id": "408", + "$id": "381", "name": "body", "nameInRequest": "body", "type": { @@ -5609,7 +5582,6 @@ ], "responses": [ { - "$id": "409", "statusCodes": [ 204 ], @@ -5631,7 +5603,7 @@ }, "parameters": [ { - "$id": "410", + "$id": "382", "name": "body", "nameInRequest": "body", "type": { @@ -5648,7 +5620,7 @@ "skipUrlEncoding": false }, { - "$id": "411", + "$id": "383", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5675,10 +5647,12 @@ ], "parameters": [ { + "$id": "384", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "385", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5693,6 +5667,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "386", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5709,27 +5684,26 @@ } }, { - "$id": "412", + "$id": "387", "kind": "client", "name": "Operations", "namespace": "SpecialWords", "doc": "Test reserved words as operation name.", "methods": [ { - "$id": "413", + "$id": "388", "kind": "basic", "name": "and", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "414", + "$id": "389", "name": "and", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "415", "statusCodes": [ 204 ], @@ -5754,20 +5728,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.and" }, { - "$id": "416", + "$id": "390", "kind": "basic", "name": "as", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "417", + "$id": "391", "name": "as", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "418", "statusCodes": [ 204 ], @@ -5792,20 +5765,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.as" }, { - "$id": "419", + "$id": "392", "kind": "basic", "name": "assert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "420", + "$id": "393", "name": "assert", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "421", "statusCodes": [ 204 ], @@ -5830,20 +5802,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.assert" }, { - "$id": "422", + "$id": "394", "kind": "basic", "name": "async", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "423", + "$id": "395", "name": "async", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "424", "statusCodes": [ 204 ], @@ -5868,20 +5839,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.async" }, { - "$id": "425", + "$id": "396", "kind": "basic", "name": "await", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "426", + "$id": "397", "name": "await", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "427", "statusCodes": [ 204 ], @@ -5906,20 +5876,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.await" }, { - "$id": "428", + "$id": "398", "kind": "basic", "name": "break", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "429", + "$id": "399", "name": "break", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "430", "statusCodes": [ 204 ], @@ -5944,20 +5913,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.break" }, { - "$id": "431", + "$id": "400", "kind": "basic", "name": "class", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "432", + "$id": "401", "name": "class", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "433", "statusCodes": [ 204 ], @@ -5982,20 +5950,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.class" }, { - "$id": "434", + "$id": "402", "kind": "basic", "name": "constructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "435", + "$id": "403", "name": "constructor", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "436", "statusCodes": [ 204 ], @@ -6020,20 +5987,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.constructor" }, { - "$id": "437", + "$id": "404", "kind": "basic", "name": "continue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "438", + "$id": "405", "name": "continue", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "439", "statusCodes": [ 204 ], @@ -6058,20 +6024,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.continue" }, { - "$id": "440", + "$id": "406", "kind": "basic", "name": "def", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "441", + "$id": "407", "name": "def", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "442", "statusCodes": [ 204 ], @@ -6096,20 +6061,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.def" }, { - "$id": "443", + "$id": "408", "kind": "basic", "name": "del", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "444", + "$id": "409", "name": "del", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "445", "statusCodes": [ 204 ], @@ -6134,20 +6098,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.del" }, { - "$id": "446", + "$id": "410", "kind": "basic", "name": "elif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "447", + "$id": "411", "name": "elif", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "448", "statusCodes": [ 204 ], @@ -6172,20 +6135,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.elif" }, { - "$id": "449", + "$id": "412", "kind": "basic", "name": "else", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "450", + "$id": "413", "name": "else", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "451", "statusCodes": [ 204 ], @@ -6210,20 +6172,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.else" }, { - "$id": "452", + "$id": "414", "kind": "basic", "name": "except", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "453", + "$id": "415", "name": "except", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "454", "statusCodes": [ 204 ], @@ -6248,20 +6209,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.except" }, { - "$id": "455", + "$id": "416", "kind": "basic", "name": "exec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "456", + "$id": "417", "name": "exec", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "457", "statusCodes": [ 204 ], @@ -6286,20 +6246,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.exec" }, { - "$id": "458", + "$id": "418", "kind": "basic", "name": "finally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "459", + "$id": "419", "name": "finally", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "460", "statusCodes": [ 204 ], @@ -6324,20 +6283,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.finally" }, { - "$id": "461", + "$id": "420", "kind": "basic", "name": "for", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "462", + "$id": "421", "name": "for", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "463", "statusCodes": [ 204 ], @@ -6362,20 +6320,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.for" }, { - "$id": "464", + "$id": "422", "kind": "basic", "name": "from", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "465", + "$id": "423", "name": "from", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "466", "statusCodes": [ 204 ], @@ -6400,20 +6357,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.from" }, { - "$id": "467", + "$id": "424", "kind": "basic", "name": "global", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "468", + "$id": "425", "name": "global", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "469", "statusCodes": [ 204 ], @@ -6438,20 +6394,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.global" }, { - "$id": "470", + "$id": "426", "kind": "basic", "name": "if", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "471", + "$id": "427", "name": "if", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "472", "statusCodes": [ 204 ], @@ -6476,20 +6431,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.if" }, { - "$id": "473", + "$id": "428", "kind": "basic", "name": "import", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "474", + "$id": "429", "name": "import", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "475", "statusCodes": [ 204 ], @@ -6514,20 +6468,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.import" }, { - "$id": "476", + "$id": "430", "kind": "basic", "name": "in", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "477", + "$id": "431", "name": "in", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "478", "statusCodes": [ 204 ], @@ -6552,20 +6505,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.in" }, { - "$id": "479", + "$id": "432", "kind": "basic", "name": "is", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "480", + "$id": "433", "name": "is", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "481", "statusCodes": [ 204 ], @@ -6590,20 +6542,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.is" }, { - "$id": "482", + "$id": "434", "kind": "basic", "name": "lambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "483", + "$id": "435", "name": "lambda", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "484", "statusCodes": [ 204 ], @@ -6628,20 +6579,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.lambda" }, { - "$id": "485", + "$id": "436", "kind": "basic", "name": "not", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "486", + "$id": "437", "name": "not", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "487", "statusCodes": [ 204 ], @@ -6666,20 +6616,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.not" }, { - "$id": "488", + "$id": "438", "kind": "basic", "name": "or", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "489", + "$id": "439", "name": "or", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "490", "statusCodes": [ 204 ], @@ -6704,20 +6653,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.or" }, { - "$id": "491", + "$id": "440", "kind": "basic", "name": "pass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "492", + "$id": "441", "name": "pass", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "493", "statusCodes": [ 204 ], @@ -6742,20 +6690,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.pass" }, { - "$id": "494", + "$id": "442", "kind": "basic", "name": "raise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "495", + "$id": "443", "name": "raise", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "496", "statusCodes": [ 204 ], @@ -6780,20 +6727,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.raise" }, { - "$id": "497", + "$id": "444", "kind": "basic", "name": "return", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "498", + "$id": "445", "name": "return", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "499", "statusCodes": [ 204 ], @@ -6818,20 +6764,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.return" }, { - "$id": "500", + "$id": "446", "kind": "basic", "name": "try", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "501", + "$id": "447", "name": "try", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "502", "statusCodes": [ 204 ], @@ -6856,20 +6801,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.try" }, { - "$id": "503", + "$id": "448", "kind": "basic", "name": "while", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "504", + "$id": "449", "name": "while", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "505", "statusCodes": [ 204 ], @@ -6894,20 +6838,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.while" }, { - "$id": "506", + "$id": "450", "kind": "basic", "name": "with", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "507", + "$id": "451", "name": "with", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "508", "statusCodes": [ 204 ], @@ -6932,20 +6875,19 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.with" }, { - "$id": "509", + "$id": "452", "kind": "basic", "name": "yield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "510", + "$id": "453", "name": "yield", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "511", "statusCodes": [ 204 ], @@ -6972,10 +6914,12 @@ ], "parameters": [ { + "$id": "454", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "455", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6990,6 +6934,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "456", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7006,30 +6951,30 @@ } }, { - "$id": "512", + "$id": "457", "kind": "client", "name": "Parameters", "namespace": "SpecialWords", "doc": "Verify reserved words as parameter name.", "methods": [ { - "$id": "513", + "$id": "458", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "514", + "$id": "459", "name": "withAnd", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "515", + "$id": "460", "name": "and", "nameInRequest": "and", "type": { - "$id": "516", + "$id": "461", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7048,7 +6993,6 @@ ], "responses": [ { - "$id": "517", "statusCodes": [ 204 ], @@ -7067,11 +7011,11 @@ }, "parameters": [ { - "$id": "518", + "$id": "462", "name": "and", "nameInRequest": "and", "type": { - "$id": "519", + "$id": "463", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7095,23 +7039,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd" }, { - "$id": "520", + "$id": "464", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "521", + "$id": "465", "name": "withAs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "522", + "$id": "466", "name": "as", "nameInRequest": "as", "type": { - "$id": "523", + "$id": "467", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7130,7 +7074,6 @@ ], "responses": [ { - "$id": "524", "statusCodes": [ 204 ], @@ -7149,11 +7092,11 @@ }, "parameters": [ { - "$id": "525", + "$id": "468", "name": "as", "nameInRequest": "as", "type": { - "$id": "526", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7177,23 +7120,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs" }, { - "$id": "527", + "$id": "470", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "528", + "$id": "471", "name": "withAssert", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "529", + "$id": "472", "name": "assert", "nameInRequest": "assert", "type": { - "$id": "530", + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7212,7 +7155,6 @@ ], "responses": [ { - "$id": "531", "statusCodes": [ 204 ], @@ -7231,11 +7173,11 @@ }, "parameters": [ { - "$id": "532", + "$id": "474", "name": "assert", "nameInRequest": "assert", "type": { - "$id": "533", + "$id": "475", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7259,23 +7201,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert" }, { - "$id": "534", + "$id": "476", "kind": "basic", "name": "withAsync", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "535", + "$id": "477", "name": "withAsync", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "536", + "$id": "478", "name": "async", "nameInRequest": "async", "type": { - "$id": "537", + "$id": "479", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7294,7 +7236,6 @@ ], "responses": [ { - "$id": "538", "statusCodes": [ 204 ], @@ -7313,11 +7254,11 @@ }, "parameters": [ { - "$id": "539", + "$id": "480", "name": "async", "nameInRequest": "async", "type": { - "$id": "540", + "$id": "481", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7341,23 +7282,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync" }, { - "$id": "541", + "$id": "482", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "542", + "$id": "483", "name": "withAwait", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "543", + "$id": "484", "name": "await", "nameInRequest": "await", "type": { - "$id": "544", + "$id": "485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7376,7 +7317,6 @@ ], "responses": [ { - "$id": "545", "statusCodes": [ 204 ], @@ -7395,11 +7335,11 @@ }, "parameters": [ { - "$id": "546", + "$id": "486", "name": "await", "nameInRequest": "await", "type": { - "$id": "547", + "$id": "487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7423,23 +7363,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait" }, { - "$id": "548", + "$id": "488", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "549", + "$id": "489", "name": "withBreak", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "550", + "$id": "490", "name": "break", "nameInRequest": "break", "type": { - "$id": "551", + "$id": "491", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7458,7 +7398,6 @@ ], "responses": [ { - "$id": "552", "statusCodes": [ 204 ], @@ -7477,11 +7416,11 @@ }, "parameters": [ { - "$id": "553", + "$id": "492", "name": "break", "nameInRequest": "break", "type": { - "$id": "554", + "$id": "493", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7505,23 +7444,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak" }, { - "$id": "555", + "$id": "494", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "556", + "$id": "495", "name": "withClass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "557", + "$id": "496", "name": "class", "nameInRequest": "class", "type": { - "$id": "558", + "$id": "497", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7540,7 +7479,6 @@ ], "responses": [ { - "$id": "559", "statusCodes": [ 204 ], @@ -7559,11 +7497,11 @@ }, "parameters": [ { - "$id": "560", + "$id": "498", "name": "class", "nameInRequest": "class", "type": { - "$id": "561", + "$id": "499", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7587,23 +7525,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass" }, { - "$id": "562", + "$id": "500", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "563", + "$id": "501", "name": "withConstructor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "564", + "$id": "502", "name": "constructor", "nameInRequest": "constructor", "type": { - "$id": "565", + "$id": "503", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7622,7 +7560,6 @@ ], "responses": [ { - "$id": "566", "statusCodes": [ 204 ], @@ -7641,11 +7578,11 @@ }, "parameters": [ { - "$id": "567", + "$id": "504", "name": "constructor", "nameInRequest": "constructor", "type": { - "$id": "568", + "$id": "505", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7669,23 +7606,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor" }, { - "$id": "569", + "$id": "506", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "570", + "$id": "507", "name": "withContinue", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "571", + "$id": "508", "name": "continue", "nameInRequest": "continue", "type": { - "$id": "572", + "$id": "509", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7704,7 +7641,6 @@ ], "responses": [ { - "$id": "573", "statusCodes": [ 204 ], @@ -7723,11 +7659,11 @@ }, "parameters": [ { - "$id": "574", + "$id": "510", "name": "continue", "nameInRequest": "continue", "type": { - "$id": "575", + "$id": "511", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7751,23 +7687,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue" }, { - "$id": "576", + "$id": "512", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "577", + "$id": "513", "name": "withDef", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "578", + "$id": "514", "name": "def", "nameInRequest": "def", "type": { - "$id": "579", + "$id": "515", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7786,7 +7722,6 @@ ], "responses": [ { - "$id": "580", "statusCodes": [ 204 ], @@ -7805,11 +7740,11 @@ }, "parameters": [ { - "$id": "581", + "$id": "516", "name": "def", "nameInRequest": "def", "type": { - "$id": "582", + "$id": "517", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7833,23 +7768,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef" }, { - "$id": "583", + "$id": "518", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "584", + "$id": "519", "name": "withDel", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "585", + "$id": "520", "name": "del", "nameInRequest": "del", "type": { - "$id": "586", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7868,7 +7803,6 @@ ], "responses": [ { - "$id": "587", "statusCodes": [ 204 ], @@ -7887,11 +7821,11 @@ }, "parameters": [ { - "$id": "588", + "$id": "522", "name": "del", "nameInRequest": "del", "type": { - "$id": "589", + "$id": "523", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7915,23 +7849,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel" }, { - "$id": "590", + "$id": "524", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "591", + "$id": "525", "name": "withElif", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "592", + "$id": "526", "name": "elif", "nameInRequest": "elif", "type": { - "$id": "593", + "$id": "527", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7950,7 +7884,6 @@ ], "responses": [ { - "$id": "594", "statusCodes": [ 204 ], @@ -7969,11 +7902,11 @@ }, "parameters": [ { - "$id": "595", + "$id": "528", "name": "elif", "nameInRequest": "elif", "type": { - "$id": "596", + "$id": "529", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7997,23 +7930,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif" }, { - "$id": "597", + "$id": "530", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "598", + "$id": "531", "name": "withElse", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "599", + "$id": "532", "name": "else", "nameInRequest": "else", "type": { - "$id": "600", + "$id": "533", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8032,7 +7965,6 @@ ], "responses": [ { - "$id": "601", "statusCodes": [ 204 ], @@ -8051,11 +7983,11 @@ }, "parameters": [ { - "$id": "602", + "$id": "534", "name": "else", "nameInRequest": "else", "type": { - "$id": "603", + "$id": "535", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8079,23 +8011,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse" }, { - "$id": "604", + "$id": "536", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "605", + "$id": "537", "name": "withExcept", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "606", + "$id": "538", "name": "except", "nameInRequest": "except", "type": { - "$id": "607", + "$id": "539", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8114,7 +8046,6 @@ ], "responses": [ { - "$id": "608", "statusCodes": [ 204 ], @@ -8133,11 +8064,11 @@ }, "parameters": [ { - "$id": "609", + "$id": "540", "name": "except", "nameInRequest": "except", "type": { - "$id": "610", + "$id": "541", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8161,23 +8092,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept" }, { - "$id": "611", + "$id": "542", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "612", + "$id": "543", "name": "withExec", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "613", + "$id": "544", "name": "exec", "nameInRequest": "exec", "type": { - "$id": "614", + "$id": "545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8196,7 +8127,6 @@ ], "responses": [ { - "$id": "615", "statusCodes": [ 204 ], @@ -8215,11 +8145,11 @@ }, "parameters": [ { - "$id": "616", + "$id": "546", "name": "exec", "nameInRequest": "exec", "type": { - "$id": "617", + "$id": "547", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8243,23 +8173,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec" }, { - "$id": "618", + "$id": "548", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "619", + "$id": "549", "name": "withFinally", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "620", + "$id": "550", "name": "finally", "nameInRequest": "finally", "type": { - "$id": "621", + "$id": "551", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8278,7 +8208,6 @@ ], "responses": [ { - "$id": "622", "statusCodes": [ 204 ], @@ -8297,11 +8226,11 @@ }, "parameters": [ { - "$id": "623", + "$id": "552", "name": "finally", "nameInRequest": "finally", "type": { - "$id": "624", + "$id": "553", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8325,23 +8254,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally" }, { - "$id": "625", + "$id": "554", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "626", + "$id": "555", "name": "withFor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "627", + "$id": "556", "name": "for", "nameInRequest": "for", "type": { - "$id": "628", + "$id": "557", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8360,7 +8289,6 @@ ], "responses": [ { - "$id": "629", "statusCodes": [ 204 ], @@ -8379,11 +8307,11 @@ }, "parameters": [ { - "$id": "630", + "$id": "558", "name": "for", "nameInRequest": "for", "type": { - "$id": "631", + "$id": "559", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8407,23 +8335,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor" }, { - "$id": "632", + "$id": "560", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "633", + "$id": "561", "name": "withFrom", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "634", + "$id": "562", "name": "from", "nameInRequest": "from", "type": { - "$id": "635", + "$id": "563", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8442,7 +8370,6 @@ ], "responses": [ { - "$id": "636", "statusCodes": [ 204 ], @@ -8461,11 +8388,11 @@ }, "parameters": [ { - "$id": "637", + "$id": "564", "name": "from", "nameInRequest": "from", "type": { - "$id": "638", + "$id": "565", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8489,23 +8416,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom" }, { - "$id": "639", + "$id": "566", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "640", + "$id": "567", "name": "withGlobal", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "641", + "$id": "568", "name": "global", "nameInRequest": "global", "type": { - "$id": "642", + "$id": "569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8524,7 +8451,6 @@ ], "responses": [ { - "$id": "643", "statusCodes": [ 204 ], @@ -8543,11 +8469,11 @@ }, "parameters": [ { - "$id": "644", + "$id": "570", "name": "global", "nameInRequest": "global", "type": { - "$id": "645", + "$id": "571", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8571,23 +8497,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal" }, { - "$id": "646", + "$id": "572", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "647", + "$id": "573", "name": "withIf", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "648", + "$id": "574", "name": "if", "nameInRequest": "if", "type": { - "$id": "649", + "$id": "575", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8606,7 +8532,6 @@ ], "responses": [ { - "$id": "650", "statusCodes": [ 204 ], @@ -8625,11 +8550,11 @@ }, "parameters": [ { - "$id": "651", + "$id": "576", "name": "if", "nameInRequest": "if", "type": { - "$id": "652", + "$id": "577", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8653,23 +8578,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf" }, { - "$id": "653", + "$id": "578", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "654", + "$id": "579", "name": "withImport", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "655", + "$id": "580", "name": "import", "nameInRequest": "import", "type": { - "$id": "656", + "$id": "581", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8688,7 +8613,6 @@ ], "responses": [ { - "$id": "657", "statusCodes": [ 204 ], @@ -8707,11 +8631,11 @@ }, "parameters": [ { - "$id": "658", + "$id": "582", "name": "import", "nameInRequest": "import", "type": { - "$id": "659", + "$id": "583", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8735,23 +8659,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport" }, { - "$id": "660", + "$id": "584", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "661", + "$id": "585", "name": "withIn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "662", + "$id": "586", "name": "in", "nameInRequest": "in", "type": { - "$id": "663", + "$id": "587", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8770,7 +8694,6 @@ ], "responses": [ { - "$id": "664", "statusCodes": [ 204 ], @@ -8789,11 +8712,11 @@ }, "parameters": [ { - "$id": "665", + "$id": "588", "name": "in", "nameInRequest": "in", "type": { - "$id": "666", + "$id": "589", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8817,23 +8740,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn" }, { - "$id": "667", + "$id": "590", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "668", + "$id": "591", "name": "withIs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "669", + "$id": "592", "name": "is", "nameInRequest": "is", "type": { - "$id": "670", + "$id": "593", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8852,7 +8775,6 @@ ], "responses": [ { - "$id": "671", "statusCodes": [ 204 ], @@ -8871,11 +8793,11 @@ }, "parameters": [ { - "$id": "672", + "$id": "594", "name": "is", "nameInRequest": "is", "type": { - "$id": "673", + "$id": "595", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8899,23 +8821,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs" }, { - "$id": "674", + "$id": "596", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "675", + "$id": "597", "name": "withLambda", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "676", + "$id": "598", "name": "lambda", "nameInRequest": "lambda", "type": { - "$id": "677", + "$id": "599", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8934,7 +8856,6 @@ ], "responses": [ { - "$id": "678", "statusCodes": [ 204 ], @@ -8953,11 +8874,11 @@ }, "parameters": [ { - "$id": "679", + "$id": "600", "name": "lambda", "nameInRequest": "lambda", "type": { - "$id": "680", + "$id": "601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8981,23 +8902,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda" }, { - "$id": "681", + "$id": "602", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "682", + "$id": "603", "name": "withNot", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "683", + "$id": "604", "name": "not", "nameInRequest": "not", "type": { - "$id": "684", + "$id": "605", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9016,7 +8937,6 @@ ], "responses": [ { - "$id": "685", "statusCodes": [ 204 ], @@ -9035,11 +8955,11 @@ }, "parameters": [ { - "$id": "686", + "$id": "606", "name": "not", "nameInRequest": "not", "type": { - "$id": "687", + "$id": "607", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9063,23 +8983,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot" }, { - "$id": "688", + "$id": "608", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "689", + "$id": "609", "name": "withOr", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "690", + "$id": "610", "name": "or", "nameInRequest": "or", "type": { - "$id": "691", + "$id": "611", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9098,7 +9018,6 @@ ], "responses": [ { - "$id": "692", "statusCodes": [ 204 ], @@ -9117,11 +9036,11 @@ }, "parameters": [ { - "$id": "693", + "$id": "612", "name": "or", "nameInRequest": "or", "type": { - "$id": "694", + "$id": "613", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9145,23 +9064,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr" }, { - "$id": "695", + "$id": "614", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "696", + "$id": "615", "name": "withPass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "697", + "$id": "616", "name": "pass", "nameInRequest": "pass", "type": { - "$id": "698", + "$id": "617", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9180,7 +9099,6 @@ ], "responses": [ { - "$id": "699", "statusCodes": [ 204 ], @@ -9199,11 +9117,11 @@ }, "parameters": [ { - "$id": "700", + "$id": "618", "name": "pass", "nameInRequest": "pass", "type": { - "$id": "701", + "$id": "619", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9227,23 +9145,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass" }, { - "$id": "702", + "$id": "620", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "703", + "$id": "621", "name": "withRaise", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "704", + "$id": "622", "name": "raise", "nameInRequest": "raise", "type": { - "$id": "705", + "$id": "623", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9262,7 +9180,6 @@ ], "responses": [ { - "$id": "706", "statusCodes": [ 204 ], @@ -9281,11 +9198,11 @@ }, "parameters": [ { - "$id": "707", + "$id": "624", "name": "raise", "nameInRequest": "raise", "type": { - "$id": "708", + "$id": "625", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9309,23 +9226,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise" }, { - "$id": "709", + "$id": "626", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "710", + "$id": "627", "name": "withReturn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "711", + "$id": "628", "name": "return", "nameInRequest": "return", "type": { - "$id": "712", + "$id": "629", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9344,7 +9261,6 @@ ], "responses": [ { - "$id": "713", "statusCodes": [ 204 ], @@ -9363,11 +9279,11 @@ }, "parameters": [ { - "$id": "714", + "$id": "630", "name": "return", "nameInRequest": "return", "type": { - "$id": "715", + "$id": "631", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9391,23 +9307,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn" }, { - "$id": "716", + "$id": "632", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "717", + "$id": "633", "name": "withTry", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "718", + "$id": "634", "name": "try", "nameInRequest": "try", "type": { - "$id": "719", + "$id": "635", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9426,7 +9342,6 @@ ], "responses": [ { - "$id": "720", "statusCodes": [ 204 ], @@ -9445,11 +9360,11 @@ }, "parameters": [ { - "$id": "721", + "$id": "636", "name": "try", "nameInRequest": "try", "type": { - "$id": "722", + "$id": "637", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9473,23 +9388,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry" }, { - "$id": "723", + "$id": "638", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "724", + "$id": "639", "name": "withWhile", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "725", + "$id": "640", "name": "while", "nameInRequest": "while", "type": { - "$id": "726", + "$id": "641", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9508,7 +9423,6 @@ ], "responses": [ { - "$id": "727", "statusCodes": [ 204 ], @@ -9527,11 +9441,11 @@ }, "parameters": [ { - "$id": "728", + "$id": "642", "name": "while", "nameInRequest": "while", "type": { - "$id": "729", + "$id": "643", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9555,23 +9469,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile" }, { - "$id": "730", + "$id": "644", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "731", + "$id": "645", "name": "withWith", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "732", + "$id": "646", "name": "with", "nameInRequest": "with", "type": { - "$id": "733", + "$id": "647", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9590,7 +9504,6 @@ ], "responses": [ { - "$id": "734", "statusCodes": [ 204 ], @@ -9609,11 +9522,11 @@ }, "parameters": [ { - "$id": "735", + "$id": "648", "name": "with", "nameInRequest": "with", "type": { - "$id": "736", + "$id": "649", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9637,23 +9550,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith" }, { - "$id": "737", + "$id": "650", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "738", + "$id": "651", "name": "withYield", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "739", + "$id": "652", "name": "yield", "nameInRequest": "yield", "type": { - "$id": "740", + "$id": "653", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9672,7 +9585,6 @@ ], "responses": [ { - "$id": "741", "statusCodes": [ 204 ], @@ -9691,11 +9603,11 @@ }, "parameters": [ { - "$id": "742", + "$id": "654", "name": "yield", "nameInRequest": "yield", "type": { - "$id": "743", + "$id": "655", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9719,23 +9631,23 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield" }, { - "$id": "744", + "$id": "656", "kind": "basic", "name": "withCancellationToken", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "745", + "$id": "657", "name": "withCancellationToken", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "746", + "$id": "658", "name": "cancellationToken", "nameInRequest": "cancellationToken", "type": { - "$id": "747", + "$id": "659", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9754,7 +9666,6 @@ ], "responses": [ { - "$id": "748", "statusCodes": [ 204 ], @@ -9773,11 +9684,11 @@ }, "parameters": [ { - "$id": "749", + "$id": "660", "name": "cancellationToken", "nameInRequest": "cancellationToken", "type": { - "$id": "750", + "$id": "661", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9803,10 +9714,12 @@ ], "parameters": [ { + "$id": "662", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "663", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9821,6 +9734,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "664", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 e8f0dd793de..8b4e580b127 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 @@ -494,6 +494,7 @@ "name": "children", "serializedName": "children", "type": { + "$id": "61", "kind": "array", "name": "ArrayInnerModel", "valueType": { @@ -519,7 +520,7 @@ ], "clients": [ { - "$id": "61", + "$id": "62", "kind": "client", "name": "ArrayClient", "namespace": "Type.Array", @@ -527,10 +528,12 @@ "methods": [], "parameters": [ { + "$id": "63", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "64", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -545,6 +548,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -558,26 +562,26 @@ "apiVersions": [], "children": [ { - "$id": "62", + "$id": "66", "kind": "client", "name": "Int32Value", "namespace": "Type.Array", "doc": "Array of int32 values", "methods": [ { - "$id": "63", + "$id": "67", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "64", + "$id": "68", "name": "get", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "65", + "$id": "69", "name": "accept", "nameInRequest": "Accept", "type": { @@ -596,16 +600,15 @@ ], "responses": [ { - "$id": "66", "statusCodes": [ 200 ], "bodyType": { - "$id": "67", + "$id": "70", "kind": "array", "name": "Array", "valueType": { - "$id": "68", + "$id": "71", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -632,7 +635,7 @@ }, "parameters": [ { - "$id": "69", + "$id": "72", "name": "accept", "nameInRequest": "accept", "type": { @@ -651,7 +654,7 @@ ], "response": { "type": { - "$ref": "67" + "$ref": "70" } }, "isOverride": false, @@ -660,19 +663,19 @@ "crossLanguageDefinitionId": "Type.Array.Int32Value.get" }, { - "$id": "70", + "$id": "73", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "71", + "$id": "74", "name": "put", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "75", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -690,11 +693,11 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "76", "name": "body", "nameInRequest": "body", "type": { - "$ref": "67" + "$ref": "70" }, "location": "Body", "isApiVersion": false, @@ -709,7 +712,6 @@ ], "responses": [ { - "$id": "74", "statusCodes": [ 204 ], @@ -731,11 +733,11 @@ }, "parameters": [ { - "$id": "75", + "$id": "77", "name": "body", "nameInRequest": "body", "type": { - "$ref": "67" + "$ref": "70" }, "location": "Body", "isApiVersion": false, @@ -748,7 +750,7 @@ "skipUrlEncoding": false }, { - "$id": "76", + "$id": "78", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -775,10 +777,12 @@ ], "parameters": [ { + "$id": "79", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "80", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -793,6 +797,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -805,30 +810,30 @@ "crossLanguageDefinitionId": "Type.Array.Int32Value", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "77", + "$id": "82", "kind": "client", "name": "Int64Value", "namespace": "Type.Array", "doc": "Array of int64 values", "methods": [ { - "$id": "78", + "$id": "83", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "79", + "$id": "84", "name": "get", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "80", + "$id": "85", "name": "accept", "nameInRequest": "Accept", "type": { @@ -847,16 +852,15 @@ ], "responses": [ { - "$id": "81", "statusCodes": [ 200 ], "bodyType": { - "$id": "82", + "$id": "86", "kind": "array", "name": "Array1", "valueType": { - "$id": "83", + "$id": "87", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -883,7 +887,7 @@ }, "parameters": [ { - "$id": "84", + "$id": "88", "name": "accept", "nameInRequest": "accept", "type": { @@ -902,7 +906,7 @@ ], "response": { "type": { - "$ref": "82" + "$ref": "86" } }, "isOverride": false, @@ -911,19 +915,19 @@ "crossLanguageDefinitionId": "Type.Array.Int64Value.get" }, { - "$id": "85", + "$id": "89", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "86", + "$id": "90", "name": "put", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "87", + "$id": "91", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -941,11 +945,11 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "92", "name": "body", "nameInRequest": "body", "type": { - "$ref": "82" + "$ref": "86" }, "location": "Body", "isApiVersion": false, @@ -960,7 +964,6 @@ ], "responses": [ { - "$id": "89", "statusCodes": [ 204 ], @@ -982,11 +985,11 @@ }, "parameters": [ { - "$id": "90", + "$id": "93", "name": "body", "nameInRequest": "body", "type": { - "$ref": "82" + "$ref": "86" }, "location": "Body", "isApiVersion": false, @@ -999,7 +1002,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "94", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1026,10 +1029,12 @@ ], "parameters": [ { + "$id": "95", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "96", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1044,6 +1049,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1056,30 +1062,30 @@ "crossLanguageDefinitionId": "Type.Array.Int64Value", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "92", + "$id": "98", "kind": "client", "name": "BooleanValue", "namespace": "Type.Array", "doc": "Array of boolean values", "methods": [ { - "$id": "93", + "$id": "99", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "94", + "$id": "100", "name": "get", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "101", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1098,16 +1104,15 @@ ], "responses": [ { - "$id": "96", "statusCodes": [ 200 ], "bodyType": { - "$id": "97", + "$id": "102", "kind": "array", "name": "Array2", "valueType": { - "$id": "98", + "$id": "103", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1134,7 +1139,7 @@ }, "parameters": [ { - "$id": "99", + "$id": "104", "name": "accept", "nameInRequest": "accept", "type": { @@ -1153,7 +1158,7 @@ ], "response": { "type": { - "$ref": "97" + "$ref": "102" } }, "isOverride": false, @@ -1162,19 +1167,19 @@ "crossLanguageDefinitionId": "Type.Array.BooleanValue.get" }, { - "$id": "100", + "$id": "105", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "101", + "$id": "106", "name": "put", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "102", + "$id": "107", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1192,11 +1197,11 @@ "skipUrlEncoding": false }, { - "$id": "103", + "$id": "108", "name": "body", "nameInRequest": "body", "type": { - "$ref": "97" + "$ref": "102" }, "location": "Body", "isApiVersion": false, @@ -1211,7 +1216,6 @@ ], "responses": [ { - "$id": "104", "statusCodes": [ 204 ], @@ -1233,11 +1237,11 @@ }, "parameters": [ { - "$id": "105", + "$id": "109", "name": "body", "nameInRequest": "body", "type": { - "$ref": "97" + "$ref": "102" }, "location": "Body", "isApiVersion": false, @@ -1250,7 +1254,7 @@ "skipUrlEncoding": false }, { - "$id": "106", + "$id": "110", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1277,10 +1281,12 @@ ], "parameters": [ { + "$id": "111", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "112", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1295,6 +1301,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1307,30 +1314,30 @@ "crossLanguageDefinitionId": "Type.Array.BooleanValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "107", + "$id": "114", "kind": "client", "name": "StringValue", "namespace": "Type.Array", "doc": "Array of string values", "methods": [ { - "$id": "108", + "$id": "115", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "109", + "$id": "116", "name": "get", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "110", + "$id": "117", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1349,16 +1356,15 @@ ], "responses": [ { - "$id": "111", "statusCodes": [ 200 ], "bodyType": { - "$id": "112", + "$id": "118", "kind": "array", "name": "Array3", "valueType": { - "$id": "113", + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1385,7 +1391,7 @@ }, "parameters": [ { - "$id": "114", + "$id": "120", "name": "accept", "nameInRequest": "accept", "type": { @@ -1404,7 +1410,7 @@ ], "response": { "type": { - "$ref": "112" + "$ref": "118" } }, "isOverride": false, @@ -1413,19 +1419,19 @@ "crossLanguageDefinitionId": "Type.Array.StringValue.get" }, { - "$id": "115", + "$id": "121", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "116", + "$id": "122", "name": "put", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "117", + "$id": "123", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1443,11 +1449,11 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "124", "name": "body", "nameInRequest": "body", "type": { - "$ref": "112" + "$ref": "118" }, "location": "Body", "isApiVersion": false, @@ -1462,7 +1468,6 @@ ], "responses": [ { - "$id": "119", "statusCodes": [ 204 ], @@ -1484,11 +1489,11 @@ }, "parameters": [ { - "$id": "120", + "$id": "125", "name": "body", "nameInRequest": "body", "type": { - "$ref": "112" + "$ref": "118" }, "location": "Body", "isApiVersion": false, @@ -1501,7 +1506,7 @@ "skipUrlEncoding": false }, { - "$id": "121", + "$id": "126", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1528,10 +1533,12 @@ ], "parameters": [ { + "$id": "127", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "128", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1546,6 +1553,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1558,30 +1566,30 @@ "crossLanguageDefinitionId": "Type.Array.StringValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "122", + "$id": "130", "kind": "client", "name": "Float32Value", "namespace": "Type.Array", "doc": "Array of float values", "methods": [ { - "$id": "123", + "$id": "131", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "124", + "$id": "132", "name": "get", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "125", + "$id": "133", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1600,16 +1608,15 @@ ], "responses": [ { - "$id": "126", "statusCodes": [ 200 ], "bodyType": { - "$id": "127", + "$id": "134", "kind": "array", "name": "Array4", "valueType": { - "$id": "128", + "$id": "135", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1636,7 +1643,7 @@ }, "parameters": [ { - "$id": "129", + "$id": "136", "name": "accept", "nameInRequest": "accept", "type": { @@ -1655,7 +1662,7 @@ ], "response": { "type": { - "$ref": "127" + "$ref": "134" } }, "isOverride": false, @@ -1664,19 +1671,19 @@ "crossLanguageDefinitionId": "Type.Array.Float32Value.get" }, { - "$id": "130", + "$id": "137", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "131", + "$id": "138", "name": "put", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "132", + "$id": "139", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1694,11 +1701,11 @@ "skipUrlEncoding": false }, { - "$id": "133", + "$id": "140", "name": "body", "nameInRequest": "body", "type": { - "$ref": "127" + "$ref": "134" }, "location": "Body", "isApiVersion": false, @@ -1713,7 +1720,6 @@ ], "responses": [ { - "$id": "134", "statusCodes": [ 204 ], @@ -1735,11 +1741,11 @@ }, "parameters": [ { - "$id": "135", + "$id": "141", "name": "body", "nameInRequest": "body", "type": { - "$ref": "127" + "$ref": "134" }, "location": "Body", "isApiVersion": false, @@ -1752,7 +1758,7 @@ "skipUrlEncoding": false }, { - "$id": "136", + "$id": "142", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1779,10 +1785,12 @@ ], "parameters": [ { + "$id": "143", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "144", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1797,6 +1805,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1809,30 +1818,30 @@ "crossLanguageDefinitionId": "Type.Array.Float32Value", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "137", + "$id": "146", "kind": "client", "name": "DatetimeValue", "namespace": "Type.Array", "doc": "Array of datetime values", "methods": [ { - "$id": "138", + "$id": "147", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "139", + "$id": "148", "name": "get", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "140", + "$id": "149", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1851,21 +1860,20 @@ ], "responses": [ { - "$id": "141", "statusCodes": [ 200 ], "bodyType": { - "$id": "142", + "$id": "150", "kind": "array", "name": "Array5", "valueType": { - "$id": "143", + "$id": "151", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "144", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1895,7 +1903,7 @@ }, "parameters": [ { - "$id": "145", + "$id": "153", "name": "accept", "nameInRequest": "accept", "type": { @@ -1914,7 +1922,7 @@ ], "response": { "type": { - "$ref": "142" + "$ref": "150" } }, "isOverride": false, @@ -1923,19 +1931,19 @@ "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get" }, { - "$id": "146", + "$id": "154", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "147", + "$id": "155", "name": "put", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "148", + "$id": "156", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1953,11 +1961,11 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "157", "name": "body", "nameInRequest": "body", "type": { - "$ref": "142" + "$ref": "150" }, "location": "Body", "isApiVersion": false, @@ -1972,7 +1980,6 @@ ], "responses": [ { - "$id": "150", "statusCodes": [ 204 ], @@ -1994,11 +2001,11 @@ }, "parameters": [ { - "$id": "151", + "$id": "158", "name": "body", "nameInRequest": "body", "type": { - "$ref": "142" + "$ref": "150" }, "location": "Body", "isApiVersion": false, @@ -2011,7 +2018,7 @@ "skipUrlEncoding": false }, { - "$id": "152", + "$id": "159", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2038,10 +2045,12 @@ ], "parameters": [ { + "$id": "160", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "161", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2056,6 +2065,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2068,30 +2078,30 @@ "crossLanguageDefinitionId": "Type.Array.DatetimeValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "153", + "$id": "163", "kind": "client", "name": "DurationValue", "namespace": "Type.Array", "doc": "Array of duration values", "methods": [ { - "$id": "154", + "$id": "164", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "155", + "$id": "165", "name": "get", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "156", + "$id": "166", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2110,21 +2120,20 @@ ], "responses": [ { - "$id": "157", "statusCodes": [ 200 ], "bodyType": { - "$id": "158", + "$id": "167", "kind": "array", "name": "Array6", "valueType": { - "$id": "159", + "$id": "168", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "160", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2154,7 +2163,7 @@ }, "parameters": [ { - "$id": "161", + "$id": "170", "name": "accept", "nameInRequest": "accept", "type": { @@ -2173,7 +2182,7 @@ ], "response": { "type": { - "$ref": "158" + "$ref": "167" } }, "isOverride": false, @@ -2182,19 +2191,19 @@ "crossLanguageDefinitionId": "Type.Array.DurationValue.get" }, { - "$id": "162", + "$id": "171", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "163", + "$id": "172", "name": "put", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "164", + "$id": "173", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2212,11 +2221,11 @@ "skipUrlEncoding": false }, { - "$id": "165", + "$id": "174", "name": "body", "nameInRequest": "body", "type": { - "$ref": "158" + "$ref": "167" }, "location": "Body", "isApiVersion": false, @@ -2231,7 +2240,6 @@ ], "responses": [ { - "$id": "166", "statusCodes": [ 204 ], @@ -2253,11 +2261,11 @@ }, "parameters": [ { - "$id": "167", + "$id": "175", "name": "body", "nameInRequest": "body", "type": { - "$ref": "158" + "$ref": "167" }, "location": "Body", "isApiVersion": false, @@ -2270,7 +2278,7 @@ "skipUrlEncoding": false }, { - "$id": "168", + "$id": "176", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2297,10 +2305,12 @@ ], "parameters": [ { + "$id": "177", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "178", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2315,6 +2325,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2327,30 +2338,30 @@ "crossLanguageDefinitionId": "Type.Array.DurationValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "169", + "$id": "180", "kind": "client", "name": "UnknownValue", "namespace": "Type.Array", "doc": "Array of unknown values", "methods": [ { - "$id": "170", + "$id": "181", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "171", + "$id": "182", "name": "get", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "172", + "$id": "183", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2369,16 +2380,15 @@ ], "responses": [ { - "$id": "173", "statusCodes": [ 200 ], "bodyType": { - "$id": "174", + "$id": "184", "kind": "array", "name": "Array7", "valueType": { - "$id": "175", + "$id": "185", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2405,7 +2415,7 @@ }, "parameters": [ { - "$id": "176", + "$id": "186", "name": "accept", "nameInRequest": "accept", "type": { @@ -2424,7 +2434,7 @@ ], "response": { "type": { - "$ref": "174" + "$ref": "184" } }, "isOverride": false, @@ -2433,19 +2443,19 @@ "crossLanguageDefinitionId": "Type.Array.UnknownValue.get" }, { - "$id": "177", + "$id": "187", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "178", + "$id": "188", "name": "put", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "179", + "$id": "189", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2463,11 +2473,11 @@ "skipUrlEncoding": false }, { - "$id": "180", + "$id": "190", "name": "body", "nameInRequest": "body", "type": { - "$ref": "174" + "$ref": "184" }, "location": "Body", "isApiVersion": false, @@ -2482,7 +2492,6 @@ ], "responses": [ { - "$id": "181", "statusCodes": [ 204 ], @@ -2504,11 +2513,11 @@ }, "parameters": [ { - "$id": "182", + "$id": "191", "name": "body", "nameInRequest": "body", "type": { - "$ref": "174" + "$ref": "184" }, "location": "Body", "isApiVersion": false, @@ -2521,7 +2530,7 @@ "skipUrlEncoding": false }, { - "$id": "183", + "$id": "192", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2548,10 +2557,12 @@ ], "parameters": [ { + "$id": "193", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "194", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2566,6 +2577,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "195", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2578,30 +2590,30 @@ "crossLanguageDefinitionId": "Type.Array.UnknownValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "184", + "$id": "196", "kind": "client", "name": "ModelValue", "namespace": "Type.Array", "doc": "Array of model values", "methods": [ { - "$id": "185", + "$id": "197", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "186", + "$id": "198", "name": "get", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "187", + "$id": "199", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2620,12 +2632,11 @@ ], "responses": [ { - "$id": "188", "statusCodes": [ 200 ], "bodyType": { - "$id": "189", + "$id": "200", "kind": "array", "name": "ArrayInnerModel", "valueType": { @@ -2652,7 +2663,7 @@ }, "parameters": [ { - "$id": "190", + "$id": "201", "name": "accept", "nameInRequest": "accept", "type": { @@ -2671,7 +2682,7 @@ ], "response": { "type": { - "$ref": "189" + "$ref": "200" } }, "isOverride": false, @@ -2680,19 +2691,19 @@ "crossLanguageDefinitionId": "Type.Array.ModelValue.get" }, { - "$id": "191", + "$id": "202", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "192", + "$id": "203", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "193", + "$id": "204", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2710,11 +2721,11 @@ "skipUrlEncoding": false }, { - "$id": "194", + "$id": "205", "name": "body", "nameInRequest": "body", "type": { - "$ref": "189" + "$ref": "200" }, "location": "Body", "isApiVersion": false, @@ -2729,7 +2740,6 @@ ], "responses": [ { - "$id": "195", "statusCodes": [ 204 ], @@ -2751,11 +2761,11 @@ }, "parameters": [ { - "$id": "196", + "$id": "206", "name": "body", "nameInRequest": "body", "type": { - "$ref": "189" + "$ref": "200" }, "location": "Body", "isApiVersion": false, @@ -2768,7 +2778,7 @@ "skipUrlEncoding": false }, { - "$id": "197", + "$id": "207", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2795,10 +2805,12 @@ ], "parameters": [ { + "$id": "208", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "209", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2813,6 +2825,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2825,30 +2838,30 @@ "crossLanguageDefinitionId": "Type.Array.ModelValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "198", + "$id": "211", "kind": "client", "name": "NullableFloatValue", "namespace": "Type.Array", "doc": "Array of nullable float values", "methods": [ { - "$id": "199", + "$id": "212", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "200", + "$id": "213", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "201", + "$id": "214", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2867,19 +2880,18 @@ ], "responses": [ { - "$id": "202", "statusCodes": [ 200 ], "bodyType": { - "$id": "203", + "$id": "215", "kind": "array", "name": "Array8", "valueType": { - "$id": "204", + "$id": "216", "kind": "nullable", "type": { - "$id": "205", + "$id": "217", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2908,7 +2920,7 @@ }, "parameters": [ { - "$id": "206", + "$id": "218", "name": "accept", "nameInRequest": "accept", "type": { @@ -2927,7 +2939,7 @@ ], "response": { "type": { - "$ref": "203" + "$ref": "215" } }, "isOverride": false, @@ -2936,19 +2948,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" }, { - "$id": "207", + "$id": "219", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "208", + "$id": "220", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "209", + "$id": "221", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2966,11 +2978,11 @@ "skipUrlEncoding": false }, { - "$id": "210", + "$id": "222", "name": "body", "nameInRequest": "body", "type": { - "$ref": "203" + "$ref": "215" }, "location": "Body", "isApiVersion": false, @@ -2985,7 +2997,6 @@ ], "responses": [ { - "$id": "211", "statusCodes": [ 204 ], @@ -3007,11 +3018,11 @@ }, "parameters": [ { - "$id": "212", + "$id": "223", "name": "body", "nameInRequest": "body", "type": { - "$ref": "203" + "$ref": "215" }, "location": "Body", "isApiVersion": false, @@ -3024,7 +3035,7 @@ "skipUrlEncoding": false }, { - "$id": "213", + "$id": "224", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3051,10 +3062,12 @@ ], "parameters": [ { + "$id": "225", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "226", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3069,6 +3082,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3081,30 +3095,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "214", + "$id": "228", "kind": "client", "name": "NullableInt32Value", "namespace": "Type.Array", "doc": "Array of nullable int32 values", "methods": [ { - "$id": "215", + "$id": "229", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "216", + "$id": "230", "name": "get", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "217", + "$id": "231", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3123,19 +3137,18 @@ ], "responses": [ { - "$id": "218", "statusCodes": [ 200 ], "bodyType": { - "$id": "219", + "$id": "232", "kind": "array", "name": "Array9", "valueType": { - "$id": "220", + "$id": "233", "kind": "nullable", "type": { - "$id": "221", + "$id": "234", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3164,7 +3177,7 @@ }, "parameters": [ { - "$id": "222", + "$id": "235", "name": "accept", "nameInRequest": "accept", "type": { @@ -3183,7 +3196,7 @@ ], "response": { "type": { - "$ref": "219" + "$ref": "232" } }, "isOverride": false, @@ -3192,19 +3205,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" }, { - "$id": "223", + "$id": "236", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "224", + "$id": "237", "name": "put", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "225", + "$id": "238", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3222,11 +3235,11 @@ "skipUrlEncoding": false }, { - "$id": "226", + "$id": "239", "name": "body", "nameInRequest": "body", "type": { - "$ref": "219" + "$ref": "232" }, "location": "Body", "isApiVersion": false, @@ -3241,7 +3254,6 @@ ], "responses": [ { - "$id": "227", "statusCodes": [ 204 ], @@ -3263,11 +3275,11 @@ }, "parameters": [ { - "$id": "228", + "$id": "240", "name": "body", "nameInRequest": "body", "type": { - "$ref": "219" + "$ref": "232" }, "location": "Body", "isApiVersion": false, @@ -3280,7 +3292,7 @@ "skipUrlEncoding": false }, { - "$id": "229", + "$id": "241", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3307,10 +3319,12 @@ ], "parameters": [ { + "$id": "242", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "243", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3325,6 +3339,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3337,30 +3352,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "230", + "$id": "245", "kind": "client", "name": "NullableBooleanValue", "namespace": "Type.Array", "doc": "Array of nullable boolean values", "methods": [ { - "$id": "231", + "$id": "246", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "232", + "$id": "247", "name": "get", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "248", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3379,19 +3394,18 @@ ], "responses": [ { - "$id": "234", "statusCodes": [ 200 ], "bodyType": { - "$id": "235", + "$id": "249", "kind": "array", "name": "Array10", "valueType": { - "$id": "236", + "$id": "250", "kind": "nullable", "type": { - "$id": "237", + "$id": "251", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3420,7 +3434,7 @@ }, "parameters": [ { - "$id": "238", + "$id": "252", "name": "accept", "nameInRequest": "accept", "type": { @@ -3439,7 +3453,7 @@ ], "response": { "type": { - "$ref": "235" + "$ref": "249" } }, "isOverride": false, @@ -3448,19 +3462,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" }, { - "$id": "239", + "$id": "253", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "240", + "$id": "254", "name": "put", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "241", + "$id": "255", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3478,11 +3492,11 @@ "skipUrlEncoding": false }, { - "$id": "242", + "$id": "256", "name": "body", "nameInRequest": "body", "type": { - "$ref": "235" + "$ref": "249" }, "location": "Body", "isApiVersion": false, @@ -3497,7 +3511,6 @@ ], "responses": [ { - "$id": "243", "statusCodes": [ 204 ], @@ -3519,11 +3532,11 @@ }, "parameters": [ { - "$id": "244", + "$id": "257", "name": "body", "nameInRequest": "body", "type": { - "$ref": "235" + "$ref": "249" }, "location": "Body", "isApiVersion": false, @@ -3536,7 +3549,7 @@ "skipUrlEncoding": false }, { - "$id": "245", + "$id": "258", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3563,10 +3576,12 @@ ], "parameters": [ { + "$id": "259", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "260", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3581,6 +3596,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "261", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3593,30 +3609,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "246", + "$id": "262", "kind": "client", "name": "NullableStringValue", "namespace": "Type.Array", "doc": "Array of nullable string values", "methods": [ { - "$id": "247", + "$id": "263", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "248", + "$id": "264", "name": "get", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "249", + "$id": "265", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3635,19 +3651,18 @@ ], "responses": [ { - "$id": "250", "statusCodes": [ 200 ], "bodyType": { - "$id": "251", + "$id": "266", "kind": "array", "name": "Array11", "valueType": { - "$id": "252", + "$id": "267", "kind": "nullable", "type": { - "$id": "253", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3676,7 +3691,7 @@ }, "parameters": [ { - "$id": "254", + "$id": "269", "name": "accept", "nameInRequest": "accept", "type": { @@ -3695,7 +3710,7 @@ ], "response": { "type": { - "$ref": "251" + "$ref": "266" } }, "isOverride": false, @@ -3704,19 +3719,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" }, { - "$id": "255", + "$id": "270", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "256", + "$id": "271", "name": "put", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "257", + "$id": "272", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3734,11 +3749,11 @@ "skipUrlEncoding": false }, { - "$id": "258", + "$id": "273", "name": "body", "nameInRequest": "body", "type": { - "$ref": "251" + "$ref": "266" }, "location": "Body", "isApiVersion": false, @@ -3753,7 +3768,6 @@ ], "responses": [ { - "$id": "259", "statusCodes": [ 204 ], @@ -3775,11 +3789,11 @@ }, "parameters": [ { - "$id": "260", + "$id": "274", "name": "body", "nameInRequest": "body", "type": { - "$ref": "251" + "$ref": "266" }, "location": "Body", "isApiVersion": false, @@ -3792,7 +3806,7 @@ "skipUrlEncoding": false }, { - "$id": "261", + "$id": "275", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3819,10 +3833,12 @@ ], "parameters": [ { + "$id": "276", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "277", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3837,6 +3853,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "278", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3849,30 +3866,30 @@ "crossLanguageDefinitionId": "Type.Array.NullableStringValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } }, { - "$id": "262", + "$id": "279", "kind": "client", "name": "NullableModelValue", "namespace": "Type.Array", "doc": "Array of nullable model values", "methods": [ { - "$id": "263", + "$id": "280", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "264", + "$id": "281", "name": "get", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "265", + "$id": "282", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3891,16 +3908,15 @@ ], "responses": [ { - "$id": "266", "statusCodes": [ 200 ], "bodyType": { - "$id": "267", + "$id": "283", "kind": "array", "name": "Array12", "valueType": { - "$id": "268", + "$id": "284", "kind": "nullable", "type": { "$ref": "57" @@ -3928,7 +3944,7 @@ }, "parameters": [ { - "$id": "269", + "$id": "285", "name": "accept", "nameInRequest": "accept", "type": { @@ -3947,7 +3963,7 @@ ], "response": { "type": { - "$ref": "267" + "$ref": "283" } }, "isOverride": false, @@ -3956,19 +3972,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" }, { - "$id": "270", + "$id": "286", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "271", + "$id": "287", "name": "put", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "272", + "$id": "288", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3986,11 +4002,11 @@ "skipUrlEncoding": false }, { - "$id": "273", + "$id": "289", "name": "body", "nameInRequest": "body", "type": { - "$ref": "267" + "$ref": "283" }, "location": "Body", "isApiVersion": false, @@ -4005,7 +4021,6 @@ ], "responses": [ { - "$id": "274", "statusCodes": [ 204 ], @@ -4027,11 +4042,11 @@ }, "parameters": [ { - "$id": "275", + "$id": "290", "name": "body", "nameInRequest": "body", "type": { - "$ref": "267" + "$ref": "283" }, "location": "Body", "isApiVersion": false, @@ -4044,7 +4059,7 @@ "skipUrlEncoding": false }, { - "$id": "276", + "$id": "291", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4071,10 +4086,12 @@ ], "parameters": [ { + "$id": "292", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "293", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4089,6 +4106,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4101,7 +4119,7 @@ "crossLanguageDefinitionId": "Type.Array.NullableModelValue", "apiVersions": [], "parent": { - "$ref": "61" + "$ref": "62" } } ] 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 79eef5074be..dff6bd82c2c 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 @@ -398,9 +398,10 @@ "name": "children", "serializedName": "children", "type": { + "$id": "49", "kind": "dict", "keyType": { - "$id": "49", + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -428,7 +429,7 @@ ], "clients": [ { - "$id": "50", + "$id": "51", "kind": "client", "name": "DictionaryClient", "namespace": "Type.Dictionary", @@ -436,10 +437,12 @@ "methods": [], "parameters": [ { + "$id": "52", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "53", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -454,6 +457,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -467,26 +471,26 @@ "apiVersions": [], "children": [ { - "$id": "51", + "$id": "55", "kind": "client", "name": "Int32Value", "namespace": "Type.Dictionary", "doc": "Dictionary of int32 values", "methods": [ { - "$id": "52", + "$id": "56", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "53", + "$id": "57", "name": "get", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "54", + "$id": "58", "name": "accept", "nameInRequest": "Accept", "type": { @@ -505,22 +509,21 @@ ], "responses": [ { - "$id": "55", "statusCodes": [ 200 ], "bodyType": { - "$id": "56", + "$id": "59", "kind": "dict", "keyType": { - "$id": "57", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "58", + "$id": "61", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -546,7 +549,7 @@ }, "parameters": [ { - "$id": "59", + "$id": "62", "name": "accept", "nameInRequest": "accept", "type": { @@ -565,7 +568,7 @@ ], "response": { "type": { - "$ref": "56" + "$ref": "59" } }, "isOverride": false, @@ -574,19 +577,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get" }, { - "$id": "60", + "$id": "63", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "61", + "$id": "64", "name": "put", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "65", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -604,11 +607,11 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "66", "name": "body", "nameInRequest": "body", "type": { - "$ref": "56" + "$ref": "59" }, "location": "Body", "isApiVersion": false, @@ -623,7 +626,6 @@ ], "responses": [ { - "$id": "64", "statusCodes": [ 204 ], @@ -645,11 +647,11 @@ }, "parameters": [ { - "$id": "65", + "$id": "67", "name": "body", "nameInRequest": "body", "type": { - "$ref": "56" + "$ref": "59" }, "location": "Body", "isApiVersion": false, @@ -662,7 +664,7 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "68", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -689,10 +691,12 @@ ], "parameters": [ { + "$id": "69", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "70", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -707,6 +711,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -719,30 +724,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "67", + "$id": "72", "kind": "client", "name": "Int64Value", "namespace": "Type.Dictionary", "doc": "Dictionary of int64 values", "methods": [ { - "$id": "68", + "$id": "73", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "69", + "$id": "74", "name": "get", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "70", + "$id": "75", "name": "accept", "nameInRequest": "Accept", "type": { @@ -761,22 +766,21 @@ ], "responses": [ { - "$id": "71", "statusCodes": [ 200 ], "bodyType": { - "$id": "72", + "$id": "76", "kind": "dict", "keyType": { - "$id": "73", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "74", + "$id": "78", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -802,7 +806,7 @@ }, "parameters": [ { - "$id": "75", + "$id": "79", "name": "accept", "nameInRequest": "accept", "type": { @@ -821,7 +825,7 @@ ], "response": { "type": { - "$ref": "72" + "$ref": "76" } }, "isOverride": false, @@ -830,19 +834,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get" }, { - "$id": "76", + "$id": "80", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "77", + "$id": "81", "name": "put", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "82", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -860,11 +864,11 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "83", "name": "body", "nameInRequest": "body", "type": { - "$ref": "72" + "$ref": "76" }, "location": "Body", "isApiVersion": false, @@ -879,7 +883,6 @@ ], "responses": [ { - "$id": "80", "statusCodes": [ 204 ], @@ -901,11 +904,11 @@ }, "parameters": [ { - "$id": "81", + "$id": "84", "name": "body", "nameInRequest": "body", "type": { - "$ref": "72" + "$ref": "76" }, "location": "Body", "isApiVersion": false, @@ -918,7 +921,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "85", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -945,10 +948,12 @@ ], "parameters": [ { + "$id": "86", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "87", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -963,6 +968,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -975,30 +981,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "83", + "$id": "89", "kind": "client", "name": "BooleanValue", "namespace": "Type.Dictionary", "doc": "Dictionary of boolean values", "methods": [ { - "$id": "84", + "$id": "90", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "85", + "$id": "91", "name": "get", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "86", + "$id": "92", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1017,22 +1023,21 @@ ], "responses": [ { - "$id": "87", "statusCodes": [ 200 ], "bodyType": { - "$id": "88", + "$id": "93", "kind": "dict", "keyType": { - "$id": "89", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "90", + "$id": "95", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1058,7 +1063,7 @@ }, "parameters": [ { - "$id": "91", + "$id": "96", "name": "accept", "nameInRequest": "accept", "type": { @@ -1077,7 +1082,7 @@ ], "response": { "type": { - "$ref": "88" + "$ref": "93" } }, "isOverride": false, @@ -1086,19 +1091,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get" }, { - "$id": "92", + "$id": "97", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "93", + "$id": "98", "name": "put", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "94", + "$id": "99", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1116,11 +1121,11 @@ "skipUrlEncoding": false }, { - "$id": "95", + "$id": "100", "name": "body", "nameInRequest": "body", "type": { - "$ref": "88" + "$ref": "93" }, "location": "Body", "isApiVersion": false, @@ -1135,7 +1140,6 @@ ], "responses": [ { - "$id": "96", "statusCodes": [ 204 ], @@ -1157,11 +1161,11 @@ }, "parameters": [ { - "$id": "97", + "$id": "101", "name": "body", "nameInRequest": "body", "type": { - "$ref": "88" + "$ref": "93" }, "location": "Body", "isApiVersion": false, @@ -1174,7 +1178,7 @@ "skipUrlEncoding": false }, { - "$id": "98", + "$id": "102", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1201,10 +1205,12 @@ ], "parameters": [ { + "$id": "103", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "104", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1219,6 +1225,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1231,30 +1238,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "99", + "$id": "106", "kind": "client", "name": "StringValue", "namespace": "Type.Dictionary", "doc": "Dictionary of string values", "methods": [ { - "$id": "100", + "$id": "107", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "101", + "$id": "108", "name": "get", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "102", + "$id": "109", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1273,22 +1280,21 @@ ], "responses": [ { - "$id": "103", "statusCodes": [ 200 ], "bodyType": { - "$id": "104", + "$id": "110", "kind": "dict", "keyType": { - "$id": "105", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "106", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1314,7 +1320,7 @@ }, "parameters": [ { - "$id": "107", + "$id": "113", "name": "accept", "nameInRequest": "accept", "type": { @@ -1333,7 +1339,7 @@ ], "response": { "type": { - "$ref": "104" + "$ref": "110" } }, "isOverride": false, @@ -1342,19 +1348,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get" }, { - "$id": "108", + "$id": "114", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "109", + "$id": "115", "name": "put", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "110", + "$id": "116", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1372,11 +1378,11 @@ "skipUrlEncoding": false }, { - "$id": "111", + "$id": "117", "name": "body", "nameInRequest": "body", "type": { - "$ref": "104" + "$ref": "110" }, "location": "Body", "isApiVersion": false, @@ -1391,7 +1397,6 @@ ], "responses": [ { - "$id": "112", "statusCodes": [ 204 ], @@ -1413,11 +1418,11 @@ }, "parameters": [ { - "$id": "113", + "$id": "118", "name": "body", "nameInRequest": "body", "type": { - "$ref": "104" + "$ref": "110" }, "location": "Body", "isApiVersion": false, @@ -1430,7 +1435,7 @@ "skipUrlEncoding": false }, { - "$id": "114", + "$id": "119", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1457,10 +1462,12 @@ ], "parameters": [ { + "$id": "120", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "121", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1475,6 +1482,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1487,30 +1495,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.StringValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "115", + "$id": "123", "kind": "client", "name": "Float32Value", "namespace": "Type.Dictionary", "doc": "Dictionary of float values", "methods": [ { - "$id": "116", + "$id": "124", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "117", + "$id": "125", "name": "get", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "118", + "$id": "126", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1529,22 +1537,21 @@ ], "responses": [ { - "$id": "119", "statusCodes": [ 200 ], "bodyType": { - "$id": "120", + "$id": "127", "kind": "dict", "keyType": { - "$id": "121", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "122", + "$id": "129", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1570,7 +1577,7 @@ }, "parameters": [ { - "$id": "123", + "$id": "130", "name": "accept", "nameInRequest": "accept", "type": { @@ -1589,7 +1596,7 @@ ], "response": { "type": { - "$ref": "120" + "$ref": "127" } }, "isOverride": false, @@ -1598,19 +1605,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get" }, { - "$id": "124", + "$id": "131", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "125", + "$id": "132", "name": "put", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "126", + "$id": "133", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1628,11 +1635,11 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "134", "name": "body", "nameInRequest": "body", "type": { - "$ref": "120" + "$ref": "127" }, "location": "Body", "isApiVersion": false, @@ -1647,7 +1654,6 @@ ], "responses": [ { - "$id": "128", "statusCodes": [ 204 ], @@ -1669,11 +1675,11 @@ }, "parameters": [ { - "$id": "129", + "$id": "135", "name": "body", "nameInRequest": "body", "type": { - "$ref": "120" + "$ref": "127" }, "location": "Body", "isApiVersion": false, @@ -1686,7 +1692,7 @@ "skipUrlEncoding": false }, { - "$id": "130", + "$id": "136", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1713,10 +1719,12 @@ ], "parameters": [ { + "$id": "137", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "138", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1731,6 +1739,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1743,30 +1752,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "131", + "$id": "140", "kind": "client", "name": "DatetimeValue", "namespace": "Type.Dictionary", "doc": "Dictionary of datetime values", "methods": [ { - "$id": "132", + "$id": "141", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "133", + "$id": "142", "name": "get", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "134", + "$id": "143", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1785,27 +1794,26 @@ ], "responses": [ { - "$id": "135", "statusCodes": [ 200 ], "bodyType": { - "$id": "136", + "$id": "144", "kind": "dict", "keyType": { - "$id": "137", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "138", + "$id": "146", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "139", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1834,7 +1842,7 @@ }, "parameters": [ { - "$id": "140", + "$id": "148", "name": "accept", "nameInRequest": "accept", "type": { @@ -1853,7 +1861,7 @@ ], "response": { "type": { - "$ref": "136" + "$ref": "144" } }, "isOverride": false, @@ -1862,19 +1870,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get" }, { - "$id": "141", + "$id": "149", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "142", + "$id": "150", "name": "put", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "151", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1892,11 +1900,11 @@ "skipUrlEncoding": false }, { - "$id": "144", + "$id": "152", "name": "body", "nameInRequest": "body", "type": { - "$ref": "136" + "$ref": "144" }, "location": "Body", "isApiVersion": false, @@ -1911,7 +1919,6 @@ ], "responses": [ { - "$id": "145", "statusCodes": [ 204 ], @@ -1933,11 +1940,11 @@ }, "parameters": [ { - "$id": "146", + "$id": "153", "name": "body", "nameInRequest": "body", "type": { - "$ref": "136" + "$ref": "144" }, "location": "Body", "isApiVersion": false, @@ -1950,7 +1957,7 @@ "skipUrlEncoding": false }, { - "$id": "147", + "$id": "154", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1977,10 +1984,12 @@ ], "parameters": [ { + "$id": "155", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "156", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1995,6 +2004,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2007,30 +2017,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "148", + "$id": "158", "kind": "client", "name": "DurationValue", "namespace": "Type.Dictionary", "doc": "Dictionary of duration values", "methods": [ { - "$id": "149", + "$id": "159", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "150", + "$id": "160", "name": "get", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "151", + "$id": "161", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2049,27 +2059,26 @@ ], "responses": [ { - "$id": "152", "statusCodes": [ 200 ], "bodyType": { - "$id": "153", + "$id": "162", "kind": "dict", "keyType": { - "$id": "154", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "155", + "$id": "164", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "156", + "$id": "165", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2098,7 +2107,7 @@ }, "parameters": [ { - "$id": "157", + "$id": "166", "name": "accept", "nameInRequest": "accept", "type": { @@ -2117,7 +2126,7 @@ ], "response": { "type": { - "$ref": "153" + "$ref": "162" } }, "isOverride": false, @@ -2126,19 +2135,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get" }, { - "$id": "158", + "$id": "167", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "159", + "$id": "168", "name": "put", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "160", + "$id": "169", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2156,11 +2165,11 @@ "skipUrlEncoding": false }, { - "$id": "161", + "$id": "170", "name": "body", "nameInRequest": "body", "type": { - "$ref": "153" + "$ref": "162" }, "location": "Body", "isApiVersion": false, @@ -2175,7 +2184,6 @@ ], "responses": [ { - "$id": "162", "statusCodes": [ 204 ], @@ -2197,11 +2205,11 @@ }, "parameters": [ { - "$id": "163", + "$id": "171", "name": "body", "nameInRequest": "body", "type": { - "$ref": "153" + "$ref": "162" }, "location": "Body", "isApiVersion": false, @@ -2214,7 +2222,7 @@ "skipUrlEncoding": false }, { - "$id": "164", + "$id": "172", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2241,10 +2249,12 @@ ], "parameters": [ { + "$id": "173", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "174", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2259,6 +2269,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2271,30 +2282,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "165", + "$id": "176", "kind": "client", "name": "UnknownValue", "namespace": "Type.Dictionary", "doc": "Dictionary of unknown values", "methods": [ { - "$id": "166", + "$id": "177", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "167", + "$id": "178", "name": "get", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "168", + "$id": "179", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2313,22 +2324,21 @@ ], "responses": [ { - "$id": "169", "statusCodes": [ 200 ], "bodyType": { - "$id": "170", + "$id": "180", "kind": "dict", "keyType": { - "$id": "171", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "172", + "$id": "182", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2354,7 +2364,7 @@ }, "parameters": [ { - "$id": "173", + "$id": "183", "name": "accept", "nameInRequest": "accept", "type": { @@ -2373,7 +2383,7 @@ ], "response": { "type": { - "$ref": "170" + "$ref": "180" } }, "isOverride": false, @@ -2382,19 +2392,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get" }, { - "$id": "174", + "$id": "184", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "175", + "$id": "185", "name": "put", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "176", + "$id": "186", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2412,11 +2422,11 @@ "skipUrlEncoding": false }, { - "$id": "177", + "$id": "187", "name": "body", "nameInRequest": "body", "type": { - "$ref": "170" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -2431,7 +2441,6 @@ ], "responses": [ { - "$id": "178", "statusCodes": [ 204 ], @@ -2453,11 +2462,11 @@ }, "parameters": [ { - "$id": "179", + "$id": "188", "name": "body", "nameInRequest": "body", "type": { - "$ref": "170" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -2470,7 +2479,7 @@ "skipUrlEncoding": false }, { - "$id": "180", + "$id": "189", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2497,10 +2506,12 @@ ], "parameters": [ { + "$id": "190", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "191", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2515,6 +2526,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "192", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2527,30 +2539,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "181", + "$id": "193", "kind": "client", "name": "ModelValue", "namespace": "Type.Dictionary", "doc": "Dictionary of model values", "methods": [ { - "$id": "182", + "$id": "194", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "183", + "$id": "195", "name": "get", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "184", + "$id": "196", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2569,15 +2581,14 @@ ], "responses": [ { - "$id": "185", "statusCodes": [ 200 ], "bodyType": { - "$id": "186", + "$id": "197", "kind": "dict", "keyType": { - "$ref": "49" + "$ref": "50" }, "valueType": { "$ref": "45" @@ -2602,7 +2613,7 @@ }, "parameters": [ { - "$id": "187", + "$id": "198", "name": "accept", "nameInRequest": "accept", "type": { @@ -2621,7 +2632,7 @@ ], "response": { "type": { - "$ref": "186" + "$ref": "197" } }, "isOverride": false, @@ -2630,19 +2641,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" }, { - "$id": "188", + "$id": "199", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "189", + "$id": "200", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "190", + "$id": "201", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2660,11 +2671,11 @@ "skipUrlEncoding": false }, { - "$id": "191", + "$id": "202", "name": "body", "nameInRequest": "body", "type": { - "$ref": "186" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -2679,7 +2690,6 @@ ], "responses": [ { - "$id": "192", "statusCodes": [ 204 ], @@ -2701,11 +2711,11 @@ }, "parameters": [ { - "$id": "193", + "$id": "203", "name": "body", "nameInRequest": "body", "type": { - "$ref": "186" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -2718,7 +2728,7 @@ "skipUrlEncoding": false }, { - "$id": "194", + "$id": "204", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2745,10 +2755,12 @@ ], "parameters": [ { + "$id": "205", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "206", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2763,6 +2775,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2775,30 +2788,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "195", + "$id": "208", "kind": "client", "name": "RecursiveModelValue", "namespace": "Type.Dictionary", "doc": "Dictionary of model values", "methods": [ { - "$id": "196", + "$id": "209", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "197", + "$id": "210", "name": "get", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "198", + "$id": "211", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2817,12 +2830,11 @@ ], "responses": [ { - "$id": "199", "statusCodes": [ 200 ], "bodyType": { - "$ref": "186" + "$ref": "197" }, "headers": [], "isErrorResponse": false, @@ -2842,7 +2854,7 @@ }, "parameters": [ { - "$id": "200", + "$id": "212", "name": "accept", "nameInRequest": "accept", "type": { @@ -2861,7 +2873,7 @@ ], "response": { "type": { - "$ref": "186" + "$ref": "197" } }, "isOverride": false, @@ -2870,19 +2882,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" }, { - "$id": "201", + "$id": "213", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "202", + "$id": "214", "name": "put", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "203", + "$id": "215", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2900,11 +2912,11 @@ "skipUrlEncoding": false }, { - "$id": "204", + "$id": "216", "name": "body", "nameInRequest": "body", "type": { - "$ref": "186" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -2919,7 +2931,6 @@ ], "responses": [ { - "$id": "205", "statusCodes": [ 204 ], @@ -2941,11 +2952,11 @@ }, "parameters": [ { - "$id": "206", + "$id": "217", "name": "body", "nameInRequest": "body", "type": { - "$ref": "186" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -2958,7 +2969,7 @@ "skipUrlEncoding": false }, { - "$id": "207", + "$id": "218", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2985,10 +2996,12 @@ ], "parameters": [ { + "$id": "219", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "220", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3003,6 +3016,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "221", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3015,30 +3029,30 @@ "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } }, { - "$id": "208", + "$id": "222", "kind": "client", "name": "NullableFloatValue", "namespace": "Type.Dictionary", "doc": "Dictionary of nullable float values", "methods": [ { - "$id": "209", + "$id": "223", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "210", + "$id": "224", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "211", + "$id": "225", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3057,25 +3071,24 @@ ], "responses": [ { - "$id": "212", "statusCodes": [ 200 ], "bodyType": { - "$id": "213", + "$id": "226", "kind": "dict", "keyType": { - "$id": "214", + "$id": "227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "215", + "$id": "228", "kind": "nullable", "type": { - "$id": "216", + "$id": "229", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -3103,7 +3116,7 @@ }, "parameters": [ { - "$id": "217", + "$id": "230", "name": "accept", "nameInRequest": "accept", "type": { @@ -3122,7 +3135,7 @@ ], "response": { "type": { - "$ref": "213" + "$ref": "226" } }, "isOverride": false, @@ -3131,19 +3144,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" }, { - "$id": "218", + "$id": "231", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "219", + "$id": "232", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "220", + "$id": "233", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3161,11 +3174,11 @@ "skipUrlEncoding": false }, { - "$id": "221", + "$id": "234", "name": "body", "nameInRequest": "body", "type": { - "$ref": "213" + "$ref": "226" }, "location": "Body", "isApiVersion": false, @@ -3180,7 +3193,6 @@ ], "responses": [ { - "$id": "222", "statusCodes": [ 204 ], @@ -3202,11 +3214,11 @@ }, "parameters": [ { - "$id": "223", + "$id": "235", "name": "body", "nameInRequest": "body", "type": { - "$ref": "213" + "$ref": "226" }, "location": "Body", "isApiVersion": false, @@ -3219,7 +3231,7 @@ "skipUrlEncoding": false }, { - "$id": "224", + "$id": "236", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3246,10 +3258,12 @@ ], "parameters": [ { + "$id": "237", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "238", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3264,6 +3278,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "239", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3276,7 +3291,7 @@ "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", "apiVersions": [], "parent": { - "$ref": "50" + "$ref": "51" } } ] 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 07996bea3bc..1f74b307e15 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 @@ -262,10 +262,12 @@ "methods": [], "parameters": [ { + "$id": "27", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "28", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -280,6 +282,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -293,25 +296,25 @@ "apiVersions": [], "children": [ { - "$id": "27", + "$id": "30", "kind": "client", "name": "String", "namespace": "Type.Enum.Extensible", "methods": [ { - "$id": "28", + "$id": "31", "kind": "basic", "name": "getKnownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "32", "name": "getKnownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "33", "name": "accept", "nameInRequest": "Accept", "type": { @@ -330,7 +333,6 @@ ], "responses": [ { - "$id": "31", "statusCodes": [ 200 ], @@ -363,7 +365,7 @@ }, "parameters": [ { - "$id": "32", + "$id": "34", "name": "accept", "nameInRequest": "accept", "type": { @@ -391,19 +393,19 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue" }, { - "$id": "33", + "$id": "35", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "34", + "$id": "36", "name": "getUnknownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "35", + "$id": "37", "name": "accept", "nameInRequest": "Accept", "type": { @@ -422,7 +424,6 @@ ], "responses": [ { - "$id": "36", "statusCodes": [ 200 ], @@ -455,7 +456,7 @@ }, "parameters": [ { - "$id": "37", + "$id": "38", "name": "accept", "nameInRequest": "accept", "type": { @@ -483,19 +484,19 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue" }, { - "$id": "38", + "$id": "39", "kind": "basic", "name": "putKnownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "39", + "$id": "40", "name": "putKnownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "40", + "$id": "41", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -512,7 +513,7 @@ "skipUrlEncoding": false }, { - "$id": "41", + "$id": "42", "name": "body", "nameInRequest": "body", "type": { @@ -531,7 +532,6 @@ ], "responses": [ { - "$id": "42", "statusCodes": [ 204 ], @@ -642,7 +642,6 @@ ], "responses": [ { - "$id": "49", "statusCodes": [ 204 ], @@ -664,7 +663,7 @@ }, "parameters": [ { - "$id": "50", + "$id": "49", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -681,7 +680,7 @@ "skipUrlEncoding": false }, { - "$id": "51", + "$id": "50", "name": "body", "nameInRequest": "body", "type": { @@ -707,10 +706,12 @@ ], "parameters": [ { + "$id": "51", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "52", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -725,6 +726,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.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 b4e8c54247b..d29d2e331a2 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 @@ -230,10 +230,12 @@ "methods": [], "parameters": [ { + "$id": "23", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "24", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -248,6 +250,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -261,27 +264,27 @@ "apiVersions": [], "children": [ { - "$id": "23", + "$id": "26", "kind": "client", "name": "String", "namespace": "Type.Enum.Fixed", "methods": [ { - "$id": "24", + "$id": "27", "kind": "basic", "name": "getKnownValue", "accessibility": "public", "apiVersions": [], "doc": "getKnownValue", "operation": { - "$id": "25", + "$id": "28", "name": "getKnownValue", "resourceName": "String", "doc": "getKnownValue", "accessibility": "public", "parameters": [ { - "$id": "26", + "$id": "29", "name": "accept", "nameInRequest": "Accept", "type": { @@ -300,7 +303,6 @@ ], "responses": [ { - "$id": "27", "statusCodes": [ 200 ], @@ -333,7 +335,7 @@ }, "parameters": [ { - "$id": "28", + "$id": "30", "name": "accept", "nameInRequest": "accept", "type": { @@ -361,21 +363,21 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue" }, { - "$id": "29", + "$id": "31", "kind": "basic", "name": "putKnownValue", "accessibility": "public", "apiVersions": [], "doc": "putKnownValue", "operation": { - "$id": "30", + "$id": "32", "name": "putKnownValue", "resourceName": "String", "doc": "putKnownValue", "accessibility": "public", "parameters": [ { - "$id": "31", + "$id": "33", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -392,7 +394,7 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "34", "name": "body", "nameInRequest": "body", "doc": "_", @@ -412,7 +414,6 @@ ], "responses": [ { - "$id": "33", "statusCodes": [ 204 ], @@ -434,7 +435,7 @@ }, "parameters": [ { - "$id": "34", + "$id": "35", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -451,7 +452,7 @@ "skipUrlEncoding": false }, { - "$id": "35", + "$id": "36", "name": "body", "nameInRequest": "body", "doc": "_", @@ -476,21 +477,21 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue" }, { - "$id": "36", + "$id": "37", "kind": "basic", "name": "putUnknownValue", "accessibility": "public", "apiVersions": [], "doc": "putUnknownValue", "operation": { - "$id": "37", + "$id": "38", "name": "putUnknownValue", "resourceName": "String", "doc": "putUnknownValue", "accessibility": "public", "parameters": [ { - "$id": "38", + "$id": "39", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -507,7 +508,7 @@ "skipUrlEncoding": false }, { - "$id": "39", + "$id": "40", "name": "body", "nameInRequest": "body", "doc": "_", @@ -527,7 +528,6 @@ ], "responses": [ { - "$id": "40", "statusCodes": [ 204 ], @@ -593,10 +593,12 @@ ], "parameters": [ { + "$id": "43", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "44", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -611,6 +613,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.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 3c772e73d5b..43ec010c9d9 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 @@ -161,7 +161,6 @@ ], "responses": [ { - "$id": "17", "statusCodes": [ 204 ], @@ -183,7 +182,7 @@ }, "parameters": [ { - "$id": "18", + "$id": "17", "name": "input", "nameInRequest": "input", "type": { @@ -200,7 +199,7 @@ "skipUrlEncoding": false }, { - "$id": "19", + "$id": "18", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -225,19 +224,19 @@ "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty" }, { - "$id": "20", + "$id": "19", "kind": "basic", "name": "getEmpty", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "20", "name": "getEmpty", "resourceName": "Empty", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "21", "name": "accept", "nameInRequest": "Accept", "type": { @@ -256,7 +255,6 @@ ], "responses": [ { - "$id": "23", "statusCodes": [ 200 ], @@ -281,7 +279,7 @@ }, "parameters": [ { - "$id": "24", + "$id": "22", "name": "accept", "nameInRequest": "accept", "type": { @@ -309,19 +307,19 @@ "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty" }, { - "$id": "25", + "$id": "23", "kind": "basic", "name": "postRoundTripEmpty", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "26", + "$id": "24", "name": "postRoundTripEmpty", "resourceName": "Empty", "accessibility": "public", "parameters": [ { - "$id": "27", + "$id": "25", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -339,7 +337,7 @@ "skipUrlEncoding": false }, { - "$id": "28", + "$id": "26", "name": "accept", "nameInRequest": "Accept", "type": { @@ -356,7 +354,7 @@ "skipUrlEncoding": false }, { - "$id": "29", + "$id": "27", "name": "body", "nameInRequest": "body", "type": { @@ -375,7 +373,6 @@ ], "responses": [ { - "$id": "30", "statusCodes": [ 200 ], @@ -403,7 +400,7 @@ }, "parameters": [ { - "$id": "31", + "$id": "28", "name": "body", "nameInRequest": "body", "type": { @@ -420,7 +417,7 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "29", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -438,7 +435,7 @@ "skipUrlEncoding": false }, { - "$id": "33", + "$id": "30", "name": "accept", "nameInRequest": "accept", "type": { @@ -468,10 +465,12 @@ ], "parameters": [ { + "$id": "31", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "32", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -486,6 +485,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 6141cf8f567..51e3a178b6e 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 @@ -464,7 +464,6 @@ ], "responses": [ { - "$id": "40", "statusCodes": [ 200 ], @@ -489,7 +488,7 @@ }, "parameters": [ { - "$id": "41", + "$id": "40", "name": "accept", "nameInRequest": "accept", "type": { @@ -517,21 +516,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel" }, { - "$id": "42", + "$id": "41", "kind": "basic", "name": "putExtensibleModel", "accessibility": "public", "apiVersions": [], "doc": "Send model with extensible enum discriminator type.", "operation": { - "$id": "43", + "$id": "42", "name": "putExtensibleModel", "resourceName": "EnumDiscriminator", "doc": "Send model with extensible enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "44", + "$id": "43", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -549,7 +548,7 @@ "skipUrlEncoding": false }, { - "$id": "45", + "$id": "44", "name": "input", "nameInRequest": "input", "doc": "Dog to create", @@ -569,7 +568,6 @@ ], "responses": [ { - "$id": "46", "statusCodes": [ 204 ], @@ -591,7 +589,7 @@ }, "parameters": [ { - "$id": "47", + "$id": "45", "name": "input", "nameInRequest": "input", "doc": "Dog to create", @@ -609,7 +607,7 @@ "skipUrlEncoding": false }, { - "$id": "48", + "$id": "46", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -634,21 +632,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel" }, { - "$id": "49", + "$id": "47", "kind": "basic", "name": "getExtensibleModelMissingDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model omitting the discriminator.", "operation": { - "$id": "50", + "$id": "48", "name": "getExtensibleModelMissingDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model omitting the discriminator.", "accessibility": "public", "parameters": [ { - "$id": "51", + "$id": "49", "name": "accept", "nameInRequest": "Accept", "type": { @@ -667,7 +665,6 @@ ], "responses": [ { - "$id": "52", "statusCodes": [ 200 ], @@ -692,7 +689,7 @@ }, "parameters": [ { - "$id": "53", + "$id": "50", "name": "accept", "nameInRequest": "accept", "type": { @@ -720,21 +717,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator" }, { - "$id": "54", + "$id": "51", "kind": "basic", "name": "getExtensibleModelWrongDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model containing discriminator value never defined.", "operation": { - "$id": "55", + "$id": "52", "name": "getExtensibleModelWrongDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model containing discriminator value never defined.", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "53", "name": "accept", "nameInRequest": "Accept", "type": { @@ -753,7 +750,6 @@ ], "responses": [ { - "$id": "57", "statusCodes": [ 200 ], @@ -778,7 +774,7 @@ }, "parameters": [ { - "$id": "58", + "$id": "54", "name": "accept", "nameInRequest": "accept", "type": { @@ -806,21 +802,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator" }, { - "$id": "59", + "$id": "55", "kind": "basic", "name": "getFixedModel", "accessibility": "public", "apiVersions": [], "doc": "Receive model with fixed enum discriminator type.", "operation": { - "$id": "60", + "$id": "56", "name": "getFixedModel", "resourceName": "EnumDiscriminator", "doc": "Receive model with fixed enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "61", + "$id": "57", "name": "accept", "nameInRequest": "Accept", "type": { @@ -839,7 +835,6 @@ ], "responses": [ { - "$id": "62", "statusCodes": [ 200 ], @@ -864,7 +859,7 @@ }, "parameters": [ { - "$id": "63", + "$id": "58", "name": "accept", "nameInRequest": "accept", "type": { @@ -892,21 +887,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel" }, { - "$id": "64", + "$id": "59", "kind": "basic", "name": "putFixedModel", "accessibility": "public", "apiVersions": [], "doc": "Send model with fixed enum discriminator type.", "operation": { - "$id": "65", + "$id": "60", "name": "putFixedModel", "resourceName": "EnumDiscriminator", "doc": "Send model with fixed enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "61", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -924,7 +919,7 @@ "skipUrlEncoding": false }, { - "$id": "67", + "$id": "62", "name": "input", "nameInRequest": "input", "doc": "Snake to create", @@ -944,7 +939,6 @@ ], "responses": [ { - "$id": "68", "statusCodes": [ 204 ], @@ -966,7 +960,7 @@ }, "parameters": [ { - "$id": "69", + "$id": "63", "name": "input", "nameInRequest": "input", "doc": "Snake to create", @@ -984,7 +978,7 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "64", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1009,21 +1003,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel" }, { - "$id": "71", + "$id": "65", "kind": "basic", "name": "getFixedModelMissingDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model omitting the discriminator.", "operation": { - "$id": "72", + "$id": "66", "name": "getFixedModelMissingDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model omitting the discriminator.", "accessibility": "public", "parameters": [ { - "$id": "73", + "$id": "67", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1042,7 +1036,6 @@ ], "responses": [ { - "$id": "74", "statusCodes": [ 200 ], @@ -1067,7 +1060,7 @@ }, "parameters": [ { - "$id": "75", + "$id": "68", "name": "accept", "nameInRequest": "accept", "type": { @@ -1095,21 +1088,21 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator" }, { - "$id": "76", + "$id": "69", "kind": "basic", "name": "getFixedModelWrongDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model containing discriminator value never defined.", "operation": { - "$id": "77", + "$id": "70", "name": "getFixedModelWrongDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model containing discriminator value never defined.", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "71", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1128,7 +1121,6 @@ ], "responses": [ { - "$id": "79", "statusCodes": [ 200 ], @@ -1153,7 +1145,7 @@ }, "parameters": [ { - "$id": "80", + "$id": "72", "name": "accept", "nameInRequest": "accept", "type": { @@ -1183,10 +1175,12 @@ ], "parameters": [ { + "$id": "73", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "74", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1201,6 +1195,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 adf2efcac8a..7c5876132a7 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 @@ -536,7 +536,6 @@ ], "responses": [ { - "$id": "46", "statusCodes": [ 200 ], @@ -561,7 +560,7 @@ }, "parameters": [ { - "$id": "47", + "$id": "46", "name": "accept", "nameInRequest": "accept", "type": { @@ -589,19 +588,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel" }, { - "$id": "48", + "$id": "47", "kind": "basic", "name": "putModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "49", + "$id": "48", "name": "putModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "50", + "$id": "49", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -619,7 +618,7 @@ "skipUrlEncoding": false }, { - "$id": "51", + "$id": "50", "name": "input", "nameInRequest": "input", "type": { @@ -638,7 +637,6 @@ ], "responses": [ { - "$id": "52", "statusCodes": [ 204 ], @@ -660,7 +658,7 @@ }, "parameters": [ { - "$id": "53", + "$id": "51", "name": "input", "nameInRequest": "input", "type": { @@ -677,7 +675,7 @@ "skipUrlEncoding": false }, { - "$id": "54", + "$id": "52", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -702,19 +700,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel" }, { - "$id": "55", + "$id": "53", "kind": "basic", "name": "getRecursiveModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "56", + "$id": "54", "name": "getRecursiveModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "57", + "$id": "55", "name": "accept", "nameInRequest": "Accept", "type": { @@ -733,7 +731,6 @@ ], "responses": [ { - "$id": "58", "statusCodes": [ 200 ], @@ -758,7 +755,7 @@ }, "parameters": [ { - "$id": "59", + "$id": "56", "name": "accept", "nameInRequest": "accept", "type": { @@ -786,19 +783,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel" }, { - "$id": "60", + "$id": "57", "kind": "basic", "name": "putRecursiveModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "61", + "$id": "58", "name": "putRecursiveModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "59", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -816,7 +813,7 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "60", "name": "input", "nameInRequest": "input", "type": { @@ -835,7 +832,6 @@ ], "responses": [ { - "$id": "64", "statusCodes": [ 204 ], @@ -857,7 +853,7 @@ }, "parameters": [ { - "$id": "65", + "$id": "61", "name": "input", "nameInRequest": "input", "type": { @@ -874,7 +870,7 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "62", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -899,19 +895,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel" }, { - "$id": "67", + "$id": "63", "kind": "basic", "name": "getMissingDiscriminator", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "68", + "$id": "64", "name": "getMissingDiscriminator", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "69", + "$id": "65", "name": "accept", "nameInRequest": "Accept", "type": { @@ -930,7 +926,6 @@ ], "responses": [ { - "$id": "70", "statusCodes": [ 200 ], @@ -955,7 +950,7 @@ }, "parameters": [ { - "$id": "71", + "$id": "66", "name": "accept", "nameInRequest": "accept", "type": { @@ -983,19 +978,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator" }, { - "$id": "72", + "$id": "67", "kind": "basic", "name": "getWrongDiscriminator", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "73", + "$id": "68", "name": "getWrongDiscriminator", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "74", + "$id": "69", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1014,7 +1009,6 @@ ], "responses": [ { - "$id": "75", "statusCodes": [ 200 ], @@ -1039,7 +1033,7 @@ }, "parameters": [ { - "$id": "76", + "$id": "70", "name": "accept", "nameInRequest": "accept", "type": { @@ -1069,10 +1063,12 @@ ], "parameters": [ { + "$id": "71", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "72", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1087,6 +1083,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 62176ec9303..08398ed669e 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 @@ -242,7 +242,6 @@ ], "responses": [ { - "$id": "23", "statusCodes": [ 204 ], @@ -264,7 +263,7 @@ }, "parameters": [ { - "$id": "24", + "$id": "23", "name": "input", "nameInRequest": "input", "type": { @@ -281,7 +280,7 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "24", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -306,19 +305,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid" }, { - "$id": "26", + "$id": "25", "kind": "basic", "name": "getValid", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "27", + "$id": "26", "name": "getValid", "resourceName": "NotDiscriminated", "accessibility": "public", "parameters": [ { - "$id": "28", + "$id": "27", "name": "accept", "nameInRequest": "Accept", "type": { @@ -337,7 +336,6 @@ ], "responses": [ { - "$id": "29", "statusCodes": [ 200 ], @@ -362,7 +360,7 @@ }, "parameters": [ { - "$id": "30", + "$id": "28", "name": "accept", "nameInRequest": "accept", "type": { @@ -390,19 +388,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid" }, { - "$id": "31", + "$id": "29", "kind": "basic", "name": "putValid", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "32", + "$id": "30", "name": "putValid", "resourceName": "NotDiscriminated", "accessibility": "public", "parameters": [ { - "$id": "33", + "$id": "31", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -420,7 +418,7 @@ "skipUrlEncoding": false }, { - "$id": "34", + "$id": "32", "name": "accept", "nameInRequest": "Accept", "type": { @@ -437,7 +435,7 @@ "skipUrlEncoding": false }, { - "$id": "35", + "$id": "33", "name": "input", "nameInRequest": "input", "type": { @@ -456,7 +454,6 @@ ], "responses": [ { - "$id": "36", "statusCodes": [ 200 ], @@ -484,7 +481,7 @@ }, "parameters": [ { - "$id": "37", + "$id": "34", "name": "input", "nameInRequest": "input", "type": { @@ -501,7 +498,7 @@ "skipUrlEncoding": false }, { - "$id": "38", + "$id": "35", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -519,7 +516,7 @@ "skipUrlEncoding": false }, { - "$id": "39", + "$id": "36", "name": "accept", "nameInRequest": "accept", "type": { @@ -549,10 +546,12 @@ ], "parameters": [ { + "$id": "37", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "38", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -567,6 +566,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 fb23b1fef7c..87eedb5d4ee 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 @@ -174,7 +174,6 @@ ], "responses": [ { - "$id": "16", "statusCodes": [ 204 ], @@ -196,7 +195,7 @@ }, "parameters": [ { - "$id": "17", + "$id": "16", "name": "input", "nameInRequest": "input", "type": { @@ -213,7 +212,7 @@ "skipUrlEncoding": false }, { - "$id": "18", + "$id": "17", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -238,19 +237,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put" }, { - "$id": "19", + "$id": "18", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "20", + "$id": "19", "name": "get", "resourceName": "Recursive", "accessibility": "public", "parameters": [ { - "$id": "21", + "$id": "20", "name": "accept", "nameInRequest": "Accept", "type": { @@ -269,7 +268,6 @@ ], "responses": [ { - "$id": "22", "statusCodes": [ 200 ], @@ -294,7 +292,7 @@ }, "parameters": [ { - "$id": "23", + "$id": "21", "name": "accept", "nameInRequest": "accept", "type": { @@ -324,10 +322,12 @@ ], "parameters": [ { + "$id": "22", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "23", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -342,6 +342,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 7e5ec14c823..86b70ca3bef 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 @@ -643,7 +643,6 @@ ], "responses": [ { - "$id": "55", "statusCodes": [ 200 ], @@ -668,7 +667,7 @@ }, "parameters": [ { - "$id": "56", + "$id": "55", "name": "accept", "nameInRequest": "accept", "type": { @@ -696,19 +695,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel" }, { - "$id": "57", + "$id": "56", "kind": "basic", "name": "putModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "58", + "$id": "57", "name": "putModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "58", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -726,7 +725,7 @@ "skipUrlEncoding": false }, { - "$id": "60", + "$id": "59", "name": "input", "nameInRequest": "input", "type": { @@ -745,7 +744,6 @@ ], "responses": [ { - "$id": "61", "statusCodes": [ 204 ], @@ -767,7 +765,7 @@ }, "parameters": [ { - "$id": "62", + "$id": "60", "name": "input", "nameInRequest": "input", "type": { @@ -784,7 +782,7 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "61", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -809,19 +807,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel" }, { - "$id": "64", + "$id": "62", "kind": "basic", "name": "getRecursiveModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "65", + "$id": "63", "name": "getRecursiveModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "64", "name": "accept", "nameInRequest": "Accept", "type": { @@ -840,7 +838,6 @@ ], "responses": [ { - "$id": "67", "statusCodes": [ 200 ], @@ -865,7 +862,7 @@ }, "parameters": [ { - "$id": "68", + "$id": "65", "name": "accept", "nameInRequest": "accept", "type": { @@ -893,19 +890,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel" }, { - "$id": "69", + "$id": "66", "kind": "basic", "name": "putRecursiveModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "70", + "$id": "67", "name": "putRecursiveModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "68", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -923,7 +920,7 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "69", "name": "input", "nameInRequest": "input", "type": { @@ -942,7 +939,6 @@ ], "responses": [ { - "$id": "73", "statusCodes": [ 204 ], @@ -964,7 +960,7 @@ }, "parameters": [ { - "$id": "74", + "$id": "70", "name": "input", "nameInRequest": "input", "type": { @@ -981,7 +977,7 @@ "skipUrlEncoding": false }, { - "$id": "75", + "$id": "71", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1006,19 +1002,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel" }, { - "$id": "76", + "$id": "72", "kind": "basic", "name": "getMissingDiscriminator", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "77", + "$id": "73", "name": "getMissingDiscriminator", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "74", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1037,7 +1033,6 @@ ], "responses": [ { - "$id": "79", "statusCodes": [ 200 ], @@ -1062,7 +1057,7 @@ }, "parameters": [ { - "$id": "80", + "$id": "75", "name": "accept", "nameInRequest": "accept", "type": { @@ -1090,19 +1085,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator" }, { - "$id": "81", + "$id": "76", "kind": "basic", "name": "getWrongDiscriminator", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "82", + "$id": "77", "name": "getWrongDiscriminator", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "83", + "$id": "78", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1121,7 +1116,6 @@ ], "responses": [ { - "$id": "84", "statusCodes": [ 200 ], @@ -1146,7 +1140,7 @@ }, "parameters": [ { - "$id": "85", + "$id": "79", "name": "accept", "nameInRequest": "accept", "type": { @@ -1174,19 +1168,19 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator" }, { - "$id": "86", + "$id": "80", "kind": "basic", "name": "getLegacyModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "87", + "$id": "81", "name": "getLegacyModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "88", + "$id": "82", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1205,7 +1199,6 @@ ], "responses": [ { - "$id": "89", "statusCodes": [ 200 ], @@ -1230,7 +1223,7 @@ }, "parameters": [ { - "$id": "90", + "$id": "83", "name": "accept", "nameInRequest": "accept", "type": { @@ -1260,10 +1253,12 @@ ], "parameters": [ { + "$id": "84", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "85", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1278,6 +1273,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 700b52eb15a..63d28267801 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 @@ -236,7 +236,6 @@ ], "responses": [ { - "$id": "23", "statusCodes": [ 204 ], @@ -258,7 +257,7 @@ }, "parameters": [ { - "$id": "24", + "$id": "23", "name": "input", "nameInRequest": "input", "type": { @@ -275,7 +274,7 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "24", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -300,19 +299,19 @@ "crossLanguageDefinitionId": "Type.Model.Usage.input" }, { - "$id": "26", + "$id": "25", "kind": "basic", "name": "output", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "27", + "$id": "26", "name": "output", "resourceName": "Usage", "accessibility": "public", "parameters": [ { - "$id": "28", + "$id": "27", "name": "accept", "nameInRequest": "Accept", "type": { @@ -331,7 +330,6 @@ ], "responses": [ { - "$id": "29", "statusCodes": [ 200 ], @@ -356,7 +354,7 @@ }, "parameters": [ { - "$id": "30", + "$id": "28", "name": "accept", "nameInRequest": "accept", "type": { @@ -384,19 +382,19 @@ "crossLanguageDefinitionId": "Type.Model.Usage.output" }, { - "$id": "31", + "$id": "29", "kind": "basic", "name": "inputAndOutput", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "32", + "$id": "30", "name": "inputAndOutput", "resourceName": "Usage", "accessibility": "public", "parameters": [ { - "$id": "33", + "$id": "31", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -414,7 +412,7 @@ "skipUrlEncoding": false }, { - "$id": "34", + "$id": "32", "name": "accept", "nameInRequest": "Accept", "type": { @@ -431,7 +429,7 @@ "skipUrlEncoding": false }, { - "$id": "35", + "$id": "33", "name": "body", "nameInRequest": "body", "type": { @@ -450,7 +448,6 @@ ], "responses": [ { - "$id": "36", "statusCodes": [ 200 ], @@ -478,7 +475,7 @@ }, "parameters": [ { - "$id": "37", + "$id": "34", "name": "body", "nameInRequest": "body", "type": { @@ -495,7 +492,7 @@ "skipUrlEncoding": false }, { - "$id": "38", + "$id": "35", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -513,7 +510,7 @@ "skipUrlEncoding": false }, { - "$id": "39", + "$id": "36", "name": "accept", "nameInRequest": "accept", "type": { @@ -543,10 +540,12 @@ ], "parameters": [ { + "$id": "37", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "38", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -561,6 +560,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 f1fdfbeeb9f..d6a3cfbd145 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 @@ -467,7 +467,6 @@ ], "responses": [ { - "$id": "47", "statusCodes": [ 200 ], @@ -495,7 +494,7 @@ }, "parameters": [ { - "$id": "48", + "$id": "47", "name": "input", "nameInRequest": "input", "type": { @@ -512,7 +511,7 @@ "skipUrlEncoding": false }, { - "$id": "49", + "$id": "48", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -530,7 +529,7 @@ "skipUrlEncoding": false }, { - "$id": "50", + "$id": "49", "name": "accept", "nameInRequest": "accept", "type": { @@ -558,24 +557,24 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.getModel" }, { - "$id": "51", + "$id": "50", "kind": "basic", "name": "headModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "52", + "$id": "51", "name": "headModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "53", + "$id": "52", "name": "queryProp", "nameInRequest": "queryProp", "doc": "Required int32, illustrating a query property.", "type": { - "$id": "54", + "$id": "53", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -592,7 +591,7 @@ "skipUrlEncoding": false }, { - "$id": "55", + "$id": "54", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -610,7 +609,7 @@ "skipUrlEncoding": false }, { - "$id": "56", + "$id": "55", "name": "input", "nameInRequest": "input", "type": { @@ -629,7 +628,6 @@ ], "responses": [ { - "$id": "57", "statusCodes": [ 200 ], @@ -651,7 +649,7 @@ }, "parameters": [ { - "$id": "58", + "$id": "56", "name": "input", "nameInRequest": "input", "type": { @@ -668,7 +666,7 @@ "skipUrlEncoding": false }, { - "$id": "59", + "$id": "57", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -693,19 +691,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.headModel" }, { - "$id": "60", + "$id": "58", "kind": "basic", "name": "putModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "61", + "$id": "59", "name": "putModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "60", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -723,7 +721,7 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "61", "name": "input", "nameInRequest": "input", "type": { @@ -742,7 +740,6 @@ ], "responses": [ { - "$id": "64", "statusCodes": [ 204 ], @@ -764,7 +761,7 @@ }, "parameters": [ { - "$id": "65", + "$id": "62", "name": "input", "nameInRequest": "input", "type": { @@ -781,7 +778,7 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "63", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -806,19 +803,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.putModel" }, { - "$id": "67", + "$id": "64", "kind": "basic", "name": "patchModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "68", + "$id": "65", "name": "patchModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "69", + "$id": "66", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -836,7 +833,7 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "67", "name": "input", "nameInRequest": "input", "type": { @@ -855,7 +852,6 @@ ], "responses": [ { - "$id": "71", "statusCodes": [ 204 ], @@ -877,7 +873,7 @@ }, "parameters": [ { - "$id": "72", + "$id": "68", "name": "input", "nameInRequest": "input", "type": { @@ -894,7 +890,7 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "69", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -919,19 +915,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel" }, { - "$id": "74", + "$id": "70", "kind": "basic", "name": "postModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "75", + "$id": "71", "name": "postModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "76", + "$id": "72", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -949,7 +945,7 @@ "skipUrlEncoding": false }, { - "$id": "77", + "$id": "73", "name": "input", "nameInRequest": "input", "type": { @@ -968,7 +964,6 @@ ], "responses": [ { - "$id": "78", "statusCodes": [ 204 ], @@ -990,7 +985,7 @@ }, "parameters": [ { - "$id": "79", + "$id": "74", "name": "input", "nameInRequest": "input", "type": { @@ -1007,7 +1002,7 @@ "skipUrlEncoding": false }, { - "$id": "80", + "$id": "75", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1032,19 +1027,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.postModel" }, { - "$id": "81", + "$id": "76", "kind": "basic", "name": "deleteModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "82", + "$id": "77", "name": "deleteModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "83", + "$id": "78", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1062,7 +1057,7 @@ "skipUrlEncoding": false }, { - "$id": "84", + "$id": "79", "name": "input", "nameInRequest": "input", "type": { @@ -1081,7 +1076,6 @@ ], "responses": [ { - "$id": "85", "statusCodes": [ 204 ], @@ -1103,7 +1097,7 @@ }, "parameters": [ { - "$id": "86", + "$id": "80", "name": "input", "nameInRequest": "input", "type": { @@ -1120,7 +1114,7 @@ "skipUrlEncoding": false }, { - "$id": "87", + "$id": "81", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1145,19 +1139,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel" }, { - "$id": "88", + "$id": "82", "kind": "basic", "name": "putReadOnlyModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "89", + "$id": "83", "name": "putReadOnlyModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "90", + "$id": "84", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -1175,7 +1169,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "85", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1192,7 +1186,7 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "86", "name": "input", "nameInRequest": "input", "type": { @@ -1211,7 +1205,6 @@ ], "responses": [ { - "$id": "93", "statusCodes": [ 200 ], @@ -1239,7 +1232,7 @@ }, "parameters": [ { - "$id": "94", + "$id": "87", "name": "input", "nameInRequest": "input", "type": { @@ -1256,7 +1249,7 @@ "skipUrlEncoding": false }, { - "$id": "95", + "$id": "88", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1274,7 +1267,7 @@ "skipUrlEncoding": false }, { - "$id": "96", + "$id": "89", "name": "accept", "nameInRequest": "accept", "type": { @@ -1304,10 +1297,12 @@ ], "parameters": [ { + "$id": "90", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "91", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1322,6 +1317,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.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 3da63c75934..4dcee697df8 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 @@ -2951,10 +2951,12 @@ "methods": [], "parameters": [ { + "$id": "282", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "283", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2969,6 +2971,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "284", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2982,27 +2985,27 @@ "apiVersions": [], "children": [ { - "$id": "282", + "$id": "285", "kind": "client", "name": "ExtendsUnknown", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "283", + "$id": "286", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "284", + "$id": "287", "name": "get", "resourceName": "ExtendsUnknown", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "285", + "$id": "288", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3021,7 +3024,6 @@ ], "responses": [ { - "$id": "286", "statusCodes": [ 200 ], @@ -3046,7 +3048,7 @@ }, "parameters": [ { - "$id": "287", + "$id": "289", "name": "accept", "nameInRequest": "accept", "type": { @@ -3074,21 +3076,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get" }, { - "$id": "288", + "$id": "290", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "289", + "$id": "291", "name": "put", "resourceName": "ExtendsUnknown", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "290", + "$id": "292", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3106,7 +3108,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "293", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3126,7 +3128,6 @@ ], "responses": [ { - "$id": "292", "statusCodes": [ 204 ], @@ -3148,7 +3149,7 @@ }, "parameters": [ { - "$id": "293", + "$id": "294", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3166,7 +3167,7 @@ "skipUrlEncoding": false }, { - "$id": "294", + "$id": "295", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3193,10 +3194,12 @@ ], "parameters": [ { + "$id": "296", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "297", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3211,6 +3214,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "298", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3227,27 +3231,27 @@ } }, { - "$id": "295", + "$id": "299", "kind": "client", "name": "ExtendsUnknownDerived", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "296", + "$id": "300", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "297", + "$id": "301", "name": "get", "resourceName": "ExtendsUnknownDerived", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "298", + "$id": "302", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3266,7 +3270,6 @@ ], "responses": [ { - "$id": "299", "statusCodes": [ 200 ], @@ -3291,7 +3294,7 @@ }, "parameters": [ { - "$id": "300", + "$id": "303", "name": "accept", "nameInRequest": "accept", "type": { @@ -3319,21 +3322,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get" }, { - "$id": "301", + "$id": "304", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "302", + "$id": "305", "name": "put", "resourceName": "ExtendsUnknownDerived", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "306", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3351,7 +3354,7 @@ "skipUrlEncoding": false }, { - "$id": "304", + "$id": "307", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3371,7 +3374,6 @@ ], "responses": [ { - "$id": "305", "statusCodes": [ 204 ], @@ -3393,7 +3395,7 @@ }, "parameters": [ { - "$id": "306", + "$id": "308", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3411,7 +3413,7 @@ "skipUrlEncoding": false }, { - "$id": "307", + "$id": "309", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3438,10 +3440,12 @@ ], "parameters": [ { + "$id": "310", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "311", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3456,6 +3460,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "312", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3472,27 +3477,27 @@ } }, { - "$id": "308", + "$id": "313", "kind": "client", "name": "ExtendsUnknownDiscriminated", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "309", + "$id": "314", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "310", + "$id": "315", "name": "get", "resourceName": "ExtendsUnknownDiscriminated", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "311", + "$id": "316", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3511,7 +3516,6 @@ ], "responses": [ { - "$id": "312", "statusCodes": [ 200 ], @@ -3536,7 +3540,7 @@ }, "parameters": [ { - "$id": "313", + "$id": "317", "name": "accept", "nameInRequest": "accept", "type": { @@ -3564,21 +3568,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get" }, { - "$id": "314", + "$id": "318", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "315", + "$id": "319", "name": "put", "resourceName": "ExtendsUnknownDiscriminated", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "320", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3596,7 +3600,7 @@ "skipUrlEncoding": false }, { - "$id": "317", + "$id": "321", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3616,7 +3620,6 @@ ], "responses": [ { - "$id": "318", "statusCodes": [ 204 ], @@ -3638,7 +3641,7 @@ }, "parameters": [ { - "$id": "319", + "$id": "322", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3656,7 +3659,7 @@ "skipUrlEncoding": false }, { - "$id": "320", + "$id": "323", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3683,10 +3686,12 @@ ], "parameters": [ { + "$id": "324", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "325", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3701,6 +3706,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "326", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3717,27 +3723,27 @@ } }, { - "$id": "321", + "$id": "327", "kind": "client", "name": "IsUnknown", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "322", + "$id": "328", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "323", + "$id": "329", "name": "get", "resourceName": "IsUnknown", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "330", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3756,7 +3762,6 @@ ], "responses": [ { - "$id": "325", "statusCodes": [ 200 ], @@ -3781,7 +3786,7 @@ }, "parameters": [ { - "$id": "326", + "$id": "331", "name": "accept", "nameInRequest": "accept", "type": { @@ -3809,21 +3814,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get" }, { - "$id": "327", + "$id": "332", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "328", + "$id": "333", "name": "put", "resourceName": "IsUnknown", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "329", + "$id": "334", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3841,7 +3846,7 @@ "skipUrlEncoding": false }, { - "$id": "330", + "$id": "335", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3861,7 +3866,6 @@ ], "responses": [ { - "$id": "331", "statusCodes": [ 204 ], @@ -3883,7 +3887,7 @@ }, "parameters": [ { - "$id": "332", + "$id": "336", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3901,7 +3905,7 @@ "skipUrlEncoding": false }, { - "$id": "333", + "$id": "337", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3928,10 +3932,12 @@ ], "parameters": [ { + "$id": "338", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "339", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3946,6 +3952,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3962,27 +3969,27 @@ } }, { - "$id": "334", + "$id": "341", "kind": "client", "name": "IsUnknownDerived", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "335", + "$id": "342", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "336", + "$id": "343", "name": "get", "resourceName": "IsUnknownDerived", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "337", + "$id": "344", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4001,7 +4008,6 @@ ], "responses": [ { - "$id": "338", "statusCodes": [ 200 ], @@ -4026,7 +4032,7 @@ }, "parameters": [ { - "$id": "339", + "$id": "345", "name": "accept", "nameInRequest": "accept", "type": { @@ -4054,21 +4060,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get" }, { - "$id": "340", + "$id": "346", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "341", + "$id": "347", "name": "put", "resourceName": "IsUnknownDerived", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "342", + "$id": "348", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4086,7 +4092,7 @@ "skipUrlEncoding": false }, { - "$id": "343", + "$id": "349", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4106,7 +4112,6 @@ ], "responses": [ { - "$id": "344", "statusCodes": [ 204 ], @@ -4128,7 +4133,7 @@ }, "parameters": [ { - "$id": "345", + "$id": "350", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4146,7 +4151,7 @@ "skipUrlEncoding": false }, { - "$id": "346", + "$id": "351", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4173,10 +4178,12 @@ ], "parameters": [ { + "$id": "352", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "353", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4191,6 +4198,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "354", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4207,27 +4215,27 @@ } }, { - "$id": "347", + "$id": "355", "kind": "client", "name": "IsUnknownDiscriminated", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "348", + "$id": "356", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "349", + "$id": "357", "name": "get", "resourceName": "IsUnknownDiscriminated", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "350", + "$id": "358", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4246,7 +4254,6 @@ ], "responses": [ { - "$id": "351", "statusCodes": [ 200 ], @@ -4271,7 +4278,7 @@ }, "parameters": [ { - "$id": "352", + "$id": "359", "name": "accept", "nameInRequest": "accept", "type": { @@ -4299,21 +4306,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get" }, { - "$id": "353", + "$id": "360", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "354", + "$id": "361", "name": "put", "resourceName": "IsUnknownDiscriminated", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "355", + "$id": "362", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4331,7 +4338,7 @@ "skipUrlEncoding": false }, { - "$id": "356", + "$id": "363", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4351,7 +4358,6 @@ ], "responses": [ { - "$id": "357", "statusCodes": [ 204 ], @@ -4373,7 +4379,7 @@ }, "parameters": [ { - "$id": "358", + "$id": "364", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4391,7 +4397,7 @@ "skipUrlEncoding": false }, { - "$id": "359", + "$id": "365", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4418,10 +4424,12 @@ ], "parameters": [ { + "$id": "366", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "367", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4436,6 +4444,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "368", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4452,27 +4461,27 @@ } }, { - "$id": "360", + "$id": "369", "kind": "client", "name": "ExtendsString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "361", + "$id": "370", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "362", + "$id": "371", "name": "get", "resourceName": "ExtendsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "372", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4491,7 +4500,6 @@ ], "responses": [ { - "$id": "364", "statusCodes": [ 200 ], @@ -4516,7 +4524,7 @@ }, "parameters": [ { - "$id": "365", + "$id": "373", "name": "accept", "nameInRequest": "accept", "type": { @@ -4544,21 +4552,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get" }, { - "$id": "366", + "$id": "374", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "367", + "$id": "375", "name": "put", "resourceName": "ExtendsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "368", + "$id": "376", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4576,7 +4584,7 @@ "skipUrlEncoding": false }, { - "$id": "369", + "$id": "377", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4596,7 +4604,6 @@ ], "responses": [ { - "$id": "370", "statusCodes": [ 204 ], @@ -4618,7 +4625,7 @@ }, "parameters": [ { - "$id": "371", + "$id": "378", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4636,7 +4643,7 @@ "skipUrlEncoding": false }, { - "$id": "372", + "$id": "379", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4663,10 +4670,12 @@ ], "parameters": [ { + "$id": "380", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "381", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4681,6 +4690,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "382", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4697,27 +4707,27 @@ } }, { - "$id": "373", + "$id": "383", "kind": "client", "name": "IsString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "374", + "$id": "384", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "375", + "$id": "385", "name": "get", "resourceName": "IsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "376", + "$id": "386", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4736,7 +4746,6 @@ ], "responses": [ { - "$id": "377", "statusCodes": [ 200 ], @@ -4761,7 +4770,7 @@ }, "parameters": [ { - "$id": "378", + "$id": "387", "name": "accept", "nameInRequest": "accept", "type": { @@ -4789,21 +4798,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get" }, { - "$id": "379", + "$id": "388", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "380", + "$id": "389", "name": "put", "resourceName": "IsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "381", + "$id": "390", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4821,7 +4830,7 @@ "skipUrlEncoding": false }, { - "$id": "382", + "$id": "391", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4841,7 +4850,6 @@ ], "responses": [ { - "$id": "383", "statusCodes": [ 204 ], @@ -4863,7 +4871,7 @@ }, "parameters": [ { - "$id": "384", + "$id": "392", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4881,7 +4889,7 @@ "skipUrlEncoding": false }, { - "$id": "385", + "$id": "393", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4908,10 +4916,12 @@ ], "parameters": [ { + "$id": "394", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "395", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4926,6 +4936,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "396", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4942,27 +4953,27 @@ } }, { - "$id": "386", + "$id": "397", "kind": "client", "name": "SpreadString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "387", + "$id": "398", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "388", + "$id": "399", "name": "get", "resourceName": "SpreadString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "389", + "$id": "400", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4981,7 +4992,6 @@ ], "responses": [ { - "$id": "390", "statusCodes": [ 200 ], @@ -5006,7 +5016,7 @@ }, "parameters": [ { - "$id": "391", + "$id": "401", "name": "accept", "nameInRequest": "accept", "type": { @@ -5034,21 +5044,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get" }, { - "$id": "392", + "$id": "402", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "393", + "$id": "403", "name": "put", "resourceName": "SpreadString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "394", + "$id": "404", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5066,7 +5076,7 @@ "skipUrlEncoding": false }, { - "$id": "395", + "$id": "405", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5086,7 +5096,6 @@ ], "responses": [ { - "$id": "396", "statusCodes": [ 204 ], @@ -5108,7 +5117,7 @@ }, "parameters": [ { - "$id": "397", + "$id": "406", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5126,7 +5135,7 @@ "skipUrlEncoding": false }, { - "$id": "398", + "$id": "407", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5153,10 +5162,12 @@ ], "parameters": [ { + "$id": "408", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "409", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5171,6 +5182,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "410", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5187,27 +5199,27 @@ } }, { - "$id": "399", + "$id": "411", "kind": "client", "name": "ExtendsFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "400", + "$id": "412", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "401", + "$id": "413", "name": "get", "resourceName": "ExtendsFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "402", + "$id": "414", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5226,7 +5238,6 @@ ], "responses": [ { - "$id": "403", "statusCodes": [ 200 ], @@ -5251,7 +5262,7 @@ }, "parameters": [ { - "$id": "404", + "$id": "415", "name": "accept", "nameInRequest": "accept", "type": { @@ -5279,21 +5290,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get" }, { - "$id": "405", + "$id": "416", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "406", + "$id": "417", "name": "put", "resourceName": "ExtendsFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "407", + "$id": "418", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5311,7 +5322,7 @@ "skipUrlEncoding": false }, { - "$id": "408", + "$id": "419", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5331,7 +5342,6 @@ ], "responses": [ { - "$id": "409", "statusCodes": [ 204 ], @@ -5353,7 +5363,7 @@ }, "parameters": [ { - "$id": "410", + "$id": "420", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5371,7 +5381,7 @@ "skipUrlEncoding": false }, { - "$id": "411", + "$id": "421", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5398,10 +5408,12 @@ ], "parameters": [ { + "$id": "422", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "423", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5416,6 +5428,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "424", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5432,27 +5445,27 @@ } }, { - "$id": "412", + "$id": "425", "kind": "client", "name": "IsFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "413", + "$id": "426", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "414", + "$id": "427", "name": "get", "resourceName": "IsFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "415", + "$id": "428", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5471,7 +5484,6 @@ ], "responses": [ { - "$id": "416", "statusCodes": [ 200 ], @@ -5496,7 +5508,7 @@ }, "parameters": [ { - "$id": "417", + "$id": "429", "name": "accept", "nameInRequest": "accept", "type": { @@ -5524,21 +5536,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get" }, { - "$id": "418", + "$id": "430", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "419", + "$id": "431", "name": "put", "resourceName": "IsFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "420", + "$id": "432", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5556,7 +5568,7 @@ "skipUrlEncoding": false }, { - "$id": "421", + "$id": "433", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5576,7 +5588,6 @@ ], "responses": [ { - "$id": "422", "statusCodes": [ 204 ], @@ -5598,7 +5609,7 @@ }, "parameters": [ { - "$id": "423", + "$id": "434", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5616,7 +5627,7 @@ "skipUrlEncoding": false }, { - "$id": "424", + "$id": "435", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5643,10 +5654,12 @@ ], "parameters": [ { + "$id": "436", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "437", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5661,6 +5674,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5677,27 +5691,27 @@ } }, { - "$id": "425", + "$id": "439", "kind": "client", "name": "SpreadFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "426", + "$id": "440", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "427", + "$id": "441", "name": "get", "resourceName": "SpreadFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "428", + "$id": "442", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5716,7 +5730,6 @@ ], "responses": [ { - "$id": "429", "statusCodes": [ 200 ], @@ -5741,7 +5754,7 @@ }, "parameters": [ { - "$id": "430", + "$id": "443", "name": "accept", "nameInRequest": "accept", "type": { @@ -5769,21 +5782,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get" }, { - "$id": "431", + "$id": "444", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "432", + "$id": "445", "name": "put", "resourceName": "SpreadFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "433", + "$id": "446", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5801,7 +5814,7 @@ "skipUrlEncoding": false }, { - "$id": "434", + "$id": "447", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5821,7 +5834,6 @@ ], "responses": [ { - "$id": "435", "statusCodes": [ 204 ], @@ -5843,7 +5855,7 @@ }, "parameters": [ { - "$id": "436", + "$id": "448", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5861,7 +5873,7 @@ "skipUrlEncoding": false }, { - "$id": "437", + "$id": "449", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5888,10 +5900,12 @@ ], "parameters": [ { + "$id": "450", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "451", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5906,6 +5920,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5922,27 +5937,27 @@ } }, { - "$id": "438", + "$id": "453", "kind": "client", "name": "ExtendsModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "439", + "$id": "454", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "440", + "$id": "455", "name": "get", "resourceName": "ExtendsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "441", + "$id": "456", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5961,7 +5976,6 @@ ], "responses": [ { - "$id": "442", "statusCodes": [ 200 ], @@ -5986,7 +6000,7 @@ }, "parameters": [ { - "$id": "443", + "$id": "457", "name": "accept", "nameInRequest": "accept", "type": { @@ -6014,21 +6028,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get" }, { - "$id": "444", + "$id": "458", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "445", + "$id": "459", "name": "put", "resourceName": "ExtendsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "446", + "$id": "460", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6046,7 +6060,7 @@ "skipUrlEncoding": false }, { - "$id": "447", + "$id": "461", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6066,7 +6080,6 @@ ], "responses": [ { - "$id": "448", "statusCodes": [ 204 ], @@ -6088,7 +6101,7 @@ }, "parameters": [ { - "$id": "449", + "$id": "462", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6106,7 +6119,7 @@ "skipUrlEncoding": false }, { - "$id": "450", + "$id": "463", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6133,10 +6146,12 @@ ], "parameters": [ { + "$id": "464", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "465", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6151,6 +6166,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "466", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6167,27 +6183,27 @@ } }, { - "$id": "451", + "$id": "467", "kind": "client", "name": "IsModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "452", + "$id": "468", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "453", + "$id": "469", "name": "get", "resourceName": "IsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "454", + "$id": "470", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6206,7 +6222,6 @@ ], "responses": [ { - "$id": "455", "statusCodes": [ 200 ], @@ -6231,7 +6246,7 @@ }, "parameters": [ { - "$id": "456", + "$id": "471", "name": "accept", "nameInRequest": "accept", "type": { @@ -6259,21 +6274,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get" }, { - "$id": "457", + "$id": "472", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "458", + "$id": "473", "name": "put", "resourceName": "IsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "459", + "$id": "474", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6291,7 +6306,7 @@ "skipUrlEncoding": false }, { - "$id": "460", + "$id": "475", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6311,7 +6326,6 @@ ], "responses": [ { - "$id": "461", "statusCodes": [ 204 ], @@ -6333,7 +6347,7 @@ }, "parameters": [ { - "$id": "462", + "$id": "476", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6351,7 +6365,7 @@ "skipUrlEncoding": false }, { - "$id": "463", + "$id": "477", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6378,10 +6392,12 @@ ], "parameters": [ { + "$id": "478", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "479", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6396,6 +6412,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "480", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6412,27 +6429,27 @@ } }, { - "$id": "464", + "$id": "481", "kind": "client", "name": "SpreadModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "465", + "$id": "482", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "466", + "$id": "483", "name": "get", "resourceName": "SpreadModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "467", + "$id": "484", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6451,7 +6468,6 @@ ], "responses": [ { - "$id": "468", "statusCodes": [ 200 ], @@ -6476,7 +6492,7 @@ }, "parameters": [ { - "$id": "469", + "$id": "485", "name": "accept", "nameInRequest": "accept", "type": { @@ -6504,21 +6520,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get" }, { - "$id": "470", + "$id": "486", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "471", + "$id": "487", "name": "put", "resourceName": "SpreadModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "472", + "$id": "488", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6536,7 +6552,7 @@ "skipUrlEncoding": false }, { - "$id": "473", + "$id": "489", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6556,7 +6572,6 @@ ], "responses": [ { - "$id": "474", "statusCodes": [ 204 ], @@ -6578,7 +6593,7 @@ }, "parameters": [ { - "$id": "475", + "$id": "490", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6596,7 +6611,7 @@ "skipUrlEncoding": false }, { - "$id": "476", + "$id": "491", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6623,10 +6638,12 @@ ], "parameters": [ { + "$id": "492", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "493", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6641,6 +6658,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "494", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6657,27 +6675,27 @@ } }, { - "$id": "477", + "$id": "495", "kind": "client", "name": "ExtendsModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "478", + "$id": "496", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "479", + "$id": "497", "name": "get", "resourceName": "ExtendsModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "480", + "$id": "498", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6696,7 +6714,6 @@ ], "responses": [ { - "$id": "481", "statusCodes": [ 200 ], @@ -6721,7 +6738,7 @@ }, "parameters": [ { - "$id": "482", + "$id": "499", "name": "accept", "nameInRequest": "accept", "type": { @@ -6749,21 +6766,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get" }, { - "$id": "483", + "$id": "500", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "484", + "$id": "501", "name": "put", "resourceName": "ExtendsModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "485", + "$id": "502", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6781,7 +6798,7 @@ "skipUrlEncoding": false }, { - "$id": "486", + "$id": "503", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6801,7 +6818,6 @@ ], "responses": [ { - "$id": "487", "statusCodes": [ 204 ], @@ -6823,7 +6839,7 @@ }, "parameters": [ { - "$id": "488", + "$id": "504", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6841,7 +6857,7 @@ "skipUrlEncoding": false }, { - "$id": "489", + "$id": "505", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6868,10 +6884,12 @@ ], "parameters": [ { + "$id": "506", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "507", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6886,6 +6904,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "508", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6902,27 +6921,27 @@ } }, { - "$id": "490", + "$id": "509", "kind": "client", "name": "IsModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "491", + "$id": "510", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "492", + "$id": "511", "name": "get", "resourceName": "IsModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "493", + "$id": "512", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6941,7 +6960,6 @@ ], "responses": [ { - "$id": "494", "statusCodes": [ 200 ], @@ -6966,7 +6984,7 @@ }, "parameters": [ { - "$id": "495", + "$id": "513", "name": "accept", "nameInRequest": "accept", "type": { @@ -6994,21 +7012,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get" }, { - "$id": "496", + "$id": "514", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "497", + "$id": "515", "name": "put", "resourceName": "IsModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "498", + "$id": "516", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7026,7 +7044,7 @@ "skipUrlEncoding": false }, { - "$id": "499", + "$id": "517", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7046,7 +7064,6 @@ ], "responses": [ { - "$id": "500", "statusCodes": [ 204 ], @@ -7068,7 +7085,7 @@ }, "parameters": [ { - "$id": "501", + "$id": "518", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7086,7 +7103,7 @@ "skipUrlEncoding": false }, { - "$id": "502", + "$id": "519", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7113,10 +7130,12 @@ ], "parameters": [ { + "$id": "520", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "521", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7131,6 +7150,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "522", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7147,27 +7167,27 @@ } }, { - "$id": "503", + "$id": "523", "kind": "client", "name": "SpreadModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "504", + "$id": "524", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "505", + "$id": "525", "name": "get", "resourceName": "SpreadModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "506", + "$id": "526", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7186,7 +7206,6 @@ ], "responses": [ { - "$id": "507", "statusCodes": [ 200 ], @@ -7211,7 +7230,7 @@ }, "parameters": [ { - "$id": "508", + "$id": "527", "name": "accept", "nameInRequest": "accept", "type": { @@ -7239,21 +7258,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get" }, { - "$id": "509", + "$id": "528", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "510", + "$id": "529", "name": "put", "resourceName": "SpreadModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "511", + "$id": "530", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7271,7 +7290,7 @@ "skipUrlEncoding": false }, { - "$id": "512", + "$id": "531", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7291,7 +7310,6 @@ ], "responses": [ { - "$id": "513", "statusCodes": [ 204 ], @@ -7313,7 +7331,7 @@ }, "parameters": [ { - "$id": "514", + "$id": "532", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7331,7 +7349,7 @@ "skipUrlEncoding": false }, { - "$id": "515", + "$id": "533", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7358,10 +7376,12 @@ ], "parameters": [ { + "$id": "534", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "535", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7376,6 +7396,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "536", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7392,27 +7413,27 @@ } }, { - "$id": "516", + "$id": "537", "kind": "client", "name": "SpreadDifferentString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "517", + "$id": "538", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "518", + "$id": "539", "name": "get", "resourceName": "SpreadDifferentString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "519", + "$id": "540", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7431,7 +7452,6 @@ ], "responses": [ { - "$id": "520", "statusCodes": [ 200 ], @@ -7456,7 +7476,7 @@ }, "parameters": [ { - "$id": "521", + "$id": "541", "name": "accept", "nameInRequest": "accept", "type": { @@ -7484,21 +7504,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get" }, { - "$id": "522", + "$id": "542", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "523", + "$id": "543", "name": "put", "resourceName": "SpreadDifferentString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "524", + "$id": "544", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7516,7 +7536,7 @@ "skipUrlEncoding": false }, { - "$id": "525", + "$id": "545", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7536,7 +7556,6 @@ ], "responses": [ { - "$id": "526", "statusCodes": [ 204 ], @@ -7558,7 +7577,7 @@ }, "parameters": [ { - "$id": "527", + "$id": "546", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7576,7 +7595,7 @@ "skipUrlEncoding": false }, { - "$id": "528", + "$id": "547", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7603,10 +7622,12 @@ ], "parameters": [ { + "$id": "548", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "549", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7621,6 +7642,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "550", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7637,27 +7659,27 @@ } }, { - "$id": "529", + "$id": "551", "kind": "client", "name": "SpreadDifferentFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "530", + "$id": "552", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "531", + "$id": "553", "name": "get", "resourceName": "SpreadDifferentFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "532", + "$id": "554", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7676,7 +7698,6 @@ ], "responses": [ { - "$id": "533", "statusCodes": [ 200 ], @@ -7701,7 +7722,7 @@ }, "parameters": [ { - "$id": "534", + "$id": "555", "name": "accept", "nameInRequest": "accept", "type": { @@ -7729,21 +7750,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get" }, { - "$id": "535", + "$id": "556", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "536", + "$id": "557", "name": "put", "resourceName": "SpreadDifferentFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "537", + "$id": "558", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7761,7 +7782,7 @@ "skipUrlEncoding": false }, { - "$id": "538", + "$id": "559", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7781,7 +7802,6 @@ ], "responses": [ { - "$id": "539", "statusCodes": [ 204 ], @@ -7803,7 +7823,7 @@ }, "parameters": [ { - "$id": "540", + "$id": "560", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7821,7 +7841,7 @@ "skipUrlEncoding": false }, { - "$id": "541", + "$id": "561", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7848,10 +7868,12 @@ ], "parameters": [ { + "$id": "562", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "563", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7866,6 +7888,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7882,27 +7905,27 @@ } }, { - "$id": "542", + "$id": "565", "kind": "client", "name": "SpreadDifferentModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "543", + "$id": "566", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "544", + "$id": "567", "name": "get", "resourceName": "SpreadDifferentModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "545", + "$id": "568", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7921,7 +7944,6 @@ ], "responses": [ { - "$id": "546", "statusCodes": [ 200 ], @@ -7946,7 +7968,7 @@ }, "parameters": [ { - "$id": "547", + "$id": "569", "name": "accept", "nameInRequest": "accept", "type": { @@ -7974,21 +7996,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get" }, { - "$id": "548", + "$id": "570", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "549", + "$id": "571", "name": "put", "resourceName": "SpreadDifferentModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "550", + "$id": "572", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8006,7 +8028,7 @@ "skipUrlEncoding": false }, { - "$id": "551", + "$id": "573", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8026,7 +8048,6 @@ ], "responses": [ { - "$id": "552", "statusCodes": [ 204 ], @@ -8048,7 +8069,7 @@ }, "parameters": [ { - "$id": "553", + "$id": "574", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8066,7 +8087,7 @@ "skipUrlEncoding": false }, { - "$id": "554", + "$id": "575", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8093,10 +8114,12 @@ ], "parameters": [ { + "$id": "576", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "577", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8111,6 +8134,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "578", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8127,27 +8151,27 @@ } }, { - "$id": "555", + "$id": "579", "kind": "client", "name": "SpreadDifferentModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "556", + "$id": "580", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "557", + "$id": "581", "name": "get", "resourceName": "SpreadDifferentModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "558", + "$id": "582", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8166,7 +8190,6 @@ ], "responses": [ { - "$id": "559", "statusCodes": [ 200 ], @@ -8191,7 +8214,7 @@ }, "parameters": [ { - "$id": "560", + "$id": "583", "name": "accept", "nameInRequest": "accept", "type": { @@ -8219,21 +8242,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get" }, { - "$id": "561", + "$id": "584", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "562", + "$id": "585", "name": "put", "resourceName": "SpreadDifferentModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "563", + "$id": "586", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8251,7 +8274,7 @@ "skipUrlEncoding": false }, { - "$id": "564", + "$id": "587", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8271,7 +8294,6 @@ ], "responses": [ { - "$id": "565", "statusCodes": [ 204 ], @@ -8293,7 +8315,7 @@ }, "parameters": [ { - "$id": "566", + "$id": "588", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8311,7 +8333,7 @@ "skipUrlEncoding": false }, { - "$id": "567", + "$id": "589", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8338,10 +8360,12 @@ ], "parameters": [ { + "$id": "590", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "591", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8356,6 +8380,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "592", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8372,27 +8397,27 @@ } }, { - "$id": "568", + "$id": "593", "kind": "client", "name": "ExtendsDifferentSpreadString", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "569", + "$id": "594", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "570", + "$id": "595", "name": "get", "resourceName": "ExtendsDifferentSpreadString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "571", + "$id": "596", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8411,7 +8436,6 @@ ], "responses": [ { - "$id": "572", "statusCodes": [ 200 ], @@ -8436,7 +8460,7 @@ }, "parameters": [ { - "$id": "573", + "$id": "597", "name": "accept", "nameInRequest": "accept", "type": { @@ -8464,21 +8488,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get" }, { - "$id": "574", + "$id": "598", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "575", + "$id": "599", "name": "put", "resourceName": "ExtendsDifferentSpreadString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "576", + "$id": "600", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8496,7 +8520,7 @@ "skipUrlEncoding": false }, { - "$id": "577", + "$id": "601", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8516,7 +8540,6 @@ ], "responses": [ { - "$id": "578", "statusCodes": [ 204 ], @@ -8538,7 +8561,7 @@ }, "parameters": [ { - "$id": "579", + "$id": "602", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8556,7 +8579,7 @@ "skipUrlEncoding": false }, { - "$id": "580", + "$id": "603", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8583,10 +8606,12 @@ ], "parameters": [ { + "$id": "604", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "605", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8601,6 +8626,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8617,27 +8643,27 @@ } }, { - "$id": "581", + "$id": "607", "kind": "client", "name": "ExtendsDifferentSpreadFloat", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "582", + "$id": "608", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "583", + "$id": "609", "name": "get", "resourceName": "ExtendsDifferentSpreadFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "584", + "$id": "610", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8656,7 +8682,6 @@ ], "responses": [ { - "$id": "585", "statusCodes": [ 200 ], @@ -8681,7 +8706,7 @@ }, "parameters": [ { - "$id": "586", + "$id": "611", "name": "accept", "nameInRequest": "accept", "type": { @@ -8709,21 +8734,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get" }, { - "$id": "587", + "$id": "612", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "588", + "$id": "613", "name": "put", "resourceName": "ExtendsDifferentSpreadFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "589", + "$id": "614", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8741,7 +8766,7 @@ "skipUrlEncoding": false }, { - "$id": "590", + "$id": "615", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8761,7 +8786,6 @@ ], "responses": [ { - "$id": "591", "statusCodes": [ 204 ], @@ -8783,7 +8807,7 @@ }, "parameters": [ { - "$id": "592", + "$id": "616", "name": "body", "nameInRequest": "body", "doc": "body", @@ -8801,7 +8825,7 @@ "skipUrlEncoding": false }, { - "$id": "593", + "$id": "617", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8828,10 +8852,12 @@ ], "parameters": [ { + "$id": "618", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "619", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8846,6 +8872,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "620", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8862,27 +8889,27 @@ } }, { - "$id": "594", + "$id": "621", "kind": "client", "name": "ExtendsDifferentSpreadModel", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "595", + "$id": "622", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "596", + "$id": "623", "name": "get", "resourceName": "ExtendsDifferentSpreadModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "597", + "$id": "624", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8901,7 +8928,6 @@ ], "responses": [ { - "$id": "598", "statusCodes": [ 200 ], @@ -8926,7 +8952,7 @@ }, "parameters": [ { - "$id": "599", + "$id": "625", "name": "accept", "nameInRequest": "accept", "type": { @@ -8954,21 +8980,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get" }, { - "$id": "600", + "$id": "626", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "601", + "$id": "627", "name": "put", "resourceName": "ExtendsDifferentSpreadModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "602", + "$id": "628", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8986,7 +9012,7 @@ "skipUrlEncoding": false }, { - "$id": "603", + "$id": "629", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9006,7 +9032,6 @@ ], "responses": [ { - "$id": "604", "statusCodes": [ 204 ], @@ -9028,7 +9053,7 @@ }, "parameters": [ { - "$id": "605", + "$id": "630", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9046,7 +9071,7 @@ "skipUrlEncoding": false }, { - "$id": "606", + "$id": "631", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9073,10 +9098,12 @@ ], "parameters": [ { + "$id": "632", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "633", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9091,6 +9118,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "634", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9107,27 +9135,27 @@ } }, { - "$id": "607", + "$id": "635", "kind": "client", "name": "ExtendsDifferentSpreadModelArray", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "608", + "$id": "636", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "609", + "$id": "637", "name": "get", "resourceName": "ExtendsDifferentSpreadModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "610", + "$id": "638", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9146,7 +9174,6 @@ ], "responses": [ { - "$id": "611", "statusCodes": [ 200 ], @@ -9171,7 +9198,7 @@ }, "parameters": [ { - "$id": "612", + "$id": "639", "name": "accept", "nameInRequest": "accept", "type": { @@ -9199,21 +9226,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get" }, { - "$id": "613", + "$id": "640", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "614", + "$id": "641", "name": "put", "resourceName": "ExtendsDifferentSpreadModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "615", + "$id": "642", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9231,7 +9258,7 @@ "skipUrlEncoding": false }, { - "$id": "616", + "$id": "643", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9251,7 +9278,6 @@ ], "responses": [ { - "$id": "617", "statusCodes": [ 204 ], @@ -9273,7 +9299,7 @@ }, "parameters": [ { - "$id": "618", + "$id": "644", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9291,7 +9317,7 @@ "skipUrlEncoding": false }, { - "$id": "619", + "$id": "645", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9318,10 +9344,12 @@ ], "parameters": [ { + "$id": "646", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "647", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9336,6 +9364,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "648", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9352,27 +9381,27 @@ } }, { - "$id": "620", + "$id": "649", "kind": "client", "name": "MultipleSpread", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "621", + "$id": "650", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "622", + "$id": "651", "name": "get", "resourceName": "MultipleSpread", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "623", + "$id": "652", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9391,7 +9420,6 @@ ], "responses": [ { - "$id": "624", "statusCodes": [ 200 ], @@ -9416,7 +9444,7 @@ }, "parameters": [ { - "$id": "625", + "$id": "653", "name": "accept", "nameInRequest": "accept", "type": { @@ -9444,21 +9472,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get" }, { - "$id": "626", + "$id": "654", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "627", + "$id": "655", "name": "put", "resourceName": "MultipleSpread", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "628", + "$id": "656", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9476,7 +9504,7 @@ "skipUrlEncoding": false }, { - "$id": "629", + "$id": "657", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9496,7 +9524,6 @@ ], "responses": [ { - "$id": "630", "statusCodes": [ 204 ], @@ -9518,7 +9545,7 @@ }, "parameters": [ { - "$id": "631", + "$id": "658", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9536,7 +9563,7 @@ "skipUrlEncoding": false }, { - "$id": "632", + "$id": "659", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9563,10 +9590,12 @@ ], "parameters": [ { + "$id": "660", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "661", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9581,6 +9610,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "662", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9597,27 +9627,27 @@ } }, { - "$id": "633", + "$id": "663", "kind": "client", "name": "SpreadRecordUnion", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "634", + "$id": "664", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "635", + "$id": "665", "name": "get", "resourceName": "SpreadRecordUnion", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "636", + "$id": "666", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9636,7 +9666,6 @@ ], "responses": [ { - "$id": "637", "statusCodes": [ 200 ], @@ -9661,7 +9690,7 @@ }, "parameters": [ { - "$id": "638", + "$id": "667", "name": "accept", "nameInRequest": "accept", "type": { @@ -9689,21 +9718,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get" }, { - "$id": "639", + "$id": "668", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "640", + "$id": "669", "name": "put", "resourceName": "SpreadRecordUnion", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "641", + "$id": "670", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9721,7 +9750,7 @@ "skipUrlEncoding": false }, { - "$id": "642", + "$id": "671", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9741,7 +9770,6 @@ ], "responses": [ { - "$id": "643", "statusCodes": [ 204 ], @@ -9763,7 +9791,7 @@ }, "parameters": [ { - "$id": "644", + "$id": "672", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9781,7 +9809,7 @@ "skipUrlEncoding": false }, { - "$id": "645", + "$id": "673", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -9808,10 +9836,12 @@ ], "parameters": [ { + "$id": "674", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "675", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9826,6 +9856,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "676", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9842,27 +9873,27 @@ } }, { - "$id": "646", + "$id": "677", "kind": "client", "name": "SpreadRecordNonDiscriminatedUnion", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "647", + "$id": "678", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "648", + "$id": "679", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "649", + "$id": "680", "name": "accept", "nameInRequest": "Accept", "type": { @@ -9881,7 +9912,6 @@ ], "responses": [ { - "$id": "650", "statusCodes": [ 200 ], @@ -9906,7 +9936,7 @@ }, "parameters": [ { - "$id": "651", + "$id": "681", "name": "accept", "nameInRequest": "accept", "type": { @@ -9934,21 +9964,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get" }, { - "$id": "652", + "$id": "682", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "653", + "$id": "683", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "654", + "$id": "684", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -9966,7 +9996,7 @@ "skipUrlEncoding": false }, { - "$id": "655", + "$id": "685", "name": "body", "nameInRequest": "body", "doc": "body", @@ -9986,7 +10016,6 @@ ], "responses": [ { - "$id": "656", "statusCodes": [ 204 ], @@ -10008,7 +10037,7 @@ }, "parameters": [ { - "$id": "657", + "$id": "686", "name": "body", "nameInRequest": "body", "doc": "body", @@ -10026,7 +10055,7 @@ "skipUrlEncoding": false }, { - "$id": "658", + "$id": "687", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -10053,10 +10082,12 @@ ], "parameters": [ { + "$id": "688", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "689", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10071,6 +10102,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "690", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10087,27 +10119,27 @@ } }, { - "$id": "659", + "$id": "691", "kind": "client", "name": "SpreadRecordNonDiscriminatedUnion2", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "660", + "$id": "692", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "661", + "$id": "693", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion2", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "662", + "$id": "694", "name": "accept", "nameInRequest": "Accept", "type": { @@ -10126,7 +10158,6 @@ ], "responses": [ { - "$id": "663", "statusCodes": [ 200 ], @@ -10151,7 +10182,7 @@ }, "parameters": [ { - "$id": "664", + "$id": "695", "name": "accept", "nameInRequest": "accept", "type": { @@ -10179,21 +10210,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get" }, { - "$id": "665", + "$id": "696", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "666", + "$id": "697", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion2", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "667", + "$id": "698", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -10211,7 +10242,7 @@ "skipUrlEncoding": false }, { - "$id": "668", + "$id": "699", "name": "body", "nameInRequest": "body", "doc": "body", @@ -10231,7 +10262,6 @@ ], "responses": [ { - "$id": "669", "statusCodes": [ 204 ], @@ -10253,7 +10283,7 @@ }, "parameters": [ { - "$id": "670", + "$id": "700", "name": "body", "nameInRequest": "body", "doc": "body", @@ -10271,7 +10301,7 @@ "skipUrlEncoding": false }, { - "$id": "671", + "$id": "701", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -10298,10 +10328,12 @@ ], "parameters": [ { + "$id": "702", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "703", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10316,6 +10348,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "704", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10332,27 +10365,27 @@ } }, { - "$id": "672", + "$id": "705", "kind": "client", "name": "SpreadRecordNonDiscriminatedUnion3", "namespace": "Type.Property.AdditionalProperties", "methods": [ { - "$id": "673", + "$id": "706", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "674", + "$id": "707", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion3", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "675", + "$id": "708", "name": "accept", "nameInRequest": "Accept", "type": { @@ -10371,7 +10404,6 @@ ], "responses": [ { - "$id": "676", "statusCodes": [ 200 ], @@ -10396,7 +10428,7 @@ }, "parameters": [ { - "$id": "677", + "$id": "709", "name": "accept", "nameInRequest": "accept", "type": { @@ -10424,21 +10456,21 @@ "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get" }, { - "$id": "678", + "$id": "710", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "679", + "$id": "711", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion3", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "680", + "$id": "712", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -10456,7 +10488,7 @@ "skipUrlEncoding": false }, { - "$id": "681", + "$id": "713", "name": "body", "nameInRequest": "body", "doc": "body", @@ -10476,7 +10508,6 @@ ], "responses": [ { - "$id": "682", "statusCodes": [ 204 ], @@ -10498,7 +10529,7 @@ }, "parameters": [ { - "$id": "683", + "$id": "714", "name": "body", "nameInRequest": "body", "doc": "body", @@ -10516,7 +10547,7 @@ "skipUrlEncoding": false }, { - "$id": "684", + "$id": "715", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -10543,10 +10574,12 @@ ], "parameters": [ { + "$id": "716", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "717", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10561,6 +10594,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "718", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 c0309656f70..4e09b56e4fd 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 @@ -1229,10 +1229,12 @@ "methods": [], "parameters": [ { + "$id": "135", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "136", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1247,6 +1249,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1260,27 +1263,27 @@ "apiVersions": [], "children": [ { - "$id": "135", + "$id": "138", "kind": "client", "name": "String", "namespace": "Type.Property.Nullable", "methods": [ { - "$id": "136", + "$id": "139", "kind": "basic", "name": "getNonNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "137", + "$id": "140", "name": "getNonNull", "resourceName": "String", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "138", + "$id": "141", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1299,7 +1302,6 @@ ], "responses": [ { - "$id": "139", "statusCodes": [ 200 ], @@ -1324,7 +1326,7 @@ }, "parameters": [ { - "$id": "140", + "$id": "142", "name": "accept", "nameInRequest": "accept", "type": { @@ -1352,21 +1354,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull" }, { - "$id": "141", + "$id": "143", "kind": "basic", "name": "getNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "142", + "$id": "144", "name": "getNull", "resourceName": "String", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "145", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1385,7 +1387,6 @@ ], "responses": [ { - "$id": "144", "statusCodes": [ 200 ], @@ -1410,7 +1411,7 @@ }, "parameters": [ { - "$id": "145", + "$id": "146", "name": "accept", "nameInRequest": "accept", "type": { @@ -1438,21 +1439,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull" }, { - "$id": "146", + "$id": "147", "kind": "basic", "name": "patchNonNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "147", + "$id": "148", "name": "patchNonNull", "resourceName": "String", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "148", + "$id": "149", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -1470,7 +1471,7 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "150", "name": "body", "nameInRequest": "body", "type": { @@ -1489,7 +1490,6 @@ ], "responses": [ { - "$id": "150", "statusCodes": [ 204 ], @@ -1604,7 +1604,6 @@ ], "responses": [ { - "$id": "157", "statusCodes": [ 204 ], @@ -1626,7 +1625,7 @@ }, "parameters": [ { - "$id": "158", + "$id": "157", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -1644,7 +1643,7 @@ "skipUrlEncoding": false }, { - "$id": "159", + "$id": "158", "name": "body", "nameInRequest": "body", "type": { @@ -1670,10 +1669,12 @@ ], "parameters": [ { + "$id": "159", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "160", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1688,6 +1689,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "161", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1704,27 +1706,27 @@ } }, { - "$id": "160", + "$id": "162", "kind": "client", "name": "Bytes", "namespace": "Type.Property.Nullable", "methods": [ { - "$id": "161", + "$id": "163", "kind": "basic", "name": "getNonNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "162", + "$id": "164", "name": "getNonNull", "resourceName": "Bytes", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "163", + "$id": "165", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1743,7 +1745,6 @@ ], "responses": [ { - "$id": "164", "statusCodes": [ 200 ], @@ -1768,7 +1769,7 @@ }, "parameters": [ { - "$id": "165", + "$id": "166", "name": "accept", "nameInRequest": "accept", "type": { @@ -1796,21 +1797,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull" }, { - "$id": "166", + "$id": "167", "kind": "basic", "name": "getNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "167", + "$id": "168", "name": "getNull", "resourceName": "Bytes", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "168", + "$id": "169", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1829,7 +1830,6 @@ ], "responses": [ { - "$id": "169", "statusCodes": [ 200 ], @@ -1933,7 +1933,6 @@ ], "responses": [ { - "$id": "175", "statusCodes": [ 204 ], @@ -1955,7 +1954,7 @@ }, "parameters": [ { - "$id": "176", + "$id": "175", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -1973,7 +1972,7 @@ "skipUrlEncoding": false }, { - "$id": "177", + "$id": "176", "name": "body", "nameInRequest": "body", "type": { @@ -1997,21 +1996,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull" }, { - "$id": "178", + "$id": "177", "kind": "basic", "name": "patchNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "179", + "$id": "178", "name": "patchNull", "resourceName": "Bytes", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "180", + "$id": "179", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2029,7 +2028,7 @@ "skipUrlEncoding": false }, { - "$id": "181", + "$id": "180", "name": "body", "nameInRequest": "body", "type": { @@ -2048,7 +2047,6 @@ ], "responses": [ { - "$id": "182", "statusCodes": [ 204 ], @@ -2070,7 +2068,7 @@ }, "parameters": [ { - "$id": "183", + "$id": "181", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2088,7 +2086,7 @@ "skipUrlEncoding": false }, { - "$id": "184", + "$id": "182", "name": "body", "nameInRequest": "body", "type": { @@ -2114,10 +2112,12 @@ ], "parameters": [ { + "$id": "183", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "184", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2132,6 +2132,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2148,27 +2149,27 @@ } }, { - "$id": "185", + "$id": "186", "kind": "client", "name": "Datetime", "namespace": "Type.Property.Nullable", "methods": [ { - "$id": "186", + "$id": "187", "kind": "basic", "name": "getNonNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "187", + "$id": "188", "name": "getNonNull", "resourceName": "Datetime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "188", + "$id": "189", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2187,7 +2188,6 @@ ], "responses": [ { - "$id": "189", "statusCodes": [ 200 ], @@ -2273,7 +2273,6 @@ ], "responses": [ { - "$id": "194", "statusCodes": [ 200 ], @@ -2298,7 +2297,7 @@ }, "parameters": [ { - "$id": "195", + "$id": "194", "name": "accept", "nameInRequest": "accept", "type": { @@ -2326,21 +2325,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull" }, { - "$id": "196", + "$id": "195", "kind": "basic", "name": "patchNonNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "197", + "$id": "196", "name": "patchNonNull", "resourceName": "Datetime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "198", + "$id": "197", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2358,7 +2357,7 @@ "skipUrlEncoding": false }, { - "$id": "199", + "$id": "198", "name": "body", "nameInRequest": "body", "type": { @@ -2377,7 +2376,6 @@ ], "responses": [ { - "$id": "200", "statusCodes": [ 204 ], @@ -2399,7 +2397,7 @@ }, "parameters": [ { - "$id": "201", + "$id": "199", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2417,7 +2415,7 @@ "skipUrlEncoding": false }, { - "$id": "202", + "$id": "200", "name": "body", "nameInRequest": "body", "type": { @@ -2441,21 +2439,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull" }, { - "$id": "203", + "$id": "201", "kind": "basic", "name": "patchNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "204", + "$id": "202", "name": "patchNull", "resourceName": "Datetime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "205", + "$id": "203", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2473,7 +2471,7 @@ "skipUrlEncoding": false }, { - "$id": "206", + "$id": "204", "name": "body", "nameInRequest": "body", "type": { @@ -2492,7 +2490,6 @@ ], "responses": [ { - "$id": "207", "statusCodes": [ 204 ], @@ -2514,7 +2511,7 @@ }, "parameters": [ { - "$id": "208", + "$id": "205", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2532,7 +2529,7 @@ "skipUrlEncoding": false }, { - "$id": "209", + "$id": "206", "name": "body", "nameInRequest": "body", "type": { @@ -2558,10 +2555,12 @@ ], "parameters": [ { + "$id": "207", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "208", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2576,6 +2575,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2631,7 +2631,6 @@ ], "responses": [ { - "$id": "214", "statusCodes": [ 200 ], @@ -2656,7 +2655,7 @@ }, "parameters": [ { - "$id": "215", + "$id": "214", "name": "accept", "nameInRequest": "accept", "type": { @@ -2684,21 +2683,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull" }, { - "$id": "216", + "$id": "215", "kind": "basic", "name": "getNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "217", + "$id": "216", "name": "getNull", "resourceName": "Duration", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "218", + "$id": "217", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2717,7 +2716,6 @@ ], "responses": [ { - "$id": "219", "statusCodes": [ 200 ], @@ -2742,7 +2740,7 @@ }, "parameters": [ { - "$id": "220", + "$id": "218", "name": "accept", "nameInRequest": "accept", "type": { @@ -2770,21 +2768,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull" }, { - "$id": "221", + "$id": "219", "kind": "basic", "name": "patchNonNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "222", + "$id": "220", "name": "patchNonNull", "resourceName": "Duration", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "223", + "$id": "221", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2802,7 +2800,7 @@ "skipUrlEncoding": false }, { - "$id": "224", + "$id": "222", "name": "body", "nameInRequest": "body", "type": { @@ -2821,7 +2819,6 @@ ], "responses": [ { - "$id": "225", "statusCodes": [ 204 ], @@ -2843,7 +2840,7 @@ }, "parameters": [ { - "$id": "226", + "$id": "223", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2861,7 +2858,7 @@ "skipUrlEncoding": false }, { - "$id": "227", + "$id": "224", "name": "body", "nameInRequest": "body", "type": { @@ -2885,21 +2882,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull" }, { - "$id": "228", + "$id": "225", "kind": "basic", "name": "patchNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "229", + "$id": "226", "name": "patchNull", "resourceName": "Duration", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "230", + "$id": "227", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2917,7 +2914,7 @@ "skipUrlEncoding": false }, { - "$id": "231", + "$id": "228", "name": "body", "nameInRequest": "body", "type": { @@ -2936,7 +2933,6 @@ ], "responses": [ { - "$id": "232", "statusCodes": [ 204 ], @@ -2958,7 +2954,7 @@ }, "parameters": [ { - "$id": "233", + "$id": "229", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -2976,7 +2972,7 @@ "skipUrlEncoding": false }, { - "$id": "234", + "$id": "230", "name": "body", "nameInRequest": "body", "type": { @@ -3002,10 +2998,12 @@ ], "parameters": [ { + "$id": "231", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "232", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3020,6 +3018,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "233", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3036,27 +3035,27 @@ } }, { - "$id": "235", + "$id": "234", "kind": "client", "name": "CollectionsByte", "namespace": "Type.Property.Nullable", "methods": [ { - "$id": "236", + "$id": "235", "kind": "basic", "name": "getNonNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "237", + "$id": "236", "name": "getNonNull", "resourceName": "CollectionsByte", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "237", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3075,7 +3074,6 @@ ], "responses": [ { - "$id": "239", "statusCodes": [ 200 ], @@ -3100,7 +3098,7 @@ }, "parameters": [ { - "$id": "240", + "$id": "238", "name": "accept", "nameInRequest": "accept", "type": { @@ -3128,21 +3126,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull" }, { - "$id": "241", + "$id": "239", "kind": "basic", "name": "getNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "242", + "$id": "240", "name": "getNull", "resourceName": "CollectionsByte", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "241", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3161,7 +3159,6 @@ ], "responses": [ { - "$id": "244", "statusCodes": [ 200 ], @@ -3186,7 +3183,7 @@ }, "parameters": [ { - "$id": "245", + "$id": "242", "name": "accept", "nameInRequest": "accept", "type": { @@ -3214,21 +3211,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull" }, { - "$id": "246", + "$id": "243", "kind": "basic", "name": "patchNonNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "247", + "$id": "244", "name": "patchNonNull", "resourceName": "CollectionsByte", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "245", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3246,7 +3243,7 @@ "skipUrlEncoding": false }, { - "$id": "249", + "$id": "246", "name": "body", "nameInRequest": "body", "type": { @@ -3265,7 +3262,6 @@ ], "responses": [ { - "$id": "250", "statusCodes": [ 204 ], @@ -3287,7 +3283,7 @@ }, "parameters": [ { - "$id": "251", + "$id": "247", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3305,7 +3301,7 @@ "skipUrlEncoding": false }, { - "$id": "252", + "$id": "248", "name": "body", "nameInRequest": "body", "type": { @@ -3329,21 +3325,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull" }, { - "$id": "253", + "$id": "249", "kind": "basic", "name": "patchNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "254", + "$id": "250", "name": "patchNull", "resourceName": "CollectionsByte", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "255", + "$id": "251", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3361,7 +3357,7 @@ "skipUrlEncoding": false }, { - "$id": "256", + "$id": "252", "name": "body", "nameInRequest": "body", "type": { @@ -3380,7 +3376,6 @@ ], "responses": [ { - "$id": "257", "statusCodes": [ 204 ], @@ -3402,7 +3397,7 @@ }, "parameters": [ { - "$id": "258", + "$id": "253", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3420,7 +3415,7 @@ "skipUrlEncoding": false }, { - "$id": "259", + "$id": "254", "name": "body", "nameInRequest": "body", "type": { @@ -3446,10 +3441,12 @@ ], "parameters": [ { + "$id": "255", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "256", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3464,6 +3461,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3480,27 +3478,27 @@ } }, { - "$id": "260", + "$id": "258", "kind": "client", "name": "CollectionsModel", "namespace": "Type.Property.Nullable", "methods": [ { - "$id": "261", + "$id": "259", "kind": "basic", "name": "getNonNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "262", + "$id": "260", "name": "getNonNull", "resourceName": "CollectionsModel", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "263", + "$id": "261", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3519,7 +3517,6 @@ ], "responses": [ { - "$id": "264", "statusCodes": [ 200 ], @@ -3544,7 +3541,7 @@ }, "parameters": [ { - "$id": "265", + "$id": "262", "name": "accept", "nameInRequest": "accept", "type": { @@ -3572,21 +3569,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull" }, { - "$id": "266", + "$id": "263", "kind": "basic", "name": "getNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "267", + "$id": "264", "name": "getNull", "resourceName": "CollectionsModel", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "268", + "$id": "265", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3605,7 +3602,6 @@ ], "responses": [ { - "$id": "269", "statusCodes": [ 200 ], @@ -3630,7 +3626,7 @@ }, "parameters": [ { - "$id": "270", + "$id": "266", "name": "accept", "nameInRequest": "accept", "type": { @@ -3658,21 +3654,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull" }, { - "$id": "271", + "$id": "267", "kind": "basic", "name": "patchNonNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "272", + "$id": "268", "name": "patchNonNull", "resourceName": "CollectionsModel", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "269", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3690,7 +3686,7 @@ "skipUrlEncoding": false }, { - "$id": "274", + "$id": "270", "name": "body", "nameInRequest": "body", "type": { @@ -3709,7 +3705,6 @@ ], "responses": [ { - "$id": "275", "statusCodes": [ 204 ], @@ -3731,7 +3726,7 @@ }, "parameters": [ { - "$id": "276", + "$id": "271", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3749,7 +3744,7 @@ "skipUrlEncoding": false }, { - "$id": "277", + "$id": "272", "name": "body", "nameInRequest": "body", "type": { @@ -3773,21 +3768,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull" }, { - "$id": "278", + "$id": "273", "kind": "basic", "name": "patchNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "279", + "$id": "274", "name": "patchNull", "resourceName": "CollectionsModel", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "280", + "$id": "275", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3805,7 +3800,7 @@ "skipUrlEncoding": false }, { - "$id": "281", + "$id": "276", "name": "body", "nameInRequest": "body", "type": { @@ -3824,7 +3819,6 @@ ], "responses": [ { - "$id": "282", "statusCodes": [ 204 ], @@ -3846,7 +3840,7 @@ }, "parameters": [ { - "$id": "283", + "$id": "277", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -3864,7 +3858,7 @@ "skipUrlEncoding": false }, { - "$id": "284", + "$id": "278", "name": "body", "nameInRequest": "body", "type": { @@ -3890,10 +3884,12 @@ ], "parameters": [ { + "$id": "279", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "280", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3908,6 +3904,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "281", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3924,27 +3921,27 @@ } }, { - "$id": "285", + "$id": "282", "kind": "client", "name": "CollectionsString", "namespace": "Type.Property.Nullable", "methods": [ { - "$id": "286", + "$id": "283", "kind": "basic", "name": "getNonNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "287", + "$id": "284", "name": "getNonNull", "resourceName": "CollectionsString", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "288", + "$id": "285", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3963,7 +3960,6 @@ ], "responses": [ { - "$id": "289", "statusCodes": [ 200 ], @@ -3988,7 +3984,7 @@ }, "parameters": [ { - "$id": "290", + "$id": "286", "name": "accept", "nameInRequest": "accept", "type": { @@ -4016,21 +4012,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull" }, { - "$id": "291", + "$id": "287", "kind": "basic", "name": "getNull", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "292", + "$id": "288", "name": "getNull", "resourceName": "CollectionsString", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "293", + "$id": "289", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4049,7 +4045,6 @@ ], "responses": [ { - "$id": "294", "statusCodes": [ 200 ], @@ -4074,7 +4069,7 @@ }, "parameters": [ { - "$id": "295", + "$id": "290", "name": "accept", "nameInRequest": "accept", "type": { @@ -4102,21 +4097,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull" }, { - "$id": "296", + "$id": "291", "kind": "basic", "name": "patchNonNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "297", + "$id": "292", "name": "patchNonNull", "resourceName": "CollectionsString", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "298", + "$id": "293", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -4134,7 +4129,7 @@ "skipUrlEncoding": false }, { - "$id": "299", + "$id": "294", "name": "body", "nameInRequest": "body", "type": { @@ -4153,7 +4148,6 @@ ], "responses": [ { - "$id": "300", "statusCodes": [ 204 ], @@ -4175,7 +4169,7 @@ }, "parameters": [ { - "$id": "301", + "$id": "295", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -4193,7 +4187,7 @@ "skipUrlEncoding": false }, { - "$id": "302", + "$id": "296", "name": "body", "nameInRequest": "body", "type": { @@ -4217,21 +4211,21 @@ "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull" }, { - "$id": "303", + "$id": "297", "kind": "basic", "name": "patchNull", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "304", + "$id": "298", "name": "patchNull", "resourceName": "CollectionsString", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "305", + "$id": "299", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -4249,7 +4243,7 @@ "skipUrlEncoding": false }, { - "$id": "306", + "$id": "300", "name": "body", "nameInRequest": "body", "type": { @@ -4268,7 +4262,6 @@ ], "responses": [ { - "$id": "307", "statusCodes": [ 204 ], @@ -4290,7 +4283,7 @@ }, "parameters": [ { - "$id": "308", + "$id": "301", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", @@ -4308,7 +4301,7 @@ "skipUrlEncoding": false }, { - "$id": "309", + "$id": "302", "name": "body", "nameInRequest": "body", "type": { @@ -4334,10 +4327,12 @@ ], "parameters": [ { + "$id": "303", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "304", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4352,6 +4347,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "305", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 9f4be0afb41..129824726de 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 @@ -1860,10 +1860,12 @@ "methods": [], "parameters": [ { + "$id": "196", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "197", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1878,6 +1880,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1891,27 +1894,27 @@ "apiVersions": [], "children": [ { - "$id": "196", + "$id": "199", "kind": "client", "name": "String", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "197", + "$id": "200", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "198", + "$id": "201", "name": "getAll", "resourceName": "String", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "199", + "$id": "202", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1930,7 +1933,6 @@ ], "responses": [ { - "$id": "200", "statusCodes": [ 200 ], @@ -1955,7 +1957,7 @@ }, "parameters": [ { - "$id": "201", + "$id": "203", "name": "accept", "nameInRequest": "accept", "type": { @@ -1983,21 +1985,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll" }, { - "$id": "202", + "$id": "204", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "203", + "$id": "205", "name": "getDefault", "resourceName": "String", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "206", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2016,7 +2018,6 @@ ], "responses": [ { - "$id": "205", "statusCodes": [ 200 ], @@ -2041,7 +2042,7 @@ }, "parameters": [ { - "$id": "206", + "$id": "207", "name": "accept", "nameInRequest": "accept", "type": { @@ -2069,21 +2070,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault" }, { - "$id": "207", + "$id": "208", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "208", + "$id": "209", "name": "putAll", "resourceName": "String", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "209", + "$id": "210", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2101,7 +2102,7 @@ "skipUrlEncoding": false }, { - "$id": "210", + "$id": "211", "name": "body", "nameInRequest": "body", "type": { @@ -2120,7 +2121,6 @@ ], "responses": [ { - "$id": "211", "statusCodes": [ 204 ], @@ -2235,7 +2235,6 @@ ], "responses": [ { - "$id": "218", "statusCodes": [ 204 ], @@ -2257,7 +2256,7 @@ }, "parameters": [ { - "$id": "219", + "$id": "218", "name": "body", "nameInRequest": "body", "type": { @@ -2274,7 +2273,7 @@ "skipUrlEncoding": false }, { - "$id": "220", + "$id": "219", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2301,10 +2300,12 @@ ], "parameters": [ { + "$id": "220", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "221", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2319,6 +2320,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2335,27 +2337,27 @@ } }, { - "$id": "221", + "$id": "223", "kind": "client", "name": "Bytes", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "222", + "$id": "224", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "223", + "$id": "225", "name": "getAll", "resourceName": "Bytes", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "226", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2374,7 +2376,6 @@ ], "responses": [ { - "$id": "225", "statusCodes": [ 200 ], @@ -2399,7 +2400,7 @@ }, "parameters": [ { - "$id": "226", + "$id": "227", "name": "accept", "nameInRequest": "accept", "type": { @@ -2427,21 +2428,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll" }, { - "$id": "227", + "$id": "228", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "228", + "$id": "229", "name": "getDefault", "resourceName": "Bytes", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "229", + "$id": "230", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2460,7 +2461,6 @@ ], "responses": [ { - "$id": "230", "statusCodes": [ 200 ], @@ -2564,7 +2564,6 @@ ], "responses": [ { - "$id": "236", "statusCodes": [ 204 ], @@ -2586,7 +2585,7 @@ }, "parameters": [ { - "$id": "237", + "$id": "236", "name": "body", "nameInRequest": "body", "type": { @@ -2603,7 +2602,7 @@ "skipUrlEncoding": false }, { - "$id": "238", + "$id": "237", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2628,21 +2627,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll" }, { - "$id": "239", + "$id": "238", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "240", + "$id": "239", "name": "putDefault", "resourceName": "Bytes", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "241", + "$id": "240", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2660,7 +2659,7 @@ "skipUrlEncoding": false }, { - "$id": "242", + "$id": "241", "name": "body", "nameInRequest": "body", "type": { @@ -2679,7 +2678,6 @@ ], "responses": [ { - "$id": "243", "statusCodes": [ 204 ], @@ -2701,7 +2699,7 @@ }, "parameters": [ { - "$id": "244", + "$id": "242", "name": "body", "nameInRequest": "body", "type": { @@ -2718,7 +2716,7 @@ "skipUrlEncoding": false }, { - "$id": "245", + "$id": "243", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2745,10 +2743,12 @@ ], "parameters": [ { + "$id": "244", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "245", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2763,6 +2763,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "246", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2779,27 +2780,27 @@ } }, { - "$id": "246", + "$id": "247", "kind": "client", "name": "Datetime", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "247", + "$id": "248", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "248", + "$id": "249", "name": "getAll", "resourceName": "Datetime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "249", + "$id": "250", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2818,7 +2819,6 @@ ], "responses": [ { - "$id": "250", "statusCodes": [ 200 ], @@ -2904,7 +2904,6 @@ ], "responses": [ { - "$id": "255", "statusCodes": [ 200 ], @@ -2929,7 +2928,7 @@ }, "parameters": [ { - "$id": "256", + "$id": "255", "name": "accept", "nameInRequest": "accept", "type": { @@ -2957,21 +2956,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault" }, { - "$id": "257", + "$id": "256", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "258", + "$id": "257", "name": "putAll", "resourceName": "Datetime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "259", + "$id": "258", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2989,7 +2988,7 @@ "skipUrlEncoding": false }, { - "$id": "260", + "$id": "259", "name": "body", "nameInRequest": "body", "type": { @@ -3008,7 +3007,6 @@ ], "responses": [ { - "$id": "261", "statusCodes": [ 204 ], @@ -3030,7 +3028,7 @@ }, "parameters": [ { - "$id": "262", + "$id": "260", "name": "body", "nameInRequest": "body", "type": { @@ -3047,7 +3045,7 @@ "skipUrlEncoding": false }, { - "$id": "263", + "$id": "261", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3072,21 +3070,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll" }, { - "$id": "264", + "$id": "262", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "265", + "$id": "263", "name": "putDefault", "resourceName": "Datetime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "266", + "$id": "264", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3104,7 +3102,7 @@ "skipUrlEncoding": false }, { - "$id": "267", + "$id": "265", "name": "body", "nameInRequest": "body", "type": { @@ -3123,7 +3121,6 @@ ], "responses": [ { - "$id": "268", "statusCodes": [ 204 ], @@ -3145,7 +3142,7 @@ }, "parameters": [ { - "$id": "269", + "$id": "266", "name": "body", "nameInRequest": "body", "type": { @@ -3162,7 +3159,7 @@ "skipUrlEncoding": false }, { - "$id": "270", + "$id": "267", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3189,10 +3186,12 @@ ], "parameters": [ { + "$id": "268", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "269", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3207,6 +3206,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3262,7 +3262,6 @@ ], "responses": [ { - "$id": "275", "statusCodes": [ 200 ], @@ -3287,7 +3286,7 @@ }, "parameters": [ { - "$id": "276", + "$id": "275", "name": "accept", "nameInRequest": "accept", "type": { @@ -3315,21 +3314,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll" }, { - "$id": "277", + "$id": "276", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "278", + "$id": "277", "name": "getDefault", "resourceName": "Duration", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "279", + "$id": "278", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3348,7 +3347,6 @@ ], "responses": [ { - "$id": "280", "statusCodes": [ 200 ], @@ -3373,7 +3371,7 @@ }, "parameters": [ { - "$id": "281", + "$id": "279", "name": "accept", "nameInRequest": "accept", "type": { @@ -3401,21 +3399,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault" }, { - "$id": "282", + "$id": "280", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "283", + "$id": "281", "name": "putAll", "resourceName": "Duration", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "284", + "$id": "282", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3433,7 +3431,7 @@ "skipUrlEncoding": false }, { - "$id": "285", + "$id": "283", "name": "body", "nameInRequest": "body", "type": { @@ -3452,7 +3450,6 @@ ], "responses": [ { - "$id": "286", "statusCodes": [ 204 ], @@ -3474,7 +3471,7 @@ }, "parameters": [ { - "$id": "287", + "$id": "284", "name": "body", "nameInRequest": "body", "type": { @@ -3491,7 +3488,7 @@ "skipUrlEncoding": false }, { - "$id": "288", + "$id": "285", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3516,21 +3513,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll" }, { - "$id": "289", + "$id": "286", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "290", + "$id": "287", "name": "putDefault", "resourceName": "Duration", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "288", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3548,7 +3545,7 @@ "skipUrlEncoding": false }, { - "$id": "292", + "$id": "289", "name": "body", "nameInRequest": "body", "type": { @@ -3567,7 +3564,6 @@ ], "responses": [ { - "$id": "293", "statusCodes": [ 204 ], @@ -3589,7 +3585,7 @@ }, "parameters": [ { - "$id": "294", + "$id": "290", "name": "body", "nameInRequest": "body", "type": { @@ -3606,7 +3602,7 @@ "skipUrlEncoding": false }, { - "$id": "295", + "$id": "291", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3633,10 +3629,12 @@ ], "parameters": [ { + "$id": "292", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "293", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3651,6 +3649,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3667,27 +3666,27 @@ } }, { - "$id": "296", + "$id": "295", "kind": "client", "name": "PlainDate", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "297", + "$id": "296", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "298", + "$id": "297", "name": "getAll", "resourceName": "PlainDate", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "299", + "$id": "298", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3706,7 +3705,6 @@ ], "responses": [ { - "$id": "300", "statusCodes": [ 200 ], @@ -3731,7 +3729,7 @@ }, "parameters": [ { - "$id": "301", + "$id": "299", "name": "accept", "nameInRequest": "accept", "type": { @@ -3759,21 +3757,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll" }, { - "$id": "302", + "$id": "300", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "303", + "$id": "301", "name": "getDefault", "resourceName": "PlainDate", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "304", + "$id": "302", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3792,7 +3790,6 @@ ], "responses": [ { - "$id": "305", "statusCodes": [ 200 ], @@ -3817,7 +3814,7 @@ }, "parameters": [ { - "$id": "306", + "$id": "303", "name": "accept", "nameInRequest": "accept", "type": { @@ -3845,21 +3842,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault" }, { - "$id": "307", + "$id": "304", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "308", + "$id": "305", "name": "putAll", "resourceName": "PlainDate", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "309", + "$id": "306", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3877,7 +3874,7 @@ "skipUrlEncoding": false }, { - "$id": "310", + "$id": "307", "name": "body", "nameInRequest": "body", "type": { @@ -3896,7 +3893,6 @@ ], "responses": [ { - "$id": "311", "statusCodes": [ 204 ], @@ -3918,7 +3914,7 @@ }, "parameters": [ { - "$id": "312", + "$id": "308", "name": "body", "nameInRequest": "body", "type": { @@ -3935,7 +3931,7 @@ "skipUrlEncoding": false }, { - "$id": "313", + "$id": "309", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3960,21 +3956,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll" }, { - "$id": "314", + "$id": "310", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "315", + "$id": "311", "name": "putDefault", "resourceName": "PlainDate", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "312", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3992,7 +3988,7 @@ "skipUrlEncoding": false }, { - "$id": "317", + "$id": "313", "name": "body", "nameInRequest": "body", "type": { @@ -4011,7 +4007,6 @@ ], "responses": [ { - "$id": "318", "statusCodes": [ 204 ], @@ -4033,7 +4028,7 @@ }, "parameters": [ { - "$id": "319", + "$id": "314", "name": "body", "nameInRequest": "body", "type": { @@ -4050,7 +4045,7 @@ "skipUrlEncoding": false }, { - "$id": "320", + "$id": "315", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4077,10 +4072,12 @@ ], "parameters": [ { + "$id": "316", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "317", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4095,6 +4092,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "318", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4111,27 +4109,27 @@ } }, { - "$id": "321", + "$id": "319", "kind": "client", "name": "PlainTime", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "322", + "$id": "320", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "323", + "$id": "321", "name": "getAll", "resourceName": "PlainTime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "322", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4150,7 +4148,6 @@ ], "responses": [ { - "$id": "325", "statusCodes": [ 200 ], @@ -4175,7 +4172,7 @@ }, "parameters": [ { - "$id": "326", + "$id": "323", "name": "accept", "nameInRequest": "accept", "type": { @@ -4203,21 +4200,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll" }, { - "$id": "327", + "$id": "324", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "328", + "$id": "325", "name": "getDefault", "resourceName": "PlainTime", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "329", + "$id": "326", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4236,7 +4233,6 @@ ], "responses": [ { - "$id": "330", "statusCodes": [ 200 ], @@ -4261,7 +4257,7 @@ }, "parameters": [ { - "$id": "331", + "$id": "327", "name": "accept", "nameInRequest": "accept", "type": { @@ -4289,21 +4285,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault" }, { - "$id": "332", + "$id": "328", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "333", + "$id": "329", "name": "putAll", "resourceName": "PlainTime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "334", + "$id": "330", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4321,7 +4317,7 @@ "skipUrlEncoding": false }, { - "$id": "335", + "$id": "331", "name": "body", "nameInRequest": "body", "type": { @@ -4340,7 +4336,6 @@ ], "responses": [ { - "$id": "336", "statusCodes": [ 204 ], @@ -4362,7 +4357,7 @@ }, "parameters": [ { - "$id": "337", + "$id": "332", "name": "body", "nameInRequest": "body", "type": { @@ -4379,7 +4374,7 @@ "skipUrlEncoding": false }, { - "$id": "338", + "$id": "333", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4404,21 +4399,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll" }, { - "$id": "339", + "$id": "334", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "340", + "$id": "335", "name": "putDefault", "resourceName": "PlainTime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "341", + "$id": "336", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4436,7 +4431,7 @@ "skipUrlEncoding": false }, { - "$id": "342", + "$id": "337", "name": "body", "nameInRequest": "body", "type": { @@ -4455,7 +4450,6 @@ ], "responses": [ { - "$id": "343", "statusCodes": [ 204 ], @@ -4477,7 +4471,7 @@ }, "parameters": [ { - "$id": "344", + "$id": "338", "name": "body", "nameInRequest": "body", "type": { @@ -4494,7 +4488,7 @@ "skipUrlEncoding": false }, { - "$id": "345", + "$id": "339", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4521,10 +4515,12 @@ ], "parameters": [ { + "$id": "340", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "341", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4539,6 +4535,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "342", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4555,27 +4552,27 @@ } }, { - "$id": "346", + "$id": "343", "kind": "client", "name": "CollectionsByte", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "347", + "$id": "344", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "348", + "$id": "345", "name": "getAll", "resourceName": "CollectionsByte", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "349", + "$id": "346", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4594,7 +4591,6 @@ ], "responses": [ { - "$id": "350", "statusCodes": [ 200 ], @@ -4619,7 +4615,7 @@ }, "parameters": [ { - "$id": "351", + "$id": "347", "name": "accept", "nameInRequest": "accept", "type": { @@ -4647,21 +4643,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll" }, { - "$id": "352", + "$id": "348", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "353", + "$id": "349", "name": "getDefault", "resourceName": "CollectionsByte", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "354", + "$id": "350", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4680,7 +4676,6 @@ ], "responses": [ { - "$id": "355", "statusCodes": [ 200 ], @@ -4705,7 +4700,7 @@ }, "parameters": [ { - "$id": "356", + "$id": "351", "name": "accept", "nameInRequest": "accept", "type": { @@ -4733,21 +4728,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault" }, { - "$id": "357", + "$id": "352", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "358", + "$id": "353", "name": "putAll", "resourceName": "CollectionsByte", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "359", + "$id": "354", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4765,7 +4760,7 @@ "skipUrlEncoding": false }, { - "$id": "360", + "$id": "355", "name": "body", "nameInRequest": "body", "type": { @@ -4784,7 +4779,6 @@ ], "responses": [ { - "$id": "361", "statusCodes": [ 204 ], @@ -4806,7 +4800,7 @@ }, "parameters": [ { - "$id": "362", + "$id": "356", "name": "body", "nameInRequest": "body", "type": { @@ -4823,7 +4817,7 @@ "skipUrlEncoding": false }, { - "$id": "363", + "$id": "357", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4848,21 +4842,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll" }, { - "$id": "364", + "$id": "358", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "365", + "$id": "359", "name": "putDefault", "resourceName": "CollectionsByte", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "366", + "$id": "360", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4880,7 +4874,7 @@ "skipUrlEncoding": false }, { - "$id": "367", + "$id": "361", "name": "body", "nameInRequest": "body", "type": { @@ -4899,7 +4893,6 @@ ], "responses": [ { - "$id": "368", "statusCodes": [ 204 ], @@ -4921,7 +4914,7 @@ }, "parameters": [ { - "$id": "369", + "$id": "362", "name": "body", "nameInRequest": "body", "type": { @@ -4938,7 +4931,7 @@ "skipUrlEncoding": false }, { - "$id": "370", + "$id": "363", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4965,10 +4958,12 @@ ], "parameters": [ { + "$id": "364", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "365", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4983,6 +4978,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4999,27 +4995,27 @@ } }, { - "$id": "371", + "$id": "367", "kind": "client", "name": "CollectionsModel", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "372", + "$id": "368", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "373", + "$id": "369", "name": "getAll", "resourceName": "CollectionsModel", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "374", + "$id": "370", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5038,7 +5034,6 @@ ], "responses": [ { - "$id": "375", "statusCodes": [ 200 ], @@ -5063,7 +5058,7 @@ }, "parameters": [ { - "$id": "376", + "$id": "371", "name": "accept", "nameInRequest": "accept", "type": { @@ -5091,21 +5086,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll" }, { - "$id": "377", + "$id": "372", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "378", + "$id": "373", "name": "getDefault", "resourceName": "CollectionsModel", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "379", + "$id": "374", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5124,7 +5119,6 @@ ], "responses": [ { - "$id": "380", "statusCodes": [ 200 ], @@ -5149,7 +5143,7 @@ }, "parameters": [ { - "$id": "381", + "$id": "375", "name": "accept", "nameInRequest": "accept", "type": { @@ -5177,21 +5171,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault" }, { - "$id": "382", + "$id": "376", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "383", + "$id": "377", "name": "putAll", "resourceName": "CollectionsModel", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "384", + "$id": "378", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5209,7 +5203,7 @@ "skipUrlEncoding": false }, { - "$id": "385", + "$id": "379", "name": "body", "nameInRequest": "body", "type": { @@ -5228,7 +5222,6 @@ ], "responses": [ { - "$id": "386", "statusCodes": [ 204 ], @@ -5250,7 +5243,7 @@ }, "parameters": [ { - "$id": "387", + "$id": "380", "name": "body", "nameInRequest": "body", "type": { @@ -5267,7 +5260,7 @@ "skipUrlEncoding": false }, { - "$id": "388", + "$id": "381", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5292,21 +5285,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll" }, { - "$id": "389", + "$id": "382", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "390", + "$id": "383", "name": "putDefault", "resourceName": "CollectionsModel", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "391", + "$id": "384", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5324,7 +5317,7 @@ "skipUrlEncoding": false }, { - "$id": "392", + "$id": "385", "name": "body", "nameInRequest": "body", "type": { @@ -5343,7 +5336,6 @@ ], "responses": [ { - "$id": "393", "statusCodes": [ 204 ], @@ -5365,7 +5357,7 @@ }, "parameters": [ { - "$id": "394", + "$id": "386", "name": "body", "nameInRequest": "body", "type": { @@ -5382,7 +5374,7 @@ "skipUrlEncoding": false }, { - "$id": "395", + "$id": "387", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5409,10 +5401,12 @@ ], "parameters": [ { + "$id": "388", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "389", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5427,6 +5421,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "390", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5443,27 +5438,27 @@ } }, { - "$id": "396", + "$id": "391", "kind": "client", "name": "StringLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "397", + "$id": "392", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "398", + "$id": "393", "name": "getAll", "resourceName": "StringLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "399", + "$id": "394", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5482,7 +5477,6 @@ ], "responses": [ { - "$id": "400", "statusCodes": [ 200 ], @@ -5507,7 +5501,7 @@ }, "parameters": [ { - "$id": "401", + "$id": "395", "name": "accept", "nameInRequest": "accept", "type": { @@ -5535,21 +5529,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll" }, { - "$id": "402", + "$id": "396", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "403", + "$id": "397", "name": "getDefault", "resourceName": "StringLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "404", + "$id": "398", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5568,7 +5562,6 @@ ], "responses": [ { - "$id": "405", "statusCodes": [ 200 ], @@ -5593,7 +5586,7 @@ }, "parameters": [ { - "$id": "406", + "$id": "399", "name": "accept", "nameInRequest": "accept", "type": { @@ -5621,21 +5614,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault" }, { - "$id": "407", + "$id": "400", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "408", + "$id": "401", "name": "putAll", "resourceName": "StringLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "409", + "$id": "402", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5653,7 +5646,7 @@ "skipUrlEncoding": false }, { - "$id": "410", + "$id": "403", "name": "body", "nameInRequest": "body", "type": { @@ -5672,7 +5665,6 @@ ], "responses": [ { - "$id": "411", "statusCodes": [ 204 ], @@ -5694,7 +5686,7 @@ }, "parameters": [ { - "$id": "412", + "$id": "404", "name": "body", "nameInRequest": "body", "type": { @@ -5711,7 +5703,7 @@ "skipUrlEncoding": false }, { - "$id": "413", + "$id": "405", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5736,21 +5728,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll" }, { - "$id": "414", + "$id": "406", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "415", + "$id": "407", "name": "putDefault", "resourceName": "StringLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "416", + "$id": "408", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5768,7 +5760,7 @@ "skipUrlEncoding": false }, { - "$id": "417", + "$id": "409", "name": "body", "nameInRequest": "body", "type": { @@ -5787,7 +5779,6 @@ ], "responses": [ { - "$id": "418", "statusCodes": [ 204 ], @@ -5809,7 +5800,7 @@ }, "parameters": [ { - "$id": "419", + "$id": "410", "name": "body", "nameInRequest": "body", "type": { @@ -5826,7 +5817,7 @@ "skipUrlEncoding": false }, { - "$id": "420", + "$id": "411", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -5853,10 +5844,12 @@ ], "parameters": [ { + "$id": "412", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "413", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5871,6 +5864,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5887,27 +5881,27 @@ } }, { - "$id": "421", + "$id": "415", "kind": "client", "name": "IntLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "422", + "$id": "416", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "423", + "$id": "417", "name": "getAll", "resourceName": "IntLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "424", + "$id": "418", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5926,7 +5920,6 @@ ], "responses": [ { - "$id": "425", "statusCodes": [ 200 ], @@ -5951,7 +5944,7 @@ }, "parameters": [ { - "$id": "426", + "$id": "419", "name": "accept", "nameInRequest": "accept", "type": { @@ -5979,21 +5972,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll" }, { - "$id": "427", + "$id": "420", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "428", + "$id": "421", "name": "getDefault", "resourceName": "IntLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "429", + "$id": "422", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6012,7 +6005,6 @@ ], "responses": [ { - "$id": "430", "statusCodes": [ 200 ], @@ -6037,7 +6029,7 @@ }, "parameters": [ { - "$id": "431", + "$id": "423", "name": "accept", "nameInRequest": "accept", "type": { @@ -6065,21 +6057,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault" }, { - "$id": "432", + "$id": "424", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "433", + "$id": "425", "name": "putAll", "resourceName": "IntLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "434", + "$id": "426", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6097,7 +6089,7 @@ "skipUrlEncoding": false }, { - "$id": "435", + "$id": "427", "name": "body", "nameInRequest": "body", "type": { @@ -6116,7 +6108,6 @@ ], "responses": [ { - "$id": "436", "statusCodes": [ 204 ], @@ -6138,7 +6129,7 @@ }, "parameters": [ { - "$id": "437", + "$id": "428", "name": "body", "nameInRequest": "body", "type": { @@ -6155,7 +6146,7 @@ "skipUrlEncoding": false }, { - "$id": "438", + "$id": "429", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6180,21 +6171,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll" }, { - "$id": "439", + "$id": "430", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "440", + "$id": "431", "name": "putDefault", "resourceName": "IntLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "441", + "$id": "432", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6212,7 +6203,7 @@ "skipUrlEncoding": false }, { - "$id": "442", + "$id": "433", "name": "body", "nameInRequest": "body", "type": { @@ -6231,7 +6222,6 @@ ], "responses": [ { - "$id": "443", "statusCodes": [ 204 ], @@ -6253,7 +6243,7 @@ }, "parameters": [ { - "$id": "444", + "$id": "434", "name": "body", "nameInRequest": "body", "type": { @@ -6270,7 +6260,7 @@ "skipUrlEncoding": false }, { - "$id": "445", + "$id": "435", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6297,10 +6287,12 @@ ], "parameters": [ { + "$id": "436", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "437", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6315,6 +6307,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6331,27 +6324,27 @@ } }, { - "$id": "446", + "$id": "439", "kind": "client", "name": "FloatLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "447", + "$id": "440", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "448", + "$id": "441", "name": "getAll", "resourceName": "FloatLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "449", + "$id": "442", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6370,7 +6363,6 @@ ], "responses": [ { - "$id": "450", "statusCodes": [ 200 ], @@ -6395,7 +6387,7 @@ }, "parameters": [ { - "$id": "451", + "$id": "443", "name": "accept", "nameInRequest": "accept", "type": { @@ -6423,21 +6415,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll" }, { - "$id": "452", + "$id": "444", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "453", + "$id": "445", "name": "getDefault", "resourceName": "FloatLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "454", + "$id": "446", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6456,7 +6448,6 @@ ], "responses": [ { - "$id": "455", "statusCodes": [ 200 ], @@ -6481,7 +6472,7 @@ }, "parameters": [ { - "$id": "456", + "$id": "447", "name": "accept", "nameInRequest": "accept", "type": { @@ -6509,21 +6500,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault" }, { - "$id": "457", + "$id": "448", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "458", + "$id": "449", "name": "putAll", "resourceName": "FloatLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "459", + "$id": "450", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6541,7 +6532,7 @@ "skipUrlEncoding": false }, { - "$id": "460", + "$id": "451", "name": "body", "nameInRequest": "body", "type": { @@ -6560,7 +6551,6 @@ ], "responses": [ { - "$id": "461", "statusCodes": [ 204 ], @@ -6582,7 +6572,7 @@ }, "parameters": [ { - "$id": "462", + "$id": "452", "name": "body", "nameInRequest": "body", "type": { @@ -6599,7 +6589,7 @@ "skipUrlEncoding": false }, { - "$id": "463", + "$id": "453", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6624,21 +6614,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll" }, { - "$id": "464", + "$id": "454", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "465", + "$id": "455", "name": "putDefault", "resourceName": "FloatLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "466", + "$id": "456", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6656,7 +6646,7 @@ "skipUrlEncoding": false }, { - "$id": "467", + "$id": "457", "name": "body", "nameInRequest": "body", "type": { @@ -6675,7 +6665,6 @@ ], "responses": [ { - "$id": "468", "statusCodes": [ 204 ], @@ -6697,7 +6686,7 @@ }, "parameters": [ { - "$id": "469", + "$id": "458", "name": "body", "nameInRequest": "body", "type": { @@ -6714,7 +6703,7 @@ "skipUrlEncoding": false }, { - "$id": "470", + "$id": "459", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -6741,10 +6730,12 @@ ], "parameters": [ { + "$id": "460", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "461", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6759,6 +6750,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6775,27 +6767,27 @@ } }, { - "$id": "471", + "$id": "463", "kind": "client", "name": "BooleanLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "472", + "$id": "464", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "473", + "$id": "465", "name": "getAll", "resourceName": "BooleanLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "474", + "$id": "466", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6814,7 +6806,6 @@ ], "responses": [ { - "$id": "475", "statusCodes": [ 200 ], @@ -6839,7 +6830,7 @@ }, "parameters": [ { - "$id": "476", + "$id": "467", "name": "accept", "nameInRequest": "accept", "type": { @@ -6867,21 +6858,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll" }, { - "$id": "477", + "$id": "468", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "478", + "$id": "469", "name": "getDefault", "resourceName": "BooleanLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "479", + "$id": "470", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6900,7 +6891,6 @@ ], "responses": [ { - "$id": "480", "statusCodes": [ 200 ], @@ -6925,7 +6915,7 @@ }, "parameters": [ { - "$id": "481", + "$id": "471", "name": "accept", "nameInRequest": "accept", "type": { @@ -6953,21 +6943,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault" }, { - "$id": "482", + "$id": "472", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "483", + "$id": "473", "name": "putAll", "resourceName": "BooleanLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "484", + "$id": "474", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -6985,7 +6975,7 @@ "skipUrlEncoding": false }, { - "$id": "485", + "$id": "475", "name": "body", "nameInRequest": "body", "type": { @@ -7004,7 +6994,6 @@ ], "responses": [ { - "$id": "486", "statusCodes": [ 204 ], @@ -7026,7 +7015,7 @@ }, "parameters": [ { - "$id": "487", + "$id": "476", "name": "body", "nameInRequest": "body", "type": { @@ -7043,7 +7032,7 @@ "skipUrlEncoding": false }, { - "$id": "488", + "$id": "477", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7068,21 +7057,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll" }, { - "$id": "489", + "$id": "478", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "490", + "$id": "479", "name": "putDefault", "resourceName": "BooleanLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "491", + "$id": "480", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7100,7 +7089,7 @@ "skipUrlEncoding": false }, { - "$id": "492", + "$id": "481", "name": "body", "nameInRequest": "body", "type": { @@ -7119,7 +7108,6 @@ ], "responses": [ { - "$id": "493", "statusCodes": [ 204 ], @@ -7141,7 +7129,7 @@ }, "parameters": [ { - "$id": "494", + "$id": "482", "name": "body", "nameInRequest": "body", "type": { @@ -7158,7 +7146,7 @@ "skipUrlEncoding": false }, { - "$id": "495", + "$id": "483", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7185,10 +7173,12 @@ ], "parameters": [ { + "$id": "484", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "485", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7203,6 +7193,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "486", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7219,27 +7210,27 @@ } }, { - "$id": "496", + "$id": "487", "kind": "client", "name": "UnionStringLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "497", + "$id": "488", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "498", + "$id": "489", "name": "getAll", "resourceName": "UnionStringLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "499", + "$id": "490", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7258,7 +7249,6 @@ ], "responses": [ { - "$id": "500", "statusCodes": [ 200 ], @@ -7283,7 +7273,7 @@ }, "parameters": [ { - "$id": "501", + "$id": "491", "name": "accept", "nameInRequest": "accept", "type": { @@ -7311,21 +7301,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll" }, { - "$id": "502", + "$id": "492", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "503", + "$id": "493", "name": "getDefault", "resourceName": "UnionStringLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "504", + "$id": "494", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7344,7 +7334,6 @@ ], "responses": [ { - "$id": "505", "statusCodes": [ 200 ], @@ -7369,7 +7358,7 @@ }, "parameters": [ { - "$id": "506", + "$id": "495", "name": "accept", "nameInRequest": "accept", "type": { @@ -7397,21 +7386,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault" }, { - "$id": "507", + "$id": "496", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "508", + "$id": "497", "name": "putAll", "resourceName": "UnionStringLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "509", + "$id": "498", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7429,7 +7418,7 @@ "skipUrlEncoding": false }, { - "$id": "510", + "$id": "499", "name": "body", "nameInRequest": "body", "type": { @@ -7448,7 +7437,6 @@ ], "responses": [ { - "$id": "511", "statusCodes": [ 204 ], @@ -7470,7 +7458,7 @@ }, "parameters": [ { - "$id": "512", + "$id": "500", "name": "body", "nameInRequest": "body", "type": { @@ -7487,7 +7475,7 @@ "skipUrlEncoding": false }, { - "$id": "513", + "$id": "501", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7512,21 +7500,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll" }, { - "$id": "514", + "$id": "502", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "515", + "$id": "503", "name": "putDefault", "resourceName": "UnionStringLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "516", + "$id": "504", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7544,7 +7532,7 @@ "skipUrlEncoding": false }, { - "$id": "517", + "$id": "505", "name": "body", "nameInRequest": "body", "type": { @@ -7563,7 +7551,6 @@ ], "responses": [ { - "$id": "518", "statusCodes": [ 204 ], @@ -7585,7 +7572,7 @@ }, "parameters": [ { - "$id": "519", + "$id": "506", "name": "body", "nameInRequest": "body", "type": { @@ -7602,7 +7589,7 @@ "skipUrlEncoding": false }, { - "$id": "520", + "$id": "507", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7629,10 +7616,12 @@ ], "parameters": [ { + "$id": "508", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "509", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7647,6 +7636,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "510", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7663,27 +7653,27 @@ } }, { - "$id": "521", + "$id": "511", "kind": "client", "name": "UnionIntLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "522", + "$id": "512", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "523", + "$id": "513", "name": "getAll", "resourceName": "UnionIntLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "524", + "$id": "514", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7702,7 +7692,6 @@ ], "responses": [ { - "$id": "525", "statusCodes": [ 200 ], @@ -7727,7 +7716,7 @@ }, "parameters": [ { - "$id": "526", + "$id": "515", "name": "accept", "nameInRequest": "accept", "type": { @@ -7755,21 +7744,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll" }, { - "$id": "527", + "$id": "516", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "528", + "$id": "517", "name": "getDefault", "resourceName": "UnionIntLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "529", + "$id": "518", "name": "accept", "nameInRequest": "Accept", "type": { @@ -7788,7 +7777,6 @@ ], "responses": [ { - "$id": "530", "statusCodes": [ 200 ], @@ -7813,7 +7801,7 @@ }, "parameters": [ { - "$id": "531", + "$id": "519", "name": "accept", "nameInRequest": "accept", "type": { @@ -7841,21 +7829,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault" }, { - "$id": "532", + "$id": "520", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "533", + "$id": "521", "name": "putAll", "resourceName": "UnionIntLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "534", + "$id": "522", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7873,7 +7861,7 @@ "skipUrlEncoding": false }, { - "$id": "535", + "$id": "523", "name": "body", "nameInRequest": "body", "type": { @@ -7892,7 +7880,6 @@ ], "responses": [ { - "$id": "536", "statusCodes": [ 204 ], @@ -7914,7 +7901,7 @@ }, "parameters": [ { - "$id": "537", + "$id": "524", "name": "body", "nameInRequest": "body", "type": { @@ -7931,7 +7918,7 @@ "skipUrlEncoding": false }, { - "$id": "538", + "$id": "525", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -7956,21 +7943,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll" }, { - "$id": "539", + "$id": "526", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "540", + "$id": "527", "name": "putDefault", "resourceName": "UnionIntLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "541", + "$id": "528", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -7988,7 +7975,7 @@ "skipUrlEncoding": false }, { - "$id": "542", + "$id": "529", "name": "body", "nameInRequest": "body", "type": { @@ -8007,7 +7994,6 @@ ], "responses": [ { - "$id": "543", "statusCodes": [ 204 ], @@ -8029,7 +8015,7 @@ }, "parameters": [ { - "$id": "544", + "$id": "530", "name": "body", "nameInRequest": "body", "type": { @@ -8046,7 +8032,7 @@ "skipUrlEncoding": false }, { - "$id": "545", + "$id": "531", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8073,10 +8059,12 @@ ], "parameters": [ { + "$id": "532", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "533", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8091,6 +8079,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "534", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8107,27 +8096,27 @@ } }, { - "$id": "546", + "$id": "535", "kind": "client", "name": "UnionFloatLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "547", + "$id": "536", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "548", + "$id": "537", "name": "getAll", "resourceName": "UnionFloatLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "549", + "$id": "538", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8146,7 +8135,6 @@ ], "responses": [ { - "$id": "550", "statusCodes": [ 200 ], @@ -8171,7 +8159,7 @@ }, "parameters": [ { - "$id": "551", + "$id": "539", "name": "accept", "nameInRequest": "accept", "type": { @@ -8199,21 +8187,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll" }, { - "$id": "552", + "$id": "540", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "553", + "$id": "541", "name": "getDefault", "resourceName": "UnionFloatLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "554", + "$id": "542", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8232,7 +8220,6 @@ ], "responses": [ { - "$id": "555", "statusCodes": [ 200 ], @@ -8257,7 +8244,7 @@ }, "parameters": [ { - "$id": "556", + "$id": "543", "name": "accept", "nameInRequest": "accept", "type": { @@ -8285,21 +8272,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault" }, { - "$id": "557", + "$id": "544", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "558", + "$id": "545", "name": "putAll", "resourceName": "UnionFloatLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "559", + "$id": "546", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8317,7 +8304,7 @@ "skipUrlEncoding": false }, { - "$id": "560", + "$id": "547", "name": "body", "nameInRequest": "body", "type": { @@ -8336,7 +8323,6 @@ ], "responses": [ { - "$id": "561", "statusCodes": [ 204 ], @@ -8358,7 +8344,7 @@ }, "parameters": [ { - "$id": "562", + "$id": "548", "name": "body", "nameInRequest": "body", "type": { @@ -8375,7 +8361,7 @@ "skipUrlEncoding": false }, { - "$id": "563", + "$id": "549", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8400,21 +8386,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll" }, { - "$id": "564", + "$id": "550", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "565", + "$id": "551", "name": "putDefault", "resourceName": "UnionFloatLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "566", + "$id": "552", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8432,7 +8418,7 @@ "skipUrlEncoding": false }, { - "$id": "567", + "$id": "553", "name": "body", "nameInRequest": "body", "type": { @@ -8451,7 +8437,6 @@ ], "responses": [ { - "$id": "568", "statusCodes": [ 204 ], @@ -8473,7 +8458,7 @@ }, "parameters": [ { - "$id": "569", + "$id": "554", "name": "body", "nameInRequest": "body", "type": { @@ -8490,7 +8475,7 @@ "skipUrlEncoding": false }, { - "$id": "570", + "$id": "555", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8517,10 +8502,12 @@ ], "parameters": [ { + "$id": "556", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "557", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8535,6 +8522,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8551,28 +8539,28 @@ } }, { - "$id": "571", + "$id": "559", "kind": "client", "name": "RequiredAndOptional", "namespace": "Type.Property.Optional", "doc": "Test optional and required properties", "methods": [ { - "$id": "572", + "$id": "560", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "573", + "$id": "561", "name": "getAll", "resourceName": "RequiredAndOptional", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "574", + "$id": "562", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8591,7 +8579,6 @@ ], "responses": [ { - "$id": "575", "statusCodes": [ 200 ], @@ -8616,7 +8603,7 @@ }, "parameters": [ { - "$id": "576", + "$id": "563", "name": "accept", "nameInRequest": "accept", "type": { @@ -8644,21 +8631,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll" }, { - "$id": "577", + "$id": "564", "kind": "basic", "name": "getRequiredOnly", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return only the required properties", "operation": { - "$id": "578", + "$id": "565", "name": "getRequiredOnly", "resourceName": "RequiredAndOptional", "doc": "Get models that will return only the required properties", "accessibility": "public", "parameters": [ { - "$id": "579", + "$id": "566", "name": "accept", "nameInRequest": "Accept", "type": { @@ -8677,7 +8664,6 @@ ], "responses": [ { - "$id": "580", "statusCodes": [ 200 ], @@ -8702,7 +8688,7 @@ }, "parameters": [ { - "$id": "581", + "$id": "567", "name": "accept", "nameInRequest": "accept", "type": { @@ -8730,21 +8716,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly" }, { - "$id": "582", + "$id": "568", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "583", + "$id": "569", "name": "putAll", "resourceName": "RequiredAndOptional", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "584", + "$id": "570", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8762,7 +8748,7 @@ "skipUrlEncoding": false }, { - "$id": "585", + "$id": "571", "name": "body", "nameInRequest": "body", "type": { @@ -8781,7 +8767,6 @@ ], "responses": [ { - "$id": "586", "statusCodes": [ 204 ], @@ -8803,7 +8788,7 @@ }, "parameters": [ { - "$id": "587", + "$id": "572", "name": "body", "nameInRequest": "body", "type": { @@ -8820,7 +8805,7 @@ "skipUrlEncoding": false }, { - "$id": "588", + "$id": "573", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8845,21 +8830,21 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll" }, { - "$id": "589", + "$id": "574", "kind": "basic", "name": "putRequiredOnly", "accessibility": "public", "apiVersions": [], "doc": "Put a body with only required properties.", "operation": { - "$id": "590", + "$id": "575", "name": "putRequiredOnly", "resourceName": "RequiredAndOptional", "doc": "Put a body with only required properties.", "accessibility": "public", "parameters": [ { - "$id": "591", + "$id": "576", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -8877,7 +8862,7 @@ "skipUrlEncoding": false }, { - "$id": "592", + "$id": "577", "name": "body", "nameInRequest": "body", "type": { @@ -8896,7 +8881,6 @@ ], "responses": [ { - "$id": "593", "statusCodes": [ 204 ], @@ -8918,7 +8902,7 @@ }, "parameters": [ { - "$id": "594", + "$id": "578", "name": "body", "nameInRequest": "body", "type": { @@ -8935,7 +8919,7 @@ "skipUrlEncoding": false }, { - "$id": "595", + "$id": "579", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -8962,10 +8946,12 @@ ], "parameters": [ { + "$id": "580", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "581", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8980,6 +8966,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "582", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 74c9be75644..aaefc1c9f97 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 @@ -252,6 +252,7 @@ }, "values": [ { + "$id": "23", "kind": "enumvalue", "name": "EnumValue2", "value": "value2", @@ -273,13 +274,13 @@ ], "constants": [ { - "$id": "23", + "$id": "24", "kind": "constant", "name": "getContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -289,13 +290,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "26", "kind": "constant", "name": "putContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -305,13 +306,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "28", "kind": "constant", "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -321,13 +322,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "30", "kind": "constant", "name": "putContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -337,13 +338,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "32", "kind": "constant", "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -353,13 +354,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "34", "kind": "constant", "name": "putContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "34", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -369,13 +370,13 @@ "decorators": [] }, { - "$id": "35", + "$id": "36", "kind": "constant", "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "36", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -385,13 +386,13 @@ "decorators": [] }, { - "$id": "37", + "$id": "38", "kind": "constant", "name": "putContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "38", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -401,13 +402,13 @@ "decorators": [] }, { - "$id": "39", + "$id": "40", "kind": "constant", "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "40", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -417,13 +418,13 @@ "decorators": [] }, { - "$id": "41", + "$id": "42", "kind": "constant", "name": "putContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "42", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -433,13 +434,13 @@ "decorators": [] }, { - "$id": "43", + "$id": "44", "kind": "constant", "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "44", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -449,13 +450,13 @@ "decorators": [] }, { - "$id": "45", + "$id": "46", "kind": "constant", "name": "putContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "46", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -465,13 +466,13 @@ "decorators": [] }, { - "$id": "47", + "$id": "48", "kind": "constant", "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "48", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -481,13 +482,13 @@ "decorators": [] }, { - "$id": "49", + "$id": "50", "kind": "constant", "name": "putContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "50", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -497,13 +498,13 @@ "decorators": [] }, { - "$id": "51", + "$id": "52", "kind": "constant", "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "52", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -513,13 +514,13 @@ "decorators": [] }, { - "$id": "53", + "$id": "54", "kind": "constant", "name": "putContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "54", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -529,13 +530,13 @@ "decorators": [] }, { - "$id": "55", + "$id": "56", "kind": "constant", "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "56", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -545,13 +546,13 @@ "decorators": [] }, { - "$id": "57", + "$id": "58", "kind": "constant", "name": "putContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "58", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -561,13 +562,13 @@ "decorators": [] }, { - "$id": "59", + "$id": "60", "kind": "constant", "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "60", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -577,13 +578,13 @@ "decorators": [] }, { - "$id": "61", + "$id": "62", "kind": "constant", "name": "putContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "62", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -593,13 +594,13 @@ "decorators": [] }, { - "$id": "63", + "$id": "64", "kind": "constant", "name": "getContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "64", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -609,13 +610,13 @@ "decorators": [] }, { - "$id": "65", + "$id": "66", "kind": "constant", "name": "putContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "66", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -625,13 +626,13 @@ "decorators": [] }, { - "$id": "67", + "$id": "68", "kind": "constant", "name": "getContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "68", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -641,13 +642,13 @@ "decorators": [] }, { - "$id": "69", + "$id": "70", "kind": "constant", "name": "putContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "70", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -657,13 +658,13 @@ "decorators": [] }, { - "$id": "71", + "$id": "72", "kind": "constant", "name": "getContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "72", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -673,13 +674,13 @@ "decorators": [] }, { - "$id": "73", + "$id": "74", "kind": "constant", "name": "putContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "74", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -689,13 +690,13 @@ "decorators": [] }, { - "$id": "75", + "$id": "76", "kind": "constant", "name": "getContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "76", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -705,13 +706,13 @@ "decorators": [] }, { - "$id": "77", + "$id": "78", "kind": "constant", "name": "putContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "78", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -721,13 +722,13 @@ "decorators": [] }, { - "$id": "79", + "$id": "80", "kind": "constant", "name": "getContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "80", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -737,13 +738,13 @@ "decorators": [] }, { - "$id": "81", + "$id": "82", "kind": "constant", "name": "putContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "82", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -753,13 +754,13 @@ "decorators": [] }, { - "$id": "83", + "$id": "84", "kind": "constant", "name": "getContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "84", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -769,13 +770,13 @@ "decorators": [] }, { - "$id": "85", + "$id": "86", "kind": "constant", "name": "putContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "86", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -785,13 +786,13 @@ "decorators": [] }, { - "$id": "87", + "$id": "88", "kind": "constant", "name": "getContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "88", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -801,13 +802,13 @@ "decorators": [] }, { - "$id": "89", + "$id": "90", "kind": "constant", "name": "putContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "90", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -817,13 +818,13 @@ "decorators": [] }, { - "$id": "91", + "$id": "92", "kind": "constant", "name": "getContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "92", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -833,13 +834,13 @@ "decorators": [] }, { - "$id": "93", + "$id": "94", "kind": "constant", "name": "putContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "94", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -849,13 +850,13 @@ "decorators": [] }, { - "$id": "95", + "$id": "96", "kind": "constant", "name": "getContentType18", "namespace": "", "usage": "None", "valueType": { - "$id": "96", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -865,13 +866,13 @@ "decorators": [] }, { - "$id": "97", + "$id": "98", "kind": "constant", "name": "putContentType18", "namespace": "", "usage": "None", "valueType": { - "$id": "98", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -881,13 +882,13 @@ "decorators": [] }, { - "$id": "99", + "$id": "100", "kind": "constant", "name": "getContentType19", "namespace": "", "usage": "None", "valueType": { - "$id": "100", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -897,13 +898,13 @@ "decorators": [] }, { - "$id": "101", + "$id": "102", "kind": "constant", "name": "putContentType19", "namespace": "", "usage": "None", "valueType": { - "$id": "102", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -913,13 +914,13 @@ "decorators": [] }, { - "$id": "103", + "$id": "104", "kind": "constant", "name": "getContentType20", "namespace": "", "usage": "None", "valueType": { - "$id": "104", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -929,13 +930,13 @@ "decorators": [] }, { - "$id": "105", + "$id": "106", "kind": "constant", "name": "putContentType20", "namespace": "", "usage": "None", "valueType": { - "$id": "106", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -945,13 +946,13 @@ "decorators": [] }, { - "$id": "107", + "$id": "108", "kind": "constant", "name": "getContentType21", "namespace": "", "usage": "None", "valueType": { - "$id": "108", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -961,13 +962,13 @@ "decorators": [] }, { - "$id": "109", + "$id": "110", "kind": "constant", "name": "StringLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "110", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -977,13 +978,13 @@ "decorators": [] }, { - "$id": "111", + "$id": "112", "kind": "constant", "name": "putContentType21", "namespace": "", "usage": "None", "valueType": { - "$id": "112", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -993,13 +994,13 @@ "decorators": [] }, { - "$id": "113", + "$id": "114", "kind": "constant", "name": "getContentType22", "namespace": "", "usage": "None", "valueType": { - "$id": "114", + "$id": "115", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1009,13 +1010,13 @@ "decorators": [] }, { - "$id": "115", + "$id": "116", "kind": "constant", "name": "IntLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "116", + "$id": "117", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1025,13 +1026,13 @@ "decorators": [] }, { - "$id": "117", + "$id": "118", "kind": "constant", "name": "putContentType22", "namespace": "", "usage": "None", "valueType": { - "$id": "118", + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1041,13 +1042,13 @@ "decorators": [] }, { - "$id": "119", + "$id": "120", "kind": "constant", "name": "getContentType23", "namespace": "", "usage": "None", "valueType": { - "$id": "120", + "$id": "121", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1057,13 +1058,13 @@ "decorators": [] }, { - "$id": "121", + "$id": "122", "kind": "constant", "name": "FloatLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "122", + "$id": "123", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1073,13 +1074,13 @@ "decorators": [] }, { - "$id": "123", + "$id": "124", "kind": "constant", "name": "putContentType23", "namespace": "", "usage": "None", "valueType": { - "$id": "124", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1089,13 +1090,13 @@ "decorators": [] }, { - "$id": "125", + "$id": "126", "kind": "constant", "name": "getContentType24", "namespace": "", "usage": "None", "valueType": { - "$id": "126", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1105,13 +1106,13 @@ "decorators": [] }, { - "$id": "127", + "$id": "128", "kind": "constant", "name": "BooleanLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "128", + "$id": "129", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1121,13 +1122,13 @@ "decorators": [] }, { - "$id": "129", + "$id": "130", "kind": "constant", "name": "putContentType24", "namespace": "", "usage": "None", "valueType": { - "$id": "130", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1137,13 +1138,13 @@ "decorators": [] }, { - "$id": "131", + "$id": "132", "kind": "constant", "name": "getContentType25", "namespace": "", "usage": "None", "valueType": { - "$id": "132", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1153,13 +1154,13 @@ "decorators": [] }, { - "$id": "133", + "$id": "134", "kind": "constant", "name": "putContentType25", "namespace": "", "usage": "None", "valueType": { - "$id": "134", + "$id": "135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1169,13 +1170,13 @@ "decorators": [] }, { - "$id": "135", + "$id": "136", "kind": "constant", "name": "getContentType26", "namespace": "", "usage": "None", "valueType": { - "$id": "136", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1185,13 +1186,13 @@ "decorators": [] }, { - "$id": "137", + "$id": "138", "kind": "constant", "name": "putContentType26", "namespace": "", "usage": "None", "valueType": { - "$id": "138", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1201,13 +1202,13 @@ "decorators": [] }, { - "$id": "139", + "$id": "140", "kind": "constant", "name": "getContentType27", "namespace": "", "usage": "None", "valueType": { - "$id": "140", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1217,13 +1218,13 @@ "decorators": [] }, { - "$id": "141", + "$id": "142", "kind": "constant", "name": "putContentType27", "namespace": "", "usage": "None", "valueType": { - "$id": "142", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1233,13 +1234,13 @@ "decorators": [] }, { - "$id": "143", + "$id": "144", "kind": "constant", "name": "getContentType28", "namespace": "", "usage": "None", "valueType": { - "$id": "144", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1249,13 +1250,13 @@ "decorators": [] }, { - "$id": "145", + "$id": "146", "kind": "constant", "name": "putContentType28", "namespace": "", "usage": "None", "valueType": { - "$id": "146", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1267,7 +1268,7 @@ ], "models": [ { - "$id": "147", + "$id": "148", "kind": "model", "name": "BooleanProperty", "namespace": "Type.Property.ValueTypes", @@ -1277,13 +1278,13 @@ "decorators": [], "properties": [ { - "$id": "148", + "$id": "149", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "149", + "$id": "150", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1304,7 +1305,7 @@ ] }, { - "$id": "150", + "$id": "151", "kind": "model", "name": "StringProperty", "namespace": "Type.Property.ValueTypes", @@ -1314,13 +1315,13 @@ "decorators": [], "properties": [ { - "$id": "151", + "$id": "152", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "152", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1341,7 +1342,7 @@ ] }, { - "$id": "153", + "$id": "154", "kind": "model", "name": "BytesProperty", "namespace": "Type.Property.ValueTypes", @@ -1351,13 +1352,13 @@ "decorators": [], "properties": [ { - "$id": "154", + "$id": "155", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "155", + "$id": "156", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1379,7 +1380,7 @@ ] }, { - "$id": "156", + "$id": "157", "kind": "model", "name": "IntProperty", "namespace": "Type.Property.ValueTypes", @@ -1389,13 +1390,13 @@ "decorators": [], "properties": [ { - "$id": "157", + "$id": "158", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "158", + "$id": "159", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1416,7 +1417,7 @@ ] }, { - "$id": "159", + "$id": "160", "kind": "model", "name": "FloatProperty", "namespace": "Type.Property.ValueTypes", @@ -1426,13 +1427,13 @@ "decorators": [], "properties": [ { - "$id": "160", + "$id": "161", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "161", + "$id": "162", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1453,7 +1454,7 @@ ] }, { - "$id": "162", + "$id": "163", "kind": "model", "name": "DecimalProperty", "namespace": "Type.Property.ValueTypes", @@ -1463,13 +1464,13 @@ "decorators": [], "properties": [ { - "$id": "163", + "$id": "164", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "164", + "$id": "165", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1490,7 +1491,7 @@ ] }, { - "$id": "165", + "$id": "166", "kind": "model", "name": "Decimal128Property", "namespace": "Type.Property.ValueTypes", @@ -1500,13 +1501,13 @@ "decorators": [], "properties": [ { - "$id": "166", + "$id": "167", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "167", + "$id": "168", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1527,7 +1528,7 @@ ] }, { - "$id": "168", + "$id": "169", "kind": "model", "name": "DatetimeProperty", "namespace": "Type.Property.ValueTypes", @@ -1537,18 +1538,18 @@ "decorators": [], "properties": [ { - "$id": "169", + "$id": "170", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "170", + "$id": "171", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "171", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1572,7 +1573,7 @@ ] }, { - "$id": "172", + "$id": "173", "kind": "model", "name": "DurationProperty", "namespace": "Type.Property.ValueTypes", @@ -1582,18 +1583,18 @@ "decorators": [], "properties": [ { - "$id": "173", + "$id": "174", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "174", + "$id": "175", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "175", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1617,7 +1618,7 @@ ] }, { - "$id": "176", + "$id": "177", "kind": "model", "name": "EnumProperty", "namespace": "Type.Property.ValueTypes", @@ -1627,7 +1628,7 @@ "decorators": [], "properties": [ { - "$id": "177", + "$id": "178", "kind": "property", "name": "property", "serializedName": "property", @@ -1650,7 +1651,7 @@ ] }, { - "$id": "178", + "$id": "179", "kind": "model", "name": "ExtensibleEnumProperty", "namespace": "Type.Property.ValueTypes", @@ -1660,7 +1661,7 @@ "decorators": [], "properties": [ { - "$id": "179", + "$id": "180", "kind": "property", "name": "property", "serializedName": "property", @@ -1683,7 +1684,7 @@ ] }, { - "$id": "180", + "$id": "181", "kind": "model", "name": "ModelProperty", "namespace": "Type.Property.ValueTypes", @@ -1693,13 +1694,13 @@ "decorators": [], "properties": [ { - "$id": "181", + "$id": "182", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "182", + "$id": "183", "kind": "model", "name": "InnerModel", "namespace": "Type.Property.ValueTypes", @@ -1709,13 +1710,13 @@ "decorators": [], "properties": [ { - "$id": "183", + "$id": "184", "kind": "property", "name": "property", "serializedName": "property", "doc": "Required string property", "type": { - "$id": "184", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1750,10 +1751,10 @@ ] }, { - "$ref": "182" + "$ref": "183" }, { - "$id": "185", + "$id": "186", "kind": "model", "name": "CollectionsStringProperty", "namespace": "Type.Property.ValueTypes", @@ -1763,17 +1764,17 @@ "decorators": [], "properties": [ { - "$id": "186", + "$id": "187", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "187", + "$id": "188", "kind": "array", "name": "Array", "valueType": { - "$id": "188", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1797,7 +1798,7 @@ ] }, { - "$id": "189", + "$id": "190", "kind": "model", "name": "CollectionsIntProperty", "namespace": "Type.Property.ValueTypes", @@ -1807,17 +1808,17 @@ "decorators": [], "properties": [ { - "$id": "190", + "$id": "191", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "191", + "$id": "192", "kind": "array", "name": "Array1", "valueType": { - "$id": "192", + "$id": "193", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1841,7 +1842,7 @@ ] }, { - "$id": "193", + "$id": "194", "kind": "model", "name": "CollectionsModelProperty", "namespace": "Type.Property.ValueTypes", @@ -1851,17 +1852,17 @@ "decorators": [], "properties": [ { - "$id": "194", + "$id": "195", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "195", + "$id": "196", "kind": "array", "name": "ArrayInnerModel", "valueType": { - "$ref": "182" + "$ref": "183" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1881,7 +1882,7 @@ ] }, { - "$id": "196", + "$id": "197", "kind": "model", "name": "DictionaryStringProperty", "namespace": "Type.Property.ValueTypes", @@ -1891,23 +1892,23 @@ "decorators": [], "properties": [ { - "$id": "197", + "$id": "198", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "198", + "$id": "199", "kind": "dict", "keyType": { - "$id": "199", + "$id": "200", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "200", + "$id": "201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1930,7 +1931,7 @@ ] }, { - "$id": "201", + "$id": "202", "kind": "model", "name": "NeverProperty", "namespace": "Type.Property.ValueTypes", @@ -1941,7 +1942,7 @@ "properties": [] }, { - "$id": "202", + "$id": "203", "kind": "model", "name": "UnknownStringProperty", "namespace": "Type.Property.ValueTypes", @@ -1951,13 +1952,13 @@ "decorators": [], "properties": [ { - "$id": "203", + "$id": "204", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "204", + "$id": "205", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1978,7 +1979,7 @@ ] }, { - "$id": "205", + "$id": "206", "kind": "model", "name": "UnknownIntProperty", "namespace": "Type.Property.ValueTypes", @@ -1988,13 +1989,13 @@ "decorators": [], "properties": [ { - "$id": "206", + "$id": "207", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "207", + "$id": "208", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2015,7 +2016,7 @@ ] }, { - "$id": "208", + "$id": "209", "kind": "model", "name": "UnknownDictProperty", "namespace": "Type.Property.ValueTypes", @@ -2025,13 +2026,13 @@ "decorators": [], "properties": [ { - "$id": "209", + "$id": "210", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "210", + "$id": "211", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2052,7 +2053,7 @@ ] }, { - "$id": "211", + "$id": "212", "kind": "model", "name": "UnknownArrayProperty", "namespace": "Type.Property.ValueTypes", @@ -2062,13 +2063,13 @@ "decorators": [], "properties": [ { - "$id": "212", + "$id": "213", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "213", + "$id": "214", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2089,7 +2090,7 @@ ] }, { - "$id": "214", + "$id": "215", "kind": "model", "name": "StringLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2099,13 +2100,13 @@ "decorators": [], "properties": [ { - "$id": "215", + "$id": "216", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "109" + "$ref": "110" }, "optional": false, "readOnly": false, @@ -2122,7 +2123,7 @@ ] }, { - "$id": "216", + "$id": "217", "kind": "model", "name": "IntLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2132,13 +2133,13 @@ "decorators": [], "properties": [ { - "$id": "217", + "$id": "218", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "115" + "$ref": "116" }, "optional": false, "readOnly": false, @@ -2155,7 +2156,7 @@ ] }, { - "$id": "218", + "$id": "219", "kind": "model", "name": "FloatLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2165,13 +2166,13 @@ "decorators": [], "properties": [ { - "$id": "219", + "$id": "220", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "121" + "$ref": "122" }, "optional": false, "readOnly": false, @@ -2188,7 +2189,7 @@ ] }, { - "$id": "220", + "$id": "221", "kind": "model", "name": "BooleanLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2198,13 +2199,13 @@ "decorators": [], "properties": [ { - "$id": "221", + "$id": "222", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "127" + "$ref": "128" }, "optional": false, "readOnly": false, @@ -2221,7 +2222,7 @@ ] }, { - "$id": "222", + "$id": "223", "kind": "model", "name": "UnionStringLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2231,7 +2232,7 @@ "decorators": [], "properties": [ { - "$id": "223", + "$id": "224", "kind": "property", "name": "property", "serializedName": "property", @@ -2254,7 +2255,7 @@ ] }, { - "$id": "224", + "$id": "225", "kind": "model", "name": "UnionIntLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2264,7 +2265,7 @@ "decorators": [], "properties": [ { - "$id": "225", + "$id": "226", "kind": "property", "name": "property", "serializedName": "property", @@ -2287,7 +2288,7 @@ ] }, { - "$id": "226", + "$id": "227", "kind": "model", "name": "UnionFloatLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2297,7 +2298,7 @@ "decorators": [], "properties": [ { - "$id": "227", + "$id": "228", "kind": "property", "name": "property", "serializedName": "property", @@ -2320,7 +2321,7 @@ ] }, { - "$id": "228", + "$id": "229", "kind": "model", "name": "UnionEnumValueProperty", "namespace": "Type.Property.ValueTypes", @@ -2330,13 +2331,13 @@ "decorators": [], "properties": [ { - "$id": "229", + "$id": "230", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "230", + "$id": "231", "kind": "enumvalue", "name": "EnumValue2", "value": "value2", @@ -2365,7 +2366,7 @@ ], "clients": [ { - "$id": "231", + "$id": "232", "kind": "client", "name": "ValueTypesClient", "namespace": "Type.Property.ValueTypes", @@ -2373,10 +2374,12 @@ "methods": [], "parameters": [ { + "$id": "233", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "234", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2391,6 +2394,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2404,31 +2408,31 @@ "apiVersions": [], "children": [ { - "$id": "232", + "$id": "236", "kind": "client", "name": "Boolean", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "233", + "$id": "237", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "234", + "$id": "238", "name": "get", "resourceName": "Boolean", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "235", + "$id": "239", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "23" + "$ref": "24" }, "location": "Header", "isApiVersion": false, @@ -2443,12 +2447,11 @@ ], "responses": [ { - "$id": "236", "statusCodes": [ 200 ], "bodyType": { - "$ref": "147" + "$ref": "148" }, "headers": [], "isErrorResponse": false, @@ -2468,11 +2471,11 @@ }, "parameters": [ { - "$id": "237", + "$id": "240", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "23" + "$ref": "24" }, "location": "Header", "isApiVersion": false, @@ -2487,7 +2490,7 @@ ], "response": { "type": { - "$ref": "147" + "$ref": "148" } }, "isOverride": false, @@ -2496,26 +2499,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get" }, { - "$id": "238", + "$id": "241", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "239", + "$id": "242", "name": "put", "resourceName": "Boolean", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "240", + "$id": "243", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "26" }, "location": "Header", "isApiVersion": false, @@ -2528,12 +2531,12 @@ "skipUrlEncoding": false }, { - "$id": "241", + "$id": "244", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "147" + "$ref": "148" }, "location": "Body", "isApiVersion": false, @@ -2548,7 +2551,6 @@ ], "responses": [ { - "$id": "242", "statusCodes": [ 204 ], @@ -2570,12 +2572,12 @@ }, "parameters": [ { - "$id": "243", + "$id": "245", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "147" + "$ref": "148" }, "location": "Body", "isApiVersion": false, @@ -2588,12 +2590,12 @@ "skipUrlEncoding": false }, { - "$id": "244", + "$id": "246", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "26" }, "location": "Header", "isApiVersion": false, @@ -2615,10 +2617,12 @@ ], "parameters": [ { + "$id": "247", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "248", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2633,6 +2637,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2645,35 +2650,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "245", + "$id": "250", "kind": "client", "name": "String", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "246", + "$id": "251", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "247", + "$id": "252", "name": "get", "resourceName": "String", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "253", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "27" + "$ref": "28" }, "location": "Header", "isApiVersion": false, @@ -2688,12 +2693,11 @@ ], "responses": [ { - "$id": "249", "statusCodes": [ 200 ], "bodyType": { - "$ref": "150" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -2713,11 +2717,11 @@ }, "parameters": [ { - "$id": "250", + "$id": "254", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "27" + "$ref": "28" }, "location": "Header", "isApiVersion": false, @@ -2732,7 +2736,7 @@ ], "response": { "type": { - "$ref": "150" + "$ref": "151" } }, "isOverride": false, @@ -2741,26 +2745,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get" }, { - "$id": "251", + "$id": "255", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "252", + "$id": "256", "name": "put", "resourceName": "String", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "253", + "$id": "257", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "29" + "$ref": "30" }, "location": "Header", "isApiVersion": false, @@ -2773,12 +2777,12 @@ "skipUrlEncoding": false }, { - "$id": "254", + "$id": "258", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "150" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -2793,7 +2797,6 @@ ], "responses": [ { - "$id": "255", "statusCodes": [ 204 ], @@ -2815,12 +2818,12 @@ }, "parameters": [ { - "$id": "256", + "$id": "259", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "150" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -2833,12 +2836,12 @@ "skipUrlEncoding": false }, { - "$id": "257", + "$id": "260", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "29" + "$ref": "30" }, "location": "Header", "isApiVersion": false, @@ -2860,10 +2863,12 @@ ], "parameters": [ { + "$id": "261", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "262", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2878,6 +2883,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "263", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2890,35 +2896,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "258", + "$id": "264", "kind": "client", "name": "Bytes", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "259", + "$id": "265", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "260", + "$id": "266", "name": "get", "resourceName": "Bytes", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "267", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "31" + "$ref": "32" }, "location": "Header", "isApiVersion": false, @@ -2933,12 +2939,11 @@ ], "responses": [ { - "$id": "262", "statusCodes": [ 200 ], "bodyType": { - "$ref": "153" + "$ref": "154" }, "headers": [], "isErrorResponse": false, @@ -2958,11 +2963,11 @@ }, "parameters": [ { - "$id": "263", + "$id": "268", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "31" + "$ref": "32" }, "location": "Header", "isApiVersion": false, @@ -2977,7 +2982,7 @@ ], "response": { "type": { - "$ref": "153" + "$ref": "154" } }, "isOverride": false, @@ -2986,26 +2991,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get" }, { - "$id": "264", + "$id": "269", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "265", + "$id": "270", "name": "put", "resourceName": "Bytes", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "266", + "$id": "271", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "33" + "$ref": "34" }, "location": "Header", "isApiVersion": false, @@ -3018,12 +3023,12 @@ "skipUrlEncoding": false }, { - "$id": "267", + "$id": "272", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "153" + "$ref": "154" }, "location": "Body", "isApiVersion": false, @@ -3038,7 +3043,6 @@ ], "responses": [ { - "$id": "268", "statusCodes": [ 204 ], @@ -3060,12 +3064,12 @@ }, "parameters": [ { - "$id": "269", + "$id": "273", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "153" + "$ref": "154" }, "location": "Body", "isApiVersion": false, @@ -3078,12 +3082,12 @@ "skipUrlEncoding": false }, { - "$id": "270", + "$id": "274", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "33" + "$ref": "34" }, "location": "Header", "isApiVersion": false, @@ -3105,10 +3109,12 @@ ], "parameters": [ { + "$id": "275", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "276", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3123,6 +3129,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3135,35 +3142,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "271", + "$id": "278", "kind": "client", "name": "Int", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "272", + "$id": "279", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "273", + "$id": "280", "name": "get", "resourceName": "Int", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "274", + "$id": "281", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "35" + "$ref": "36" }, "location": "Header", "isApiVersion": false, @@ -3178,12 +3185,11 @@ ], "responses": [ { - "$id": "275", "statusCodes": [ 200 ], "bodyType": { - "$ref": "156" + "$ref": "157" }, "headers": [], "isErrorResponse": false, @@ -3203,11 +3209,11 @@ }, "parameters": [ { - "$id": "276", + "$id": "282", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "35" + "$ref": "36" }, "location": "Header", "isApiVersion": false, @@ -3222,7 +3228,7 @@ ], "response": { "type": { - "$ref": "156" + "$ref": "157" } }, "isOverride": false, @@ -3231,26 +3237,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get" }, { - "$id": "277", + "$id": "283", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "278", + "$id": "284", "name": "put", "resourceName": "Int", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "279", + "$id": "285", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "37" + "$ref": "38" }, "location": "Header", "isApiVersion": false, @@ -3263,12 +3269,12 @@ "skipUrlEncoding": false }, { - "$id": "280", + "$id": "286", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "156" + "$ref": "157" }, "location": "Body", "isApiVersion": false, @@ -3283,7 +3289,6 @@ ], "responses": [ { - "$id": "281", "statusCodes": [ 204 ], @@ -3305,12 +3310,12 @@ }, "parameters": [ { - "$id": "282", + "$id": "287", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "156" + "$ref": "157" }, "location": "Body", "isApiVersion": false, @@ -3323,12 +3328,12 @@ "skipUrlEncoding": false }, { - "$id": "283", + "$id": "288", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "37" + "$ref": "38" }, "location": "Header", "isApiVersion": false, @@ -3350,10 +3355,12 @@ ], "parameters": [ { + "$id": "289", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "290", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3368,6 +3375,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "291", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3380,35 +3388,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "284", + "$id": "292", "kind": "client", "name": "Float", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "285", + "$id": "293", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "286", + "$id": "294", "name": "get", "resourceName": "Float", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "295", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "39" + "$ref": "40" }, "location": "Header", "isApiVersion": false, @@ -3423,12 +3431,11 @@ ], "responses": [ { - "$id": "288", "statusCodes": [ 200 ], "bodyType": { - "$ref": "159" + "$ref": "160" }, "headers": [], "isErrorResponse": false, @@ -3448,11 +3455,11 @@ }, "parameters": [ { - "$id": "289", + "$id": "296", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "39" + "$ref": "40" }, "location": "Header", "isApiVersion": false, @@ -3467,7 +3474,7 @@ ], "response": { "type": { - "$ref": "159" + "$ref": "160" } }, "isOverride": false, @@ -3476,26 +3483,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get" }, { - "$id": "290", + "$id": "297", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "291", + "$id": "298", "name": "put", "resourceName": "Float", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "292", + "$id": "299", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "41" + "$ref": "42" }, "location": "Header", "isApiVersion": false, @@ -3508,12 +3515,12 @@ "skipUrlEncoding": false }, { - "$id": "293", + "$id": "300", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "159" + "$ref": "160" }, "location": "Body", "isApiVersion": false, @@ -3528,7 +3535,6 @@ ], "responses": [ { - "$id": "294", "statusCodes": [ 204 ], @@ -3550,12 +3556,12 @@ }, "parameters": [ { - "$id": "295", + "$id": "301", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "159" + "$ref": "160" }, "location": "Body", "isApiVersion": false, @@ -3568,12 +3574,12 @@ "skipUrlEncoding": false }, { - "$id": "296", + "$id": "302", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "41" + "$ref": "42" }, "location": "Header", "isApiVersion": false, @@ -3595,10 +3601,12 @@ ], "parameters": [ { + "$id": "303", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "304", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3613,6 +3621,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "305", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3625,35 +3634,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "297", + "$id": "306", "kind": "client", "name": "Decimal", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "298", + "$id": "307", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "299", + "$id": "308", "name": "get", "resourceName": "Decimal", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "300", + "$id": "309", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "43" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -3668,12 +3677,11 @@ ], "responses": [ { - "$id": "301", "statusCodes": [ 200 ], "bodyType": { - "$ref": "162" + "$ref": "163" }, "headers": [], "isErrorResponse": false, @@ -3693,11 +3701,11 @@ }, "parameters": [ { - "$id": "302", + "$id": "310", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "43" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -3712,7 +3720,7 @@ ], "response": { "type": { - "$ref": "162" + "$ref": "163" } }, "isOverride": false, @@ -3721,26 +3729,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get" }, { - "$id": "303", + "$id": "311", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "304", + "$id": "312", "name": "put", "resourceName": "Decimal", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "305", + "$id": "313", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "45" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -3753,12 +3761,12 @@ "skipUrlEncoding": false }, { - "$id": "306", + "$id": "314", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "162" + "$ref": "163" }, "location": "Body", "isApiVersion": false, @@ -3773,7 +3781,6 @@ ], "responses": [ { - "$id": "307", "statusCodes": [ 204 ], @@ -3795,12 +3802,12 @@ }, "parameters": [ { - "$id": "308", + "$id": "315", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "162" + "$ref": "163" }, "location": "Body", "isApiVersion": false, @@ -3813,12 +3820,12 @@ "skipUrlEncoding": false }, { - "$id": "309", + "$id": "316", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "45" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -3840,10 +3847,12 @@ ], "parameters": [ { + "$id": "317", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "318", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3858,6 +3867,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "319", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3870,35 +3880,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "310", + "$id": "320", "kind": "client", "name": "Decimal128", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "311", + "$id": "321", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "312", + "$id": "322", "name": "get", "resourceName": "Decimal128", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "313", + "$id": "323", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "47" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -3913,12 +3923,11 @@ ], "responses": [ { - "$id": "314", "statusCodes": [ 200 ], "bodyType": { - "$ref": "165" + "$ref": "166" }, "headers": [], "isErrorResponse": false, @@ -3938,11 +3947,11 @@ }, "parameters": [ { - "$id": "315", + "$id": "324", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "47" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -3957,7 +3966,7 @@ ], "response": { "type": { - "$ref": "165" + "$ref": "166" } }, "isOverride": false, @@ -3966,26 +3975,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get" }, { - "$id": "316", + "$id": "325", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "317", + "$id": "326", "name": "put", "resourceName": "Decimal128", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "318", + "$id": "327", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "49" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -3998,12 +4007,12 @@ "skipUrlEncoding": false }, { - "$id": "319", + "$id": "328", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "165" + "$ref": "166" }, "location": "Body", "isApiVersion": false, @@ -4018,7 +4027,6 @@ ], "responses": [ { - "$id": "320", "statusCodes": [ 204 ], @@ -4040,12 +4048,12 @@ }, "parameters": [ { - "$id": "321", + "$id": "329", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "165" + "$ref": "166" }, "location": "Body", "isApiVersion": false, @@ -4058,12 +4066,12 @@ "skipUrlEncoding": false }, { - "$id": "322", + "$id": "330", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "49" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -4085,10 +4093,12 @@ ], "parameters": [ { + "$id": "331", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "332", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4103,6 +4113,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "333", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4115,35 +4126,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "323", + "$id": "334", "kind": "client", "name": "Datetime", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "324", + "$id": "335", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "325", + "$id": "336", "name": "get", "resourceName": "Datetime", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "326", + "$id": "337", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "51" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -4158,12 +4169,11 @@ ], "responses": [ { - "$id": "327", "statusCodes": [ 200 ], "bodyType": { - "$ref": "168" + "$ref": "169" }, "headers": [], "isErrorResponse": false, @@ -4183,11 +4193,11 @@ }, "parameters": [ { - "$id": "328", + "$id": "338", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "51" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -4202,7 +4212,7 @@ ], "response": { "type": { - "$ref": "168" + "$ref": "169" } }, "isOverride": false, @@ -4211,26 +4221,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get" }, { - "$id": "329", + "$id": "339", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "330", + "$id": "340", "name": "put", "resourceName": "Datetime", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "331", + "$id": "341", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "53" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -4243,12 +4253,12 @@ "skipUrlEncoding": false }, { - "$id": "332", + "$id": "342", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "168" + "$ref": "169" }, "location": "Body", "isApiVersion": false, @@ -4263,7 +4273,6 @@ ], "responses": [ { - "$id": "333", "statusCodes": [ 204 ], @@ -4285,12 +4294,12 @@ }, "parameters": [ { - "$id": "334", + "$id": "343", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "168" + "$ref": "169" }, "location": "Body", "isApiVersion": false, @@ -4303,12 +4312,12 @@ "skipUrlEncoding": false }, { - "$id": "335", + "$id": "344", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "53" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -4330,10 +4339,12 @@ ], "parameters": [ { + "$id": "345", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "346", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4348,6 +4359,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "347", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4360,35 +4372,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "336", + "$id": "348", "kind": "client", "name": "Duration", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "337", + "$id": "349", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "338", + "$id": "350", "name": "get", "resourceName": "Duration", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "339", + "$id": "351", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "55" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -4403,12 +4415,11 @@ ], "responses": [ { - "$id": "340", "statusCodes": [ 200 ], "bodyType": { - "$ref": "172" + "$ref": "173" }, "headers": [], "isErrorResponse": false, @@ -4428,11 +4439,11 @@ }, "parameters": [ { - "$id": "341", + "$id": "352", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "55" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -4447,7 +4458,7 @@ ], "response": { "type": { - "$ref": "172" + "$ref": "173" } }, "isOverride": false, @@ -4456,26 +4467,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get" }, { - "$id": "342", + "$id": "353", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "343", + "$id": "354", "name": "put", "resourceName": "Duration", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "344", + "$id": "355", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "57" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -4488,12 +4499,12 @@ "skipUrlEncoding": false }, { - "$id": "345", + "$id": "356", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "172" + "$ref": "173" }, "location": "Body", "isApiVersion": false, @@ -4508,7 +4519,6 @@ ], "responses": [ { - "$id": "346", "statusCodes": [ 204 ], @@ -4530,12 +4540,12 @@ }, "parameters": [ { - "$id": "347", + "$id": "357", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "172" + "$ref": "173" }, "location": "Body", "isApiVersion": false, @@ -4548,12 +4558,12 @@ "skipUrlEncoding": false }, { - "$id": "348", + "$id": "358", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "57" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -4575,10 +4585,12 @@ ], "parameters": [ { + "$id": "359", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "360", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4593,6 +4605,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "361", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4605,35 +4618,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "349", + "$id": "362", "kind": "client", "name": "Enum", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "350", + "$id": "363", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "351", + "$id": "364", "name": "get", "resourceName": "Enum", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "352", + "$id": "365", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "59" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -4648,12 +4661,11 @@ ], "responses": [ { - "$id": "353", "statusCodes": [ 200 ], "bodyType": { - "$ref": "176" + "$ref": "177" }, "headers": [], "isErrorResponse": false, @@ -4673,11 +4685,11 @@ }, "parameters": [ { - "$id": "354", + "$id": "366", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "59" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -4692,7 +4704,7 @@ ], "response": { "type": { - "$ref": "176" + "$ref": "177" } }, "isOverride": false, @@ -4701,26 +4713,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get" }, { - "$id": "355", + "$id": "367", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "356", + "$id": "368", "name": "put", "resourceName": "Enum", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "357", + "$id": "369", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "61" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -4733,12 +4745,12 @@ "skipUrlEncoding": false }, { - "$id": "358", + "$id": "370", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "176" + "$ref": "177" }, "location": "Body", "isApiVersion": false, @@ -4753,7 +4765,6 @@ ], "responses": [ { - "$id": "359", "statusCodes": [ 204 ], @@ -4775,12 +4786,12 @@ }, "parameters": [ { - "$id": "360", + "$id": "371", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "176" + "$ref": "177" }, "location": "Body", "isApiVersion": false, @@ -4793,12 +4804,12 @@ "skipUrlEncoding": false }, { - "$id": "361", + "$id": "372", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "61" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -4820,10 +4831,12 @@ ], "parameters": [ { + "$id": "373", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "374", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4838,6 +4851,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "375", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4850,35 +4864,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "362", + "$id": "376", "kind": "client", "name": "ExtensibleEnum", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "363", + "$id": "377", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "364", + "$id": "378", "name": "get", "resourceName": "ExtensibleEnum", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "365", + "$id": "379", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "63" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -4893,12 +4907,11 @@ ], "responses": [ { - "$id": "366", "statusCodes": [ 200 ], "bodyType": { - "$ref": "178" + "$ref": "179" }, "headers": [], "isErrorResponse": false, @@ -4918,11 +4931,11 @@ }, "parameters": [ { - "$id": "367", + "$id": "380", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "63" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -4937,7 +4950,7 @@ ], "response": { "type": { - "$ref": "178" + "$ref": "179" } }, "isOverride": false, @@ -4946,26 +4959,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get" }, { - "$id": "368", + "$id": "381", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "369", + "$id": "382", "name": "put", "resourceName": "ExtensibleEnum", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "370", + "$id": "383", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "65" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -4978,12 +4991,12 @@ "skipUrlEncoding": false }, { - "$id": "371", + "$id": "384", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "178" + "$ref": "179" }, "location": "Body", "isApiVersion": false, @@ -4998,7 +5011,6 @@ ], "responses": [ { - "$id": "372", "statusCodes": [ 204 ], @@ -5020,12 +5032,12 @@ }, "parameters": [ { - "$id": "373", + "$id": "385", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "178" + "$ref": "179" }, "location": "Body", "isApiVersion": false, @@ -5038,12 +5050,12 @@ "skipUrlEncoding": false }, { - "$id": "374", + "$id": "386", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "65" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -5065,10 +5077,12 @@ ], "parameters": [ { + "$id": "387", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "388", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5083,6 +5097,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "389", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5095,35 +5110,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "375", + "$id": "390", "kind": "client", "name": "Model", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "376", + "$id": "391", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "377", + "$id": "392", "name": "get", "resourceName": "Model", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "378", + "$id": "393", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "67" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -5138,12 +5153,11 @@ ], "responses": [ { - "$id": "379", "statusCodes": [ 200 ], "bodyType": { - "$ref": "180" + "$ref": "181" }, "headers": [], "isErrorResponse": false, @@ -5163,11 +5177,11 @@ }, "parameters": [ { - "$id": "380", + "$id": "394", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "67" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -5182,7 +5196,7 @@ ], "response": { "type": { - "$ref": "180" + "$ref": "181" } }, "isOverride": false, @@ -5191,26 +5205,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get" }, { - "$id": "381", + "$id": "395", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "382", + "$id": "396", "name": "put", "resourceName": "Model", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "383", + "$id": "397", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "69" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -5223,12 +5237,12 @@ "skipUrlEncoding": false }, { - "$id": "384", + "$id": "398", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "180" + "$ref": "181" }, "location": "Body", "isApiVersion": false, @@ -5243,7 +5257,6 @@ ], "responses": [ { - "$id": "385", "statusCodes": [ 204 ], @@ -5265,12 +5278,12 @@ }, "parameters": [ { - "$id": "386", + "$id": "399", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "180" + "$ref": "181" }, "location": "Body", "isApiVersion": false, @@ -5283,12 +5296,12 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "400", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "69" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -5310,10 +5323,12 @@ ], "parameters": [ { + "$id": "401", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "402", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5328,6 +5343,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "403", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5340,35 +5356,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "388", + "$id": "404", "kind": "client", "name": "CollectionsString", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "389", + "$id": "405", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "390", + "$id": "406", "name": "get", "resourceName": "CollectionsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "391", + "$id": "407", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "71" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -5383,12 +5399,11 @@ ], "responses": [ { - "$id": "392", "statusCodes": [ 200 ], "bodyType": { - "$ref": "185" + "$ref": "186" }, "headers": [], "isErrorResponse": false, @@ -5408,11 +5423,11 @@ }, "parameters": [ { - "$id": "393", + "$id": "408", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "71" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -5427,7 +5442,7 @@ ], "response": { "type": { - "$ref": "185" + "$ref": "186" } }, "isOverride": false, @@ -5436,26 +5451,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get" }, { - "$id": "394", + "$id": "409", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "395", + "$id": "410", "name": "put", "resourceName": "CollectionsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "396", + "$id": "411", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "73" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -5468,12 +5483,12 @@ "skipUrlEncoding": false }, { - "$id": "397", + "$id": "412", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "185" + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -5488,7 +5503,6 @@ ], "responses": [ { - "$id": "398", "statusCodes": [ 204 ], @@ -5510,12 +5524,12 @@ }, "parameters": [ { - "$id": "399", + "$id": "413", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "185" + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -5528,12 +5542,12 @@ "skipUrlEncoding": false }, { - "$id": "400", + "$id": "414", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "73" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -5555,10 +5569,12 @@ ], "parameters": [ { + "$id": "415", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "416", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5573,6 +5589,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "417", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5585,35 +5602,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "401", + "$id": "418", "kind": "client", "name": "CollectionsInt", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "402", + "$id": "419", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "403", + "$id": "420", "name": "get", "resourceName": "CollectionsInt", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "404", + "$id": "421", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "75" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -5628,12 +5645,11 @@ ], "responses": [ { - "$id": "405", "statusCodes": [ 200 ], "bodyType": { - "$ref": "189" + "$ref": "190" }, "headers": [], "isErrorResponse": false, @@ -5653,11 +5669,11 @@ }, "parameters": [ { - "$id": "406", + "$id": "422", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "75" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -5672,7 +5688,7 @@ ], "response": { "type": { - "$ref": "189" + "$ref": "190" } }, "isOverride": false, @@ -5681,26 +5697,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get" }, { - "$id": "407", + "$id": "423", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "408", + "$id": "424", "name": "put", "resourceName": "CollectionsInt", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "409", + "$id": "425", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "77" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -5713,12 +5729,12 @@ "skipUrlEncoding": false }, { - "$id": "410", + "$id": "426", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "189" + "$ref": "190" }, "location": "Body", "isApiVersion": false, @@ -5733,7 +5749,6 @@ ], "responses": [ { - "$id": "411", "statusCodes": [ 204 ], @@ -5755,12 +5770,12 @@ }, "parameters": [ { - "$id": "412", + "$id": "427", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "189" + "$ref": "190" }, "location": "Body", "isApiVersion": false, @@ -5773,12 +5788,12 @@ "skipUrlEncoding": false }, { - "$id": "413", + "$id": "428", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "77" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -5800,10 +5815,12 @@ ], "parameters": [ { + "$id": "429", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "430", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5818,6 +5835,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "431", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5830,35 +5848,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "414", + "$id": "432", "kind": "client", "name": "CollectionsModel", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "415", + "$id": "433", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "416", + "$id": "434", "name": "get", "resourceName": "CollectionsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "417", + "$id": "435", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "79" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -5873,12 +5891,11 @@ ], "responses": [ { - "$id": "418", "statusCodes": [ 200 ], "bodyType": { - "$ref": "193" + "$ref": "194" }, "headers": [], "isErrorResponse": false, @@ -5898,11 +5915,11 @@ }, "parameters": [ { - "$id": "419", + "$id": "436", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "79" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -5917,7 +5934,7 @@ ], "response": { "type": { - "$ref": "193" + "$ref": "194" } }, "isOverride": false, @@ -5926,26 +5943,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get" }, { - "$id": "420", + "$id": "437", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "421", + "$id": "438", "name": "put", "resourceName": "CollectionsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "422", + "$id": "439", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "81" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -5958,12 +5975,12 @@ "skipUrlEncoding": false }, { - "$id": "423", + "$id": "440", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "193" + "$ref": "194" }, "location": "Body", "isApiVersion": false, @@ -5978,7 +5995,6 @@ ], "responses": [ { - "$id": "424", "statusCodes": [ 204 ], @@ -6000,12 +6016,12 @@ }, "parameters": [ { - "$id": "425", + "$id": "441", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "193" + "$ref": "194" }, "location": "Body", "isApiVersion": false, @@ -6018,12 +6034,12 @@ "skipUrlEncoding": false }, { - "$id": "426", + "$id": "442", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "81" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -6045,10 +6061,12 @@ ], "parameters": [ { + "$id": "443", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "444", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6063,6 +6081,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "445", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6075,35 +6094,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "427", + "$id": "446", "kind": "client", "name": "DictionaryString", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "428", + "$id": "447", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "429", + "$id": "448", "name": "get", "resourceName": "DictionaryString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "430", + "$id": "449", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "83" + "$ref": "84" }, "location": "Header", "isApiVersion": false, @@ -6118,12 +6137,11 @@ ], "responses": [ { - "$id": "431", "statusCodes": [ 200 ], "bodyType": { - "$ref": "196" + "$ref": "197" }, "headers": [], "isErrorResponse": false, @@ -6143,11 +6161,11 @@ }, "parameters": [ { - "$id": "432", + "$id": "450", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "83" + "$ref": "84" }, "location": "Header", "isApiVersion": false, @@ -6162,7 +6180,7 @@ ], "response": { "type": { - "$ref": "196" + "$ref": "197" } }, "isOverride": false, @@ -6171,26 +6189,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get" }, { - "$id": "433", + "$id": "451", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "434", + "$id": "452", "name": "put", "resourceName": "DictionaryString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "435", + "$id": "453", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "86" }, "location": "Header", "isApiVersion": false, @@ -6203,12 +6221,12 @@ "skipUrlEncoding": false }, { - "$id": "436", + "$id": "454", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "196" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -6223,7 +6241,6 @@ ], "responses": [ { - "$id": "437", "statusCodes": [ 204 ], @@ -6245,12 +6262,12 @@ }, "parameters": [ { - "$id": "438", + "$id": "455", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "196" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -6263,12 +6280,12 @@ "skipUrlEncoding": false }, { - "$id": "439", + "$id": "456", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "86" }, "location": "Header", "isApiVersion": false, @@ -6290,10 +6307,12 @@ ], "parameters": [ { + "$id": "457", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "458", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6308,6 +6327,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "459", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6320,35 +6340,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "440", + "$id": "460", "kind": "client", "name": "Never", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "441", + "$id": "461", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "442", + "$id": "462", "name": "get", "resourceName": "Never", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "443", + "$id": "463", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "87" + "$ref": "88" }, "location": "Header", "isApiVersion": false, @@ -6363,12 +6383,11 @@ ], "responses": [ { - "$id": "444", "statusCodes": [ 200 ], "bodyType": { - "$ref": "201" + "$ref": "202" }, "headers": [], "isErrorResponse": false, @@ -6388,11 +6407,11 @@ }, "parameters": [ { - "$id": "445", + "$id": "464", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "87" + "$ref": "88" }, "location": "Header", "isApiVersion": false, @@ -6407,7 +6426,7 @@ ], "response": { "type": { - "$ref": "201" + "$ref": "202" } }, "isOverride": false, @@ -6416,26 +6435,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get" }, { - "$id": "446", + "$id": "465", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "447", + "$id": "466", "name": "put", "resourceName": "Never", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "448", + "$id": "467", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "89" + "$ref": "90" }, "location": "Header", "isApiVersion": false, @@ -6448,12 +6467,12 @@ "skipUrlEncoding": false }, { - "$id": "449", + "$id": "468", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "201" + "$ref": "202" }, "location": "Body", "isApiVersion": false, @@ -6468,7 +6487,6 @@ ], "responses": [ { - "$id": "450", "statusCodes": [ 204 ], @@ -6490,12 +6508,12 @@ }, "parameters": [ { - "$id": "451", + "$id": "469", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "201" + "$ref": "202" }, "location": "Body", "isApiVersion": false, @@ -6508,12 +6526,12 @@ "skipUrlEncoding": false }, { - "$id": "452", + "$id": "470", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "89" + "$ref": "90" }, "location": "Header", "isApiVersion": false, @@ -6535,10 +6553,12 @@ ], "parameters": [ { + "$id": "471", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "472", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6553,6 +6573,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6565,35 +6586,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "453", + "$id": "474", "kind": "client", "name": "UnknownString", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "454", + "$id": "475", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "455", + "$id": "476", "name": "get", "resourceName": "UnknownString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "456", + "$id": "477", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "91" + "$ref": "92" }, "location": "Header", "isApiVersion": false, @@ -6608,12 +6629,11 @@ ], "responses": [ { - "$id": "457", "statusCodes": [ 200 ], "bodyType": { - "$ref": "202" + "$ref": "203" }, "headers": [], "isErrorResponse": false, @@ -6633,11 +6653,11 @@ }, "parameters": [ { - "$id": "458", + "$id": "478", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "91" + "$ref": "92" }, "location": "Header", "isApiVersion": false, @@ -6652,7 +6672,7 @@ ], "response": { "type": { - "$ref": "202" + "$ref": "203" } }, "isOverride": false, @@ -6661,26 +6681,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get" }, { - "$id": "459", + "$id": "479", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "460", + "$id": "480", "name": "put", "resourceName": "UnknownString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "461", + "$id": "481", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "94" }, "location": "Header", "isApiVersion": false, @@ -6693,12 +6713,12 @@ "skipUrlEncoding": false }, { - "$id": "462", + "$id": "482", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "202" + "$ref": "203" }, "location": "Body", "isApiVersion": false, @@ -6713,7 +6733,6 @@ ], "responses": [ { - "$id": "463", "statusCodes": [ 204 ], @@ -6735,12 +6754,12 @@ }, "parameters": [ { - "$id": "464", + "$id": "483", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "202" + "$ref": "203" }, "location": "Body", "isApiVersion": false, @@ -6753,12 +6772,12 @@ "skipUrlEncoding": false }, { - "$id": "465", + "$id": "484", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "94" }, "location": "Header", "isApiVersion": false, @@ -6780,10 +6799,12 @@ ], "parameters": [ { + "$id": "485", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "486", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6798,6 +6819,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6810,35 +6832,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "466", + "$id": "488", "kind": "client", "name": "UnknownInt", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "467", + "$id": "489", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "468", + "$id": "490", "name": "get", "resourceName": "UnknownInt", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "469", + "$id": "491", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "95" + "$ref": "96" }, "location": "Header", "isApiVersion": false, @@ -6853,12 +6875,11 @@ ], "responses": [ { - "$id": "470", "statusCodes": [ 200 ], "bodyType": { - "$ref": "205" + "$ref": "206" }, "headers": [], "isErrorResponse": false, @@ -6878,11 +6899,11 @@ }, "parameters": [ { - "$id": "471", + "$id": "492", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "95" + "$ref": "96" }, "location": "Header", "isApiVersion": false, @@ -6897,7 +6918,7 @@ ], "response": { "type": { - "$ref": "205" + "$ref": "206" } }, "isOverride": false, @@ -6906,26 +6927,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get" }, { - "$id": "472", + "$id": "493", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "473", + "$id": "494", "name": "put", "resourceName": "UnknownInt", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "474", + "$id": "495", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "97" + "$ref": "98" }, "location": "Header", "isApiVersion": false, @@ -6938,12 +6959,12 @@ "skipUrlEncoding": false }, { - "$id": "475", + "$id": "496", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "205" + "$ref": "206" }, "location": "Body", "isApiVersion": false, @@ -6958,7 +6979,6 @@ ], "responses": [ { - "$id": "476", "statusCodes": [ 204 ], @@ -6980,12 +7000,12 @@ }, "parameters": [ { - "$id": "477", + "$id": "497", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "205" + "$ref": "206" }, "location": "Body", "isApiVersion": false, @@ -6998,12 +7018,12 @@ "skipUrlEncoding": false }, { - "$id": "478", + "$id": "498", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "97" + "$ref": "98" }, "location": "Header", "isApiVersion": false, @@ -7025,10 +7045,12 @@ ], "parameters": [ { + "$id": "499", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "500", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7043,6 +7065,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "501", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7055,35 +7078,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "479", + "$id": "502", "kind": "client", "name": "UnknownDict", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "480", + "$id": "503", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "481", + "$id": "504", "name": "get", "resourceName": "UnknownDict", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "482", + "$id": "505", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "99" + "$ref": "100" }, "location": "Header", "isApiVersion": false, @@ -7098,12 +7121,11 @@ ], "responses": [ { - "$id": "483", "statusCodes": [ 200 ], "bodyType": { - "$ref": "208" + "$ref": "209" }, "headers": [], "isErrorResponse": false, @@ -7123,11 +7145,11 @@ }, "parameters": [ { - "$id": "484", + "$id": "506", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "99" + "$ref": "100" }, "location": "Header", "isApiVersion": false, @@ -7142,7 +7164,7 @@ ], "response": { "type": { - "$ref": "208" + "$ref": "209" } }, "isOverride": false, @@ -7151,26 +7173,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get" }, { - "$id": "485", + "$id": "507", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "486", + "$id": "508", "name": "put", "resourceName": "UnknownDict", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "487", + "$id": "509", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "101" + "$ref": "102" }, "location": "Header", "isApiVersion": false, @@ -7183,12 +7205,12 @@ "skipUrlEncoding": false }, { - "$id": "488", + "$id": "510", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "208" + "$ref": "209" }, "location": "Body", "isApiVersion": false, @@ -7203,7 +7225,6 @@ ], "responses": [ { - "$id": "489", "statusCodes": [ 204 ], @@ -7225,12 +7246,12 @@ }, "parameters": [ { - "$id": "490", + "$id": "511", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "208" + "$ref": "209" }, "location": "Body", "isApiVersion": false, @@ -7243,12 +7264,12 @@ "skipUrlEncoding": false }, { - "$id": "491", + "$id": "512", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "101" + "$ref": "102" }, "location": "Header", "isApiVersion": false, @@ -7270,10 +7291,12 @@ ], "parameters": [ { + "$id": "513", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "514", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7288,6 +7311,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "515", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7300,35 +7324,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "492", + "$id": "516", "kind": "client", "name": "UnknownArray", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "493", + "$id": "517", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "494", + "$id": "518", "name": "get", "resourceName": "UnknownArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "495", + "$id": "519", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "103" + "$ref": "104" }, "location": "Header", "isApiVersion": false, @@ -7343,12 +7367,11 @@ ], "responses": [ { - "$id": "496", "statusCodes": [ 200 ], "bodyType": { - "$ref": "211" + "$ref": "212" }, "headers": [], "isErrorResponse": false, @@ -7368,11 +7391,11 @@ }, "parameters": [ { - "$id": "497", + "$id": "520", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "103" + "$ref": "104" }, "location": "Header", "isApiVersion": false, @@ -7387,7 +7410,7 @@ ], "response": { "type": { - "$ref": "211" + "$ref": "212" } }, "isOverride": false, @@ -7396,26 +7419,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get" }, { - "$id": "498", + "$id": "521", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "499", + "$id": "522", "name": "put", "resourceName": "UnknownArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "500", + "$id": "523", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "106" }, "location": "Header", "isApiVersion": false, @@ -7428,12 +7451,12 @@ "skipUrlEncoding": false }, { - "$id": "501", + "$id": "524", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "211" + "$ref": "212" }, "location": "Body", "isApiVersion": false, @@ -7448,7 +7471,6 @@ ], "responses": [ { - "$id": "502", "statusCodes": [ 204 ], @@ -7470,12 +7492,12 @@ }, "parameters": [ { - "$id": "503", + "$id": "525", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "211" + "$ref": "212" }, "location": "Body", "isApiVersion": false, @@ -7488,12 +7510,12 @@ "skipUrlEncoding": false }, { - "$id": "504", + "$id": "526", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "106" }, "location": "Header", "isApiVersion": false, @@ -7515,10 +7537,12 @@ ], "parameters": [ { + "$id": "527", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "528", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7533,6 +7557,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "529", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7545,35 +7570,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "505", + "$id": "530", "kind": "client", "name": "StringLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "506", + "$id": "531", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "507", + "$id": "532", "name": "get", "resourceName": "StringLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "508", + "$id": "533", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "107" + "$ref": "108" }, "location": "Header", "isApiVersion": false, @@ -7588,12 +7613,11 @@ ], "responses": [ { - "$id": "509", "statusCodes": [ 200 ], "bodyType": { - "$ref": "214" + "$ref": "215" }, "headers": [], "isErrorResponse": false, @@ -7613,11 +7637,11 @@ }, "parameters": [ { - "$id": "510", + "$id": "534", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "107" + "$ref": "108" }, "location": "Header", "isApiVersion": false, @@ -7632,7 +7656,7 @@ ], "response": { "type": { - "$ref": "214" + "$ref": "215" } }, "isOverride": false, @@ -7641,26 +7665,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get" }, { - "$id": "511", + "$id": "535", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "512", + "$id": "536", "name": "put", "resourceName": "StringLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "513", + "$id": "537", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "111" + "$ref": "112" }, "location": "Header", "isApiVersion": false, @@ -7673,12 +7697,12 @@ "skipUrlEncoding": false }, { - "$id": "514", + "$id": "538", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "214" + "$ref": "215" }, "location": "Body", "isApiVersion": false, @@ -7693,7 +7717,6 @@ ], "responses": [ { - "$id": "515", "statusCodes": [ 204 ], @@ -7715,12 +7738,12 @@ }, "parameters": [ { - "$id": "516", + "$id": "539", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "214" + "$ref": "215" }, "location": "Body", "isApiVersion": false, @@ -7733,12 +7756,12 @@ "skipUrlEncoding": false }, { - "$id": "517", + "$id": "540", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "111" + "$ref": "112" }, "location": "Header", "isApiVersion": false, @@ -7760,10 +7783,12 @@ ], "parameters": [ { + "$id": "541", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "542", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7778,6 +7803,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "543", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7790,35 +7816,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "518", + "$id": "544", "kind": "client", "name": "IntLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "519", + "$id": "545", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "520", + "$id": "546", "name": "get", "resourceName": "IntLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "521", + "$id": "547", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "113" + "$ref": "114" }, "location": "Header", "isApiVersion": false, @@ -7833,12 +7859,11 @@ ], "responses": [ { - "$id": "522", "statusCodes": [ 200 ], "bodyType": { - "$ref": "216" + "$ref": "217" }, "headers": [], "isErrorResponse": false, @@ -7858,11 +7883,11 @@ }, "parameters": [ { - "$id": "523", + "$id": "548", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "113" + "$ref": "114" }, "location": "Header", "isApiVersion": false, @@ -7877,7 +7902,7 @@ ], "response": { "type": { - "$ref": "216" + "$ref": "217" } }, "isOverride": false, @@ -7886,26 +7911,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get" }, { - "$id": "524", + "$id": "549", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "525", + "$id": "550", "name": "put", "resourceName": "IntLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "526", + "$id": "551", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "118" }, "location": "Header", "isApiVersion": false, @@ -7918,12 +7943,12 @@ "skipUrlEncoding": false }, { - "$id": "527", + "$id": "552", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "216" + "$ref": "217" }, "location": "Body", "isApiVersion": false, @@ -7938,7 +7963,6 @@ ], "responses": [ { - "$id": "528", "statusCodes": [ 204 ], @@ -7960,12 +7984,12 @@ }, "parameters": [ { - "$id": "529", + "$id": "553", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "216" + "$ref": "217" }, "location": "Body", "isApiVersion": false, @@ -7978,12 +8002,12 @@ "skipUrlEncoding": false }, { - "$id": "530", + "$id": "554", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "118" }, "location": "Header", "isApiVersion": false, @@ -8005,10 +8029,12 @@ ], "parameters": [ { + "$id": "555", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "556", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8023,6 +8049,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "557", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8035,35 +8062,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "531", + "$id": "558", "kind": "client", "name": "FloatLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "532", + "$id": "559", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "533", + "$id": "560", "name": "get", "resourceName": "FloatLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "534", + "$id": "561", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "119" + "$ref": "120" }, "location": "Header", "isApiVersion": false, @@ -8078,12 +8105,11 @@ ], "responses": [ { - "$id": "535", "statusCodes": [ 200 ], "bodyType": { - "$ref": "218" + "$ref": "219" }, "headers": [], "isErrorResponse": false, @@ -8103,11 +8129,11 @@ }, "parameters": [ { - "$id": "536", + "$id": "562", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "119" + "$ref": "120" }, "location": "Header", "isApiVersion": false, @@ -8122,7 +8148,7 @@ ], "response": { "type": { - "$ref": "218" + "$ref": "219" } }, "isOverride": false, @@ -8131,26 +8157,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get" }, { - "$id": "537", + "$id": "563", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "538", + "$id": "564", "name": "put", "resourceName": "FloatLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "539", + "$id": "565", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "123" + "$ref": "124" }, "location": "Header", "isApiVersion": false, @@ -8163,12 +8189,12 @@ "skipUrlEncoding": false }, { - "$id": "540", + "$id": "566", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "218" + "$ref": "219" }, "location": "Body", "isApiVersion": false, @@ -8183,7 +8209,6 @@ ], "responses": [ { - "$id": "541", "statusCodes": [ 204 ], @@ -8205,12 +8230,12 @@ }, "parameters": [ { - "$id": "542", + "$id": "567", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "218" + "$ref": "219" }, "location": "Body", "isApiVersion": false, @@ -8223,12 +8248,12 @@ "skipUrlEncoding": false }, { - "$id": "543", + "$id": "568", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "123" + "$ref": "124" }, "location": "Header", "isApiVersion": false, @@ -8250,10 +8275,12 @@ ], "parameters": [ { + "$id": "569", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "570", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8268,6 +8295,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "571", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8280,35 +8308,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "544", + "$id": "572", "kind": "client", "name": "BooleanLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "545", + "$id": "573", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "546", + "$id": "574", "name": "get", "resourceName": "BooleanLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "547", + "$id": "575", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "125" + "$ref": "126" }, "location": "Header", "isApiVersion": false, @@ -8323,12 +8351,11 @@ ], "responses": [ { - "$id": "548", "statusCodes": [ 200 ], "bodyType": { - "$ref": "220" + "$ref": "221" }, "headers": [], "isErrorResponse": false, @@ -8348,11 +8375,11 @@ }, "parameters": [ { - "$id": "549", + "$id": "576", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "125" + "$ref": "126" }, "location": "Header", "isApiVersion": false, @@ -8367,7 +8394,7 @@ ], "response": { "type": { - "$ref": "220" + "$ref": "221" } }, "isOverride": false, @@ -8376,26 +8403,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get" }, { - "$id": "550", + "$id": "577", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "551", + "$id": "578", "name": "put", "resourceName": "BooleanLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "552", + "$id": "579", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "129" + "$ref": "130" }, "location": "Header", "isApiVersion": false, @@ -8408,12 +8435,12 @@ "skipUrlEncoding": false }, { - "$id": "553", + "$id": "580", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "220" + "$ref": "221" }, "location": "Body", "isApiVersion": false, @@ -8428,7 +8455,6 @@ ], "responses": [ { - "$id": "554", "statusCodes": [ 204 ], @@ -8450,12 +8476,12 @@ }, "parameters": [ { - "$id": "555", + "$id": "581", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "220" + "$ref": "221" }, "location": "Body", "isApiVersion": false, @@ -8468,12 +8494,12 @@ "skipUrlEncoding": false }, { - "$id": "556", + "$id": "582", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "129" + "$ref": "130" }, "location": "Header", "isApiVersion": false, @@ -8495,10 +8521,12 @@ ], "parameters": [ { + "$id": "583", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "584", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8513,6 +8541,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "585", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8525,35 +8554,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "557", + "$id": "586", "kind": "client", "name": "UnionStringLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "558", + "$id": "587", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "559", + "$id": "588", "name": "get", "resourceName": "UnionStringLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "560", + "$id": "589", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "131" + "$ref": "132" }, "location": "Header", "isApiVersion": false, @@ -8568,12 +8597,11 @@ ], "responses": [ { - "$id": "561", "statusCodes": [ 200 ], "bodyType": { - "$ref": "222" + "$ref": "223" }, "headers": [], "isErrorResponse": false, @@ -8593,11 +8621,11 @@ }, "parameters": [ { - "$id": "562", + "$id": "590", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "131" + "$ref": "132" }, "location": "Header", "isApiVersion": false, @@ -8612,7 +8640,7 @@ ], "response": { "type": { - "$ref": "222" + "$ref": "223" } }, "isOverride": false, @@ -8621,26 +8649,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get" }, { - "$id": "563", + "$id": "591", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "564", + "$id": "592", "name": "put", "resourceName": "UnionStringLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "565", + "$id": "593", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "134" }, "location": "Header", "isApiVersion": false, @@ -8653,12 +8681,12 @@ "skipUrlEncoding": false }, { - "$id": "566", + "$id": "594", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "222" + "$ref": "223" }, "location": "Body", "isApiVersion": false, @@ -8673,7 +8701,6 @@ ], "responses": [ { - "$id": "567", "statusCodes": [ 204 ], @@ -8695,12 +8722,12 @@ }, "parameters": [ { - "$id": "568", + "$id": "595", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "222" + "$ref": "223" }, "location": "Body", "isApiVersion": false, @@ -8713,12 +8740,12 @@ "skipUrlEncoding": false }, { - "$id": "569", + "$id": "596", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "134" }, "location": "Header", "isApiVersion": false, @@ -8740,10 +8767,12 @@ ], "parameters": [ { + "$id": "597", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "598", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8758,6 +8787,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "599", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8770,35 +8800,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "570", + "$id": "600", "kind": "client", "name": "UnionIntLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "571", + "$id": "601", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "572", + "$id": "602", "name": "get", "resourceName": "UnionIntLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "573", + "$id": "603", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "135" + "$ref": "136" }, "location": "Header", "isApiVersion": false, @@ -8813,12 +8843,11 @@ ], "responses": [ { - "$id": "574", "statusCodes": [ 200 ], "bodyType": { - "$ref": "224" + "$ref": "225" }, "headers": [], "isErrorResponse": false, @@ -8838,11 +8867,11 @@ }, "parameters": [ { - "$id": "575", + "$id": "604", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "135" + "$ref": "136" }, "location": "Header", "isApiVersion": false, @@ -8857,7 +8886,7 @@ ], "response": { "type": { - "$ref": "224" + "$ref": "225" } }, "isOverride": false, @@ -8866,26 +8895,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get" }, { - "$id": "576", + "$id": "605", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "577", + "$id": "606", "name": "put", "resourceName": "UnionIntLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "578", + "$id": "607", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "137" + "$ref": "138" }, "location": "Header", "isApiVersion": false, @@ -8898,12 +8927,12 @@ "skipUrlEncoding": false }, { - "$id": "579", + "$id": "608", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "224" + "$ref": "225" }, "location": "Body", "isApiVersion": false, @@ -8918,7 +8947,6 @@ ], "responses": [ { - "$id": "580", "statusCodes": [ 204 ], @@ -8940,12 +8968,12 @@ }, "parameters": [ { - "$id": "581", + "$id": "609", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "224" + "$ref": "225" }, "location": "Body", "isApiVersion": false, @@ -8958,12 +8986,12 @@ "skipUrlEncoding": false }, { - "$id": "582", + "$id": "610", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "137" + "$ref": "138" }, "location": "Header", "isApiVersion": false, @@ -8985,10 +9013,12 @@ ], "parameters": [ { + "$id": "611", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "612", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9003,6 +9033,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "613", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9015,35 +9046,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "583", + "$id": "614", "kind": "client", "name": "UnionFloatLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "584", + "$id": "615", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "585", + "$id": "616", "name": "get", "resourceName": "UnionFloatLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "586", + "$id": "617", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "139" + "$ref": "140" }, "location": "Header", "isApiVersion": false, @@ -9058,12 +9089,11 @@ ], "responses": [ { - "$id": "587", "statusCodes": [ 200 ], "bodyType": { - "$ref": "226" + "$ref": "227" }, "headers": [], "isErrorResponse": false, @@ -9083,11 +9113,11 @@ }, "parameters": [ { - "$id": "588", + "$id": "618", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "139" + "$ref": "140" }, "location": "Header", "isApiVersion": false, @@ -9102,7 +9132,7 @@ ], "response": { "type": { - "$ref": "226" + "$ref": "227" } }, "isOverride": false, @@ -9111,26 +9141,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get" }, { - "$id": "589", + "$id": "619", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "590", + "$id": "620", "name": "put", "resourceName": "UnionFloatLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "591", + "$id": "621", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "141" + "$ref": "142" }, "location": "Header", "isApiVersion": false, @@ -9143,12 +9173,12 @@ "skipUrlEncoding": false }, { - "$id": "592", + "$id": "622", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "226" + "$ref": "227" }, "location": "Body", "isApiVersion": false, @@ -9163,7 +9193,6 @@ ], "responses": [ { - "$id": "593", "statusCodes": [ 204 ], @@ -9185,12 +9214,12 @@ }, "parameters": [ { - "$id": "594", + "$id": "623", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "226" + "$ref": "227" }, "location": "Body", "isApiVersion": false, @@ -9203,12 +9232,12 @@ "skipUrlEncoding": false }, { - "$id": "595", + "$id": "624", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "141" + "$ref": "142" }, "location": "Header", "isApiVersion": false, @@ -9230,10 +9259,12 @@ ], "parameters": [ { + "$id": "625", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "626", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9248,6 +9279,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "627", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9260,35 +9292,35 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } }, { - "$id": "596", + "$id": "628", "kind": "client", "name": "UnionEnumValue", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "597", + "$id": "629", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "598", + "$id": "630", "name": "get", "resourceName": "UnionEnumValue", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "599", + "$id": "631", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "143" + "$ref": "144" }, "location": "Header", "isApiVersion": false, @@ -9303,12 +9335,11 @@ ], "responses": [ { - "$id": "600", "statusCodes": [ 200 ], "bodyType": { - "$ref": "228" + "$ref": "229" }, "headers": [], "isErrorResponse": false, @@ -9328,11 +9359,11 @@ }, "parameters": [ { - "$id": "601", + "$id": "632", "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "143" + "$ref": "144" }, "location": "Header", "isApiVersion": false, @@ -9347,7 +9378,7 @@ ], "response": { "type": { - "$ref": "228" + "$ref": "229" } }, "isOverride": false, @@ -9356,26 +9387,26 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get" }, { - "$id": "602", + "$id": "633", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "603", + "$id": "634", "name": "put", "resourceName": "UnionEnumValue", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "604", + "$id": "635", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "145" + "$ref": "146" }, "location": "Header", "isApiVersion": false, @@ -9388,12 +9419,12 @@ "skipUrlEncoding": false }, { - "$id": "605", + "$id": "636", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "228" + "$ref": "229" }, "location": "Body", "isApiVersion": false, @@ -9408,7 +9439,6 @@ ], "responses": [ { - "$id": "606", "statusCodes": [ 204 ], @@ -9430,12 +9460,12 @@ }, "parameters": [ { - "$id": "607", + "$id": "637", "name": "body", "nameInRequest": "body", "doc": "body", "type": { - "$ref": "228" + "$ref": "229" }, "location": "Body", "isApiVersion": false, @@ -9448,12 +9478,12 @@ "skipUrlEncoding": false }, { - "$id": "608", + "$id": "638", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "145" + "$ref": "146" }, "location": "Header", "isApiVersion": false, @@ -9475,10 +9505,12 @@ ], "parameters": [ { + "$id": "639", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "640", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9493,6 +9525,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "641", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9505,7 +9538,7 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", "apiVersions": [], "parent": { - "$ref": "231" + "$ref": "232" } } ] 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 cda4131b0b6..8b8ca572911 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 @@ -430,10 +430,12 @@ "methods": [], "parameters": [ { + "$id": "54", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "55", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -448,6 +450,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -461,27 +464,27 @@ "apiVersions": [], "children": [ { - "$id": "54", + "$id": "57", "kind": "client", "name": "String", "namespace": "Type.Scalar", "methods": [ { - "$id": "55", + "$id": "58", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "get string value", "operation": { - "$id": "56", + "$id": "59", "name": "get", "resourceName": "String", "doc": "get string value", "accessibility": "public", "parameters": [ { - "$id": "57", + "$id": "60", "name": "accept", "nameInRequest": "Accept", "type": { @@ -500,12 +503,11 @@ ], "responses": [ { - "$id": "58", "statusCodes": [ 200 ], "bodyType": { - "$id": "59", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -537,7 +539,7 @@ }, "parameters": [ { - "$id": "60", + "$id": "62", "name": "accept", "nameInRequest": "accept", "type": { @@ -556,7 +558,7 @@ ], "response": { "type": { - "$ref": "59" + "$ref": "61" } }, "isOverride": false, @@ -565,21 +567,21 @@ "crossLanguageDefinitionId": "Type.Scalar.String.get" }, { - "$id": "61", + "$id": "63", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "put string value", "operation": { - "$id": "62", + "$id": "64", "name": "put", "resourceName": "String", "doc": "put string value", "accessibility": "public", "parameters": [ { - "$id": "63", + "$id": "65", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -596,12 +598,12 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "66", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "65", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -620,7 +622,6 @@ ], "responses": [ { - "$id": "66", "statusCodes": [ 204 ], @@ -642,7 +643,7 @@ }, "parameters": [ { - "$id": "67", + "$id": "68", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -659,12 +660,12 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "69", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "69", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -690,10 +691,12 @@ ], "parameters": [ { + "$id": "71", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "72", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -708,6 +711,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -724,27 +728,27 @@ } }, { - "$id": "70", + "$id": "74", "kind": "client", "name": "Boolean", "namespace": "Type.Scalar", "methods": [ { - "$id": "71", + "$id": "75", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "get boolean value", "operation": { - "$id": "72", + "$id": "76", "name": "get", "resourceName": "Boolean", "doc": "get boolean value", "accessibility": "public", "parameters": [ { - "$id": "73", + "$id": "77", "name": "accept", "nameInRequest": "Accept", "type": { @@ -763,12 +767,11 @@ ], "responses": [ { - "$id": "74", "statusCodes": [ 200 ], "bodyType": { - "$id": "75", + "$id": "78", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -800,7 +803,7 @@ }, "parameters": [ { - "$id": "76", + "$id": "79", "name": "accept", "nameInRequest": "accept", "type": { @@ -819,7 +822,7 @@ ], "response": { "type": { - "$ref": "75" + "$ref": "78" } }, "isOverride": false, @@ -828,21 +831,21 @@ "crossLanguageDefinitionId": "Type.Scalar.Boolean.get" }, { - "$id": "77", + "$id": "80", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "put boolean value", "operation": { - "$id": "78", + "$id": "81", "name": "put", "resourceName": "Boolean", "doc": "put boolean value", "accessibility": "public", "parameters": [ { - "$id": "79", + "$id": "82", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -859,12 +862,12 @@ "skipUrlEncoding": false }, { - "$id": "80", + "$id": "83", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "81", + "$id": "84", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -883,7 +886,6 @@ ], "responses": [ { - "$id": "82", "statusCodes": [ 204 ], @@ -905,7 +907,7 @@ }, "parameters": [ { - "$id": "83", + "$id": "85", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -922,12 +924,12 @@ "skipUrlEncoding": false }, { - "$id": "84", + "$id": "86", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "85", + "$id": "87", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -953,10 +955,12 @@ ], "parameters": [ { + "$id": "88", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "89", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -971,6 +975,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -987,27 +992,27 @@ } }, { - "$id": "86", + "$id": "91", "kind": "client", "name": "Unknown", "namespace": "Type.Scalar", "methods": [ { - "$id": "87", + "$id": "92", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "get unknown value", "operation": { - "$id": "88", + "$id": "93", "name": "get", "resourceName": "Unknown", "doc": "get unknown value", "accessibility": "public", "parameters": [ { - "$id": "89", + "$id": "94", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1026,12 +1031,11 @@ ], "responses": [ { - "$id": "90", "statusCodes": [ 200 ], "bodyType": { - "$id": "91", + "$id": "95", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1063,7 +1067,7 @@ }, "parameters": [ { - "$id": "92", + "$id": "96", "name": "accept", "nameInRequest": "accept", "type": { @@ -1082,7 +1086,7 @@ ], "response": { "type": { - "$ref": "91" + "$ref": "95" } }, "isOverride": false, @@ -1091,21 +1095,21 @@ "crossLanguageDefinitionId": "Type.Scalar.Unknown.get" }, { - "$id": "93", + "$id": "97", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "put unknown value", "operation": { - "$id": "94", + "$id": "98", "name": "put", "resourceName": "Unknown", "doc": "put unknown value", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "99", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -1122,12 +1126,12 @@ "skipUrlEncoding": false }, { - "$id": "96", + "$id": "100", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "97", + "$id": "101", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1146,7 +1150,6 @@ ], "responses": [ { - "$id": "98", "statusCodes": [ 204 ], @@ -1168,7 +1171,7 @@ }, "parameters": [ { - "$id": "99", + "$id": "102", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -1185,12 +1188,12 @@ "skipUrlEncoding": false }, { - "$id": "100", + "$id": "103", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "101", + "$id": "104", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1216,10 +1219,12 @@ ], "parameters": [ { + "$id": "105", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "106", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1234,6 +1239,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1250,26 +1256,26 @@ } }, { - "$id": "102", + "$id": "108", "kind": "client", "name": "DecimalType", "namespace": "Type.Scalar", "doc": "Decimal type", "methods": [ { - "$id": "103", + "$id": "109", "kind": "basic", "name": "responseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "104", + "$id": "110", "name": "responseBody", "resourceName": "DecimalType", "accessibility": "public", "parameters": [ { - "$id": "105", + "$id": "111", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1288,12 +1294,11 @@ ], "responses": [ { - "$id": "106", "statusCodes": [ 200 ], "bodyType": { - "$id": "107", + "$id": "112", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1325,7 +1330,7 @@ }, "parameters": [ { - "$id": "108", + "$id": "113", "name": "accept", "nameInRequest": "accept", "type": { @@ -1344,7 +1349,7 @@ ], "response": { "type": { - "$ref": "107" + "$ref": "112" } }, "isOverride": false, @@ -1353,19 +1358,19 @@ "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody" }, { - "$id": "109", + "$id": "114", "kind": "basic", "name": "requestBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "110", + "$id": "115", "name": "requestBody", "resourceName": "DecimalType", "accessibility": "public", "parameters": [ { - "$id": "111", + "$id": "116", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -1382,11 +1387,11 @@ "skipUrlEncoding": false }, { - "$id": "112", + "$id": "117", "name": "body", "nameInRequest": "body", "type": { - "$id": "113", + "$id": "118", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1405,7 +1410,6 @@ ], "responses": [ { - "$id": "114", "statusCodes": [ 204 ], @@ -1427,7 +1431,7 @@ }, "parameters": [ { - "$id": "115", + "$id": "119", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -1444,11 +1448,11 @@ "skipUrlEncoding": false }, { - "$id": "116", + "$id": "120", "name": "body", "nameInRequest": "body", "type": { - "$id": "117", + "$id": "121", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1472,23 +1476,23 @@ "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody" }, { - "$id": "118", + "$id": "122", "kind": "basic", "name": "requestParameter", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "119", + "$id": "123", "name": "requestParameter", "resourceName": "DecimalType", "accessibility": "public", "parameters": [ { - "$id": "120", + "$id": "124", "name": "value", "nameInRequest": "value", "type": { - "$id": "121", + "$id": "125", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1507,7 +1511,6 @@ ], "responses": [ { - "$id": "122", "statusCodes": [ 204 ], @@ -1526,11 +1529,11 @@ }, "parameters": [ { - "$id": "123", + "$id": "126", "name": "value", "nameInRequest": "value", "type": { - "$id": "124", + "$id": "127", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1556,10 +1559,12 @@ ], "parameters": [ { + "$id": "128", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "129", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1574,6 +1579,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1590,26 +1596,26 @@ } }, { - "$id": "125", + "$id": "131", "kind": "client", "name": "Decimal128Type", "namespace": "Type.Scalar", "doc": "Decimal128 type", "methods": [ { - "$id": "126", + "$id": "132", "kind": "basic", "name": "responseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "127", + "$id": "133", "name": "responseBody", "resourceName": "Decimal128Type", "accessibility": "public", "parameters": [ { - "$id": "128", + "$id": "134", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1628,12 +1634,11 @@ ], "responses": [ { - "$id": "129", "statusCodes": [ 200 ], "bodyType": { - "$id": "130", + "$id": "135", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1665,7 +1670,7 @@ }, "parameters": [ { - "$id": "131", + "$id": "136", "name": "accept", "nameInRequest": "accept", "type": { @@ -1684,7 +1689,7 @@ ], "response": { "type": { - "$ref": "130" + "$ref": "135" } }, "isOverride": false, @@ -1693,19 +1698,19 @@ "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody" }, { - "$id": "132", + "$id": "137", "kind": "basic", "name": "requestBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "133", + "$id": "138", "name": "requestBody", "resourceName": "Decimal128Type", "accessibility": "public", "parameters": [ { - "$id": "134", + "$id": "139", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -1722,11 +1727,11 @@ "skipUrlEncoding": false }, { - "$id": "135", + "$id": "140", "name": "body", "nameInRequest": "body", "type": { - "$id": "136", + "$id": "141", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1745,7 +1750,6 @@ ], "responses": [ { - "$id": "137", "statusCodes": [ 204 ], @@ -1767,7 +1771,7 @@ }, "parameters": [ { - "$id": "138", + "$id": "142", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -1784,11 +1788,11 @@ "skipUrlEncoding": false }, { - "$id": "139", + "$id": "143", "name": "body", "nameInRequest": "body", "type": { - "$id": "140", + "$id": "144", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1812,23 +1816,23 @@ "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody" }, { - "$id": "141", + "$id": "145", "kind": "basic", "name": "requestParameter", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "142", + "$id": "146", "name": "requestParameter", "resourceName": "Decimal128Type", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "147", "name": "value", "nameInRequest": "value", "type": { - "$id": "144", + "$id": "148", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1847,7 +1851,6 @@ ], "responses": [ { - "$id": "145", "statusCodes": [ 204 ], @@ -1866,11 +1869,11 @@ }, "parameters": [ { - "$id": "146", + "$id": "149", "name": "value", "nameInRequest": "value", "type": { - "$id": "147", + "$id": "150", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1896,10 +1899,12 @@ ], "parameters": [ { + "$id": "151", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "152", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1914,6 +1919,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1930,26 +1936,26 @@ } }, { - "$id": "148", + "$id": "154", "kind": "client", "name": "DecimalVerify", "namespace": "Type.Scalar", "doc": "Decimal type verification", "methods": [ { - "$id": "149", + "$id": "155", "kind": "basic", "name": "prepareVerify", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "150", + "$id": "156", "name": "prepareVerify", "resourceName": "DecimalVerify", "accessibility": "public", "parameters": [ { - "$id": "151", + "$id": "157", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1968,16 +1974,15 @@ ], "responses": [ { - "$id": "152", "statusCodes": [ 200 ], "bodyType": { - "$id": "153", + "$id": "158", "kind": "array", "name": "Array", "valueType": { - "$id": "154", + "$id": "159", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2004,7 +2009,7 @@ }, "parameters": [ { - "$id": "155", + "$id": "160", "name": "accept", "nameInRequest": "accept", "type": { @@ -2023,7 +2028,7 @@ ], "response": { "type": { - "$ref": "153" + "$ref": "158" } }, "isOverride": false, @@ -2032,19 +2037,19 @@ "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify" }, { - "$id": "156", + "$id": "161", "kind": "basic", "name": "verify", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "157", + "$id": "162", "name": "verify", "resourceName": "DecimalVerify", "accessibility": "public", "parameters": [ { - "$id": "158", + "$id": "163", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2061,11 +2066,11 @@ "skipUrlEncoding": false }, { - "$id": "159", + "$id": "164", "name": "body", "nameInRequest": "body", "type": { - "$id": "160", + "$id": "165", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2084,7 +2089,6 @@ ], "responses": [ { - "$id": "161", "statusCodes": [ 204 ], @@ -2106,7 +2110,7 @@ }, "parameters": [ { - "$id": "162", + "$id": "166", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2123,11 +2127,11 @@ "skipUrlEncoding": false }, { - "$id": "163", + "$id": "167", "name": "body", "nameInRequest": "body", "type": { - "$id": "164", + "$id": "168", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2153,10 +2157,12 @@ ], "parameters": [ { + "$id": "169", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "170", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2171,6 +2177,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2187,26 +2194,26 @@ } }, { - "$id": "165", + "$id": "172", "kind": "client", "name": "Decimal128Verify", "namespace": "Type.Scalar", "doc": "Decimal128 type verification", "methods": [ { - "$id": "166", + "$id": "173", "kind": "basic", "name": "prepareVerify", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "167", + "$id": "174", "name": "prepareVerify", "resourceName": "Decimal128Verify", "accessibility": "public", "parameters": [ { - "$id": "168", + "$id": "175", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2225,12 +2232,11 @@ ], "responses": [ { - "$id": "169", "statusCodes": [ 200 ], "bodyType": { - "$ref": "153" + "$ref": "158" }, "headers": [], "isErrorResponse": false, @@ -2250,7 +2256,7 @@ }, "parameters": [ { - "$id": "170", + "$id": "176", "name": "accept", "nameInRequest": "accept", "type": { @@ -2269,7 +2275,7 @@ ], "response": { "type": { - "$ref": "153" + "$ref": "158" } }, "isOverride": false, @@ -2278,19 +2284,19 @@ "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify" }, { - "$id": "171", + "$id": "177", "kind": "basic", "name": "verify", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "172", + "$id": "178", "name": "verify", "resourceName": "Decimal128Verify", "accessibility": "public", "parameters": [ { - "$id": "173", + "$id": "179", "name": "contentType", "nameInRequest": "Content-Type", "type": { @@ -2307,11 +2313,11 @@ "skipUrlEncoding": false }, { - "$id": "174", + "$id": "180", "name": "body", "nameInRequest": "body", "type": { - "$id": "175", + "$id": "181", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2330,7 +2336,6 @@ ], "responses": [ { - "$id": "176", "statusCodes": [ 204 ], @@ -2352,7 +2357,7 @@ }, "parameters": [ { - "$id": "177", + "$id": "182", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -2369,11 +2374,11 @@ "skipUrlEncoding": false }, { - "$id": "178", + "$id": "183", "name": "body", "nameInRequest": "body", "type": { - "$id": "179", + "$id": "184", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2399,10 +2404,12 @@ ], "parameters": [ { + "$id": "185", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "186", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2417,6 +2424,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 1a4a25db1e1..c19841f8084 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 @@ -1917,10 +1917,12 @@ "methods": [], "parameters": [ { + "$id": "160", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "161", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1935,6 +1937,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1948,26 +1951,26 @@ "apiVersions": [], "children": [ { - "$id": "160", + "$id": "163", "kind": "client", "name": "StringsOnly", "namespace": "Type.Union", "doc": "Describe union of string \"a\" | \"b\" | \"c\"", "methods": [ { - "$id": "161", + "$id": "164", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "162", + "$id": "165", "name": "get", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "163", + "$id": "166", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1986,7 +1989,6 @@ ], "responses": [ { - "$id": "164", "statusCodes": [ 200 ], @@ -2011,7 +2013,7 @@ }, "parameters": [ { - "$id": "165", + "$id": "167", "name": "accept", "nameInRequest": "accept", "type": { @@ -2039,19 +2041,19 @@ "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" }, { - "$id": "166", + "$id": "168", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "167", + "$id": "169", "name": "send", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "168", + "$id": "170", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2069,7 +2071,7 @@ "skipUrlEncoding": false }, { - "$id": "169", + "$id": "171", "name": "sendRequest", "nameInRequest": "sendRequest", "type": { @@ -2088,7 +2090,6 @@ ], "responses": [ { - "$id": "170", "statusCodes": [ 204 ], @@ -2110,7 +2111,7 @@ }, "parameters": [ { - "$id": "171", + "$id": "172", "name": "prop", "nameInRequest": "prop", "type": { @@ -2127,7 +2128,7 @@ "skipUrlEncoding": false }, { - "$id": "172", + "$id": "173", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2154,10 +2155,12 @@ ], "parameters": [ { + "$id": "174", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "175", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2172,6 +2175,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2188,26 +2192,26 @@ } }, { - "$id": "173", + "$id": "177", "kind": "client", "name": "StringExtensible", "namespace": "Type.Union", "doc": "Describe union of string string | \"b\" | \"c\"", "methods": [ { - "$id": "174", + "$id": "178", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "175", + "$id": "179", "name": "get", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "176", + "$id": "180", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2226,7 +2230,6 @@ ], "responses": [ { - "$id": "177", "statusCodes": [ 200 ], @@ -2251,7 +2254,7 @@ }, "parameters": [ { - "$id": "178", + "$id": "181", "name": "accept", "nameInRequest": "accept", "type": { @@ -2279,19 +2282,19 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensible.get" }, { - "$id": "179", + "$id": "182", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "180", + "$id": "183", "name": "send", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "181", + "$id": "184", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2309,7 +2312,7 @@ "skipUrlEncoding": false }, { - "$id": "182", + "$id": "185", "name": "sendRequest1", "nameInRequest": "sendRequest1", "type": { @@ -2328,7 +2331,6 @@ ], "responses": [ { - "$id": "183", "statusCodes": [ 204 ], @@ -2350,7 +2352,7 @@ }, "parameters": [ { - "$id": "184", + "$id": "186", "name": "prop", "nameInRequest": "prop", "type": { @@ -2367,7 +2369,7 @@ "skipUrlEncoding": false }, { - "$id": "185", + "$id": "187", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2394,10 +2396,12 @@ ], "parameters": [ { + "$id": "188", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "189", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2412,6 +2416,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2428,26 +2433,26 @@ } }, { - "$id": "186", + "$id": "191", "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", "methods": [ { - "$id": "187", + "$id": "192", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "188", + "$id": "193", "name": "get", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "194", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2466,7 +2471,6 @@ ], "responses": [ { - "$id": "190", "statusCodes": [ 200 ], @@ -2491,7 +2495,7 @@ }, "parameters": [ { - "$id": "191", + "$id": "195", "name": "accept", "nameInRequest": "accept", "type": { @@ -2519,19 +2523,19 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get" }, { - "$id": "192", + "$id": "196", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "193", + "$id": "197", "name": "send", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "194", + "$id": "198", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2549,7 +2553,7 @@ "skipUrlEncoding": false }, { - "$id": "195", + "$id": "199", "name": "sendRequest2", "nameInRequest": "sendRequest2", "type": { @@ -2568,7 +2572,6 @@ ], "responses": [ { - "$id": "196", "statusCodes": [ 204 ], @@ -2590,7 +2593,7 @@ }, "parameters": [ { - "$id": "197", + "$id": "200", "name": "prop", "nameInRequest": "prop", "type": { @@ -2607,7 +2610,7 @@ "skipUrlEncoding": false }, { - "$id": "198", + "$id": "201", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2634,10 +2637,12 @@ ], "parameters": [ { + "$id": "202", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "203", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2652,6 +2657,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2668,26 +2674,26 @@ } }, { - "$id": "199", + "$id": "205", "kind": "client", "name": "IntsOnly", "namespace": "Type.Union", "doc": "Describe union of integer 1 | 2 | 3", "methods": [ { - "$id": "200", + "$id": "206", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "201", + "$id": "207", "name": "get", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "202", + "$id": "208", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2706,7 +2712,6 @@ ], "responses": [ { - "$id": "203", "statusCodes": [ 200 ], @@ -2731,7 +2736,7 @@ }, "parameters": [ { - "$id": "204", + "$id": "209", "name": "accept", "nameInRequest": "accept", "type": { @@ -2759,19 +2764,19 @@ "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" }, { - "$id": "205", + "$id": "210", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "206", + "$id": "211", "name": "send", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "207", + "$id": "212", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2789,7 +2794,7 @@ "skipUrlEncoding": false }, { - "$id": "208", + "$id": "213", "name": "sendRequest3", "nameInRequest": "sendRequest3", "type": { @@ -2808,7 +2813,6 @@ ], "responses": [ { - "$id": "209", "statusCodes": [ 204 ], @@ -2830,7 +2834,7 @@ }, "parameters": [ { - "$id": "210", + "$id": "214", "name": "prop", "nameInRequest": "prop", "type": { @@ -2847,7 +2851,7 @@ "skipUrlEncoding": false }, { - "$id": "211", + "$id": "215", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2874,10 +2878,12 @@ ], "parameters": [ { + "$id": "216", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "217", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2892,6 +2898,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "218", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2908,26 +2915,26 @@ } }, { - "$id": "212", + "$id": "219", "kind": "client", "name": "FloatsOnly", "namespace": "Type.Union", "doc": "Describe union of floats 1.1 | 2.2 | 3.3", "methods": [ { - "$id": "213", + "$id": "220", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "214", + "$id": "221", "name": "get", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "215", + "$id": "222", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2946,7 +2953,6 @@ ], "responses": [ { - "$id": "216", "statusCodes": [ 200 ], @@ -2971,7 +2977,7 @@ }, "parameters": [ { - "$id": "217", + "$id": "223", "name": "accept", "nameInRequest": "accept", "type": { @@ -2999,19 +3005,19 @@ "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" }, { - "$id": "218", + "$id": "224", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "219", + "$id": "225", "name": "send", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "220", + "$id": "226", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3029,7 +3035,7 @@ "skipUrlEncoding": false }, { - "$id": "221", + "$id": "227", "name": "sendRequest4", "nameInRequest": "sendRequest4", "type": { @@ -3048,7 +3054,6 @@ ], "responses": [ { - "$id": "222", "statusCodes": [ 204 ], @@ -3070,7 +3075,7 @@ }, "parameters": [ { - "$id": "223", + "$id": "228", "name": "prop", "nameInRequest": "prop", "type": { @@ -3087,7 +3092,7 @@ "skipUrlEncoding": false }, { - "$id": "224", + "$id": "229", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3114,10 +3119,12 @@ ], "parameters": [ { + "$id": "230", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "231", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3132,6 +3139,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3148,26 +3156,26 @@ } }, { - "$id": "225", + "$id": "233", "kind": "client", "name": "ModelsOnly", "namespace": "Type.Union", "doc": "Describe union of models", "methods": [ { - "$id": "226", + "$id": "234", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "227", + "$id": "235", "name": "get", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "228", + "$id": "236", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3186,7 +3194,6 @@ ], "responses": [ { - "$id": "229", "statusCodes": [ 200 ], @@ -3211,7 +3218,7 @@ }, "parameters": [ { - "$id": "230", + "$id": "237", "name": "accept", "nameInRequest": "accept", "type": { @@ -3239,19 +3246,19 @@ "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" }, { - "$id": "231", + "$id": "238", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "232", + "$id": "239", "name": "send", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "240", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3269,7 +3276,7 @@ "skipUrlEncoding": false }, { - "$id": "234", + "$id": "241", "name": "sendRequest5", "nameInRequest": "sendRequest5", "type": { @@ -3288,7 +3295,6 @@ ], "responses": [ { - "$id": "235", "statusCodes": [ 204 ], @@ -3310,7 +3316,7 @@ }, "parameters": [ { - "$id": "236", + "$id": "242", "name": "prop", "nameInRequest": "prop", "type": { @@ -3327,7 +3333,7 @@ "skipUrlEncoding": false }, { - "$id": "237", + "$id": "243", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3354,10 +3360,12 @@ ], "parameters": [ { + "$id": "244", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "245", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3372,6 +3380,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "246", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3388,26 +3397,26 @@ } }, { - "$id": "238", + "$id": "247", "kind": "client", "name": "EnumsOnly", "namespace": "Type.Union", "doc": "Describe union of 2 different enums", "methods": [ { - "$id": "239", + "$id": "248", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "240", + "$id": "249", "name": "get", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "241", + "$id": "250", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3426,7 +3435,6 @@ ], "responses": [ { - "$id": "242", "statusCodes": [ 200 ], @@ -3451,7 +3459,7 @@ }, "parameters": [ { - "$id": "243", + "$id": "251", "name": "accept", "nameInRequest": "accept", "type": { @@ -3479,19 +3487,19 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" }, { - "$id": "244", + "$id": "252", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "245", + "$id": "253", "name": "send", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "246", + "$id": "254", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3509,7 +3517,7 @@ "skipUrlEncoding": false }, { - "$id": "247", + "$id": "255", "name": "sendRequest6", "nameInRequest": "sendRequest6", "type": { @@ -3528,7 +3536,6 @@ ], "responses": [ { - "$id": "248", "statusCodes": [ 204 ], @@ -3550,7 +3557,7 @@ }, "parameters": [ { - "$id": "249", + "$id": "256", "name": "prop", "nameInRequest": "prop", "type": { @@ -3567,7 +3574,7 @@ "skipUrlEncoding": false }, { - "$id": "250", + "$id": "257", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3594,10 +3601,12 @@ ], "parameters": [ { + "$id": "258", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "259", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3612,6 +3621,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3628,26 +3638,26 @@ } }, { - "$id": "251", + "$id": "261", "kind": "client", "name": "StringAndArray", "namespace": "Type.Union", "doc": "Describe union of a string and an array of strings", "methods": [ { - "$id": "252", + "$id": "262", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "253", + "$id": "263", "name": "get", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "254", + "$id": "264", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3666,7 +3676,6 @@ ], "responses": [ { - "$id": "255", "statusCodes": [ 200 ], @@ -3691,7 +3700,7 @@ }, "parameters": [ { - "$id": "256", + "$id": "265", "name": "accept", "nameInRequest": "accept", "type": { @@ -3719,19 +3728,19 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArray.get" }, { - "$id": "257", + "$id": "266", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "258", + "$id": "267", "name": "send", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "259", + "$id": "268", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3749,7 +3758,7 @@ "skipUrlEncoding": false }, { - "$id": "260", + "$id": "269", "name": "sendRequest7", "nameInRequest": "sendRequest7", "type": { @@ -3768,7 +3777,6 @@ ], "responses": [ { - "$id": "261", "statusCodes": [ 204 ], @@ -3790,7 +3798,7 @@ }, "parameters": [ { - "$id": "262", + "$id": "270", "name": "prop", "nameInRequest": "prop", "type": { @@ -3807,7 +3815,7 @@ "skipUrlEncoding": false }, { - "$id": "263", + "$id": "271", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3834,10 +3842,12 @@ ], "parameters": [ { + "$id": "272", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "273", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3852,6 +3862,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3868,26 +3879,26 @@ } }, { - "$id": "264", + "$id": "275", "kind": "client", "name": "MixedLiterals", "namespace": "Type.Union", "doc": "Describe union of floats \"a\" | 2 | 3.3", "methods": [ { - "$id": "265", + "$id": "276", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "266", + "$id": "277", "name": "get", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "278", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3906,7 +3917,6 @@ ], "responses": [ { - "$id": "268", "statusCodes": [ 200 ], @@ -3931,7 +3941,7 @@ }, "parameters": [ { - "$id": "269", + "$id": "279", "name": "accept", "nameInRequest": "accept", "type": { @@ -3959,19 +3969,19 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" }, { - "$id": "270", + "$id": "280", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "271", + "$id": "281", "name": "send", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "272", + "$id": "282", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3989,7 +3999,7 @@ "skipUrlEncoding": false }, { - "$id": "273", + "$id": "283", "name": "sendRequest8", "nameInRequest": "sendRequest8", "type": { @@ -4008,7 +4018,6 @@ ], "responses": [ { - "$id": "274", "statusCodes": [ 204 ], @@ -4030,7 +4039,7 @@ }, "parameters": [ { - "$id": "275", + "$id": "284", "name": "prop", "nameInRequest": "prop", "type": { @@ -4047,7 +4056,7 @@ "skipUrlEncoding": false }, { - "$id": "276", + "$id": "285", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4074,10 +4083,12 @@ ], "parameters": [ { + "$id": "286", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "287", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4092,6 +4103,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4108,26 +4120,26 @@ } }, { - "$id": "277", + "$id": "289", "kind": "client", "name": "MixedTypes", "namespace": "Type.Union", "doc": "Describe union of floats \"a\" | 2 | 3.3", "methods": [ { - "$id": "278", + "$id": "290", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "279", + "$id": "291", "name": "get", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "280", + "$id": "292", "name": "accept", "nameInRequest": "Accept", "type": { @@ -4146,7 +4158,6 @@ ], "responses": [ { - "$id": "281", "statusCodes": [ 200 ], @@ -4171,7 +4182,7 @@ }, "parameters": [ { - "$id": "282", + "$id": "293", "name": "accept", "nameInRequest": "accept", "type": { @@ -4199,19 +4210,19 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" }, { - "$id": "283", + "$id": "294", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "284", + "$id": "295", "name": "send", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "285", + "$id": "296", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4229,7 +4240,7 @@ "skipUrlEncoding": false }, { - "$id": "286", + "$id": "297", "name": "sendRequest9", "nameInRequest": "sendRequest9", "type": { @@ -4248,7 +4259,6 @@ ], "responses": [ { - "$id": "287", "statusCodes": [ 204 ], @@ -4270,7 +4280,7 @@ }, "parameters": [ { - "$id": "288", + "$id": "298", "name": "prop", "nameInRequest": "prop", "type": { @@ -4287,7 +4297,7 @@ "skipUrlEncoding": false }, { - "$id": "289", + "$id": "299", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4314,10 +4324,12 @@ ], "parameters": [ { + "$id": "300", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { + "$id": "301", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4332,6 +4344,7 @@ "kind": "Client", "defaultValue": { "type": { + "$id": "302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 0fe68f03fc5..f5a7ad0d2c6 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 @@ -241,7 +241,6 @@ ], "responses": [ { - "$id": "21", "statusCodes": [ 200 ], @@ -269,7 +268,7 @@ }, "parameters": [ { - "$id": "22", + "$id": "21", "name": "body", "nameInRequest": "body", "type": { @@ -286,7 +285,7 @@ "skipUrlEncoding": false }, { - "$id": "23", + "$id": "22", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -304,7 +303,7 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "23", "name": "accept", "nameInRequest": "accept", "type": { @@ -334,10 +333,12 @@ ], "parameters": [ { + "$id": "24", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "25", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -352,6 +353,7 @@ "kind": "Client" }, { + "$id": "26", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 c36897758ac..e7d91c28fc9 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 @@ -530,7 +530,6 @@ ], "responses": [ { - "$id": "49", "statusCodes": [ 200 ], @@ -558,7 +557,7 @@ }, "parameters": [ { - "$id": "50", + "$id": "49", "name": "body", "nameInRequest": "body", "type": { @@ -575,11 +574,11 @@ "skipUrlEncoding": false }, { - "$id": "51", + "$id": "50", "name": "headerV2", "nameInRequest": "header-v2", "type": { - "$id": "52", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -596,7 +595,7 @@ "skipUrlEncoding": false }, { - "$id": "53", + "$id": "52", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -614,7 +613,7 @@ "skipUrlEncoding": false }, { - "$id": "54", + "$id": "53", "name": "accept", "nameInRequest": "accept", "type": { @@ -642,7 +641,7 @@ "crossLanguageDefinitionId": "Versioning.Added.v1" }, { - "$id": "55", + "$id": "54", "kind": "basic", "name": "v2", "accessibility": "public", @@ -650,13 +649,13 @@ "v2" ], "operation": { - "$id": "56", + "$id": "55", "name": "v2", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "57", + "$id": "56", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -674,7 +673,7 @@ "skipUrlEncoding": false }, { - "$id": "58", + "$id": "57", "name": "accept", "nameInRequest": "Accept", "type": { @@ -691,7 +690,7 @@ "skipUrlEncoding": false }, { - "$id": "59", + "$id": "58", "name": "body", "nameInRequest": "body", "type": { @@ -710,7 +709,6 @@ ], "responses": [ { - "$id": "60", "statusCodes": [ 200 ], @@ -738,7 +736,7 @@ }, "parameters": [ { - "$id": "61", + "$id": "59", "name": "body", "nameInRequest": "body", "type": { @@ -755,7 +753,7 @@ "skipUrlEncoding": false }, { - "$id": "62", + "$id": "60", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -773,7 +771,7 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "61", "name": "accept", "nameInRequest": "accept", "type": { @@ -803,10 +801,12 @@ ], "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" @@ -821,6 +821,7 @@ "kind": "Client" }, { + "$id": "64", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", @@ -845,13 +846,13 @@ ], "children": [ { - "$id": "64", + "$id": "65", "kind": "client", "name": "InterfaceV2", "namespace": "Versioning.Added", "methods": [ { - "$id": "65", + "$id": "66", "kind": "basic", "name": "v2InInterface", "accessibility": "public", @@ -859,13 +860,13 @@ "v2" ], "operation": { - "$id": "66", + "$id": "67", "name": "v2InInterface", "resourceName": "InterfaceV2", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "68", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -883,7 +884,7 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "69", "name": "accept", "nameInRequest": "Accept", "type": { @@ -900,7 +901,7 @@ "skipUrlEncoding": false }, { - "$id": "69", + "$id": "70", "name": "body", "nameInRequest": "body", "type": { @@ -919,7 +920,6 @@ ], "responses": [ { - "$id": "70", "statusCodes": [ 200 ], @@ -1012,10 +1012,12 @@ ], "parameters": [ { + "$id": "74", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "75", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1030,6 +1032,7 @@ "kind": "Client" }, { + "$id": "76", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 8a473f75c7b..6972ef4c848 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 @@ -233,7 +233,6 @@ ], "responses": [ { - "$id": "21", "statusCodes": [ 200 ], @@ -261,7 +260,7 @@ }, "parameters": [ { - "$id": "22", + "$id": "21", "name": "body", "nameInRequest": "body", "type": { @@ -278,11 +277,11 @@ "skipUrlEncoding": false }, { - "$id": "23", + "$id": "22", "name": "param", "nameInRequest": "param", "type": { - "$id": "24", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -299,7 +298,7 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "24", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -317,7 +316,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "25", "name": "accept", "nameInRequest": "accept", "type": { @@ -347,10 +346,12 @@ ], "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" @@ -365,6 +366,7 @@ "kind": "Client" }, { + "$id": "28", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 d9093041c64..f51a89d3a67 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 @@ -249,7 +249,6 @@ ], "responses": [ { - "$id": "22", "statusCodes": [ 200 ], @@ -277,7 +276,7 @@ }, "parameters": [ { - "$id": "23", + "$id": "22", "name": "body", "nameInRequest": "body", "type": { @@ -294,11 +293,11 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "23", "name": "param", "nameInRequest": "param", "type": { - "$id": "25", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -315,7 +314,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "25", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -333,7 +332,7 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "26", "name": "accept", "nameInRequest": "accept", "type": { @@ -363,10 +362,12 @@ ], "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" @@ -381,6 +382,7 @@ "kind": "Client" }, { + "$id": "29", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 ccfdc0e967c..92ef589e4a6 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 @@ -659,7 +659,6 @@ ], "responses": [ { - "$id": "61", "statusCodes": [ 200 ], @@ -687,7 +686,7 @@ }, "parameters": [ { - "$id": "62", + "$id": "61", "name": "body", "nameInRequest": "body", "type": { @@ -704,7 +703,7 @@ "skipUrlEncoding": false }, { - "$id": "63", + "$id": "62", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -722,7 +721,7 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "63", "name": "accept", "nameInRequest": "accept", "type": { @@ -750,7 +749,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1" }, { - "$id": "65", + "$id": "64", "kind": "basic", "name": "v2", "accessibility": "public", @@ -758,17 +757,17 @@ "v1" ], "operation": { - "$id": "66", + "$id": "65", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "66", "name": "param", "nameInRequest": "param", "type": { - "$id": "68", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -785,7 +784,7 @@ "skipUrlEncoding": false }, { - "$id": "69", + "$id": "68", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -803,7 +802,7 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "69", "name": "accept", "nameInRequest": "Accept", "type": { @@ -820,7 +819,7 @@ "skipUrlEncoding": false }, { - "$id": "71", + "$id": "70", "name": "body", "nameInRequest": "body", "type": { @@ -839,7 +838,6 @@ ], "responses": [ { - "$id": "72", "statusCodes": [ 200 ], @@ -867,7 +865,7 @@ }, "parameters": [ { - "$id": "73", + "$id": "71", "name": "body", "nameInRequest": "body", "type": { @@ -884,11 +882,11 @@ "skipUrlEncoding": false }, { - "$id": "74", + "$id": "72", "name": "param", "nameInRequest": "param", "type": { - "$id": "75", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -905,7 +903,7 @@ "skipUrlEncoding": false }, { - "$id": "76", + "$id": "74", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -923,7 +921,7 @@ "skipUrlEncoding": false }, { - "$id": "77", + "$id": "75", "name": "accept", "nameInRequest": "accept", "type": { @@ -951,7 +949,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "78", + "$id": "76", "kind": "basic", "name": "modelV3", "accessibility": "public", @@ -960,14 +958,14 @@ ], "doc": "This operation will pass different paths and different request bodies based on different versions.", "operation": { - "$id": "79", + "$id": "77", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "80", + "$id": "78", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -985,7 +983,7 @@ "skipUrlEncoding": false }, { - "$id": "81", + "$id": "79", "name": "accept", "nameInRequest": "Accept", "type": { @@ -1002,7 +1000,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "80", "name": "body", "nameInRequest": "body", "type": { @@ -1021,7 +1019,6 @@ ], "responses": [ { - "$id": "83", "statusCodes": [ 200 ], @@ -1049,7 +1046,7 @@ }, "parameters": [ { - "$id": "84", + "$id": "81", "name": "body", "nameInRequest": "body", "type": { @@ -1066,7 +1063,7 @@ "skipUrlEncoding": false }, { - "$id": "85", + "$id": "82", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1084,7 +1081,7 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "83", "name": "accept", "nameInRequest": "accept", "type": { @@ -1114,10 +1111,12 @@ ], "parameters": [ { + "$id": "84", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "85", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1132,6 +1131,7 @@ "kind": "Client" }, { + "$id": "86", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", @@ -1230,7 +1230,6 @@ ], "responses": [ { - "$id": "93", "statusCodes": [ 200 ], @@ -1258,7 +1257,7 @@ }, "parameters": [ { - "$id": "94", + "$id": "93", "name": "body", "nameInRequest": "body", "type": { @@ -1275,7 +1274,7 @@ "skipUrlEncoding": false }, { - "$id": "95", + "$id": "94", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1293,7 +1292,7 @@ "skipUrlEncoding": false }, { - "$id": "96", + "$id": "95", "name": "accept", "nameInRequest": "accept", "type": { @@ -1323,10 +1322,12 @@ ], "parameters": [ { + "$id": "96", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "97", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1341,6 +1342,7 @@ "kind": "Client" }, { + "$id": "98", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", 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 37a99a376c1..bfb390c205f 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 @@ -446,7 +446,6 @@ ], "responses": [ { - "$id": "39", "statusCodes": [ 200 ], @@ -474,7 +473,7 @@ }, "parameters": [ { - "$id": "40", + "$id": "39", "name": "body", "nameInRequest": "body", "type": { @@ -491,7 +490,7 @@ "skipUrlEncoding": false }, { - "$id": "41", + "$id": "40", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -509,7 +508,7 @@ "skipUrlEncoding": false }, { - "$id": "42", + "$id": "41", "name": "accept", "nameInRequest": "accept", "type": { @@ -537,7 +536,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "43", + "$id": "42", "kind": "basic", "name": "modelV3", "accessibility": "public", @@ -548,14 +547,14 @@ ], "doc": "This operation will pass different paths and different request bodies based on different versions.", "operation": { - "$id": "44", + "$id": "43", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "45", + "$id": "44", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -573,7 +572,7 @@ "skipUrlEncoding": false }, { - "$id": "46", + "$id": "45", "name": "accept", "nameInRequest": "Accept", "type": { @@ -590,7 +589,7 @@ "skipUrlEncoding": false }, { - "$id": "47", + "$id": "46", "name": "body", "nameInRequest": "body", "type": { @@ -609,7 +608,6 @@ ], "responses": [ { - "$id": "48", "statusCodes": [ 200 ], @@ -637,7 +635,7 @@ }, "parameters": [ { - "$id": "49", + "$id": "47", "name": "body", "nameInRequest": "body", "type": { @@ -654,7 +652,7 @@ "skipUrlEncoding": false }, { - "$id": "50", + "$id": "48", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -672,7 +670,7 @@ "skipUrlEncoding": false }, { - "$id": "51", + "$id": "49", "name": "accept", "nameInRequest": "accept", "type": { @@ -702,10 +700,12 @@ ], "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" @@ -720,6 +720,7 @@ "kind": "Client" }, { + "$id": "52", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", 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 d6b06878a6d..f3335021822 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 @@ -609,7 +609,6 @@ ], "responses": [ { - "$id": "57", "statusCodes": [ 200 ], @@ -637,7 +636,7 @@ }, "parameters": [ { - "$id": "58", + "$id": "57", "name": "body", "nameInRequest": "body", "type": { @@ -654,7 +653,7 @@ "skipUrlEncoding": false }, { - "$id": "59", + "$id": "58", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -672,7 +671,7 @@ "skipUrlEncoding": false }, { - "$id": "60", + "$id": "59", "name": "accept", "nameInRequest": "accept", "type": { @@ -700,7 +699,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1" }, { - "$id": "61", + "$id": "60", "kind": "basic", "name": "v2", "accessibility": "public", @@ -709,17 +708,17 @@ "v2preview" ], "operation": { - "$id": "62", + "$id": "61", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "63", + "$id": "62", "name": "param", "nameInRequest": "param", "type": { - "$id": "64", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -736,7 +735,7 @@ "skipUrlEncoding": false }, { - "$id": "65", + "$id": "64", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -754,7 +753,7 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "65", "name": "accept", "nameInRequest": "Accept", "type": { @@ -771,7 +770,7 @@ "skipUrlEncoding": false }, { - "$id": "67", + "$id": "66", "name": "body", "nameInRequest": "body", "type": { @@ -790,7 +789,6 @@ ], "responses": [ { - "$id": "68", "statusCodes": [ 200 ], @@ -818,7 +816,7 @@ }, "parameters": [ { - "$id": "69", + "$id": "67", "name": "body", "nameInRequest": "body", "type": { @@ -835,11 +833,11 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "68", "name": "param", "nameInRequest": "param", "type": { - "$id": "71", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -856,7 +854,7 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "70", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -874,7 +872,7 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "71", "name": "accept", "nameInRequest": "accept", "type": { @@ -902,7 +900,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "74", + "$id": "72", "kind": "basic", "name": "modelV3", "accessibility": "public", @@ -912,14 +910,14 @@ ], "doc": "This operation will pass different paths and different request bodies based on different versions.", "operation": { - "$id": "75", + "$id": "73", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "76", + "$id": "74", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -937,7 +935,7 @@ "skipUrlEncoding": false }, { - "$id": "77", + "$id": "75", "name": "accept", "nameInRequest": "Accept", "type": { @@ -954,7 +952,7 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "76", "name": "body", "nameInRequest": "body", "type": { @@ -973,7 +971,6 @@ ], "responses": [ { - "$id": "79", "statusCodes": [ 200 ], @@ -1001,7 +998,7 @@ }, "parameters": [ { - "$id": "80", + "$id": "77", "name": "body", "nameInRequest": "body", "type": { @@ -1018,7 +1015,7 @@ "skipUrlEncoding": false }, { - "$id": "81", + "$id": "78", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1036,7 +1033,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "79", "name": "accept", "nameInRequest": "accept", "type": { @@ -1066,10 +1063,12 @@ ], "parameters": [ { + "$id": "80", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "81", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1084,6 +1083,7 @@ "kind": "Client" }, { + "$id": "82", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", @@ -1184,7 +1184,6 @@ ], "responses": [ { - "$id": "89", "statusCodes": [ 200 ], @@ -1212,7 +1211,7 @@ }, "parameters": [ { - "$id": "90", + "$id": "89", "name": "body", "nameInRequest": "body", "type": { @@ -1229,7 +1228,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "90", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -1247,7 +1246,7 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "91", "name": "accept", "nameInRequest": "accept", "type": { @@ -1277,10 +1276,12 @@ ], "parameters": [ { + "$id": "92", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "93", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1295,6 +1296,7 @@ "kind": "Client" }, { + "$id": "94", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", 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 06dd5f38970..07f18b7ea70 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 @@ -341,7 +341,6 @@ ], "responses": [ { - "$id": "32", "statusCodes": [ 200 ], @@ -369,7 +368,7 @@ }, "parameters": [ { - "$id": "33", + "$id": "32", "name": "body", "nameInRequest": "body", "type": { @@ -386,11 +385,11 @@ "skipUrlEncoding": false }, { - "$id": "34", + "$id": "33", "name": "oldQuery", "nameInRequest": "oldQuery", "type": { - "$id": "35", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -407,7 +406,7 @@ "skipUrlEncoding": false }, { - "$id": "36", + "$id": "35", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -425,7 +424,7 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "36", "name": "accept", "nameInRequest": "accept", "type": { @@ -455,10 +454,12 @@ ], "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" @@ -473,6 +474,7 @@ "kind": "Client" }, { + "$id": "39", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", @@ -496,13 +498,13 @@ ], "children": [ { - "$id": "38", + "$id": "40", "kind": "client", "name": "OldInterface", "namespace": "Versioning.RenamedFrom", "methods": [ { - "$id": "39", + "$id": "41", "kind": "basic", "name": "newOpInNewInterface", "accessibility": "public", @@ -510,13 +512,13 @@ "v1" ], "operation": { - "$id": "40", + "$id": "42", "name": "newOpInNewInterface", "resourceName": "OldInterface", "accessibility": "public", "parameters": [ { - "$id": "41", + "$id": "43", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -534,7 +536,7 @@ "skipUrlEncoding": false }, { - "$id": "42", + "$id": "44", "name": "accept", "nameInRequest": "Accept", "type": { @@ -551,7 +553,7 @@ "skipUrlEncoding": false }, { - "$id": "43", + "$id": "45", "name": "body", "nameInRequest": "body", "type": { @@ -570,7 +572,6 @@ ], "responses": [ { - "$id": "44", "statusCodes": [ 200 ], @@ -598,7 +599,7 @@ }, "parameters": [ { - "$id": "45", + "$id": "46", "name": "body", "nameInRequest": "body", "type": { @@ -615,7 +616,7 @@ "skipUrlEncoding": false }, { - "$id": "46", + "$id": "47", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -633,7 +634,7 @@ "skipUrlEncoding": false }, { - "$id": "47", + "$id": "48", "name": "accept", "nameInRequest": "accept", "type": { @@ -663,10 +664,12 @@ ], "parameters": [ { + "$id": "49", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "50", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -681,6 +684,7 @@ "kind": "Client" }, { + "$id": "51", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 a777e11558a..8ead2eb960a 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 @@ -357,7 +357,6 @@ ], "responses": [ { - "$id": "33", "statusCodes": [ 200 ], @@ -385,7 +384,7 @@ }, "parameters": [ { - "$id": "34", + "$id": "33", "name": "body", "nameInRequest": "body", "type": { @@ -402,11 +401,11 @@ "skipUrlEncoding": false }, { - "$id": "35", + "$id": "34", "name": "newQuery", "nameInRequest": "newQuery", "type": { - "$id": "36", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -423,7 +422,7 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "36", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -441,7 +440,7 @@ "skipUrlEncoding": false }, { - "$id": "38", + "$id": "37", "name": "accept", "nameInRequest": "accept", "type": { @@ -471,10 +470,12 @@ ], "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" @@ -489,6 +490,7 @@ "kind": "Client" }, { + "$id": "40", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", @@ -513,13 +515,13 @@ ], "children": [ { - "$id": "39", + "$id": "41", "kind": "client", "name": "NewInterface", "namespace": "Versioning.RenamedFrom", "methods": [ { - "$id": "40", + "$id": "42", "kind": "basic", "name": "newOpInNewInterface", "accessibility": "public", @@ -528,13 +530,13 @@ "v2" ], "operation": { - "$id": "41", + "$id": "43", "name": "newOpInNewInterface", "resourceName": "NewInterface", "accessibility": "public", "parameters": [ { - "$id": "42", + "$id": "44", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -552,7 +554,7 @@ "skipUrlEncoding": false }, { - "$id": "43", + "$id": "45", "name": "accept", "nameInRequest": "Accept", "type": { @@ -569,7 +571,7 @@ "skipUrlEncoding": false }, { - "$id": "44", + "$id": "46", "name": "body", "nameInRequest": "body", "type": { @@ -588,7 +590,6 @@ ], "responses": [ { - "$id": "45", "statusCodes": [ 200 ], @@ -616,7 +617,7 @@ }, "parameters": [ { - "$id": "46", + "$id": "47", "name": "body", "nameInRequest": "body", "type": { @@ -633,7 +634,7 @@ "skipUrlEncoding": false }, { - "$id": "47", + "$id": "48", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -651,7 +652,7 @@ "skipUrlEncoding": false }, { - "$id": "48", + "$id": "49", "name": "accept", "nameInRequest": "accept", "type": { @@ -681,10 +682,12 @@ ], "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" @@ -699,6 +702,7 @@ "kind": "Client" }, { + "$id": "52", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 b73aa0428cd..a27b038a023 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 @@ -187,12 +187,11 @@ ], "responses": [ { - "$id": "19", "statusCodes": [ 200 ], "bodyType": { - "$id": "20", + "$id": "19", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -227,7 +226,7 @@ }, "parameters": [ { - "$id": "21", + "$id": "20", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -244,11 +243,11 @@ "skipUrlEncoding": false }, { - "$id": "22", + "$id": "21", "name": "body", "nameInRequest": "body", "type": { - "$id": "23", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -265,7 +264,7 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "23", "name": "accept", "nameInRequest": "accept", "type": { @@ -284,7 +283,7 @@ ], "response": { "type": { - "$ref": "20" + "$ref": "19" } }, "isOverride": false, @@ -295,10 +294,12 @@ ], "parameters": [ { + "$id": "24", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { + "$id": "25", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -313,6 +314,7 @@ "kind": "Client" }, { + "$id": "26", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 382e291af9a..ddbe4be4574 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 @@ -203,12 +203,11 @@ ], "responses": [ { - "$id": "20", "statusCodes": [ 200 ], "bodyType": { - "$id": "21", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -243,7 +242,7 @@ }, "parameters": [ { - "$id": "22", + "$id": "21", "name": "contentType", "nameInRequest": "content-type", "type": { @@ -260,11 +259,11 @@ "skipUrlEncoding": false }, { - "$id": "23", + "$id": "22", "name": "body", "nameInRequest": "body", "type": { - "$id": "24", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -281,7 +280,7 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "24", "name": "accept", "nameInRequest": "accept", "type": { @@ -300,7 +299,7 @@ ], "response": { "type": { - "$ref": "21" + "$ref": "20" } }, "isOverride": false, @@ -311,10 +310,12 @@ ], "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" @@ -329,6 +330,7 @@ "kind": "Client" }, { + "$id": "27", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 157a553698a..0ec4490b2eb 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 @@ -233,7 +233,6 @@ ], "responses": [ { - "$id": "21", "statusCodes": [ 200 ], @@ -261,7 +260,7 @@ }, "parameters": [ { - "$id": "22", + "$id": "21", "name": "body", "nameInRequest": "body", "type": { @@ -278,11 +277,11 @@ "skipUrlEncoding": false }, { - "$id": "23", + "$id": "22", "name": "param", "nameInRequest": "param", "type": { - "$id": "24", + "$id": "23", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -299,7 +298,7 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "24", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -317,7 +316,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "25", "name": "accept", "nameInRequest": "accept", "type": { @@ -347,10 +346,12 @@ ], "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" @@ -365,6 +366,7 @@ "kind": "Client" }, { + "$id": "28", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", 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 fd386b85c15..4090429ae92 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 @@ -249,7 +249,6 @@ ], "responses": [ { - "$id": "22", "statusCodes": [ 200 ], @@ -277,7 +276,7 @@ }, "parameters": [ { - "$id": "23", + "$id": "22", "name": "body", "nameInRequest": "body", "type": { @@ -294,11 +293,11 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "23", "name": "param", "nameInRequest": "param", "type": { - "$id": "25", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -315,7 +314,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "25", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -333,7 +332,7 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "26", "name": "accept", "nameInRequest": "accept", "type": { @@ -363,10 +362,12 @@ ], "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" @@ -381,6 +382,7 @@ "kind": "Client" }, { + "$id": "29", "name": "version", "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", From dcc68b4f2902268cdc5dc9022294dc35177d81f4 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 5 Jun 2025 17:19:31 +0800 Subject: [PATCH 15/22] update --- .../Serialization/InputApiKeyAuthConverter.cs | 5 ++- .../Serialization/InputConstantConverter.cs | 5 ++- .../InputContinuationTokenConverter.cs | 5 ++- .../InputDecoratorInfoConverter.cs | 5 ++- .../InputJsonSerializationOptionsConverter.cs | 5 ++- ...nputLongRunningServiceMetadataConverter.cs | 5 ++- .../Serialization/InputNextLinkConverter.cs | 5 ++- .../Serialization/InputOAuth2AuthConverter.cs | 21 ++++++------ .../InputOperationResponseConverter.cs | 23 +++++-------- .../InputOperationResponseHeaderConverter.cs | 23 +++++-------- .../InputPagingServiceMetadataConverter.cs | 5 ++- .../Serialization/InputParameterConverter.cs | 8 ++--- .../InputSerializationOptionsConverter.cs | 5 ++- .../InputServiceMethodConverter.cs | 18 +++++------ .../InputServiceMethodResponseConverter.cs | 5 ++- .../Serialization/InputTypeConverter.cs | 32 +++++++++---------- .../InputXmlNamespaceOptionsConverter.cs | 5 ++- .../InputXmlSerializationOptionsConverter.cs | 5 ++- .../Serialization/TypeSpecSerialization.cs | 6 ++-- 19 files changed, 104 insertions(+), 87 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs index 91c0c0de7af..525e4287930 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputApiKeyAuthConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputApiKeyAuth value, JsonSer private static InputApiKeyAuth CreateInputApiKeyAuth(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } string? name = null; string? @in = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs index 822828ecf40..116873c0fdf 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputConstantConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputConstant value, JsonSeria public static InputConstant CreateInputConstant(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } InputType? type = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs index 9730e1d91ad..eaa4b695983 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputContinuationTokenConverter.cs @@ -22,7 +22,10 @@ public override void Write(Utf8JsonWriter writer, InputContinuationToken value, internal static InputContinuationToken CreateContinuationToken(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } InputParameter? parameter = null; IReadOnlyList? responseSegments = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs index 956b3a447d6..32101a134de 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDecoratorInfoConverter.cs @@ -23,7 +23,10 @@ public override void Write(Utf8JsonWriter writer, InputDecoratorInfo value, Json private static InputDecoratorInfo? CreateDecoratorInfo(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } string? name = null; IReadOnlyDictionary? arguments = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs index 79b7e5c8461..a2770d865a2 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputJsonSerializationOptionsConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputJsonSerializationOptions private static InputJsonSerializationOptions ReadInputJsonSerializationOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } string? name = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs index 7ae3c82d552..4c7d6bf9d36 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputLongRunningServiceMetadataConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputLongRunningServiceMetadat private InputLongRunningServiceMetadata CreateOperationLongRunning(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } int finalStateVia = default; InputOperationResponse? finalResponse = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs index 41a95da745c..e36f68c1cc3 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputNextLinkConverter.cs @@ -22,7 +22,10 @@ public override void Write(Utf8JsonWriter writer, InputNextLink value, JsonSeria internal static InputNextLink CreateNextLink(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } InputOperation? operation = null; IReadOnlyList? responseSegments = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs index d377506dcbb..508b851c5ff 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOAuth2AuthConverter.cs @@ -10,36 +10,33 @@ namespace Microsoft.TypeSpec.Generator.Input { internal class InputOAuth2AuthConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputOAuth2AuthConverter(TypeSpecReferenceHandler referenceHandler) + public InputOAuth2AuthConverter() { - _referenceHandler = referenceHandler; } public override InputOAuth2Auth? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputOAuth2Auth(ref reader, null, options, _referenceHandler.CurrentResolver); + => CreateInputOAuth2Auth(ref reader, options); public override void Write(Utf8JsonWriter writer, InputOAuth2Auth value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputOAuth2Auth CreateInputOAuth2Auth(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputOAuth2Auth CreateInputOAuth2Auth(ref Utf8JsonReader reader, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } IReadOnlyList? scopes = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref id) - || reader.TryReadComplexType("scopes", options, ref scopes); + var isKnownProperty = reader.TryReadComplexType("scopes", options, ref scopes); if (!isKnownProperty) { reader.SkipProperty(); } } var result = new InputOAuth2Auth(scopes ?? []); - if (id != null) - { - resolver.AddReference(id, result); - } + return result; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs index 66c4a9178c4..a253c0df8ed 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseConverter.cs @@ -10,23 +10,22 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputOperationResponseConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputOperationResponseConverter(TypeSpecReferenceHandler referenceHandler) + public InputOperationResponseConverter() { - _referenceHandler = referenceHandler; } public override InputOperationResponse? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateOperationResponse(ref reader, null, options); - } + => CreateOperationResponse(ref reader, options); public override void Write(Utf8JsonWriter writer, InputOperationResponse value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private InputOperationResponse CreateOperationResponse(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options) + private InputOperationResponse CreateOperationResponse(ref Utf8JsonReader reader, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } IReadOnlyList? statusCodes = null; InputType? bodyType = null; IReadOnlyList? headers = null; @@ -34,8 +33,7 @@ private InputOperationResponse CreateOperationResponse(ref Utf8JsonReader reader IReadOnlyList? contentTypes = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref id) - || reader.TryReadComplexType("statusCodes", options, ref statusCodes) + var isKnownProperty = reader.TryReadComplexType("statusCodes", options, ref statusCodes) || reader.TryReadComplexType("bodyType", options, ref bodyType) || reader.TryReadComplexType("headers", options, ref headers) || reader.TryReadBoolean("isErrorResponse", ref isErrorResponse) @@ -53,11 +51,6 @@ private InputOperationResponse CreateOperationResponse(ref Utf8JsonReader reader var result = new InputOperationResponse(statusCodes, bodyType, headers, isErrorResponse, contentTypes); - if (id != null) - { - _referenceHandler.CurrentResolver.AddReference(id, result); - } - return result; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs index 16a198ea36b..0ab540dafa0 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputOperationResponseHeaderConverter.cs @@ -9,23 +9,22 @@ namespace Microsoft.TypeSpec.Generator.Input { internal sealed class InputOperationResponseHeaderConverter : JsonConverter { - private readonly TypeSpecReferenceHandler _referenceHandler; - - public InputOperationResponseHeaderConverter(TypeSpecReferenceHandler referenceHandler) + public InputOperationResponseHeaderConverter() { - _referenceHandler = referenceHandler; } public override InputOperationResponseHeader? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateOperationResponseHeader(ref reader, null, options); - } + => CreateOperationResponseHeader(ref reader, options); public override void Write(Utf8JsonWriter writer, InputOperationResponseHeader value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private InputOperationResponseHeader CreateOperationResponseHeader(ref Utf8JsonReader reader, string? id, JsonSerializerOptions options) + private InputOperationResponseHeader CreateOperationResponseHeader(ref Utf8JsonReader reader, JsonSerializerOptions options) { + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } string? name = null; string? nameInResponse = null; string? summary = null; @@ -33,8 +32,7 @@ private InputOperationResponseHeader CreateOperationResponseHeader(ref Utf8JsonR InputType? type = null; while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadReferenceId(ref id) - || reader.TryReadString("name", ref name) + var isKnownProperty = reader.TryReadString("name", ref name) || reader.TryReadString("nameInResponse", ref nameInResponse) || reader.TryReadString("summary", ref summary) || reader.TryReadString("doc", ref doc) @@ -52,11 +50,6 @@ private InputOperationResponseHeader CreateOperationResponseHeader(ref Utf8JsonR var result = new InputOperationResponseHeader(name, nameInResponse, summary, doc, type); - if (id != null) - { - _referenceHandler.CurrentResolver.AddReference(id, result); - } - return result; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs index 13bd5ac44e2..33f4dbb3ac7 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPagingServiceMetadataConverter.cs @@ -22,7 +22,10 @@ public override void Write(Utf8JsonWriter writer, InputPagingServiceMetadata val private static InputPagingServiceMetadata CreateInputPagingServiceMetadata(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } IReadOnlyList? itemPropertySegments = null; InputNextLink? nextLink = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs index c204f0b29f4..1e3981ad14f 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputParameterConverter.cs @@ -17,15 +17,13 @@ public InputParameterConverter(TypeSpecReferenceHandler referenceHandler) _referenceHandler = referenceHandler; } - public override InputParameter? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => ReadInputParameter(ref reader, options, _referenceHandler.CurrentResolver); + public override InputParameter? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + => reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputParameter(ref reader, null, null, options, _referenceHandler.CurrentResolver); public override void Write(Utf8JsonWriter writer, InputParameter value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private static InputParameter? ReadInputParameter(ref Utf8JsonReader reader, JsonSerializerOptions options, ReferenceResolver resolver) - => reader.ReadReferenceAndResolve(resolver) ?? CreateInputParameter(ref reader, null, null, options, resolver); - - public static InputParameter CreateInputParameter(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputParameter CreateInputParameter(ref Utf8JsonReader reader, string? id, string? name, JsonSerializerOptions options, ReferenceResolver resolver) { string? nameInRequest = null; string? summary = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs index 36835119ce1..4503048a77a 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputSerializationOptionsConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputSerializationOptions valu private static InputSerializationOptions ReadInputSerializationOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } InputJsonSerializationOptions? json = null; InputXmlSerializationOptions? xml = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs index 8f52ad9dcf1..32f8892b55c 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodConverter.cs @@ -28,7 +28,7 @@ public InputServiceMethodConverter(TypeSpecReferenceHandler referenceHandler) public override void Write(Utf8JsonWriter writer, InputServiceMethod value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private InputServiceMethod CreateInputServiceMethod(ref Utf8JsonReader reader, JsonSerializerOptions options, ReferenceResolver resolver) + private static InputServiceMethod CreateInputServiceMethod(ref Utf8JsonReader reader, JsonSerializerOptions options, ReferenceResolver resolver) { string? id = null; string? kind = null; @@ -41,20 +41,20 @@ private InputServiceMethod CreateInputServiceMethod(ref Utf8JsonReader reader, J { continue; } - method = CreateDerivedType(ref reader, id, kind, options); + method = CreateDerivedType(ref reader, id, kind, options, resolver); } - return method ?? CreateDerivedType(ref reader, id, kind, options); + return method ?? CreateDerivedType(ref reader, id, kind, options, resolver); } - private InputServiceMethod CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, JsonSerializerOptions options) => kind switch + private static InputServiceMethod CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, JsonSerializerOptions options, ReferenceResolver resolver) => kind switch { null => throw new JsonException($"InputType (id: '{id}') must have a 'Kind' property"), - BasicKind => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), - PagingKind => InputPagingServiceMethodConverter.CreateInputPagingServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), - LongRunningKind => InputLongRunningServiceMethodConverter.CreateInputLongRunningServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), - LongRunningPagingKind => InputLongRunningPagingServiceMethodConverter.CreateInputLongRunningPagingServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), - _ => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, options, _referenceHandler.CurrentResolver), + BasicKind => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, options, resolver), + PagingKind => InputPagingServiceMethodConverter.CreateInputPagingServiceMethod(ref reader, id, options, resolver), + LongRunningKind => InputLongRunningServiceMethodConverter.CreateInputLongRunningServiceMethod(ref reader, id, options, resolver), + LongRunningPagingKind => InputLongRunningPagingServiceMethodConverter.CreateInputLongRunningPagingServiceMethod(ref reader, id, options, resolver), + _ => InputBasicServiceMethodConverter.CreateInputBasicServiceMethod(ref reader, id, options, resolver), }; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs index ed793e4df2a..7f42a28bd1f 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputServiceMethodResponseConverter.cs @@ -22,7 +22,10 @@ public override void Write(Utf8JsonWriter writer, InputServiceMethodResponse val private static InputServiceMethodResponse ReadInputServiceMethodResponse(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } InputType? type = null; IReadOnlyList? resultSegments = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs index 6042a5525d2..eef96ae8571 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputTypeConverter.cs @@ -18,13 +18,13 @@ public InputTypeConverter(TypeSpecReferenceHandler referenceHandler) public override InputType? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { - return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputType(ref reader, options); + return reader.ReadReferenceAndResolve(_referenceHandler.CurrentResolver) ?? CreateInputType(ref reader, options, _referenceHandler.CurrentResolver); } public override void Write(Utf8JsonWriter writer, InputType value, JsonSerializerOptions options) => throw new NotSupportedException("Writing not supported"); - private InputType CreateInputType(ref Utf8JsonReader reader, JsonSerializerOptions options) + private static InputType CreateInputType(ref Utf8JsonReader reader, JsonSerializerOptions options, ReferenceResolver resolver) { string? id = null; string? kind = null; @@ -40,10 +40,10 @@ private InputType CreateInputType(ref Utf8JsonReader reader, JsonSerializerOptio { continue; } - result = CreateDerivedType(ref reader, id, kind, name, options); + result = CreateDerivedType(ref reader, id, kind, name, options, resolver); } - return result ?? CreateDerivedType(ref reader, id, kind, name, options); + return result ?? CreateDerivedType(ref reader, id, kind, name, options, resolver); } private const string LiteralKind = "constant"; @@ -58,20 +58,20 @@ private InputType CreateInputType(ref Utf8JsonReader reader, JsonSerializerOptio private const string OffsetDateTimeKind = "offsetDateTime"; private const string DurationKind = "duration"; - private InputType CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, string? name, JsonSerializerOptions options) => kind switch + private static InputType CreateDerivedType(ref Utf8JsonReader reader, string? id, string? kind, string? name, JsonSerializerOptions options, ReferenceResolver resolver) => kind switch { null => throw new JsonException($"InputType (id: '{id}', name: '{name}') must have a 'Kind' property"), - LiteralKind => InputLiteralTypeConverter.CreateInputLiteralType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - UnionKind => InputUnionTypeConverter.CreateInputUnionType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - ModelKind => InputModelTypeConverter.CreateModelType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - EnumKind => InputEnumTypeConverter.CreateEnumType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - EnumValueKind => InputEnumTypeValueConverter.CreateEnumTypeValue(ref reader, id, name, options, _referenceHandler.CurrentResolver), - ArrayKind => InputArrayTypeConverter.CreateListType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - DictionaryKind => InputDictionaryTypeConverter.CreateDictionaryType(ref reader, id, options, _referenceHandler.CurrentResolver), - UtcDateTimeKind or OffsetDateTimeKind => InputDateTimeTypeConverter.CreateDateTimeType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - DurationKind => InputDurationTypeConverter.CreateDurationType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - NullableKind => TypeSpecInputNullableTypeConverter.CreateNullableType(ref reader, id, name, options, _referenceHandler.CurrentResolver), - _ => InputPrimitiveTypeConverter.CreatePrimitiveType(ref reader, id, kind, name, options, _referenceHandler.CurrentResolver), + LiteralKind => InputLiteralTypeConverter.CreateInputLiteralType(ref reader, id, name, options, resolver), + UnionKind => InputUnionTypeConverter.CreateInputUnionType(ref reader, id, name, options, resolver), + ModelKind => InputModelTypeConverter.CreateModelType(ref reader, id, name, options, resolver), + EnumKind => InputEnumTypeConverter.CreateEnumType(ref reader, id, name, options, resolver), + EnumValueKind => InputEnumTypeValueConverter.CreateEnumTypeValue(ref reader, id, name, options, resolver), + ArrayKind => InputArrayTypeConverter.CreateListType(ref reader, id, name, options, resolver), + DictionaryKind => InputDictionaryTypeConverter.CreateDictionaryType(ref reader, id, options, resolver), + UtcDateTimeKind or OffsetDateTimeKind => InputDateTimeTypeConverter.CreateDateTimeType(ref reader, id, name, options, resolver), + DurationKind => InputDurationTypeConverter.CreateDurationType(ref reader, id, name, options, resolver), + NullableKind => TypeSpecInputNullableTypeConverter.CreateNullableType(ref reader, id, name, options, resolver), + _ => InputPrimitiveTypeConverter.CreatePrimitiveType(ref reader, id, kind, name, options, resolver), }; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs index fa41705f8a2..c12b8bebbed 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlNamespaceOptionsConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputXmlNamespaceOptions value private static InputXmlNamespaceOptions ReadInputXmlNamespaceOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } string? ns = null; string? prefix = null; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs index c383bab715d..a24502cafd3 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputXmlSerializationOptionsConverter.cs @@ -21,7 +21,10 @@ public override void Write(Utf8JsonWriter writer, InputXmlSerializationOptions v private static InputXmlSerializationOptions ReadInputXmlSerializationOptions(ref Utf8JsonReader reader, JsonSerializerOptions options) { - reader.Read(); // we are at the StartObject token + if (reader.TokenType == JsonTokenType.StartObject) + { + reader.Read(); + } string? name = null; bool? attribute = null; 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 0645247acfc..081d2208d10 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 @@ -41,13 +41,13 @@ public static class TypeSpecSerialization new InputContinuationTokenConverter(), new InputParameterConverter(referenceHandler), new InputPrimitiveTypeConverter(referenceHandler), - new InputOperationResponseConverter(referenceHandler), - new InputOperationResponseHeaderConverter(referenceHandler), + new InputOperationResponseConverter(), + new InputOperationResponseHeaderConverter(), new InputDateTimeTypeConverter(referenceHandler), new InputDurationTypeConverter(referenceHandler), new InputAuthConverter(referenceHandler), new InputApiKeyAuthConverter(), - new InputOAuth2AuthConverter(referenceHandler), + new InputOAuth2AuthConverter(), new InputDecoratorInfoConverter(), new InputSerializationOptionsConverter(), new InputJsonSerializationOptionsConverter(), From 704215392cbdd7a1fca744a5860319a0e9d8e044 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 20 Jun 2025 15:21:04 +0800 Subject: [PATCH 16/22] fix the bug --- .../emitter/src/lib/client-model-builder.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 c5229821dfc..3f77e0cae49 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 @@ -29,7 +29,11 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); - const enums = fromSdkEnums(sdkContext, sdkPackage.enums); + // TODO -- because of an implementation bug in autorest.csharp, + // we have to do this in this way instead the nicer way of + // const enums = fromSdkEnums(sdkContext, sdkPackage.enums); + // we could change it back once autorest.csharp is deprecated for DPG. + const enums = Array.from(sdkContext.__typeCache.enums.values()); const models = fromSdkModels(sdkContext, sdkPackage.models); // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. const constants = Array.from(sdkContext.__typeCache.constants.values()); From 5c64b4cf516d26f04c8b8a9a74875303e06d777e Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 20 Jun 2025 15:31:16 +0800 Subject: [PATCH 17/22] format --- .../http-client-csharp/emitter/src/lib/client-model-builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3f77e0cae49..37b9607a1fa 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 @@ -6,7 +6,7 @@ import { CSharpEmitterContext } from "../sdk-context.js"; import { CodeModel } from "../type/code-model.js"; import { fromSdkClients } from "./client-converter.js"; import { processServiceAuthentication } from "./service-authentication.js"; -import { fromSdkEnums, fromSdkModels } from "./type-converter.js"; +import { fromSdkModels } from "./type-converter.js"; import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; /** From fb43db0812e329e787c45a5abf6b362f9082ee66 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 20 Jun 2025 16:05:50 +0800 Subject: [PATCH 18/22] add back the version enums --- .../emitter/src/lib/client-model-builder.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 37b9607a1fa..6d23eafe0fe 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 @@ -6,7 +6,7 @@ import { CSharpEmitterContext } from "../sdk-context.js"; import { CodeModel } from "../type/code-model.js"; import { fromSdkClients } from "./client-converter.js"; import { processServiceAuthentication } from "./service-authentication.js"; -import { fromSdkModels } from "./type-converter.js"; +import { fromSdkEnums, fromSdkModels } from "./type-converter.js"; import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; /** @@ -29,6 +29,9 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); + // TODO -- we should find a way to remove this. + // but now we have to convert them explicitly because these enums are not directly referenced anywhere. + fromSdkEnums(sdkContext, sdkApiVersionEnums); // TODO -- because of an implementation bug in autorest.csharp, // we have to do this in this way instead the nicer way of // const enums = fromSdkEnums(sdkContext, sdkPackage.enums); From 155193e250019eb6381ecb2bc277cd11229896da Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 20 Jun 2025 16:48:14 +0800 Subject: [PATCH 19/22] regen --- .../versioning/added/v1/tspCodeModel.json | 28 ++-- .../versioning/added/v2/tspCodeModel.json | 80 ++++++------ .../versioning/removed/v1/tspCodeModel.json | 100 +++++++-------- .../versioning/removed/v2/tspCodeModel.json | 120 +++++++++--------- .../removed/v2Preview/tspCodeModel.json | 80 ++++++------ .../renamedFrom/v1/tspCodeModel.json | 30 ++--- .../renamedFrom/v2/tspCodeModel.json | 66 +++++----- 7 files changed, 252 insertions(+), 252 deletions(-) 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 1d540e8eb79..e1920fb4535 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 @@ -7,8 +7,8 @@ { "$id": "1", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Added.Versions", "valueType": { "$id": "2", "kind": "string", @@ -20,28 +20,30 @@ { "$id": "3", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", + "name": "v1", + "value": "v1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Added", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { "$id": "4", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Added.Versions", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Added.EnumV1", "valueType": { "$id": "5", "kind": "string", @@ -53,23 +55,21 @@ { "$id": "6", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { "$ref": "5" }, "enumType": { "$ref": "4" }, - "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Added", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -147,7 +147,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -359,7 +359,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "4" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, 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 6fb6b79d4e3..10a196dab47 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 @@ -8,8 +8,8 @@ { "$id": "1", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Added.Versions", "valueType": { "$id": "2", "kind": "string", @@ -21,41 +21,44 @@ { "$id": "3", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", + "name": "v1", + "value": "v1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v1.", "decorators": [] }, { "$id": "4", "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "v2", + "value": "v2", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Added", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { "$id": "5", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Added.EnumV2", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Added.EnumV1", "valueType": { "$id": "6", "kind": "string", @@ -67,8 +70,21 @@ { "$id": "7", "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { "$ref": "6" }, @@ -85,52 +101,36 @@ "decorators": [] }, { - "$id": "8", + "$id": "9", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Added.Versions", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Added.EnumV2", "valueType": { - "$id": "9", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "values": [ - { - "$id": "10", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$ref": "9" - }, - "enumType": { - "$ref": "8" - }, - "doc": "The version v1.", - "decorators": [] - }, { "$id": "11", "kind": "enumvalue", - "name": "v2", - "value": "v2", + "name": "enumMember", + "value": "enumMember", "valueType": { - "$ref": "9" + "$ref": "10" }, "enumType": { - "$ref": "8" + "$ref": "9" }, - "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Added", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -272,7 +272,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -374,7 +374,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "5" + "$ref": "9" }, "optional": false, "readOnly": false, @@ -827,7 +827,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "8" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, @@ -1049,7 +1049,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "8" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, 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 a3aaa14592f..1268a331661 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 @@ -7,8 +7,8 @@ { "$id": "1", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { "$id": "2", "kind": "string", @@ -20,28 +20,30 @@ { "$id": "3", "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", + "name": "v1", + "value": "v1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { "$id": "4", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", "valueType": { "$id": "5", "kind": "string", @@ -53,21 +55,8 @@ { "$id": "6", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - }, - "decorators": [] - }, - { - "$id": "7", - "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "enumMember", + "value": "enumMember", "valueType": { "$ref": "5" }, @@ -84,12 +73,12 @@ "decorators": [] }, { - "$id": "8", + "$id": "7", "kind": "enum", - "name": "EnumV3", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { - "$id": "9", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -97,28 +86,28 @@ }, "values": [ { - "$id": "10", + "$id": "9", "kind": "enumvalue", "name": "enumMemberV1", "value": "enumMemberV1", "valueType": { - "$ref": "9" + "$ref": "8" }, "enumType": { - "$ref": "8" + "$ref": "7" }, "decorators": [] }, { - "$id": "11", + "$id": "10", "kind": "enumvalue", - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { - "$ref": "9" + "$ref": "8" }, "enumType": { - "$ref": "8" + "$ref": "7" }, "decorators": [] } @@ -130,12 +119,12 @@ "decorators": [] }, { - "$id": "12", + "$id": "11", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "name": "EnumV3", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", "valueType": { - "$id": "13", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -143,25 +132,36 @@ }, "values": [ { - "$id": "14", + "$id": "13", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { - "$ref": "13" + "$ref": "12" }, "enumType": { + "$ref": "11" + }, + "decorators": [] + }, + { + "$id": "14", + "kind": "enumvalue", + "name": "enumMemberV2Preview", + "value": "enumMemberV2Preview", + "valueType": { "$ref": "12" }, - "doc": "The version v1.", + "enumType": { + "$ref": "11" + }, "decorators": [] } ], "namespace": "Versioning.Removed", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -335,7 +335,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -454,7 +454,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "4" + "$ref": "7" }, "optional": false, "readOnly": false, @@ -563,7 +563,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "8" + "$ref": "11" }, "optional": false, "readOnly": false, @@ -1137,7 +1137,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "12" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, @@ -1359,7 +1359,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "12" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, 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 5d90db9678f..ff8a5de0f11 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 @@ -9,8 +9,8 @@ { "$id": "1", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { "$id": "2", "kind": "string", @@ -22,30 +22,60 @@ { "$id": "3", "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "v2preview", + "value": "v2preview", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The V2 Preview version.", + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "v2", + "value": "v2", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { - "$id": "4", + "$id": "6", "kind": "enum", - "name": "EnumV3", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { - "$id": "5", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -53,28 +83,15 @@ }, "values": [ { - "$id": "6", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - }, - "decorators": [] - }, - { - "$id": "7", + "$id": "8", "kind": "enumvalue", - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { - "$ref": "5" + "$ref": "7" }, "enumType": { - "$ref": "4" + "$ref": "6" }, "decorators": [] } @@ -86,66 +103,49 @@ "decorators": [] }, { - "$id": "8", + "$id": "9", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "name": "EnumV3", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", "valueType": { - "$id": "9", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "values": [ - { - "$id": "10", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$ref": "9" - }, - "enumType": { - "$ref": "8" - }, - "doc": "The version v1.", - "decorators": [] - }, { "$id": "11", "kind": "enumvalue", - "name": "v2preview", - "value": "v2preview", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { - "$ref": "9" + "$ref": "10" }, "enumType": { - "$ref": "8" + "$ref": "9" }, - "doc": "The V2 Preview version.", "decorators": [] }, { "$id": "12", "kind": "enumvalue", - "name": "v2", - "value": "v2", + "name": "enumMemberV2Preview", + "value": "enumMemberV2Preview", "valueType": { - "$ref": "9" + "$ref": "10" }, "enumType": { - "$ref": "8" + "$ref": "9" }, - "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Removed", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -255,7 +255,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "6" }, "optional": false, "readOnly": false, @@ -350,7 +350,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "4" + "$ref": "9" }, "optional": false, "readOnly": false, @@ -726,7 +726,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "8" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, 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 451b0a7a1cd..3d773e79656 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 @@ -8,8 +8,8 @@ { "$id": "1", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { "$id": "2", "kind": "string", @@ -21,59 +21,62 @@ { "$id": "3", "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", + "name": "v1", + "value": "v1", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "v2preview", + "value": "v2preview", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The V2 Preview version.", "decorators": [] } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { - "$id": "4", + "$id": "5", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", "valueType": { - "$id": "5", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "values": [ - { - "$id": "6", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - }, - "decorators": [] - }, { "$id": "7", "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "enumMember", + "value": "enumMember", "valueType": { - "$ref": "5" + "$ref": "6" }, "enumType": { - "$ref": "4" + "$ref": "5" }, "decorators": [] } @@ -87,8 +90,8 @@ { "$id": "8", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { "$id": "9", "kind": "string", @@ -100,37 +103,34 @@ { "$id": "10", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { "$ref": "9" }, "enumType": { "$ref": "8" }, - "doc": "The version v1.", "decorators": [] }, { "$id": "11", "kind": "enumvalue", - "name": "v2preview", - "value": "v2preview", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { "$ref": "9" }, "enumType": { "$ref": "8" }, - "doc": "The V2 Preview version.", "decorators": [] } ], "namespace": "Versioning.Removed", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -304,7 +304,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -423,7 +423,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "4" + "$ref": "8" }, "optional": false, "readOnly": false, @@ -1089,7 +1089,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "8" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, @@ -1313,7 +1313,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "8" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, 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 56ee5000a28..cfe0acca84d 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 @@ -7,8 +7,8 @@ { "$id": "1", "kind": "enum", - "name": "OldEnum", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", "valueType": { "$id": "2", "kind": "string", @@ -20,28 +20,30 @@ { "$id": "3", "kind": "enumvalue", - "name": "oldEnumMember", - "value": "oldEnumMember", + "name": "v1", + "value": "v1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { "$id": "4", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", + "name": "OldEnum", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", "valueType": { "$id": "5", "kind": "string", @@ -53,23 +55,21 @@ { "$id": "6", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "oldEnumMember", + "value": "oldEnumMember", "valueType": { "$ref": "5" }, "enumType": { "$ref": "4" }, - "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -179,7 +179,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -480,7 +480,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "4" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, @@ -701,7 +701,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "4" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, 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 f1a1db3d27a..e154004a80d 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 @@ -8,8 +8,8 @@ { "$id": "1", "kind": "enum", - "name": "NewEnum", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", "valueType": { "$id": "2", "kind": "string", @@ -21,70 +21,70 @@ { "$id": "3", "kind": "enumvalue", - "name": "newEnumMember", - "value": "newEnumMember", + "name": "v1", + "value": "v1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] }, { - "$id": "4", + "$id": "5", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", + "name": "NewEnum", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", "valueType": { - "$id": "5", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "values": [ - { - "$id": "6", - "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - }, - "doc": "The version v1.", - "decorators": [] - }, { "$id": "7", "kind": "enumvalue", - "name": "v2", - "value": "v2", + "name": "newEnumMember", + "value": "newEnumMember", "valueType": { - "$ref": "5" + "$ref": "6" }, "enumType": { - "$ref": "4" + "$ref": "5" }, - "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -194,7 +194,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "1" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -496,7 +496,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "4" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, @@ -719,7 +719,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "4" + "$ref": "1" }, "location": "Uri", "isApiVersion": true, From d5d8e2c6914ea0e825f470f9caff15c02ddfada0 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 23 Jun 2025 11:42:20 +0800 Subject: [PATCH 20/22] fix the workaround --- .../http-client-csharp/emitter/src/lib/client-model-builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6d23eafe0fe..d13441a1750 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 @@ -31,7 +31,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { // TODO -- we should find a way to remove this. // but now we have to convert them explicitly because these enums are not directly referenced anywhere. - fromSdkEnums(sdkContext, sdkApiVersionEnums); + fromSdkEnums(sdkContext, sdkPackage.enums); // TODO -- because of an implementation bug in autorest.csharp, // we have to do this in this way instead the nicer way of // const enums = fromSdkEnums(sdkContext, sdkPackage.enums); From 8b89c5b2d21dbab22fe2531afeeb8769a72f3e30 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 23 Jun 2025 15:38:26 +0800 Subject: [PATCH 21/22] more fixes --- .../http-client-csharp/emitter/src/lib/client-model-builder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 d13441a1750..6a0a541e8ee 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 @@ -32,12 +32,13 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { // TODO -- we should find a way to remove this. // but now we have to convert them explicitly because these enums are not directly referenced anywhere. fromSdkEnums(sdkContext, sdkPackage.enums); + fromSdkModels(sdkContext, sdkPackage.models); // TODO -- because of an implementation bug in autorest.csharp, // we have to do this in this way instead the nicer way of // const enums = fromSdkEnums(sdkContext, sdkPackage.enums); // we could change it back once autorest.csharp is deprecated for DPG. const enums = Array.from(sdkContext.__typeCache.enums.values()); - const models = fromSdkModels(sdkContext, sdkPackage.models); + const models = Array.from(sdkContext.__typeCache.models.values()); // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. const constants = Array.from(sdkContext.__typeCache.constants.values()); From 606780b87a4c8969b3d8b624fbb41a6a8c186782 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 25 Jun 2025 16:59:12 +0800 Subject: [PATCH 22/22] refine code and regen --- .../emitter/src/lib/client-model-builder.ts | 24 +- .../emitter/src/lib/type-converter.ts | 24 - .../Local/Sample-TypeSpec/tspCodeModel.json | 98 ++-- .../content-negotiation/tspCodeModel.json | 58 +-- .../http/payload/multipart/tspCodeModel.json | 128 +++--- .../Spector/http/type/array/tspCodeModel.json | 233 +++++----- .../http/type/dictionary/tspCodeModel.json | 114 +++-- .../nested-discriminator/tspCodeModel.json | 40 +- .../single-discriminator/tspCodeModel.json | 84 ++-- .../additional-properties/tspCodeModel.json | 434 +++++++++--------- .../property/optionality/tspCodeModel.json | 370 +++++++-------- .../property/value-types/tspCodeModel.json | 394 ++++++++-------- .../Spector/http/type/union/tspCodeModel.json | 190 ++++---- .../versioning/added/v1/tspCodeModel.json | 28 +- .../versioning/added/v2/tspCodeModel.json | 80 ++-- .../versioning/removed/v1/tspCodeModel.json | 100 ++-- .../versioning/removed/v2/tspCodeModel.json | 120 ++--- .../removed/v2Preview/tspCodeModel.json | 80 ++-- .../renamedFrom/v1/tspCodeModel.json | 30 +- .../renamedFrom/v2/tspCodeModel.json | 66 +-- 20 files changed, 1332 insertions(+), 1363 deletions(-) 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 6a0a541e8ee..70cd20c4cae 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 @@ -6,7 +6,7 @@ import { CSharpEmitterContext } from "../sdk-context.js"; import { CodeModel } from "../type/code-model.js"; import { fromSdkClients } from "./client-converter.js"; import { processServiceAuthentication } from "./service-authentication.js"; -import { fromSdkEnums, fromSdkModels } from "./type-converter.js"; +import { fromSdkType } from "./type-converter.js"; import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; /** @@ -16,12 +16,12 @@ import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; * @beta */ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { - const sdkPackage = sdkContext.sdkPackage; + // convert all the models and enums in the sdkPackage to the type cache. + navigateModels(sdkContext); + const sdkPackage = sdkContext.sdkPackage; const sdkApiVersionEnums = sdkPackage.enums.filter((e) => e.usage === UsageFlags.ApiVersionEnum); - const rootClients = sdkPackage.clients; - const rootApiVersions = sdkApiVersionEnums.length > 0 ? sdkApiVersionEnums[0].values.map((v) => v.value as string).flat() @@ -29,15 +29,14 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); - // TODO -- we should find a way to remove this. - // but now we have to convert them explicitly because these enums are not directly referenced anywhere. - fromSdkEnums(sdkContext, sdkPackage.enums); - fromSdkModels(sdkContext, sdkPackage.models); // TODO -- because of an implementation bug in autorest.csharp, // we have to do this in this way instead the nicer way of // const enums = fromSdkEnums(sdkContext, sdkPackage.enums); // we could change it back once autorest.csharp is deprecated for DPG. const enums = Array.from(sdkContext.__typeCache.enums.values()); + // TODO -- for models, because we do not have a way to deal with models with the same name in different namespaces, + // we collapse all models with the same name into one model. + // until we find a solution for that, we would always need this workaround. const models = Array.from(sdkContext.__typeCache.models.values()); // TODO -- TCGC now does not have constants field in its sdkPackage, they might add it in the future. const constants = Array.from(sdkContext.__typeCache.constants.values()); @@ -89,3 +88,12 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { return clientModel; } + +function navigateModels(sdkContext: CSharpEmitterContext) { + for (const m of sdkContext.sdkPackage.models) { + fromSdkType(sdkContext, m); + } + for (const e of sdkContext.sdkPackage.enums) { + fromSdkType(sdkContext, e); + } +} diff --git a/packages/http-client-csharp/emitter/src/lib/type-converter.ts b/packages/http-client-csharp/emitter/src/lib/type-converter.ts index 5c13bb3ad8e..fcf1074fdd6 100644 --- a/packages/http-client-csharp/emitter/src/lib/type-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/type-converter.ts @@ -45,30 +45,6 @@ import { InputUnionType, } from "../type/input-type.js"; -export function fromSdkModels( - sdkContext: CSharpEmitterContext, - models: SdkModelType[], -): InputModelType[] { - const inputModels: InputModelType[] = []; - for (const model of models) { - const inputModel = fromSdkType(sdkContext, model); - inputModels.push(inputModel); - } - return inputModels; -} - -export function fromSdkEnums( - sdkContext: CSharpEmitterContext, - enums: SdkEnumType[], -): InputEnumType[] { - const inputEnums: InputEnumType[] = []; - for (const enumType of enums) { - const inputEnum = fromSdkType(sdkContext, enumType); - inputEnums.push(inputEnum); - } - return inputEnums; -} - // we have this complicated type here to let the caller of fromSdkType could infer the real return type of this function. type InputReturnType = T extends { kind: "nullable" } ? InputNullableType diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index 7d681427540..5792a56099c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -536,27 +536,11 @@ { "$id": "45", "kind": "constant", - "name": "sayHiContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "46", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "47", - "kind": "constant", "name": "ThingRequiredLiteralString", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "48", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -566,13 +550,13 @@ "decorators": [] }, { - "$id": "49", + "$id": "47", "kind": "constant", "name": "ThingRequiredLiteralInt", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "50", + "$id": "48", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -582,13 +566,13 @@ "decorators": [] }, { - "$id": "51", + "$id": "49", "kind": "constant", "name": "ThingRequiredLiteralFloat", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "52", + "$id": "50", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -598,13 +582,13 @@ "decorators": [] }, { - "$id": "53", + "$id": "51", "kind": "constant", "name": "ThingRequiredLiteralBool", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "54", + "$id": "52", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -614,13 +598,13 @@ "decorators": [] }, { - "$id": "55", + "$id": "53", "kind": "constant", "name": "ThingOptionalLiteralString", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "56", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -630,13 +614,13 @@ "decorators": [] }, { - "$id": "57", + "$id": "55", "kind": "constant", "name": "ThingOptionalLiteralInt", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "58", + "$id": "56", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -646,13 +630,13 @@ "decorators": [] }, { - "$id": "59", + "$id": "57", "kind": "constant", "name": "ThingOptionalLiteralFloat", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "60", + "$id": "58", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -662,13 +646,13 @@ "decorators": [] }, { - "$id": "61", + "$id": "59", "kind": "constant", "name": "ThingOptionalLiteralBool", "namespace": "SampleTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "62", + "$id": "60", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -677,6 +661,22 @@ "value": true, "decorators": [] }, + { + "$id": "61", + "kind": "constant", + "name": "sayHiContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { "$id": "63", "kind": "constant", @@ -1448,7 +1448,7 @@ "serializedName": "requiredLiteralString", "doc": "required literal string", "type": { - "$ref": "47" + "$ref": "45" }, "optional": false, "readOnly": false, @@ -1529,7 +1529,7 @@ "serializedName": "requiredLiteralInt", "doc": "required literal int", "type": { - "$ref": "49" + "$ref": "47" }, "optional": false, "readOnly": false, @@ -1550,7 +1550,7 @@ "serializedName": "requiredLiteralFloat", "doc": "required literal float", "type": { - "$ref": "51" + "$ref": "49" }, "optional": false, "readOnly": false, @@ -1571,7 +1571,7 @@ "serializedName": "requiredLiteralBool", "doc": "required literal bool", "type": { - "$ref": "53" + "$ref": "51" }, "optional": false, "readOnly": false, @@ -1592,7 +1592,7 @@ "serializedName": "optionalLiteralString", "doc": "optional literal string", "type": { - "$ref": "55" + "$ref": "53" }, "optional": true, "readOnly": false, @@ -1613,7 +1613,7 @@ "serializedName": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$ref": "57" + "$ref": "55" }, "optional": true, "readOnly": false, @@ -1634,7 +1634,7 @@ "serializedName": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$ref": "59" + "$ref": "57" }, "optional": true, "readOnly": false, @@ -1655,7 +1655,7 @@ "serializedName": "optionalLiteralBool", "doc": "optional literal bool", "type": { - "$ref": "61" + "$ref": "59" }, "optional": true, "readOnly": false, @@ -2923,7 +2923,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "45" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -3029,7 +3029,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "45" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -4518,7 +4518,7 @@ "nameInRequest": "requiredLiteralString", "doc": "required literal string", "type": { - "$ref": "47" + "$ref": "45" }, "location": "Body", "isApiVersion": false, @@ -4572,7 +4572,7 @@ "nameInRequest": "requiredLiteralInt", "doc": "required literal int", "type": { - "$ref": "49" + "$ref": "47" }, "location": "Body", "isApiVersion": false, @@ -4590,7 +4590,7 @@ "nameInRequest": "requiredLiteralFloat", "doc": "required literal float", "type": { - "$ref": "51" + "$ref": "49" }, "location": "Body", "isApiVersion": false, @@ -4608,7 +4608,7 @@ "nameInRequest": "requiredLiteralBool", "doc": "required literal bool", "type": { - "$ref": "53" + "$ref": "51" }, "location": "Body", "isApiVersion": false, @@ -4626,7 +4626,7 @@ "nameInRequest": "optionalLiteralString", "doc": "optional literal string", "type": { - "$ref": "55" + "$ref": "53" }, "location": "Body", "isApiVersion": false, @@ -4644,7 +4644,7 @@ "nameInRequest": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$ref": "57" + "$ref": "55" }, "location": "Body", "isApiVersion": false, @@ -4662,7 +4662,7 @@ "nameInRequest": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$ref": "59" + "$ref": "57" }, "location": "Body", "isApiVersion": false, @@ -4680,7 +4680,7 @@ "nameInRequest": "optionalLiteralBool", "doc": "optional literal bool", "type": { - "$ref": "61" + "$ref": "59" }, "location": "Body", "isApiVersion": false, 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 3632074561f..b2993fa3a40 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 @@ -6,9 +6,9 @@ { "$id": "1", "kind": "constant", - "name": "PngImageContentType", - "namespace": "", - "usage": "None", + "name": "PngImageAsJsonContentType", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "usage": "Output,Json", "valueType": { "$id": "2", "kind": "string", @@ -16,13 +16,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "image/png", + "value": "application/json", "decorators": [] }, { "$id": "3", "kind": "constant", - "name": "PngImageContentType1", + "name": "PngImageContentType", "namespace": "", "usage": "None", "valueType": { @@ -38,7 +38,7 @@ { "$id": "5", "kind": "constant", - "name": "PngImageContentType2", + "name": "PngImageContentType1", "namespace": "", "usage": "None", "valueType": { @@ -54,7 +54,7 @@ { "$id": "7", "kind": "constant", - "name": "JpegImageContentType", + "name": "PngImageContentType2", "namespace": "", "usage": "None", "valueType": { @@ -64,13 +64,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "image/jpeg", + "value": "image/png", "decorators": [] }, { "$id": "9", "kind": "constant", - "name": "JpegImageContentType1", + "name": "JpegImageContentType", "namespace": "", "usage": "None", "valueType": { @@ -86,7 +86,7 @@ { "$id": "11", "kind": "constant", - "name": "JpegImageContentType2", + "name": "JpegImageContentType1", "namespace": "", "usage": "None", "valueType": { @@ -102,7 +102,7 @@ { "$id": "13", "kind": "constant", - "name": "PngImageContentType3", + "name": "JpegImageContentType2", "namespace": "", "usage": "None", "valueType": { @@ -112,13 +112,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "image/png", + "value": "image/jpeg", "decorators": [] }, { "$id": "15", "kind": "constant", - "name": "PngImageContentType4", + "name": "PngImageContentType3", "namespace": "", "usage": "None", "valueType": { @@ -134,7 +134,7 @@ { "$id": "17", "kind": "constant", - "name": "PngImageContentType5", + "name": "PngImageContentType4", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +150,7 @@ { "$id": "19", "kind": "constant", - "name": "PngImageAsJsonContentType", + "name": "PngImageContentType5", "namespace": "", "usage": "None", "valueType": { @@ -160,15 +160,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "image/png", "decorators": [] }, { "$id": "21", "kind": "constant", "name": "PngImageAsJsonContentType1", - "namespace": "Payload.ContentNegotiation.DifferentBody", - "usage": "Output,Json", + "namespace": "", + "usage": "None", "valueType": { "$id": "22", "kind": "string", @@ -228,7 +228,7 @@ "name": "contentType", "serializedName": "content-type", "type": { - "$ref": "21" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -331,7 +331,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "1" + "$ref": "3" }, "location": "Header", "isApiVersion": false, @@ -361,7 +361,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "3" + "$ref": "5" } } ], @@ -386,7 +386,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "5" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -426,7 +426,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "7" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -456,7 +456,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "9" + "$ref": "11" } } ], @@ -481,7 +481,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "11" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -567,7 +567,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "13" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -597,7 +597,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "15" + "$ref": "17" } } ], @@ -622,7 +622,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "17" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -662,7 +662,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "19" + "$ref": "21" }, "location": "Header", "isApiVersion": false, 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 07c0deaffed..41bb5fba9ee 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 @@ -6,9 +6,9 @@ { "$id": "1", "kind": "constant", - "name": "BasicRequestContentType", - "namespace": "", - "usage": "None", + "name": "FileSpecificContentTypeContentType", + "namespace": "Payload.MultiPart", + "usage": "Input", "valueType": { "$id": "2", "kind": "string", @@ -16,15 +16,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "multipart/form-data", + "value": "image/jpg", "decorators": [] }, { "$id": "3", "kind": "constant", - "name": "BasicRequestContentType1", - "namespace": "", - "usage": "None", + "name": "FloatRequestTemperatureContentType", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "usage": "Input", "valueType": { "$id": "4", "kind": "string", @@ -32,13 +32,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "multipart/form-data", + "value": "text/plain", "decorators": [] }, { "$id": "5", "kind": "constant", - "name": "BasicRequestContentType2", + "name": "BasicRequestContentType", "namespace": "", "usage": "None", "valueType": { @@ -54,7 +54,7 @@ { "$id": "7", "kind": "constant", - "name": "BasicRequestContentType3", + "name": "BasicRequestContentType1", "namespace": "", "usage": "None", "valueType": { @@ -70,7 +70,7 @@ { "$id": "9", "kind": "constant", - "name": "BasicRequestContentType4", + "name": "BasicRequestContentType2", "namespace": "", "usage": "None", "valueType": { @@ -86,7 +86,7 @@ { "$id": "11", "kind": "constant", - "name": "BasicRequestContentType5", + "name": "BasicRequestContentType3", "namespace": "", "usage": "None", "valueType": { @@ -102,7 +102,7 @@ { "$id": "13", "kind": "constant", - "name": "BasicRequestContentType6", + "name": "BasicRequestContentType4", "namespace": "", "usage": "None", "valueType": { @@ -118,7 +118,7 @@ { "$id": "15", "kind": "constant", - "name": "BasicRequestContentType7", + "name": "BasicRequestContentType5", "namespace": "", "usage": "None", "valueType": { @@ -134,7 +134,7 @@ { "$id": "17", "kind": "constant", - "name": "BasicRequestContentType8", + "name": "BasicRequestContentType6", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +150,7 @@ { "$id": "19", "kind": "constant", - "name": "BasicRequestContentType9", + "name": "BasicRequestContentType7", "namespace": "", "usage": "None", "valueType": { @@ -166,7 +166,7 @@ { "$id": "21", "kind": "constant", - "name": "BasicRequestContentType10", + "name": "BasicRequestContentType8", "namespace": "", "usage": "None", "valueType": { @@ -182,7 +182,7 @@ { "$id": "23", "kind": "constant", - "name": "BasicRequestContentType11", + "name": "BasicRequestContentType9", "namespace": "", "usage": "None", "valueType": { @@ -198,7 +198,7 @@ { "$id": "25", "kind": "constant", - "name": "BasicRequestContentType12", + "name": "BasicRequestContentType10", "namespace": "", "usage": "None", "valueType": { @@ -214,7 +214,7 @@ { "$id": "27", "kind": "constant", - "name": "BasicRequestContentType13", + "name": "BasicRequestContentType11", "namespace": "", "usage": "None", "valueType": { @@ -230,7 +230,7 @@ { "$id": "29", "kind": "constant", - "name": "BasicRequestContentType14", + "name": "BasicRequestContentType12", "namespace": "", "usage": "None", "valueType": { @@ -246,7 +246,7 @@ { "$id": "31", "kind": "constant", - "name": "BasicRequestContentType15", + "name": "BasicRequestContentType13", "namespace": "", "usage": "None", "valueType": { @@ -262,7 +262,7 @@ { "$id": "33", "kind": "constant", - "name": "BasicRequestContentType16", + "name": "BasicRequestContentType14", "namespace": "", "usage": "None", "valueType": { @@ -278,9 +278,9 @@ { "$id": "35", "kind": "constant", - "name": "FileSpecificContentTypeContentType", - "namespace": "Payload.MultiPart", - "usage": "Input", + "name": "BasicRequestContentType15", + "namespace": "", + "usage": "None", "valueType": { "$id": "36", "kind": "string", @@ -288,13 +288,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "image/jpg", + "value": "multipart/form-data", "decorators": [] }, { "$id": "37", "kind": "constant", - "name": "BasicRequestContentType17", + "name": "BasicRequestContentType16", "namespace": "", "usage": "None", "valueType": { @@ -310,7 +310,7 @@ { "$id": "39", "kind": "constant", - "name": "BasicRequestContentType18", + "name": "BasicRequestContentType17", "namespace": "", "usage": "None", "valueType": { @@ -326,7 +326,7 @@ { "$id": "41", "kind": "constant", - "name": "BasicRequestContentType19", + "name": "BasicRequestContentType18", "namespace": "", "usage": "None", "valueType": { @@ -342,7 +342,7 @@ { "$id": "43", "kind": "constant", - "name": "BasicRequestContentType20", + "name": "BasicRequestContentType19", "namespace": "", "usage": "None", "valueType": { @@ -358,7 +358,7 @@ { "$id": "45", "kind": "constant", - "name": "BasicRequestContentType21", + "name": "BasicRequestContentType20", "namespace": "", "usage": "None", "valueType": { @@ -374,7 +374,7 @@ { "$id": "47", "kind": "constant", - "name": "BasicRequestContentType22", + "name": "BasicRequestContentType21", "namespace": "", "usage": "None", "valueType": { @@ -390,7 +390,7 @@ { "$id": "49", "kind": "constant", - "name": "BasicRequestContentType23", + "name": "BasicRequestContentType22", "namespace": "", "usage": "None", "valueType": { @@ -406,9 +406,9 @@ { "$id": "51", "kind": "constant", - "name": "FloatRequestTemperatureContentType", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "usage": "Input", + "name": "BasicRequestContentType23", + "namespace": "", + "usage": "None", "valueType": { "$id": "52", "kind": "string", @@ -416,7 +416,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "text/plain", + "value": "multipart/form-data", "decorators": [] } ], @@ -1325,7 +1325,7 @@ "name": "contentType", "serializedName": "contentType", "type": { - "$ref": "35" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -1706,7 +1706,7 @@ "name": "contentType", "serializedName": "content-type", "type": { - "$ref": "51" + "$ref": "3" }, "optional": false, "readOnly": false, @@ -1786,7 +1786,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "1" + "$ref": "5" }, "location": "Header", "isApiVersion": false, @@ -1843,7 +1843,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "3" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -1898,7 +1898,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "5" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -1955,7 +1955,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "7" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -2010,7 +2010,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "9" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -2067,7 +2067,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "11" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -2122,7 +2122,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "13" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -2179,7 +2179,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "15" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -2234,7 +2234,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "17" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -2291,7 +2291,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "19" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -2346,7 +2346,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "21" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -2403,7 +2403,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "23" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -2458,7 +2458,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "25" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -2515,7 +2515,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "27" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -2616,7 +2616,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "29" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -2673,7 +2673,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "31" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -2774,7 +2774,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "33" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -2831,7 +2831,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "37" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -2886,7 +2886,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "39" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -2943,7 +2943,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "41" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -2998,7 +2998,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "43" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -3055,7 +3055,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "45" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -3156,7 +3156,7 @@ "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$ref": "47" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -3213,7 +3213,7 @@ "name": "contentType", "nameInRequest": "content-type", "type": { - "$ref": "49" + "$ref": "51" }, "location": "Header", "isApiVersion": false, 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 8e368383dae..f923d15c450 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 @@ -2645,14 +2645,7 @@ 200 ], "bodyType": { - "$id": "200", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "57" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$ref": "61" }, "headers": [], "isErrorResponse": false, @@ -2672,7 +2665,7 @@ }, "parameters": [ { - "$id": "201", + "$id": "200", "name": "accept", "nameInRequest": "accept", "type": { @@ -2691,7 +2684,7 @@ ], "response": { "type": { - "$ref": "200" + "$ref": "61" } }, "isOverride": false, @@ -2700,19 +2693,19 @@ "crossLanguageDefinitionId": "Type.Array.ModelValue.get" }, { - "$id": "202", + "$id": "201", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "203", + "$id": "202", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "203", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2730,11 +2723,11 @@ "skipUrlEncoding": false }, { - "$id": "205", + "$id": "204", "name": "body", "nameInRequest": "body", "type": { - "$ref": "200" + "$ref": "61" }, "location": "Body", "isApiVersion": false, @@ -2770,11 +2763,11 @@ }, "parameters": [ { - "$id": "206", + "$id": "205", "name": "body", "nameInRequest": "body", "type": { - "$ref": "200" + "$ref": "61" }, "location": "Body", "isApiVersion": false, @@ -2787,7 +2780,7 @@ "skipUrlEncoding": false }, { - "$id": "207", + "$id": "206", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2814,12 +2807,12 @@ ], "parameters": [ { - "$id": "208", + "$id": "207", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "209", + "$id": "208", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2834,7 +2827,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "210", + "$id": "209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2852,26 +2845,26 @@ } }, { - "$id": "211", + "$id": "210", "kind": "client", "name": "NullableFloatValue", "namespace": "Type.Array", "doc": "Array of nullable float values", "methods": [ { - "$id": "212", + "$id": "211", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "213", + "$id": "212", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "214", + "$id": "213", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2894,14 +2887,14 @@ 200 ], "bodyType": { - "$id": "215", + "$id": "214", "kind": "array", "name": "Array8", "valueType": { - "$id": "216", + "$id": "215", "kind": "nullable", "type": { - "$id": "217", + "$id": "216", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2930,7 +2923,7 @@ }, "parameters": [ { - "$id": "218", + "$id": "217", "name": "accept", "nameInRequest": "accept", "type": { @@ -2949,7 +2942,7 @@ ], "response": { "type": { - "$ref": "215" + "$ref": "214" } }, "isOverride": false, @@ -2958,19 +2951,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" }, { - "$id": "219", + "$id": "218", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "220", + "$id": "219", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "221", + "$id": "220", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2988,11 +2981,11 @@ "skipUrlEncoding": false }, { - "$id": "222", + "$id": "221", "name": "body", "nameInRequest": "body", "type": { - "$ref": "215" + "$ref": "214" }, "location": "Body", "isApiVersion": false, @@ -3028,11 +3021,11 @@ }, "parameters": [ { - "$id": "223", + "$id": "222", "name": "body", "nameInRequest": "body", "type": { - "$ref": "215" + "$ref": "214" }, "location": "Body", "isApiVersion": false, @@ -3045,7 +3038,7 @@ "skipUrlEncoding": false }, { - "$id": "224", + "$id": "223", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3072,12 +3065,12 @@ ], "parameters": [ { - "$id": "225", + "$id": "224", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "226", + "$id": "225", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3092,7 +3085,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "227", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3110,26 +3103,26 @@ } }, { - "$id": "228", + "$id": "227", "kind": "client", "name": "NullableInt32Value", "namespace": "Type.Array", "doc": "Array of nullable int32 values", "methods": [ { - "$id": "229", + "$id": "228", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "230", + "$id": "229", "name": "get", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "231", + "$id": "230", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3152,14 +3145,14 @@ 200 ], "bodyType": { - "$id": "232", + "$id": "231", "kind": "array", "name": "Array9", "valueType": { - "$id": "233", + "$id": "232", "kind": "nullable", "type": { - "$id": "234", + "$id": "233", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3188,7 +3181,7 @@ }, "parameters": [ { - "$id": "235", + "$id": "234", "name": "accept", "nameInRequest": "accept", "type": { @@ -3207,7 +3200,7 @@ ], "response": { "type": { - "$ref": "232" + "$ref": "231" } }, "isOverride": false, @@ -3216,19 +3209,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" }, { - "$id": "236", + "$id": "235", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "237", + "$id": "236", "name": "put", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "237", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3246,11 +3239,11 @@ "skipUrlEncoding": false }, { - "$id": "239", + "$id": "238", "name": "body", "nameInRequest": "body", "type": { - "$ref": "232" + "$ref": "231" }, "location": "Body", "isApiVersion": false, @@ -3286,11 +3279,11 @@ }, "parameters": [ { - "$id": "240", + "$id": "239", "name": "body", "nameInRequest": "body", "type": { - "$ref": "232" + "$ref": "231" }, "location": "Body", "isApiVersion": false, @@ -3303,7 +3296,7 @@ "skipUrlEncoding": false }, { - "$id": "241", + "$id": "240", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3330,12 +3323,12 @@ ], "parameters": [ { - "$id": "242", + "$id": "241", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "243", + "$id": "242", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3350,7 +3343,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "244", + "$id": "243", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3368,26 +3361,26 @@ } }, { - "$id": "245", + "$id": "244", "kind": "client", "name": "NullableBooleanValue", "namespace": "Type.Array", "doc": "Array of nullable boolean values", "methods": [ { - "$id": "246", + "$id": "245", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "247", + "$id": "246", "name": "get", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "247", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3410,14 +3403,14 @@ 200 ], "bodyType": { - "$id": "249", + "$id": "248", "kind": "array", "name": "Array10", "valueType": { - "$id": "250", + "$id": "249", "kind": "nullable", "type": { - "$id": "251", + "$id": "250", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3446,7 +3439,7 @@ }, "parameters": [ { - "$id": "252", + "$id": "251", "name": "accept", "nameInRequest": "accept", "type": { @@ -3465,7 +3458,7 @@ ], "response": { "type": { - "$ref": "249" + "$ref": "248" } }, "isOverride": false, @@ -3474,19 +3467,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" }, { - "$id": "253", + "$id": "252", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "254", + "$id": "253", "name": "put", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "255", + "$id": "254", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3504,11 +3497,11 @@ "skipUrlEncoding": false }, { - "$id": "256", + "$id": "255", "name": "body", "nameInRequest": "body", "type": { - "$ref": "249" + "$ref": "248" }, "location": "Body", "isApiVersion": false, @@ -3544,11 +3537,11 @@ }, "parameters": [ { - "$id": "257", + "$id": "256", "name": "body", "nameInRequest": "body", "type": { - "$ref": "249" + "$ref": "248" }, "location": "Body", "isApiVersion": false, @@ -3561,7 +3554,7 @@ "skipUrlEncoding": false }, { - "$id": "258", + "$id": "257", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3588,12 +3581,12 @@ ], "parameters": [ { - "$id": "259", + "$id": "258", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "260", + "$id": "259", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3608,7 +3601,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "261", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3626,26 +3619,26 @@ } }, { - "$id": "262", + "$id": "261", "kind": "client", "name": "NullableStringValue", "namespace": "Type.Array", "doc": "Array of nullable string values", "methods": [ { - "$id": "263", + "$id": "262", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "264", + "$id": "263", "name": "get", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "265", + "$id": "264", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3668,14 +3661,14 @@ 200 ], "bodyType": { - "$id": "266", + "$id": "265", "kind": "array", "name": "Array11", "valueType": { - "$id": "267", + "$id": "266", "kind": "nullable", "type": { - "$id": "268", + "$id": "267", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3704,7 +3697,7 @@ }, "parameters": [ { - "$id": "269", + "$id": "268", "name": "accept", "nameInRequest": "accept", "type": { @@ -3723,7 +3716,7 @@ ], "response": { "type": { - "$ref": "266" + "$ref": "265" } }, "isOverride": false, @@ -3732,19 +3725,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" }, { - "$id": "270", + "$id": "269", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "271", + "$id": "270", "name": "put", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "272", + "$id": "271", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3762,11 +3755,11 @@ "skipUrlEncoding": false }, { - "$id": "273", + "$id": "272", "name": "body", "nameInRequest": "body", "type": { - "$ref": "266" + "$ref": "265" }, "location": "Body", "isApiVersion": false, @@ -3802,11 +3795,11 @@ }, "parameters": [ { - "$id": "274", + "$id": "273", "name": "body", "nameInRequest": "body", "type": { - "$ref": "266" + "$ref": "265" }, "location": "Body", "isApiVersion": false, @@ -3819,7 +3812,7 @@ "skipUrlEncoding": false }, { - "$id": "275", + "$id": "274", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3846,12 +3839,12 @@ ], "parameters": [ { - "$id": "276", + "$id": "275", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "277", + "$id": "276", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3866,7 +3859,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "278", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3884,26 +3877,26 @@ } }, { - "$id": "279", + "$id": "278", "kind": "client", "name": "NullableModelValue", "namespace": "Type.Array", "doc": "Array of nullable model values", "methods": [ { - "$id": "280", + "$id": "279", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "281", + "$id": "280", "name": "get", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "282", + "$id": "281", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3926,11 +3919,11 @@ 200 ], "bodyType": { - "$id": "283", + "$id": "282", "kind": "array", "name": "Array12", "valueType": { - "$id": "284", + "$id": "283", "kind": "nullable", "type": { "$ref": "57" @@ -3958,7 +3951,7 @@ }, "parameters": [ { - "$id": "285", + "$id": "284", "name": "accept", "nameInRequest": "accept", "type": { @@ -3977,7 +3970,7 @@ ], "response": { "type": { - "$ref": "283" + "$ref": "282" } }, "isOverride": false, @@ -3986,19 +3979,19 @@ "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" }, { - "$id": "286", + "$id": "285", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "287", + "$id": "286", "name": "put", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "288", + "$id": "287", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -4016,11 +4009,11 @@ "skipUrlEncoding": false }, { - "$id": "289", + "$id": "288", "name": "body", "nameInRequest": "body", "type": { - "$ref": "283" + "$ref": "282" }, "location": "Body", "isApiVersion": false, @@ -4056,11 +4049,11 @@ }, "parameters": [ { - "$id": "290", + "$id": "289", "name": "body", "nameInRequest": "body", "type": { - "$ref": "283" + "$ref": "282" }, "location": "Body", "isApiVersion": false, @@ -4073,7 +4066,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "290", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -4100,12 +4093,12 @@ ], "parameters": [ { - "$id": "292", + "$id": "291", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "293", + "$id": "292", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4120,7 +4113,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "294", + "$id": "293", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 dea71f09293..14cf3edf14d 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 @@ -2594,15 +2594,7 @@ 200 ], "bodyType": { - "$id": "197", - "kind": "dict", - "keyType": { - "$ref": "50" - }, - "valueType": { - "$ref": "45" - }, - "decorators": [] + "$ref": "49" }, "headers": [], "isErrorResponse": false, @@ -2622,7 +2614,7 @@ }, "parameters": [ { - "$id": "198", + "$id": "197", "name": "accept", "nameInRequest": "accept", "type": { @@ -2641,7 +2633,7 @@ ], "response": { "type": { - "$ref": "197" + "$ref": "49" } }, "isOverride": false, @@ -2650,19 +2642,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" }, { - "$id": "199", + "$id": "198", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "200", + "$id": "199", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "201", + "$id": "200", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2680,11 +2672,11 @@ "skipUrlEncoding": false }, { - "$id": "202", + "$id": "201", "name": "body", "nameInRequest": "body", "type": { - "$ref": "197" + "$ref": "49" }, "location": "Body", "isApiVersion": false, @@ -2720,11 +2712,11 @@ }, "parameters": [ { - "$id": "203", + "$id": "202", "name": "body", "nameInRequest": "body", "type": { - "$ref": "197" + "$ref": "49" }, "location": "Body", "isApiVersion": false, @@ -2737,7 +2729,7 @@ "skipUrlEncoding": false }, { - "$id": "204", + "$id": "203", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -2764,12 +2756,12 @@ ], "parameters": [ { - "$id": "205", + "$id": "204", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "206", + "$id": "205", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2784,7 +2776,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "207", + "$id": "206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2802,26 +2794,26 @@ } }, { - "$id": "208", + "$id": "207", "kind": "client", "name": "RecursiveModelValue", "namespace": "Type.Dictionary", "doc": "Dictionary of model values", "methods": [ { - "$id": "209", + "$id": "208", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "210", + "$id": "209", "name": "get", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "211", + "$id": "210", "name": "accept", "nameInRequest": "Accept", "type": { @@ -2844,7 +2836,7 @@ 200 ], "bodyType": { - "$ref": "197" + "$ref": "49" }, "headers": [], "isErrorResponse": false, @@ -2864,7 +2856,7 @@ }, "parameters": [ { - "$id": "212", + "$id": "211", "name": "accept", "nameInRequest": "accept", "type": { @@ -2883,7 +2875,7 @@ ], "response": { "type": { - "$ref": "197" + "$ref": "49" } }, "isOverride": false, @@ -2892,19 +2884,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" }, { - "$id": "213", + "$id": "212", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "214", + "$id": "213", "name": "put", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "215", + "$id": "214", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -2922,11 +2914,11 @@ "skipUrlEncoding": false }, { - "$id": "216", + "$id": "215", "name": "body", "nameInRequest": "body", "type": { - "$ref": "197" + "$ref": "49" }, "location": "Body", "isApiVersion": false, @@ -2962,11 +2954,11 @@ }, "parameters": [ { - "$id": "217", + "$id": "216", "name": "body", "nameInRequest": "body", "type": { - "$ref": "197" + "$ref": "49" }, "location": "Body", "isApiVersion": false, @@ -2979,7 +2971,7 @@ "skipUrlEncoding": false }, { - "$id": "218", + "$id": "217", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3006,12 +2998,12 @@ ], "parameters": [ { - "$id": "219", + "$id": "218", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "220", + "$id": "219", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3026,7 +3018,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "221", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3044,26 +3036,26 @@ } }, { - "$id": "222", + "$id": "221", "kind": "client", "name": "NullableFloatValue", "namespace": "Type.Dictionary", "doc": "Dictionary of nullable float values", "methods": [ { - "$id": "223", + "$id": "222", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "224", + "$id": "223", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "225", + "$id": "224", "name": "accept", "nameInRequest": "Accept", "type": { @@ -3086,20 +3078,20 @@ 200 ], "bodyType": { - "$id": "226", + "$id": "225", "kind": "dict", "keyType": { - "$id": "227", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "228", + "$id": "227", "kind": "nullable", "type": { - "$id": "229", + "$id": "228", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -3127,7 +3119,7 @@ }, "parameters": [ { - "$id": "230", + "$id": "229", "name": "accept", "nameInRequest": "accept", "type": { @@ -3146,7 +3138,7 @@ ], "response": { "type": { - "$ref": "226" + "$ref": "225" } }, "isOverride": false, @@ -3155,19 +3147,19 @@ "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" }, { - "$id": "231", + "$id": "230", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "232", + "$id": "231", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "232", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -3185,11 +3177,11 @@ "skipUrlEncoding": false }, { - "$id": "234", + "$id": "233", "name": "body", "nameInRequest": "body", "type": { - "$ref": "226" + "$ref": "225" }, "location": "Body", "isApiVersion": false, @@ -3225,11 +3217,11 @@ }, "parameters": [ { - "$id": "235", + "$id": "234", "name": "body", "nameInRequest": "body", "type": { - "$ref": "226" + "$ref": "225" }, "location": "Body", "isApiVersion": false, @@ -3242,7 +3234,7 @@ "skipUrlEncoding": false }, { - "$id": "236", + "$id": "235", "name": "contentType", "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", @@ -3269,12 +3261,12 @@ ], "parameters": [ { - "$id": "237", + "$id": "236", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "238", + "$id": "237", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3289,7 +3281,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "239", + "$id": "238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" 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 085c0e79130..4e57bf4eec0 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 @@ -6,9 +6,9 @@ { "$id": "1", "kind": "constant", - "name": "getModelContentType", - "namespace": "", - "usage": "None", + "name": "SharkKind", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "usage": "Input,Output,Json", "valueType": { "$id": "2", "kind": "string", @@ -16,13 +16,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "shark", "decorators": [] }, { "$id": "3", "kind": "constant", - "name": "SharkKind", + "name": "SawSharkSharktype", "namespace": "Type.Model.Inheritance.NestedDiscriminator", "usage": "Input,Output,Json", "valueType": { @@ -32,13 +32,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "shark", + "value": "saw", "decorators": [] }, { "$id": "5", "kind": "constant", - "name": "SawSharkSharktype", + "name": "GoblinSharkSharktype", "namespace": "Type.Model.Inheritance.NestedDiscriminator", "usage": "Input,Output,Json", "valueType": { @@ -48,13 +48,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "saw", + "value": "goblin", "decorators": [] }, { "$id": "7", "kind": "constant", - "name": "GoblinSharkSharktype", + "name": "SalmonKind", "namespace": "Type.Model.Inheritance.NestedDiscriminator", "usage": "Input,Output,Json", "valueType": { @@ -64,15 +64,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "goblin", + "value": "salmon", "decorators": [] }, { "$id": "9", "kind": "constant", - "name": "SalmonKind", - "namespace": "Type.Model.Inheritance.NestedDiscriminator", - "usage": "Input,Output,Json", + "name": "getModelContentType", + "namespace": "", + "usage": "None", "valueType": { "$id": "10", "kind": "string", @@ -80,7 +80,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "salmon", + "value": "application/json", "decorators": [] }, { @@ -273,7 +273,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "3" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -312,7 +312,7 @@ "name": "sharktype", "serializedName": "sharktype", "type": { - "$ref": "5" + "$ref": "3" }, "optional": false, "readOnly": false, @@ -348,7 +348,7 @@ "name": "sharktype", "serializedName": "sharktype", "type": { - "$ref": "7" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -386,7 +386,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "9" + "$ref": "7" }, "optional": false, "readOnly": false, @@ -521,7 +521,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "1" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -564,7 +564,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "1" + "$ref": "9" }, "location": "Header", "isApiVersion": false, 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 97f56fb9589..655fff3c2f5 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 @@ -6,9 +6,9 @@ { "$id": "1", "kind": "constant", - "name": "getModelContentType", - "namespace": "", - "usage": "None", + "name": "SeaGullKind", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "usage": "Input,Output,Json", "valueType": { "$id": "2", "kind": "string", @@ -16,13 +16,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "seagull", "decorators": [] }, { "$id": "3", "kind": "constant", - "name": "SeaGullKind", + "name": "SparrowKind", "namespace": "Type.Model.Inheritance.SingleDiscriminator", "usage": "Input,Output,Json", "valueType": { @@ -32,13 +32,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "seagull", + "value": "sparrow", "decorators": [] }, { "$id": "5", "kind": "constant", - "name": "SparrowKind", + "name": "GooseKind", "namespace": "Type.Model.Inheritance.SingleDiscriminator", "usage": "Input,Output,Json", "valueType": { @@ -48,13 +48,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "sparrow", + "value": "goose", "decorators": [] }, { "$id": "7", "kind": "constant", - "name": "GooseKind", + "name": "EagleKind", "namespace": "Type.Model.Inheritance.SingleDiscriminator", "usage": "Input,Output,Json", "valueType": { @@ -64,15 +64,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "goose", + "value": "eagle", "decorators": [] }, { "$id": "9", "kind": "constant", - "name": "EagleKind", + "name": "TRexKind", "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Input,Output,Json", + "usage": "Output,Json", "valueType": { "$id": "10", "kind": "string", @@ -80,13 +80,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "eagle", + "value": "t-rex", "decorators": [] }, { "$id": "11", "kind": "constant", - "name": "putModelContentType", + "name": "getModelContentType", "namespace": "", "usage": "None", "valueType": { @@ -102,7 +102,7 @@ { "$id": "13", "kind": "constant", - "name": "getRecursiveModelContentType", + "name": "putModelContentType", "namespace": "", "usage": "None", "valueType": { @@ -118,7 +118,7 @@ { "$id": "15", "kind": "constant", - "name": "putRecursiveModelContentType", + "name": "getRecursiveModelContentType", "namespace": "", "usage": "None", "valueType": { @@ -134,7 +134,7 @@ { "$id": "17", "kind": "constant", - "name": "getMissingDiscriminatorContentType", + "name": "putRecursiveModelContentType", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +150,7 @@ { "$id": "19", "kind": "constant", - "name": "getWrongDiscriminatorContentType", + "name": "getMissingDiscriminatorContentType", "namespace": "", "usage": "None", "valueType": { @@ -166,7 +166,7 @@ { "$id": "21", "kind": "constant", - "name": "getLegacyModelContentType", + "name": "getWrongDiscriminatorContentType", "namespace": "", "usage": "None", "valueType": { @@ -182,9 +182,9 @@ { "$id": "23", "kind": "constant", - "name": "TRexKind", - "namespace": "Type.Model.Inheritance.SingleDiscriminator", - "usage": "Output,Json", + "name": "getLegacyModelContentType", + "namespace": "", + "usage": "None", "valueType": { "$id": "24", "kind": "string", @@ -192,7 +192,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "t-rex", + "value": "application/json", "decorators": [] } ], @@ -280,7 +280,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "3" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -316,7 +316,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "5" + "$ref": "3" }, "optional": false, "readOnly": false, @@ -352,7 +352,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "7" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -388,7 +388,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "9" + "$ref": "7" }, "optional": false, "readOnly": false, @@ -581,7 +581,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "23" + "$ref": "9" }, "optional": false, "readOnly": false, @@ -628,7 +628,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "1" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -671,7 +671,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "1" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -712,7 +712,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "11" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -787,7 +787,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "11" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -823,7 +823,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "13" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -866,7 +866,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "13" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -907,7 +907,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -982,7 +982,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -1018,7 +1018,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "17" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -1061,7 +1061,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "17" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -1101,7 +1101,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "19" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -1144,7 +1144,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "19" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -1184,7 +1184,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "21" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -1227,7 +1227,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "21" + "$ref": "23" }, "location": "Header", "isApiVersion": false, 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 feb47d962a6..2feeb5679d2 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 @@ -6,9 +6,9 @@ { "$id": "1", "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", + "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerivedKind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", "valueType": { "$id": "2", "kind": "string", @@ -16,15 +16,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "derived", "decorators": [] }, { "$id": "3", "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", + "name": "IsUnknownAdditionalPropertiesDiscriminatedDerivedKind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", "valueType": { "$id": "4", "kind": "string", @@ -32,15 +32,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "derived", "decorators": [] }, { "$id": "5", "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", + "name": "WidgetData0Kind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", "valueType": { "$id": "6", "kind": "string", @@ -48,15 +48,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "kind0", "decorators": [] }, { "$id": "7", "kind": "constant", - "name": "putContentType1", - "namespace": "", - "usage": "None", + "name": "WidgetData1Kind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", "valueType": { "$id": "8", "kind": "string", @@ -64,15 +64,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "kind1", "decorators": [] }, { "$id": "9", "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", + "name": "WidgetData2Kind", + "namespace": "Type.Property.AdditionalProperties", + "usage": "Input,Output,Json", "valueType": { "$id": "10", "kind": "string", @@ -80,15 +80,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "kind1", "decorators": [] }, { "$id": "11", "kind": "constant", - "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerivedKind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", + "name": "getContentType", + "namespace": "", + "usage": "None", "valueType": { "$id": "12", "kind": "string", @@ -96,13 +96,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "derived", + "value": "application/json", "decorators": [] }, { "$id": "13", "kind": "constant", - "name": "putContentType2", + "name": "putContentType", "namespace": "", "usage": "None", "valueType": { @@ -118,7 +118,7 @@ { "$id": "15", "kind": "constant", - "name": "getContentType3", + "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { @@ -134,7 +134,7 @@ { "$id": "17", "kind": "constant", - "name": "putContentType3", + "name": "putContentType1", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +150,7 @@ { "$id": "19", "kind": "constant", - "name": "getContentType4", + "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { @@ -166,7 +166,7 @@ { "$id": "21", "kind": "constant", - "name": "putContentType4", + "name": "putContentType2", "namespace": "", "usage": "None", "valueType": { @@ -182,7 +182,7 @@ { "$id": "23", "kind": "constant", - "name": "getContentType5", + "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { @@ -198,9 +198,9 @@ { "$id": "25", "kind": "constant", - "name": "IsUnknownAdditionalPropertiesDiscriminatedDerivedKind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", + "name": "putContentType3", + "namespace": "", + "usage": "None", "valueType": { "$id": "26", "kind": "string", @@ -208,13 +208,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "derived", + "value": "application/json", "decorators": [] }, { "$id": "27", "kind": "constant", - "name": "putContentType5", + "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { @@ -230,7 +230,7 @@ { "$id": "29", "kind": "constant", - "name": "getContentType6", + "name": "putContentType4", "namespace": "", "usage": "None", "valueType": { @@ -246,7 +246,7 @@ { "$id": "31", "kind": "constant", - "name": "putContentType6", + "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { @@ -262,7 +262,7 @@ { "$id": "33", "kind": "constant", - "name": "getContentType7", + "name": "putContentType5", "namespace": "", "usage": "None", "valueType": { @@ -278,7 +278,7 @@ { "$id": "35", "kind": "constant", - "name": "putContentType7", + "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { @@ -294,7 +294,7 @@ { "$id": "37", "kind": "constant", - "name": "getContentType8", + "name": "putContentType6", "namespace": "", "usage": "None", "valueType": { @@ -310,7 +310,7 @@ { "$id": "39", "kind": "constant", - "name": "putContentType8", + "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { @@ -326,7 +326,7 @@ { "$id": "41", "kind": "constant", - "name": "getContentType9", + "name": "putContentType7", "namespace": "", "usage": "None", "valueType": { @@ -342,7 +342,7 @@ { "$id": "43", "kind": "constant", - "name": "putContentType9", + "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { @@ -358,7 +358,7 @@ { "$id": "45", "kind": "constant", - "name": "getContentType10", + "name": "putContentType8", "namespace": "", "usage": "None", "valueType": { @@ -374,7 +374,7 @@ { "$id": "47", "kind": "constant", - "name": "putContentType10", + "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { @@ -390,7 +390,7 @@ { "$id": "49", "kind": "constant", - "name": "getContentType11", + "name": "putContentType9", "namespace": "", "usage": "None", "valueType": { @@ -406,7 +406,7 @@ { "$id": "51", "kind": "constant", - "name": "putContentType11", + "name": "getContentType10", "namespace": "", "usage": "None", "valueType": { @@ -422,7 +422,7 @@ { "$id": "53", "kind": "constant", - "name": "getContentType12", + "name": "putContentType10", "namespace": "", "usage": "None", "valueType": { @@ -438,7 +438,7 @@ { "$id": "55", "kind": "constant", - "name": "putContentType12", + "name": "getContentType11", "namespace": "", "usage": "None", "valueType": { @@ -454,7 +454,7 @@ { "$id": "57", "kind": "constant", - "name": "getContentType13", + "name": "putContentType11", "namespace": "", "usage": "None", "valueType": { @@ -470,7 +470,7 @@ { "$id": "59", "kind": "constant", - "name": "putContentType13", + "name": "getContentType12", "namespace": "", "usage": "None", "valueType": { @@ -486,7 +486,7 @@ { "$id": "61", "kind": "constant", - "name": "getContentType14", + "name": "putContentType12", "namespace": "", "usage": "None", "valueType": { @@ -502,7 +502,7 @@ { "$id": "63", "kind": "constant", - "name": "putContentType14", + "name": "getContentType13", "namespace": "", "usage": "None", "valueType": { @@ -518,7 +518,7 @@ { "$id": "65", "kind": "constant", - "name": "getContentType15", + "name": "putContentType13", "namespace": "", "usage": "None", "valueType": { @@ -534,7 +534,7 @@ { "$id": "67", "kind": "constant", - "name": "putContentType15", + "name": "getContentType14", "namespace": "", "usage": "None", "valueType": { @@ -550,7 +550,7 @@ { "$id": "69", "kind": "constant", - "name": "getContentType16", + "name": "putContentType14", "namespace": "", "usage": "None", "valueType": { @@ -566,7 +566,7 @@ { "$id": "71", "kind": "constant", - "name": "putContentType16", + "name": "getContentType15", "namespace": "", "usage": "None", "valueType": { @@ -582,7 +582,7 @@ { "$id": "73", "kind": "constant", - "name": "getContentType17", + "name": "putContentType15", "namespace": "", "usage": "None", "valueType": { @@ -598,7 +598,7 @@ { "$id": "75", "kind": "constant", - "name": "putContentType17", + "name": "getContentType16", "namespace": "", "usage": "None", "valueType": { @@ -614,7 +614,7 @@ { "$id": "77", "kind": "constant", - "name": "getContentType18", + "name": "putContentType16", "namespace": "", "usage": "None", "valueType": { @@ -630,7 +630,7 @@ { "$id": "79", "kind": "constant", - "name": "putContentType18", + "name": "getContentType17", "namespace": "", "usage": "None", "valueType": { @@ -646,7 +646,7 @@ { "$id": "81", "kind": "constant", - "name": "getContentType19", + "name": "putContentType17", "namespace": "", "usage": "None", "valueType": { @@ -662,7 +662,7 @@ { "$id": "83", "kind": "constant", - "name": "putContentType19", + "name": "getContentType18", "namespace": "", "usage": "None", "valueType": { @@ -678,7 +678,7 @@ { "$id": "85", "kind": "constant", - "name": "getContentType20", + "name": "putContentType18", "namespace": "", "usage": "None", "valueType": { @@ -694,7 +694,7 @@ { "$id": "87", "kind": "constant", - "name": "putContentType20", + "name": "getContentType19", "namespace": "", "usage": "None", "valueType": { @@ -710,7 +710,7 @@ { "$id": "89", "kind": "constant", - "name": "getContentType21", + "name": "putContentType19", "namespace": "", "usage": "None", "valueType": { @@ -726,7 +726,7 @@ { "$id": "91", "kind": "constant", - "name": "putContentType21", + "name": "getContentType20", "namespace": "", "usage": "None", "valueType": { @@ -742,7 +742,7 @@ { "$id": "93", "kind": "constant", - "name": "getContentType22", + "name": "putContentType20", "namespace": "", "usage": "None", "valueType": { @@ -758,7 +758,7 @@ { "$id": "95", "kind": "constant", - "name": "putContentType22", + "name": "getContentType21", "namespace": "", "usage": "None", "valueType": { @@ -774,7 +774,7 @@ { "$id": "97", "kind": "constant", - "name": "getContentType23", + "name": "putContentType21", "namespace": "", "usage": "None", "valueType": { @@ -790,7 +790,7 @@ { "$id": "99", "kind": "constant", - "name": "putContentType23", + "name": "getContentType22", "namespace": "", "usage": "None", "valueType": { @@ -806,7 +806,7 @@ { "$id": "101", "kind": "constant", - "name": "getContentType24", + "name": "putContentType22", "namespace": "", "usage": "None", "valueType": { @@ -822,7 +822,7 @@ { "$id": "103", "kind": "constant", - "name": "putContentType24", + "name": "getContentType23", "namespace": "", "usage": "None", "valueType": { @@ -838,7 +838,7 @@ { "$id": "105", "kind": "constant", - "name": "getContentType25", + "name": "putContentType23", "namespace": "", "usage": "None", "valueType": { @@ -854,7 +854,7 @@ { "$id": "107", "kind": "constant", - "name": "putContentType25", + "name": "getContentType24", "namespace": "", "usage": "None", "valueType": { @@ -870,7 +870,7 @@ { "$id": "109", "kind": "constant", - "name": "getContentType26", + "name": "putContentType24", "namespace": "", "usage": "None", "valueType": { @@ -886,7 +886,7 @@ { "$id": "111", "kind": "constant", - "name": "putContentType26", + "name": "getContentType25", "namespace": "", "usage": "None", "valueType": { @@ -902,7 +902,7 @@ { "$id": "113", "kind": "constant", - "name": "getContentType27", + "name": "putContentType25", "namespace": "", "usage": "None", "valueType": { @@ -918,7 +918,7 @@ { "$id": "115", "kind": "constant", - "name": "putContentType27", + "name": "getContentType26", "namespace": "", "usage": "None", "valueType": { @@ -934,7 +934,7 @@ { "$id": "117", "kind": "constant", - "name": "getContentType28", + "name": "putContentType26", "namespace": "", "usage": "None", "valueType": { @@ -950,9 +950,9 @@ { "$id": "119", "kind": "constant", - "name": "WidgetData0Kind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", + "name": "getContentType27", + "namespace": "", + "usage": "None", "valueType": { "$id": "120", "kind": "string", @@ -960,15 +960,15 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "kind0", + "value": "application/json", "decorators": [] }, { "$id": "121", "kind": "constant", - "name": "WidgetData1Kind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", + "name": "putContentType27", + "namespace": "", + "usage": "None", "valueType": { "$id": "122", "kind": "string", @@ -976,13 +976,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "kind1", + "value": "application/json", "decorators": [] }, { "$id": "123", "kind": "constant", - "name": "putContentType28", + "name": "getContentType28", "namespace": "", "usage": "None", "valueType": { @@ -998,7 +998,7 @@ { "$id": "125", "kind": "constant", - "name": "getContentType29", + "name": "putContentType28", "namespace": "", "usage": "None", "valueType": { @@ -1014,9 +1014,9 @@ { "$id": "127", "kind": "constant", - "name": "WidgetData2Kind", - "namespace": "Type.Property.AdditionalProperties", - "usage": "Input,Output,Json", + "name": "getContentType29", + "namespace": "", + "usage": "None", "valueType": { "$id": "128", "kind": "string", @@ -1024,7 +1024,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "kind1", + "value": "application/json", "decorators": [] }, { @@ -1274,7 +1274,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "11" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -1546,7 +1546,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "25" + "$ref": "3" }, "optional": false, "readOnly": false, @@ -2601,7 +2601,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "119" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -2656,7 +2656,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "121" + "$ref": "7" }, "optional": false, "readOnly": false, @@ -2803,7 +2803,7 @@ "name": "kind", "serializedName": "kind", "type": { - "$ref": "127" + "$ref": "9" }, "optional": false, "readOnly": false, @@ -3010,7 +3010,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "1" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -3053,7 +3053,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "1" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -3096,7 +3096,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "3" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -3173,7 +3173,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "3" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -3257,7 +3257,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "5" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -3300,7 +3300,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "5" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -3343,7 +3343,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "7" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -3420,7 +3420,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "7" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -3504,7 +3504,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "9" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -3547,7 +3547,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "9" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -3590,7 +3590,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -3667,7 +3667,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -3751,7 +3751,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "15" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -3794,7 +3794,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "15" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -3837,7 +3837,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -3914,7 +3914,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -3998,7 +3998,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "19" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -4041,7 +4041,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "19" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -4084,7 +4084,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -4161,7 +4161,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -4245,7 +4245,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "23" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -4288,7 +4288,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "23" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -4331,7 +4331,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -4408,7 +4408,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -4492,7 +4492,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "29" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -4535,7 +4535,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "29" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -4578,7 +4578,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "31" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -4655,7 +4655,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "31" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -4739,7 +4739,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "33" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -4782,7 +4782,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "33" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -4825,7 +4825,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "35" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -4902,7 +4902,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "35" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -4986,7 +4986,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "37" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -5029,7 +5029,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "37" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -5072,7 +5072,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "39" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -5149,7 +5149,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "39" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -5233,7 +5233,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "41" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -5276,7 +5276,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "41" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -5319,7 +5319,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "43" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -5396,7 +5396,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "43" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -5480,7 +5480,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "45" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -5523,7 +5523,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "45" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -5566,7 +5566,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "47" + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -5643,7 +5643,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "47" + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -5727,7 +5727,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "49" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -5770,7 +5770,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "49" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -5813,7 +5813,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "51" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -5890,7 +5890,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "51" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -5974,7 +5974,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "53" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -6017,7 +6017,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "53" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -6060,7 +6060,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "55" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -6137,7 +6137,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "55" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -6221,7 +6221,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "57" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -6264,7 +6264,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "57" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -6307,7 +6307,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -6384,7 +6384,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -6468,7 +6468,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "61" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -6511,7 +6511,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "61" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -6554,7 +6554,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "63" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -6631,7 +6631,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "63" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -6715,7 +6715,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "65" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -6758,7 +6758,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "65" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -6801,7 +6801,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "67" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -6878,7 +6878,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "67" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -6962,7 +6962,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "69" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -7005,7 +7005,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "69" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -7048,7 +7048,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "71" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -7125,7 +7125,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "71" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -7209,7 +7209,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "73" + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -7252,7 +7252,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "73" + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -7295,7 +7295,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -7372,7 +7372,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -7456,7 +7456,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "77" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -7499,7 +7499,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "77" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -7542,7 +7542,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "79" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -7619,7 +7619,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "79" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -7703,7 +7703,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "81" + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -7746,7 +7746,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "81" + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -7789,7 +7789,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "89" }, "location": "Header", "isApiVersion": false, @@ -7866,7 +7866,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "89" }, "location": "Header", "isApiVersion": false, @@ -7950,7 +7950,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "85" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -7993,7 +7993,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "85" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -8036,7 +8036,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "87" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -8113,7 +8113,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "87" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -8197,7 +8197,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "89" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -8240,7 +8240,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "89" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -8283,7 +8283,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "91" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -8360,7 +8360,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "91" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -8444,7 +8444,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "93" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -8487,7 +8487,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "93" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -8530,7 +8530,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -8607,7 +8607,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -8691,7 +8691,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "97" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -8734,7 +8734,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "97" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -8777,7 +8777,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -8854,7 +8854,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -8938,7 +8938,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "101" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -8981,7 +8981,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "101" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -9024,7 +9024,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "103" + "$ref": "109" }, "location": "Header", "isApiVersion": false, @@ -9101,7 +9101,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "103" + "$ref": "109" }, "location": "Header", "isApiVersion": false, @@ -9185,7 +9185,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "105" + "$ref": "111" }, "location": "Header", "isApiVersion": false, @@ -9228,7 +9228,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "105" + "$ref": "111" }, "location": "Header", "isApiVersion": false, @@ -9271,7 +9271,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "107" + "$ref": "113" }, "location": "Header", "isApiVersion": false, @@ -9348,7 +9348,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "107" + "$ref": "113" }, "location": "Header", "isApiVersion": false, @@ -9432,7 +9432,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "109" + "$ref": "115" }, "location": "Header", "isApiVersion": false, @@ -9475,7 +9475,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "109" + "$ref": "115" }, "location": "Header", "isApiVersion": false, @@ -9518,7 +9518,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "111" + "$ref": "117" }, "location": "Header", "isApiVersion": false, @@ -9595,7 +9595,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "111" + "$ref": "117" }, "location": "Header", "isApiVersion": false, @@ -9679,7 +9679,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "113" + "$ref": "119" }, "location": "Header", "isApiVersion": false, @@ -9722,7 +9722,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "113" + "$ref": "119" }, "location": "Header", "isApiVersion": false, @@ -9765,7 +9765,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -9842,7 +9842,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -9926,7 +9926,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "117" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -9969,7 +9969,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "117" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -10012,7 +10012,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "123" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -10089,7 +10089,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "123" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -10173,7 +10173,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "125" + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -10216,7 +10216,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "125" + "$ref": "127" }, "location": "Header", "isApiVersion": false, 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 7aa98d8895e..db1fe44d207 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 @@ -145,9 +145,9 @@ { "$id": "13", "kind": "constant", - "name": "getAllContentType", - "namespace": "", - "usage": "None", + "name": "StringLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", "valueType": { "$id": "14", "kind": "string", @@ -155,61 +155,61 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "hello", "decorators": [] }, { "$id": "15", "kind": "constant", - "name": "getDefaultContentType", - "namespace": "", - "usage": "None", + "name": "IntLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", "valueType": { "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, - "value": "application/json", + "value": 1, "decorators": [] }, { "$id": "17", "kind": "constant", - "name": "putAllContentType", - "namespace": "", - "usage": "None", + "name": "FloatLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", "valueType": { "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] }, - "value": "application/json", + "value": 1.25, "decorators": [] }, { "$id": "19", "kind": "constant", - "name": "putDefaultContentType", - "namespace": "", - "usage": "None", + "name": "BooleanLiteralPropertyProperty", + "namespace": "Type.Property.Optional", + "usage": "Input,Output,Json", "valueType": { "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": "application/json", + "value": true, "decorators": [] }, { "$id": "21", "kind": "constant", - "name": "getAllContentType1", + "name": "getAllContentType", "namespace": "", "usage": "None", "valueType": { @@ -225,7 +225,7 @@ { "$id": "23", "kind": "constant", - "name": "getDefaultContentType1", + "name": "getDefaultContentType", "namespace": "", "usage": "None", "valueType": { @@ -241,7 +241,7 @@ { "$id": "25", "kind": "constant", - "name": "putAllContentType1", + "name": "putAllContentType", "namespace": "", "usage": "None", "valueType": { @@ -257,7 +257,7 @@ { "$id": "27", "kind": "constant", - "name": "putDefaultContentType1", + "name": "putDefaultContentType", "namespace": "", "usage": "None", "valueType": { @@ -273,7 +273,7 @@ { "$id": "29", "kind": "constant", - "name": "getAllContentType2", + "name": "getAllContentType1", "namespace": "", "usage": "None", "valueType": { @@ -289,7 +289,7 @@ { "$id": "31", "kind": "constant", - "name": "getDefaultContentType2", + "name": "getDefaultContentType1", "namespace": "", "usage": "None", "valueType": { @@ -305,7 +305,7 @@ { "$id": "33", "kind": "constant", - "name": "putAllContentType2", + "name": "putAllContentType1", "namespace": "", "usage": "None", "valueType": { @@ -321,7 +321,7 @@ { "$id": "35", "kind": "constant", - "name": "putDefaultContentType2", + "name": "putDefaultContentType1", "namespace": "", "usage": "None", "valueType": { @@ -337,7 +337,7 @@ { "$id": "37", "kind": "constant", - "name": "getAllContentType3", + "name": "getAllContentType2", "namespace": "", "usage": "None", "valueType": { @@ -353,7 +353,7 @@ { "$id": "39", "kind": "constant", - "name": "getDefaultContentType3", + "name": "getDefaultContentType2", "namespace": "", "usage": "None", "valueType": { @@ -369,7 +369,7 @@ { "$id": "41", "kind": "constant", - "name": "putAllContentType3", + "name": "putAllContentType2", "namespace": "", "usage": "None", "valueType": { @@ -385,7 +385,7 @@ { "$id": "43", "kind": "constant", - "name": "putDefaultContentType3", + "name": "putDefaultContentType2", "namespace": "", "usage": "None", "valueType": { @@ -401,7 +401,7 @@ { "$id": "45", "kind": "constant", - "name": "getAllContentType4", + "name": "getAllContentType3", "namespace": "", "usage": "None", "valueType": { @@ -417,7 +417,7 @@ { "$id": "47", "kind": "constant", - "name": "getDefaultContentType4", + "name": "getDefaultContentType3", "namespace": "", "usage": "None", "valueType": { @@ -433,7 +433,7 @@ { "$id": "49", "kind": "constant", - "name": "putAllContentType4", + "name": "putAllContentType3", "namespace": "", "usage": "None", "valueType": { @@ -449,7 +449,7 @@ { "$id": "51", "kind": "constant", - "name": "putDefaultContentType4", + "name": "putDefaultContentType3", "namespace": "", "usage": "None", "valueType": { @@ -465,7 +465,7 @@ { "$id": "53", "kind": "constant", - "name": "getAllContentType5", + "name": "getAllContentType4", "namespace": "", "usage": "None", "valueType": { @@ -481,7 +481,7 @@ { "$id": "55", "kind": "constant", - "name": "getDefaultContentType5", + "name": "getDefaultContentType4", "namespace": "", "usage": "None", "valueType": { @@ -497,7 +497,7 @@ { "$id": "57", "kind": "constant", - "name": "putAllContentType5", + "name": "putAllContentType4", "namespace": "", "usage": "None", "valueType": { @@ -513,7 +513,7 @@ { "$id": "59", "kind": "constant", - "name": "putDefaultContentType5", + "name": "putDefaultContentType4", "namespace": "", "usage": "None", "valueType": { @@ -529,7 +529,7 @@ { "$id": "61", "kind": "constant", - "name": "getAllContentType6", + "name": "getAllContentType5", "namespace": "", "usage": "None", "valueType": { @@ -545,7 +545,7 @@ { "$id": "63", "kind": "constant", - "name": "getDefaultContentType6", + "name": "getDefaultContentType5", "namespace": "", "usage": "None", "valueType": { @@ -561,7 +561,7 @@ { "$id": "65", "kind": "constant", - "name": "putAllContentType6", + "name": "putAllContentType5", "namespace": "", "usage": "None", "valueType": { @@ -577,7 +577,7 @@ { "$id": "67", "kind": "constant", - "name": "putDefaultContentType6", + "name": "putDefaultContentType5", "namespace": "", "usage": "None", "valueType": { @@ -593,7 +593,7 @@ { "$id": "69", "kind": "constant", - "name": "getAllContentType7", + "name": "getAllContentType6", "namespace": "", "usage": "None", "valueType": { @@ -609,7 +609,7 @@ { "$id": "71", "kind": "constant", - "name": "getDefaultContentType7", + "name": "getDefaultContentType6", "namespace": "", "usage": "None", "valueType": { @@ -625,7 +625,7 @@ { "$id": "73", "kind": "constant", - "name": "putAllContentType7", + "name": "putAllContentType6", "namespace": "", "usage": "None", "valueType": { @@ -641,7 +641,7 @@ { "$id": "75", "kind": "constant", - "name": "putDefaultContentType7", + "name": "putDefaultContentType6", "namespace": "", "usage": "None", "valueType": { @@ -657,7 +657,7 @@ { "$id": "77", "kind": "constant", - "name": "getAllContentType8", + "name": "getAllContentType7", "namespace": "", "usage": "None", "valueType": { @@ -673,9 +673,9 @@ { "$id": "79", "kind": "constant", - "name": "StringLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", + "name": "getDefaultContentType7", + "namespace": "", + "usage": "None", "valueType": { "$id": "80", "kind": "string", @@ -683,13 +683,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "hello", + "value": "application/json", "decorators": [] }, { "$id": "81", "kind": "constant", - "name": "getDefaultContentType8", + "name": "putAllContentType7", "namespace": "", "usage": "None", "valueType": { @@ -705,7 +705,7 @@ { "$id": "83", "kind": "constant", - "name": "putAllContentType8", + "name": "putDefaultContentType7", "namespace": "", "usage": "None", "valueType": { @@ -721,7 +721,7 @@ { "$id": "85", "kind": "constant", - "name": "putDefaultContentType8", + "name": "getAllContentType8", "namespace": "", "usage": "None", "valueType": { @@ -737,7 +737,7 @@ { "$id": "87", "kind": "constant", - "name": "getAllContentType9", + "name": "getDefaultContentType8", "namespace": "", "usage": "None", "valueType": { @@ -753,23 +753,23 @@ { "$id": "89", "kind": "constant", - "name": "IntLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", + "name": "putAllContentType8", + "namespace": "", + "usage": "None", "valueType": { "$id": "90", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 1, + "value": "application/json", "decorators": [] }, { "$id": "91", "kind": "constant", - "name": "getDefaultContentType9", + "name": "putDefaultContentType8", "namespace": "", "usage": "None", "valueType": { @@ -785,7 +785,7 @@ { "$id": "93", "kind": "constant", - "name": "putAllContentType9", + "name": "getAllContentType9", "namespace": "", "usage": "None", "valueType": { @@ -801,7 +801,7 @@ { "$id": "95", "kind": "constant", - "name": "putDefaultContentType9", + "name": "getDefaultContentType9", "namespace": "", "usage": "None", "valueType": { @@ -817,7 +817,7 @@ { "$id": "97", "kind": "constant", - "name": "getAllContentType10", + "name": "putAllContentType9", "namespace": "", "usage": "None", "valueType": { @@ -833,23 +833,23 @@ { "$id": "99", "kind": "constant", - "name": "FloatLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", + "name": "putDefaultContentType9", + "namespace": "", + "usage": "None", "valueType": { "$id": "100", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 1.25, + "value": "application/json", "decorators": [] }, { "$id": "101", "kind": "constant", - "name": "getDefaultContentType10", + "name": "getAllContentType10", "namespace": "", "usage": "None", "valueType": { @@ -865,7 +865,7 @@ { "$id": "103", "kind": "constant", - "name": "putAllContentType10", + "name": "getDefaultContentType10", "namespace": "", "usage": "None", "valueType": { @@ -881,7 +881,7 @@ { "$id": "105", "kind": "constant", - "name": "putDefaultContentType10", + "name": "putAllContentType10", "namespace": "", "usage": "None", "valueType": { @@ -897,7 +897,7 @@ { "$id": "107", "kind": "constant", - "name": "getAllContentType11", + "name": "putDefaultContentType10", "namespace": "", "usage": "None", "valueType": { @@ -913,17 +913,17 @@ { "$id": "109", "kind": "constant", - "name": "BooleanLiteralPropertyProperty", - "namespace": "Type.Property.Optional", - "usage": "Input,Output,Json", + "name": "getAllContentType11", + "namespace": "", + "usage": "None", "valueType": { "$id": "110", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": true, + "value": "application/json", "decorators": [] }, { @@ -1573,7 +1573,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "79" + "$ref": "13" }, "optional": true, "readOnly": false, @@ -1606,7 +1606,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "89" + "$ref": "15" }, "optional": true, "readOnly": false, @@ -1639,7 +1639,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "99" + "$ref": "17" }, "optional": true, "readOnly": false, @@ -1672,7 +1672,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "109" + "$ref": "19" }, "optional": true, "readOnly": false, @@ -1919,7 +1919,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "13" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -1962,7 +1962,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "13" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -2004,7 +2004,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "15" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -2047,7 +2047,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "15" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -2090,7 +2090,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -2165,7 +2165,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -2204,7 +2204,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "19" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -2279,7 +2279,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "19" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -2363,7 +2363,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "21" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -2406,7 +2406,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "21" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -2448,7 +2448,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "23" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -2491,7 +2491,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "23" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -2534,7 +2534,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -2609,7 +2609,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -2648,7 +2648,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -2723,7 +2723,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -2807,7 +2807,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "29" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -2850,7 +2850,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "29" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -2892,7 +2892,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "31" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -2935,7 +2935,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "31" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -2978,7 +2978,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "33" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -3053,7 +3053,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "33" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -3092,7 +3092,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "35" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -3167,7 +3167,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "35" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -3251,7 +3251,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "37" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -3294,7 +3294,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "37" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -3336,7 +3336,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "39" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -3379,7 +3379,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "39" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -3422,7 +3422,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "41" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -3497,7 +3497,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "41" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -3536,7 +3536,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "43" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -3611,7 +3611,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "43" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -3695,7 +3695,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "45" + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -3738,7 +3738,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "45" + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -3780,7 +3780,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "47" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -3823,7 +3823,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "47" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -3866,7 +3866,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "49" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -3941,7 +3941,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "49" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -3980,7 +3980,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "51" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -4055,7 +4055,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "51" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -4139,7 +4139,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "53" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -4182,7 +4182,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "53" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -4224,7 +4224,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "55" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -4267,7 +4267,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "55" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -4310,7 +4310,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "57" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -4385,7 +4385,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "57" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -4424,7 +4424,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -4499,7 +4499,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -4583,7 +4583,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "61" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -4626,7 +4626,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "61" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -4668,7 +4668,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "63" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -4711,7 +4711,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "63" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -4754,7 +4754,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "65" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -4829,7 +4829,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "65" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -4868,7 +4868,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "67" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -4943,7 +4943,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "67" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -5027,7 +5027,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "69" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -5070,7 +5070,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "69" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -5112,7 +5112,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "71" + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -5155,7 +5155,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "71" + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -5198,7 +5198,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "73" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -5273,7 +5273,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "73" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -5312,7 +5312,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -5387,7 +5387,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -5471,7 +5471,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "77" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -5514,7 +5514,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "77" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -5556,7 +5556,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "81" + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -5599,7 +5599,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "81" + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -5642,7 +5642,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "89" }, "location": "Header", "isApiVersion": false, @@ -5717,7 +5717,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "89" }, "location": "Header", "isApiVersion": false, @@ -5756,7 +5756,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -5831,7 +5831,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -5915,7 +5915,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "87" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -5958,7 +5958,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "87" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -6000,7 +6000,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "91" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -6043,7 +6043,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "91" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -6086,7 +6086,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -6161,7 +6161,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -6200,7 +6200,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -6275,7 +6275,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -6359,7 +6359,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "97" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -6402,7 +6402,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "97" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -6444,7 +6444,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "101" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -6487,7 +6487,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "101" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -6530,7 +6530,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "103" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -6605,7 +6605,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "103" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -6644,7 +6644,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -6719,7 +6719,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -6803,7 +6803,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "107" + "$ref": "109" }, "location": "Header", "isApiVersion": false, @@ -6846,7 +6846,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "107" + "$ref": "109" }, "location": "Header", "isApiVersion": false, 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 396a41ff365..657c7c155cf 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 @@ -276,9 +276,9 @@ { "$id": "24", "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", + "name": "StringLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", "valueType": { "$id": "25", "kind": "string", @@ -286,61 +286,61 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "hello", "decorators": [] }, { "$id": "26", "kind": "constant", - "name": "putContentType", - "namespace": "", - "usage": "None", + "name": "IntLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", "valueType": { "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, - "value": "application/json", + "value": 42, "decorators": [] }, { "$id": "28", "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", + "name": "FloatLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", "valueType": { "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] }, - "value": "application/json", + "value": 43.125, "decorators": [] }, { "$id": "30", "kind": "constant", - "name": "putContentType1", - "namespace": "", - "usage": "None", + "name": "BooleanLiteralPropertyProperty", + "namespace": "Type.Property.ValueTypes", + "usage": "Input,Output,Json", "valueType": { "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": "application/json", + "value": true, "decorators": [] }, { "$id": "32", "kind": "constant", - "name": "getContentType2", + "name": "getContentType", "namespace": "", "usage": "None", "valueType": { @@ -356,7 +356,7 @@ { "$id": "34", "kind": "constant", - "name": "putContentType2", + "name": "putContentType", "namespace": "", "usage": "None", "valueType": { @@ -372,7 +372,7 @@ { "$id": "36", "kind": "constant", - "name": "getContentType3", + "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { @@ -388,7 +388,7 @@ { "$id": "38", "kind": "constant", - "name": "putContentType3", + "name": "putContentType1", "namespace": "", "usage": "None", "valueType": { @@ -404,7 +404,7 @@ { "$id": "40", "kind": "constant", - "name": "getContentType4", + "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { @@ -420,7 +420,7 @@ { "$id": "42", "kind": "constant", - "name": "putContentType4", + "name": "putContentType2", "namespace": "", "usage": "None", "valueType": { @@ -436,7 +436,7 @@ { "$id": "44", "kind": "constant", - "name": "getContentType5", + "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { @@ -452,7 +452,7 @@ { "$id": "46", "kind": "constant", - "name": "putContentType5", + "name": "putContentType3", "namespace": "", "usage": "None", "valueType": { @@ -468,7 +468,7 @@ { "$id": "48", "kind": "constant", - "name": "getContentType6", + "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { @@ -484,7 +484,7 @@ { "$id": "50", "kind": "constant", - "name": "putContentType6", + "name": "putContentType4", "namespace": "", "usage": "None", "valueType": { @@ -500,7 +500,7 @@ { "$id": "52", "kind": "constant", - "name": "getContentType7", + "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { @@ -516,7 +516,7 @@ { "$id": "54", "kind": "constant", - "name": "putContentType7", + "name": "putContentType5", "namespace": "", "usage": "None", "valueType": { @@ -532,7 +532,7 @@ { "$id": "56", "kind": "constant", - "name": "getContentType8", + "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { @@ -548,7 +548,7 @@ { "$id": "58", "kind": "constant", - "name": "putContentType8", + "name": "putContentType6", "namespace": "", "usage": "None", "valueType": { @@ -564,7 +564,7 @@ { "$id": "60", "kind": "constant", - "name": "getContentType9", + "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { @@ -580,7 +580,7 @@ { "$id": "62", "kind": "constant", - "name": "putContentType9", + "name": "putContentType7", "namespace": "", "usage": "None", "valueType": { @@ -596,7 +596,7 @@ { "$id": "64", "kind": "constant", - "name": "getContentType10", + "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { @@ -612,7 +612,7 @@ { "$id": "66", "kind": "constant", - "name": "putContentType10", + "name": "putContentType8", "namespace": "", "usage": "None", "valueType": { @@ -628,7 +628,7 @@ { "$id": "68", "kind": "constant", - "name": "getContentType11", + "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { @@ -644,7 +644,7 @@ { "$id": "70", "kind": "constant", - "name": "putContentType11", + "name": "putContentType9", "namespace": "", "usage": "None", "valueType": { @@ -660,7 +660,7 @@ { "$id": "72", "kind": "constant", - "name": "getContentType12", + "name": "getContentType10", "namespace": "", "usage": "None", "valueType": { @@ -676,7 +676,7 @@ { "$id": "74", "kind": "constant", - "name": "putContentType12", + "name": "putContentType10", "namespace": "", "usage": "None", "valueType": { @@ -692,7 +692,7 @@ { "$id": "76", "kind": "constant", - "name": "getContentType13", + "name": "getContentType11", "namespace": "", "usage": "None", "valueType": { @@ -708,7 +708,7 @@ { "$id": "78", "kind": "constant", - "name": "putContentType13", + "name": "putContentType11", "namespace": "", "usage": "None", "valueType": { @@ -724,7 +724,7 @@ { "$id": "80", "kind": "constant", - "name": "getContentType14", + "name": "getContentType12", "namespace": "", "usage": "None", "valueType": { @@ -740,7 +740,7 @@ { "$id": "82", "kind": "constant", - "name": "putContentType14", + "name": "putContentType12", "namespace": "", "usage": "None", "valueType": { @@ -756,7 +756,7 @@ { "$id": "84", "kind": "constant", - "name": "getContentType15", + "name": "getContentType13", "namespace": "", "usage": "None", "valueType": { @@ -772,7 +772,7 @@ { "$id": "86", "kind": "constant", - "name": "putContentType15", + "name": "putContentType13", "namespace": "", "usage": "None", "valueType": { @@ -788,7 +788,7 @@ { "$id": "88", "kind": "constant", - "name": "getContentType16", + "name": "getContentType14", "namespace": "", "usage": "None", "valueType": { @@ -804,7 +804,7 @@ { "$id": "90", "kind": "constant", - "name": "putContentType16", + "name": "putContentType14", "namespace": "", "usage": "None", "valueType": { @@ -820,7 +820,7 @@ { "$id": "92", "kind": "constant", - "name": "getContentType17", + "name": "getContentType15", "namespace": "", "usage": "None", "valueType": { @@ -836,7 +836,7 @@ { "$id": "94", "kind": "constant", - "name": "putContentType17", + "name": "putContentType15", "namespace": "", "usage": "None", "valueType": { @@ -852,7 +852,7 @@ { "$id": "96", "kind": "constant", - "name": "getContentType18", + "name": "getContentType16", "namespace": "", "usage": "None", "valueType": { @@ -868,7 +868,7 @@ { "$id": "98", "kind": "constant", - "name": "putContentType18", + "name": "putContentType16", "namespace": "", "usage": "None", "valueType": { @@ -884,7 +884,7 @@ { "$id": "100", "kind": "constant", - "name": "getContentType19", + "name": "getContentType17", "namespace": "", "usage": "None", "valueType": { @@ -900,7 +900,7 @@ { "$id": "102", "kind": "constant", - "name": "putContentType19", + "name": "putContentType17", "namespace": "", "usage": "None", "valueType": { @@ -916,7 +916,7 @@ { "$id": "104", "kind": "constant", - "name": "getContentType20", + "name": "getContentType18", "namespace": "", "usage": "None", "valueType": { @@ -932,7 +932,7 @@ { "$id": "106", "kind": "constant", - "name": "putContentType20", + "name": "putContentType18", "namespace": "", "usage": "None", "valueType": { @@ -948,7 +948,7 @@ { "$id": "108", "kind": "constant", - "name": "getContentType21", + "name": "getContentType19", "namespace": "", "usage": "None", "valueType": { @@ -964,9 +964,9 @@ { "$id": "110", "kind": "constant", - "name": "StringLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", + "name": "putContentType19", + "namespace": "", + "usage": "None", "valueType": { "$id": "111", "kind": "string", @@ -974,13 +974,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "hello", + "value": "application/json", "decorators": [] }, { "$id": "112", "kind": "constant", - "name": "putContentType21", + "name": "getContentType20", "namespace": "", "usage": "None", "valueType": { @@ -996,7 +996,7 @@ { "$id": "114", "kind": "constant", - "name": "getContentType22", + "name": "putContentType20", "namespace": "", "usage": "None", "valueType": { @@ -1012,23 +1012,23 @@ { "$id": "116", "kind": "constant", - "name": "IntLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", + "name": "getContentType21", + "namespace": "", + "usage": "None", "valueType": { "$id": "117", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 42, + "value": "application/json", "decorators": [] }, { "$id": "118", "kind": "constant", - "name": "putContentType22", + "name": "putContentType21", "namespace": "", "usage": "None", "valueType": { @@ -1044,7 +1044,7 @@ { "$id": "120", "kind": "constant", - "name": "getContentType23", + "name": "getContentType22", "namespace": "", "usage": "None", "valueType": { @@ -1060,23 +1060,23 @@ { "$id": "122", "kind": "constant", - "name": "FloatLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", + "name": "putContentType22", + "namespace": "", + "usage": "None", "valueType": { "$id": "123", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 43.125, + "value": "application/json", "decorators": [] }, { "$id": "124", "kind": "constant", - "name": "putContentType23", + "name": "getContentType23", "namespace": "", "usage": "None", "valueType": { @@ -1092,7 +1092,7 @@ { "$id": "126", "kind": "constant", - "name": "getContentType24", + "name": "putContentType23", "namespace": "", "usage": "None", "valueType": { @@ -1108,17 +1108,17 @@ { "$id": "128", "kind": "constant", - "name": "BooleanLiteralPropertyProperty", - "namespace": "Type.Property.ValueTypes", - "usage": "Input,Output,Json", + "name": "getContentType24", + "namespace": "", + "usage": "None", "valueType": { "$id": "129", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": true, + "value": "application/json", "decorators": [] }, { @@ -2106,7 +2106,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "110" + "$ref": "24" }, "optional": false, "readOnly": false, @@ -2139,7 +2139,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "116" + "$ref": "26" }, "optional": false, "readOnly": false, @@ -2172,7 +2172,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "122" + "$ref": "28" }, "optional": false, "readOnly": false, @@ -2205,7 +2205,7 @@ "serializedName": "property", "doc": "Property", "type": { - "$ref": "128" + "$ref": "30" }, "optional": false, "readOnly": false, @@ -2433,7 +2433,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "24" + "$ref": "32" }, "location": "Header", "isApiVersion": false, @@ -2476,7 +2476,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "24" + "$ref": "32" }, "location": "Header", "isApiVersion": false, @@ -2519,7 +2519,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "26" + "$ref": "34" }, "location": "Header", "isApiVersion": false, @@ -2596,7 +2596,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "26" + "$ref": "34" }, "location": "Header", "isApiVersion": false, @@ -2680,7 +2680,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "28" + "$ref": "36" }, "location": "Header", "isApiVersion": false, @@ -2723,7 +2723,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "28" + "$ref": "36" }, "location": "Header", "isApiVersion": false, @@ -2766,7 +2766,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "30" + "$ref": "38" }, "location": "Header", "isApiVersion": false, @@ -2843,7 +2843,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "30" + "$ref": "38" }, "location": "Header", "isApiVersion": false, @@ -2927,7 +2927,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "32" + "$ref": "40" }, "location": "Header", "isApiVersion": false, @@ -2970,7 +2970,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "32" + "$ref": "40" }, "location": "Header", "isApiVersion": false, @@ -3013,7 +3013,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "34" + "$ref": "42" }, "location": "Header", "isApiVersion": false, @@ -3090,7 +3090,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "34" + "$ref": "42" }, "location": "Header", "isApiVersion": false, @@ -3174,7 +3174,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "36" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -3217,7 +3217,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "36" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -3260,7 +3260,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "38" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -3337,7 +3337,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "38" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -3421,7 +3421,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "40" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -3464,7 +3464,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "40" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -3507,7 +3507,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "42" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -3584,7 +3584,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "42" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -3668,7 +3668,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "44" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -3711,7 +3711,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "44" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -3754,7 +3754,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "46" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -3831,7 +3831,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "46" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -3915,7 +3915,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "48" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -3958,7 +3958,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "48" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -4001,7 +4001,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "50" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -4078,7 +4078,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "50" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -4162,7 +4162,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "52" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -4205,7 +4205,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "52" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -4248,7 +4248,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "54" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -4325,7 +4325,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "54" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -4409,7 +4409,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "56" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -4452,7 +4452,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "56" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -4495,7 +4495,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "58" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -4572,7 +4572,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "58" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -4656,7 +4656,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "60" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -4699,7 +4699,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "60" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -4742,7 +4742,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "62" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -4819,7 +4819,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "62" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -4903,7 +4903,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "64" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -4946,7 +4946,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "64" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -4989,7 +4989,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "66" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -5066,7 +5066,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "66" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -5150,7 +5150,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "68" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -5193,7 +5193,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "68" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -5236,7 +5236,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "70" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -5313,7 +5313,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "70" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -5397,7 +5397,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "72" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -5440,7 +5440,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "72" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -5483,7 +5483,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "74" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -5560,7 +5560,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "74" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -5644,7 +5644,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "76" + "$ref": "84" }, "location": "Header", "isApiVersion": false, @@ -5687,7 +5687,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "76" + "$ref": "84" }, "location": "Header", "isApiVersion": false, @@ -5730,7 +5730,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "78" + "$ref": "86" }, "location": "Header", "isApiVersion": false, @@ -5807,7 +5807,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "78" + "$ref": "86" }, "location": "Header", "isApiVersion": false, @@ -5891,7 +5891,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "80" + "$ref": "88" }, "location": "Header", "isApiVersion": false, @@ -5934,7 +5934,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "80" + "$ref": "88" }, "location": "Header", "isApiVersion": false, @@ -5977,7 +5977,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "82" + "$ref": "90" }, "location": "Header", "isApiVersion": false, @@ -6054,7 +6054,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "82" + "$ref": "90" }, "location": "Header", "isApiVersion": false, @@ -6138,7 +6138,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "84" + "$ref": "92" }, "location": "Header", "isApiVersion": false, @@ -6181,7 +6181,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "84" + "$ref": "92" }, "location": "Header", "isApiVersion": false, @@ -6224,7 +6224,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "86" + "$ref": "94" }, "location": "Header", "isApiVersion": false, @@ -6301,7 +6301,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "86" + "$ref": "94" }, "location": "Header", "isApiVersion": false, @@ -6385,7 +6385,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "88" + "$ref": "96" }, "location": "Header", "isApiVersion": false, @@ -6428,7 +6428,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "88" + "$ref": "96" }, "location": "Header", "isApiVersion": false, @@ -6471,7 +6471,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "90" + "$ref": "98" }, "location": "Header", "isApiVersion": false, @@ -6548,7 +6548,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "90" + "$ref": "98" }, "location": "Header", "isApiVersion": false, @@ -6632,7 +6632,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "92" + "$ref": "100" }, "location": "Header", "isApiVersion": false, @@ -6675,7 +6675,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "92" + "$ref": "100" }, "location": "Header", "isApiVersion": false, @@ -6718,7 +6718,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "94" + "$ref": "102" }, "location": "Header", "isApiVersion": false, @@ -6795,7 +6795,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "94" + "$ref": "102" }, "location": "Header", "isApiVersion": false, @@ -6879,7 +6879,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "96" + "$ref": "104" }, "location": "Header", "isApiVersion": false, @@ -6922,7 +6922,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "96" + "$ref": "104" }, "location": "Header", "isApiVersion": false, @@ -6965,7 +6965,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "98" + "$ref": "106" }, "location": "Header", "isApiVersion": false, @@ -7042,7 +7042,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "98" + "$ref": "106" }, "location": "Header", "isApiVersion": false, @@ -7126,7 +7126,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "100" + "$ref": "108" }, "location": "Header", "isApiVersion": false, @@ -7169,7 +7169,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "100" + "$ref": "108" }, "location": "Header", "isApiVersion": false, @@ -7212,7 +7212,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "102" + "$ref": "110" }, "location": "Header", "isApiVersion": false, @@ -7289,7 +7289,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "102" + "$ref": "110" }, "location": "Header", "isApiVersion": false, @@ -7373,7 +7373,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "104" + "$ref": "112" }, "location": "Header", "isApiVersion": false, @@ -7416,7 +7416,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "104" + "$ref": "112" }, "location": "Header", "isApiVersion": false, @@ -7459,7 +7459,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "106" + "$ref": "114" }, "location": "Header", "isApiVersion": false, @@ -7536,7 +7536,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "106" + "$ref": "114" }, "location": "Header", "isApiVersion": false, @@ -7620,7 +7620,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "108" + "$ref": "116" }, "location": "Header", "isApiVersion": false, @@ -7663,7 +7663,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "108" + "$ref": "116" }, "location": "Header", "isApiVersion": false, @@ -7706,7 +7706,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "112" + "$ref": "118" }, "location": "Header", "isApiVersion": false, @@ -7783,7 +7783,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "112" + "$ref": "118" }, "location": "Header", "isApiVersion": false, @@ -7867,7 +7867,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "114" + "$ref": "120" }, "location": "Header", "isApiVersion": false, @@ -7910,7 +7910,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "114" + "$ref": "120" }, "location": "Header", "isApiVersion": false, @@ -7953,7 +7953,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "118" + "$ref": "122" }, "location": "Header", "isApiVersion": false, @@ -8030,7 +8030,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "118" + "$ref": "122" }, "location": "Header", "isApiVersion": false, @@ -8114,7 +8114,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "120" + "$ref": "124" }, "location": "Header", "isApiVersion": false, @@ -8157,7 +8157,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "120" + "$ref": "124" }, "location": "Header", "isApiVersion": false, @@ -8200,7 +8200,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "124" + "$ref": "126" }, "location": "Header", "isApiVersion": false, @@ -8277,7 +8277,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "124" + "$ref": "126" }, "location": "Header", "isApiVersion": false, @@ -8361,7 +8361,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "126" + "$ref": "128" }, "location": "Header", "isApiVersion": false, @@ -8404,7 +8404,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "126" + "$ref": "128" }, "location": "Header", "isApiVersion": false, 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 1d9334b028a..deed4331bae 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 @@ -394,7 +394,7 @@ { "$id": "34", "kind": "constant", - "name": "getContentType", + "name": "MixedLiteralsCasesStringLiteral1", "namespace": "", "usage": "None", "valueType": { @@ -404,61 +404,61 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "a", "decorators": [] }, { "$id": "36", "kind": "constant", - "name": "sendContentType", + "name": "MixedLiteralsCasesStringLiteral2", "namespace": "", "usage": "None", "valueType": { "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, - "value": "application/json", + "value": 2, "decorators": [] }, { "$id": "38", "kind": "constant", - "name": "getContentType1", + "name": "MixedLiteralsCasesStringLiteral3", "namespace": "", "usage": "None", "valueType": { "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] }, - "value": "application/json", + "value": 3.3, "decorators": [] }, { "$id": "40", "kind": "constant", - "name": "sendContentType1", + "name": "MixedLiteralsCasesStringLiteral4", "namespace": "", "usage": "None", "valueType": { "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": "application/json", + "value": true, "decorators": [] }, { "$id": "42", "kind": "constant", - "name": "getContentType2", + "name": "MixedLiteralsCasesStringLiteral11", "namespace": "", "usage": "None", "valueType": { @@ -468,13 +468,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "a", "decorators": [] }, { "$id": "44", "kind": "constant", - "name": "sendContentType2", + "name": "getContentType", "namespace": "", "usage": "None", "valueType": { @@ -490,7 +490,7 @@ { "$id": "46", "kind": "constant", - "name": "getContentType3", + "name": "sendContentType", "namespace": "", "usage": "None", "valueType": { @@ -506,7 +506,7 @@ { "$id": "48", "kind": "constant", - "name": "sendContentType3", + "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { @@ -522,7 +522,7 @@ { "$id": "50", "kind": "constant", - "name": "getContentType4", + "name": "sendContentType1", "namespace": "", "usage": "None", "valueType": { @@ -538,7 +538,7 @@ { "$id": "52", "kind": "constant", - "name": "sendContentType4", + "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { @@ -554,7 +554,7 @@ { "$id": "54", "kind": "constant", - "name": "getContentType5", + "name": "sendContentType2", "namespace": "", "usage": "None", "valueType": { @@ -570,7 +570,7 @@ { "$id": "56", "kind": "constant", - "name": "sendContentType5", + "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { @@ -586,7 +586,7 @@ { "$id": "58", "kind": "constant", - "name": "getContentType6", + "name": "sendContentType3", "namespace": "", "usage": "None", "valueType": { @@ -602,7 +602,7 @@ { "$id": "60", "kind": "constant", - "name": "sendContentType6", + "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { @@ -618,7 +618,7 @@ { "$id": "62", "kind": "constant", - "name": "getContentType7", + "name": "sendContentType4", "namespace": "", "usage": "None", "valueType": { @@ -634,7 +634,7 @@ { "$id": "64", "kind": "constant", - "name": "sendContentType7", + "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { @@ -650,7 +650,7 @@ { "$id": "66", "kind": "constant", - "name": "getContentType8", + "name": "sendContentType5", "namespace": "", "usage": "None", "valueType": { @@ -666,7 +666,7 @@ { "$id": "68", "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral1", + "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { @@ -676,61 +676,61 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "a", + "value": "application/json", "decorators": [] }, { "$id": "70", "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral2", + "name": "sendContentType6", "namespace": "", "usage": "None", "valueType": { "$id": "71", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 2, + "value": "application/json", "decorators": [] }, { "$id": "72", "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral3", + "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { "$id": "73", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 3.3, + "value": "application/json", "decorators": [] }, { "$id": "74", "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral4", + "name": "sendContentType7", "namespace": "", "usage": "None", "valueType": { "$id": "75", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": true, + "value": "application/json", "decorators": [] }, { "$id": "76", "kind": "constant", - "name": "sendContentType8", + "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { @@ -746,7 +746,7 @@ { "$id": "78", "kind": "constant", - "name": "getContentType9", + "name": "sendContentType8", "namespace": "", "usage": "None", "valueType": { @@ -762,7 +762,7 @@ { "$id": "80", "kind": "constant", - "name": "MixedLiteralsCasesStringLiteral11", + "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { @@ -772,7 +772,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "a", + "value": "application/json", "decorators": [] }, { @@ -1555,16 +1555,16 @@ "name": "MixedLiteralsCasesStringLiteral", "variantTypes": [ { - "$ref": "68" + "$ref": "34" }, { - "$ref": "70" + "$ref": "36" }, { - "$ref": "72" + "$ref": "38" }, { - "$ref": "74" + "$ref": "40" } ], "namespace": "", @@ -1733,7 +1733,7 @@ "$ref": "107" }, { - "$ref": "80" + "$ref": "42" }, { "$id": "150", @@ -1975,7 +1975,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "34" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -2018,7 +2018,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "34" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -2059,7 +2059,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "36" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -2134,7 +2134,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "36" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -2217,7 +2217,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "38" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -2260,7 +2260,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "38" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -2301,7 +2301,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "40" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -2376,7 +2376,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "40" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -2459,7 +2459,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "42" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -2502,7 +2502,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "42" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -2543,7 +2543,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "44" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -2618,7 +2618,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "44" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -2701,7 +2701,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "46" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -2744,7 +2744,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "46" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -2785,7 +2785,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "48" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -2860,7 +2860,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "48" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -2943,7 +2943,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "50" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -2986,7 +2986,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "50" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -3027,7 +3027,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "52" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -3102,7 +3102,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "52" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -3185,7 +3185,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "54" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -3228,7 +3228,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "54" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -3269,7 +3269,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "56" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -3344,7 +3344,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "56" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -3427,7 +3427,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "58" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -3470,7 +3470,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "58" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -3511,7 +3511,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "60" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -3586,7 +3586,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "60" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -3669,7 +3669,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "62" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -3712,7 +3712,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "62" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -3753,7 +3753,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "64" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -3828,7 +3828,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "64" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -3911,7 +3911,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "66" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -3954,7 +3954,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "66" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -3995,7 +3995,7 @@ "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "76" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -4070,7 +4070,7 @@ "nameInRequest": "contentType", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "76" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -4153,7 +4153,7 @@ "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "78" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -4196,7 +4196,7 @@ "name": "accept", "nameInRequest": "accept", "type": { - "$ref": "78" + "$ref": "80" }, "location": "Header", "isApiVersion": false, 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 e1920fb4535..1d540e8eb79 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 @@ -7,8 +7,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Added.Versions", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Added.EnumV1", "valueType": { "$id": "2", "kind": "string", @@ -20,30 +20,28 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Added", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { "$id": "4", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Added.Versions", "valueType": { "$id": "5", "kind": "string", @@ -55,21 +53,23 @@ { "$id": "6", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", + "name": "v1", + "value": "v1", "valueType": { "$ref": "5" }, "enumType": { "$ref": "4" }, + "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Added", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -147,7 +147,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "4" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -359,7 +359,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "4" }, "location": "Uri", "isApiVersion": true, 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 10a196dab47..6fb6b79d4e3 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 @@ -8,8 +8,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Added.Versions", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Added.EnumV1", "valueType": { "$id": "2", "kind": "string", @@ -21,44 +21,41 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v1.", "decorators": [] }, { "$id": "4", "kind": "enumvalue", - "name": "v2", - "value": "v2", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Added", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { "$id": "5", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Added.EnumV2", "valueType": { "$id": "6", "kind": "string", @@ -70,21 +67,8 @@ { "$id": "7", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "enumMember", + "value": "enumMember", "valueType": { "$ref": "6" }, @@ -101,12 +85,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "8", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Added.EnumV2", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Added.Versions", "valueType": { - "$id": "10", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,23 +98,39 @@ }, "values": [ { - "$id": "11", + "$id": "10", "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", + "name": "v1", + "value": "v1", "valueType": { - "$ref": "10" + "$ref": "9" }, "enumType": { + "$ref": "8" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { "$ref": "9" }, + "enumType": { + "$ref": "8" + }, + "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Added", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -272,7 +272,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "5" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -374,7 +374,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "9" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -827,7 +827,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "8" }, "location": "Uri", "isApiVersion": true, @@ -1049,7 +1049,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "8" }, "location": "Uri", "isApiVersion": true, 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 1268a331661..a3aaa14592f 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 @@ -7,8 +7,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", "valueType": { "$id": "2", "kind": "string", @@ -20,30 +20,28 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "enumMember", + "value": "enumMember", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Removed", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { "$id": "4", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { "$id": "5", "kind": "string", @@ -55,8 +53,21 @@ { "$id": "6", "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", + "name": "enumMemberV1", + "value": "enumMemberV1", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { "$ref": "5" }, @@ -73,12 +84,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "8", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "name": "EnumV3", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", "valueType": { - "$id": "8", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -86,28 +97,28 @@ }, "values": [ { - "$id": "9", + "$id": "10", "kind": "enumvalue", "name": "enumMemberV1", "value": "enumMemberV1", "valueType": { - "$ref": "8" + "$ref": "9" }, "enumType": { - "$ref": "7" + "$ref": "8" }, "decorators": [] }, { - "$id": "10", + "$id": "11", "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "enumMemberV2Preview", + "value": "enumMemberV2Preview", "valueType": { - "$ref": "8" + "$ref": "9" }, "enumType": { - "$ref": "7" + "$ref": "8" }, "decorators": [] } @@ -119,49 +130,38 @@ "decorators": [] }, { - "$id": "11", + "$id": "12", "kind": "enum", - "name": "EnumV3", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { - "$id": "12", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "values": [ - { - "$id": "13", - "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", - "valueType": { - "$ref": "12" - }, - "enumType": { - "$ref": "11" - }, - "decorators": [] - }, { "$id": "14", "kind": "enumvalue", - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", + "name": "v1", + "value": "v1", "valueType": { - "$ref": "12" + "$ref": "13" }, "enumType": { - "$ref": "11" + "$ref": "12" }, + "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -335,7 +335,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "4" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -454,7 +454,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "7" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -563,7 +563,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "11" + "$ref": "8" }, "optional": false, "readOnly": false, @@ -1137,7 +1137,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "12" }, "location": "Uri", "isApiVersion": true, @@ -1359,7 +1359,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "12" }, "location": "Uri", "isApiVersion": true, 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 ff8a5de0f11..5d90db9678f 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 @@ -9,8 +9,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { "$id": "2", "kind": "string", @@ -22,60 +22,30 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$ref": "2" - }, - "enumType": { - "$ref": "1" - }, - "doc": "The version v1.", - "decorators": [] - }, - { - "$id": "4", - "kind": "enumvalue", - "name": "v2preview", - "value": "v2preview", - "valueType": { - "$ref": "2" - }, - "enumType": { - "$ref": "1" - }, - "doc": "The V2 Preview version.", - "decorators": [] - }, - { - "$id": "5", - "kind": "enumvalue", - "name": "v2", - "value": "v2", + "name": "enumMemberV2", + "value": "enumMemberV2", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Removed", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { - "$id": "6", + "$id": "4", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "name": "EnumV3", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", "valueType": { - "$id": "7", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -83,15 +53,28 @@ }, "values": [ { - "$id": "8", + "$id": "6", "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { - "$ref": "7" + "$ref": "5" }, "enumType": { - "$ref": "6" + "$ref": "4" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMemberV2Preview", + "value": "enumMemberV2Preview", + "valueType": { + "$ref": "5" + }, + "enumType": { + "$ref": "4" }, "decorators": [] } @@ -103,12 +86,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "8", "kind": "enum", - "name": "EnumV3", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { - "$id": "10", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -116,36 +99,53 @@ }, "values": [ { - "$id": "11", + "$id": "10", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", + "name": "v1", + "value": "v1", "valueType": { - "$ref": "10" + "$ref": "9" }, "enumType": { + "$ref": "8" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "v2preview", + "value": "v2preview", + "valueType": { "$ref": "9" }, + "enumType": { + "$ref": "8" + }, + "doc": "The V2 Preview version.", "decorators": [] }, { "$id": "12", "kind": "enumvalue", - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", + "name": "v2", + "value": "v2", "valueType": { - "$ref": "10" + "$ref": "9" }, "enumType": { - "$ref": "9" + "$ref": "8" }, + "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -255,7 +255,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "6" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -350,7 +350,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "9" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -726,7 +726,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "8" }, "location": "Uri", "isApiVersion": true, 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 3d773e79656..451b0a7a1cd 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 @@ -8,8 +8,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", + "name": "EnumV1", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", "valueType": { "$id": "2", "kind": "string", @@ -21,46 +21,30 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$ref": "2" - }, - "enumType": { - "$ref": "1" - }, - "doc": "The version v1.", - "decorators": [] - }, - { - "$id": "4", - "kind": "enumvalue", - "name": "v2preview", - "value": "v2preview", + "name": "enumMember", + "value": "enumMember", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The V2 Preview version.", "decorators": [] } ], "namespace": "Versioning.Removed", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { - "$id": "5", + "$id": "4", "kind": "enum", - "name": "EnumV1", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", + "name": "EnumV2", + "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { - "$id": "6", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -68,16 +52,29 @@ }, "values": [ { - "$id": "7", + "$id": "6", "kind": "enumvalue", - "name": "enumMember", - "value": "enumMember", + "name": "enumMemberV1", + "value": "enumMemberV1", "valueType": { - "$ref": "6" + "$ref": "5" }, "enumType": { + "$ref": "4" + }, + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "enumMemberV2", + "value": "enumMemberV2", + "valueType": { "$ref": "5" }, + "enumType": { + "$ref": "4" + }, "decorators": [] } ], @@ -90,8 +87,8 @@ { "$id": "8", "kind": "enum", - "name": "EnumV2", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { "$id": "9", "kind": "string", @@ -103,34 +100,37 @@ { "$id": "10", "kind": "enumvalue", - "name": "enumMemberV1", - "value": "enumMemberV1", + "name": "v1", + "value": "v1", "valueType": { "$ref": "9" }, "enumType": { "$ref": "8" }, + "doc": "The version v1.", "decorators": [] }, { "$id": "11", "kind": "enumvalue", - "name": "enumMemberV2", - "value": "enumMemberV2", + "name": "v2preview", + "value": "v2preview", "valueType": { "$ref": "9" }, "enumType": { "$ref": "8" }, + "doc": "The V2 Preview version.", "decorators": [] } ], "namespace": "Versioning.Removed", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -304,7 +304,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "5" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -423,7 +423,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "8" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -1089,7 +1089,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "8" }, "location": "Uri", "isApiVersion": true, @@ -1313,7 +1313,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "8" }, "location": "Uri", "isApiVersion": true, 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 cfe0acca84d..56ee5000a28 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 @@ -7,8 +7,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", + "name": "OldEnum", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", "valueType": { "$id": "2", "kind": "string", @@ -20,30 +20,28 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", + "name": "oldEnumMember", + "value": "oldEnumMember", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { "$id": "4", "kind": "enum", - "name": "OldEnum", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", "valueType": { "$id": "5", "kind": "string", @@ -55,21 +53,23 @@ { "$id": "6", "kind": "enumvalue", - "name": "oldEnumMember", - "value": "oldEnumMember", + "name": "v1", + "value": "v1", "valueType": { "$ref": "5" }, "enumType": { "$ref": "4" }, + "doc": "The version v1.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -179,7 +179,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "4" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -480,7 +480,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "4" }, "location": "Uri", "isApiVersion": true, @@ -701,7 +701,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "4" }, "location": "Uri", "isApiVersion": true, 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 e154004a80d..f1a1db3d27a 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 @@ -8,8 +8,8 @@ { "$id": "1", "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", + "name": "NewEnum", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", "valueType": { "$id": "2", "kind": "string", @@ -21,46 +21,30 @@ { "$id": "3", "kind": "enumvalue", - "name": "v1", - "value": "v1", - "valueType": { - "$ref": "2" - }, - "enumType": { - "$ref": "1" - }, - "doc": "The version v1.", - "decorators": [] - }, - { - "$id": "4", - "kind": "enumvalue", - "name": "v2", - "value": "v2", + "name": "newEnumMember", + "value": "newEnumMember", "valueType": { "$ref": "2" }, "enumType": { "$ref": "1" }, - "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,ApiVersionEnum", + "usage": "Input,Output,Json", "decorators": [] }, { - "$id": "5", + "$id": "4", "kind": "enum", - "name": "NewEnum", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", + "name": "Versions", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", "valueType": { - "$id": "6", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -68,23 +52,39 @@ }, "values": [ { - "$id": "7", + "$id": "6", "kind": "enumvalue", - "name": "newEnumMember", - "value": "newEnumMember", + "name": "v1", + "value": "v1", "valueType": { - "$ref": "6" + "$ref": "5" }, "enumType": { + "$ref": "4" + }, + "doc": "The version v1.", + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "v2", + "value": "v2", + "valueType": { "$ref": "5" }, + "enumType": { + "$ref": "4" + }, + "doc": "The version v2.", "decorators": [] } ], "namespace": "Versioning.RenamedFrom", + "doc": "The version of the API.", "isFixed": true, "isFlags": false, - "usage": "Input,Output,Json", + "usage": "Input,ApiVersionEnum", "decorators": [] } ], @@ -194,7 +194,7 @@ "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "5" + "$ref": "1" }, "optional": false, "readOnly": false, @@ -496,7 +496,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "4" }, "location": "Uri", "isApiVersion": true, @@ -719,7 +719,7 @@ "nameInRequest": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "1" + "$ref": "4" }, "location": "Uri", "isApiVersion": true,