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..49815d33de4 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,89 @@ 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(); + const stack: any[] = []; + + return doBuildJson(codeModel, stack); + + 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; + } + // we switch here for object, arrays and primitives + if (Array.isArray(obj)) { + // array types + return obj.map((item) => doBuildJson(item, stack)); + } 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(obj, id, stack); + } + } else { + // this is not an object to ref + return handleObject(obj, undefined, stack); + } + } + } + + 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, stack); + } + + stack.pop(); + return result; + } + + function shouldHaveRef(obj: any): boolean { + return typesToRef.has(obj); + } +} + 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..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 @@ -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,8 +18,6 @@ import { firstLetterToUpperCase, getClientNamespaceString } from "./utils.js"; export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const sdkPackage = sdkContext.sdkPackage; - navigateModels(sdkContext); - const sdkApiVersionEnums = sdkPackage.enums.filter((e) => e.usage === UsageFlags.ApiVersionEnum); const rootClients = sdkPackage.clients; @@ -31,6 +29,11 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { 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. // issues: @@ -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 deleted file mode 100644 index b610d800f90..00000000000 --- a/packages/http-client-csharp/emitter/src/lib/model.ts +++ /dev/null @@ -1,52 +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 { - getAllModels, - getClientType, - isAzureCoreModel, -} 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"; - -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); -} - -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..5c13bb3ad8e 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,10 +368,7 @@ export function fromSdkModelType( } } -export 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) { @@ -305,7 +377,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 +391,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 +406,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 +421,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 +437,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 +473,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 +491,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/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; + } +} 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 ae5fb0b9c0d..0645247acfc 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 @@ -32,13 +32,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), @@ -46,21 +46,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/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; 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 55fe5dd01aa..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 @@ -1,6839 +1,6589 @@ { - "$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", + "kind": "constant", + "name": "sayHiContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] }, { - "$id": "46", - "kind": "enumvalue", - "name": "TwoDotTwo", - "value": 2.2, - "valueType": { "$id": "47", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "constant", + "name": "ThingRequiredLiteralString", + "namespace": "SampleTypeSpec", + "usage": "Input,Output,Spread,Json", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "accept", "decorators": [] - }, - "enumType": { - "$ref": "42" - }, - "decorators": [] }, { - "$id": "48", - "kind": "enumvalue", - "name": "FourDotFour", - "value": 4.4, - "valueType": { "$id": "49", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "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": [] - }, - "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": "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": "52", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { "$id": "53", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "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": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] }, { - "$id": "54", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { "$id": "55", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "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": [] - }, - "enumType": { - "$ref": "50" - }, - "decorators": [] }, { - "$id": "56", - "kind": "enumvalue", - "name": "Four", - "value": 4, - "valueType": { "$id": "57", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "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": [] - }, - "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": "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": "60", - "kind": "enumvalue", - "name": "One", - "value": 1, - "valueType": { "$id": "61", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "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": [] - }, - "enumType": { - "$ref": "58" - }, - "decorators": [] }, { - "$id": "62", - "kind": "enumvalue", - "name": "Two", - "value": 2, - "valueType": { "$id": "63", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "constant", + "name": "HelloAgainRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", "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", + "kind": "constant", + "name": "helloAgainContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "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", + "$id": "67", + "kind": "constant", + "name": "HelloAgainRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", "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", + "$id": "69", + "kind": "constant", + "name": "noContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", "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", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } - ], - "namespace": "", + }, + "value": "application/json", "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": "71", + "kind": "constant", + "name": "noContentTypeContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$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": "73", + "kind": "constant", + "name": "helloDemo2ContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableString", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "requiredNullableString" - } - } + "value": "application/json", + "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": "75", + "kind": "constant", + "name": "createLiteralContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$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": { - "$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" - } - } + "value": "application/json", + "decorators": [] }, { - "$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": "77", + "kind": "constant", + "name": "createLiteralContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, { - "$id": "221", - "kind": "property", - "name": "requiredBadDescription", - "serializedName": "requiredBadDescription", - "doc": "description with xml <|endoftext|>", - "type": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "79", + "kind": "constant", + "name": "HelloLiteralRequestP1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "test", "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", + "$id": "81", + "kind": "constant", + "name": "ThingRequiredLiteralInt1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", "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": "229", - "json": { - "$id": "230", - "name": "optionalNullableList" - } - } + "value": 123, + "decorators": [] }, { - "$id": "231", - "kind": "property", - "name": "requiredNullableList", - "serializedName": "requiredNullableList", - "doc": "required nullable collection", - "type": { - "$id": "232", - "kind": "nullable", - "type": { - "$ref": "227" + "$id": "83", + "kind": "constant", + "name": "ThingOptionalLiteralBool1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableList", - "serializationOptions": { - "$id": "233", - "json": { - "$id": "234", - "name": "requiredNullableList" - } - } - } - ] - }, - { - "$id": "235", - "kind": "model", - "name": "RoundTripModel", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel", - "usage": "Input,Output,Json", - "doc": "this is a roundtrip model", - "decorators": [], - "properties": [ - { - "$id": "236", - "kind": "property", - "name": "requiredString", - "serializedName": "requiredString", - "doc": "Required string, illustrating a reference type property.", - "type": { - "$id": "237", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "value": true, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredString", - "serializationOptions": { - "$id": "238", - "json": { - "$id": "239", - "name": "requiredString" - } - } }, { - "$id": "240", - "kind": "property", - "name": "requiredInt", - "serializedName": "requiredInt", - "doc": "Required int, illustrating a value type property.", - "type": { - "$id": "241", - "kind": "int32", - "name": "int32", - "encode": "string", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "85", + "kind": "constant", + "name": "helloLiteralContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredInt", - "serializationOptions": { - "$id": "242", - "json": { - "$id": "243", - "name": "requiredInt" - } - } }, { - "$id": "244", - "kind": "property", - "name": "requiredCollection", - "serializedName": "requiredCollection", - "doc": "Required collection of enums", - "type": { - "$id": "245", - "kind": "array", - "name": "ArrayStringFixedEnum", + "$id": "87", + "kind": "constant", + "name": "HelloLiteralRequestP11", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "2" + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "test", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredCollection", - "serializationOptions": { - "$id": "246", - "json": { - "$id": "247", - "name": "requiredCollection" - } - } }, { - "$id": "248", - "kind": "property", - "name": "requiredDictionary", - "serializedName": "requiredDictionary", - "doc": "Required dictionary of enums", - "type": { - "$id": "249", - "kind": "dict", - "keyType": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "89", + "kind": "constant", + "name": "ThingRequiredLiteralInt2", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "10" + "$id": "90", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, + "value": 123, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredDictionary", - "serializationOptions": { - "$id": "251", - "json": { - "$id": "252", - "name": "requiredDictionary" - } - } - }, - { - "$id": "253", - "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": "254", - "json": { - "$id": "255", - "name": "requiredModel" - } - } }, { - "$id": "256", - "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": "257", - "json": { - "$id": "258", - "name": "intExtensibleEnum" - } - } - }, - { - "$id": "259", - "kind": "property", - "name": "intExtensibleEnumCollection", - "serializedName": "intExtensibleEnumCollection", - "doc": "this is a collection of int based extensible enum", - "type": { - "$id": "260", - "kind": "array", - "name": "ArrayIntExtensibleEnum", + "$id": "91", + "kind": "constant", + "name": "ThingOptionalLiteralBool2", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "18" + "$id": "92", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": true, "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.intExtensibleEnumCollection", - "serializationOptions": { - "$id": "261", - "json": { - "$id": "262", - "name": "intExtensibleEnumCollection" - } - } - }, - { - "$id": "263", - "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": "264", - "json": { - "$id": "265", - "name": "floatExtensibleEnum" - } - } - }, - { - "$id": "266", - "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": "267", - "json": { - "$id": "268", - "name": "floatExtensibleEnumWithIntValue" - } - } }, { - "$id": "269", - "kind": "property", - "name": "floatExtensibleEnumCollection", - "serializedName": "floatExtensibleEnumCollection", - "doc": "this is a collection of float based extensible enum", - "type": { - "$id": "270", - "kind": "array", - "name": "ArrayFloatExtensibleEnum", + "$id": "93", + "kind": "constant", + "name": "topActionContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "26" + "$id": "94", + "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": "SampleTypeSpec.RoundTripModel.floatExtensibleEnumCollection", - "serializationOptions": { - "$id": "271", - "json": { - "$id": "272", - "name": "floatExtensibleEnumCollection" - } - } - }, - { - "$id": "273", - "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": "274", - "json": { - "$id": "275", - "name": "floatFixedEnum" - } - } }, { - "$id": "276", - "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": "277", - "json": { - "$id": "278", - "name": "floatFixedEnumWithIntValue" - } - } - }, - { - "$id": "279", - "kind": "property", - "name": "floatFixedEnumCollection", - "serializedName": "floatFixedEnumCollection", - "doc": "this is a collection of float based fixed enum", - "type": { - "$id": "280", - "kind": "array", - "name": "ArrayFloatFixedEnum", + "$id": "95", + "kind": "constant", + "name": "topAction2ContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "42" + "$id": "96", + "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": "SampleTypeSpec.RoundTripModel.floatFixedEnumCollection", - "serializationOptions": { - "$id": "281", - "json": { - "$id": "282", - "name": "floatFixedEnumCollection" - } - } - }, - { - "$id": "283", - "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": "284", - "json": { - "$id": "285", - "name": "intFixedEnum" - } - } }, { - "$id": "286", - "kind": "property", - "name": "intFixedEnumCollection", - "serializedName": "intFixedEnumCollection", - "doc": "this is a collection of int based fixed enum", - "type": { - "$id": "287", - "kind": "array", - "name": "ArrayIntFixedEnum", + "$id": "97", + "kind": "constant", + "name": "patchActionContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "58" + "$id": "98", + "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": "SampleTypeSpec.RoundTripModel.intFixedEnumCollection", - "serializationOptions": { - "$id": "288", - "json": { - "$id": "289", - "name": "intFixedEnumCollection" - } - } - }, - { - "$id": "290", - "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": "291", - "json": { - "$id": "292", - "name": "stringFixedEnum" - } - } }, { - "$id": "293", - "kind": "property", - "name": "requiredUnknown", - "serializedName": "requiredUnknown", - "doc": "required unknown", - "type": { - "$id": "294", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", + "$id": "99", + "kind": "constant", + "name": "patchActionContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredUnknown", - "serializationOptions": { - "$id": "295", - "json": { - "$id": "296", - "name": "requiredUnknown" - } - } }, { - "$id": "297", - "kind": "property", - "name": "optionalUnknown", - "serializedName": "optionalUnknown", - "doc": "optional unknown", - "type": { - "$id": "298", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", + "$id": "101", + "kind": "constant", + "name": "anonymousBodyContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalUnknown", - "serializationOptions": { - "$id": "299", - "json": { - "$id": "300", - "name": "optionalUnknown" - } - } }, { - "$id": "301", - "kind": "property", - "name": "requiredRecordUnknown", - "serializedName": "requiredRecordUnknown", - "doc": "required record of unknown", - "type": { - "$id": "302", - "kind": "dict", - "keyType": { - "$id": "303", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "103", + "kind": "constant", + "name": "anonymousBodyContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$id": "304", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredRecordUnknown", - "serializationOptions": { - "$id": "305", - "json": { - "$id": "306", - "name": "requiredRecordUnknown" - } - } }, { - "$id": "307", - "kind": "property", - "name": "optionalRecordUnknown", - "serializedName": "optionalRecordUnknown", - "doc": "optional record of unknown", - "type": { - "$ref": "302" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalRecordUnknown", - "serializationOptions": { - "$id": "308", - "json": { - "$id": "309", - "name": "optionalRecordUnknown" - } - } - }, - { - "$id": "310", - "kind": "property", - "name": "readOnlyRequiredRecordUnknown", - "serializedName": "readOnlyRequiredRecordUnknown", - "doc": "required readonly record of unknown", - "type": { - "$ref": "302" - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown", - "serializationOptions": { - "$id": "311", - "json": { - "$id": "312", - "name": "readOnlyRequiredRecordUnknown" - } - } - }, - { - "$id": "313", - "kind": "property", - "name": "readOnlyOptionalRecordUnknown", - "serializedName": "readOnlyOptionalRecordUnknown", - "doc": "optional readonly record of unknown", - "type": { - "$ref": "302" - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown", - "serializationOptions": { - "$id": "314", - "json": { - "$id": "315", - "name": "readOnlyOptionalRecordUnknown" - } - } - }, - { - "$id": "316", - "kind": "property", - "name": "modelWithRequiredNullable", - "serializedName": "modelWithRequiredNullable", - "doc": "this is a model with required nullable properties", - "type": { - "$id": "317", - "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": "318", - "kind": "property", - "name": "requiredNullablePrimitive", - "serializedName": "requiredNullablePrimitive", - "doc": "required nullable primitive type", - "type": { - "$id": "319", - "kind": "nullable", - "type": { - "$id": "320", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive", - "serializationOptions": { - "$id": "321", - "json": { - "$id": "322", - "name": "requiredNullablePrimitive" - } - } - }, - { - "$id": "323", - "kind": "property", - "name": "requiredExtensibleEnum", - "serializedName": "requiredExtensibleEnum", - "doc": "required nullable extensible enum type", - "type": { - "$id": "324", - "kind": "nullable", - "type": { - "$ref": "10" - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum", - "serializationOptions": { - "$id": "325", - "json": { - "$id": "326", - "name": "requiredExtensibleEnum" - } - } - }, - { - "$id": "327", - "kind": "property", - "name": "requiredFixedEnum", - "serializedName": "requiredFixedEnum", - "doc": "required nullable fixed enum type", - "type": { - "$id": "328", - "kind": "nullable", - "type": { - "$ref": "2" - }, - "namespace": "" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum", - "serializationOptions": { - "$id": "329", - "json": { - "$id": "330", - "name": "requiredFixedEnum" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.modelWithRequiredNullable", - "serializationOptions": { - "$id": "331", - "json": { - "$id": "332", - "name": "modelWithRequiredNullable" - } - } - }, - { - "$id": "333", - "kind": "property", - "name": "requiredBytes", - "serializedName": "requiredBytes", - "doc": "Required bytes", - "type": { - "$id": "334", - "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": "335", - "json": { - "$id": "336", - "name": "requiredBytes" - } - } - } - ] - }, - { - "$ref": "317" - }, - { - "$id": "337", - "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": "338", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "339", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend.name", - "serializationOptions": { - "$id": "340", - "json": { - "$id": "341", - "name": "name" - } - } - } - ] - }, - { - "$id": "342", - "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": "343", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithClientName.name", - "serializationOptions": { - "$id": "345", - "json": { - "$id": "346", - "name": "name" - } - } - } - ] - }, - { - "$id": "347", - "kind": "model", - "name": "ReturnsAnonymousModelResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [] - }, - { - "$id": "348", - "kind": "model", - "name": "ListWithNextLinkResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "349", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$id": "350", - "kind": "array", - "name": "ArrayThing", + "$id": "105", + "kind": "constant", + "name": "ThingRequiredLiteralString1", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "174" + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", + "value": "accept", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.things", - "serializationOptions": { - "$id": "351", - "json": { - "$id": "352", - "name": "things" - } - } }, { - "$id": "353", - "kind": "property", - "name": "next", - "serializedName": "next", - "type": { - "$id": "354", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", + "$id": "107", + "kind": "constant", + "name": "ThingRequiredLiteralInt3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 123, "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous.next", - "serializationOptions": { - "$id": "355", - "json": { - "$id": "356", - "name": "next" - } - } - } - ] - }, - { - "$id": "357", - "kind": "model", - "name": "ListWithContinuationTokenResponse", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "358", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$ref": "350" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.things", - "serializationOptions": { - "$id": "359", - "json": { - "$id": "360", - "name": "things" - } - } }, { - "$id": "361", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "109", + "kind": "constant", + "name": "ThingRequiredLiteralFloat1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "110", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 1.23, "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "363", - "json": { - "$id": "364", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "365", - "kind": "model", - "name": "ListWithContinuationTokenHeaderResponseResponse", - "namespace": "", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "366", - "kind": "property", - "name": "things", - "serializedName": "things", - "type": { - "$ref": "350" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "ListWithContinuationTokenHeaderResponse.Response.anonymous.things", - "serializationOptions": { - "$id": "367", - "json": { - "$id": "368", - "name": "things" - } - } - } - ] - }, - { - "$id": "369", - "kind": "model", - "name": "PageThing", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.Page", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "370", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$ref": "350" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Page.items", - "serializationOptions": { - "$id": "371", - "json": { - "$id": "372", - "name": "items" - } - } - } - ] - }, - { - "$id": "373", - "kind": "model", - "name": "ModelWithEmbeddedNonBodyParameters", - "namespace": "SampleTypeSpec", - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters", - "usage": "Input,Json", - "decorators": [], - "properties": [ + }, { - "$id": "374", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "name of the ModelWithEmbeddedNonBodyParameters", - "type": { - "$id": "375", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "111", + "kind": "constant", + "name": "ThingRequiredLiteralBool1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "112", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": false, "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.name", - "serializationOptions": { - "$id": "376", - "json": { - "$id": "377", - "name": "name" - } - } }, { - "$id": "378", - "kind": "header", - "name": "requiredHeader", - "serializedName": "required-header", - "doc": "required header parameter", - "type": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "113", + "kind": "constant", + "name": "ThingOptionalLiteralString1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "reject", "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", - "correspondingMethodParams": [] }, { - "$id": "380", - "kind": "header", - "name": "optionalHeader", - "serializedName": "optional-header", - "doc": "optional header parameter", - "type": { - "$id": "381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "115", + "kind": "constant", + "name": "ThingOptionalLiteralInt1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "116", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 456, "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", - "correspondingMethodParams": [] }, { - "$id": "382", - "kind": "query", - "name": "requiredQuery", - "serializedName": "requiredQuery", - "doc": "required query parameter", - "type": { - "$id": "383", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "117", + "kind": "constant", + "name": "ThingOptionalLiteralFloat1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "value": 4.56, "decorators": [] - }, - "optional": false, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", - "correspondingMethodParams": [] }, { - "$id": "384", - "kind": "query", - "name": "optionalQuery", - "serializedName": "optionalQuery", - "doc": "optional query parameter", - "type": { - "$id": "385", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "119", + "kind": "constant", + "name": "ThingOptionalLiteralBool3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "120", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", - "correspondingMethodParams": [] - } - ] - } - ], - "clients": [ - { - "$id": "386", - "kind": "client", - "name": "SampleTypeSpecClient", - "namespace": "SampleTypeSpec", - "doc": "This is a sample typespec project.", - "methods": [ + }, { - "$id": "387", - "kind": "basic", - "name": "sayHi", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi", - "operation": { - "$id": "388", - "name": "sayHi", - "resourceName": "SampleTypeSpec", - "doc": "Return hi", - "accessibility": "public", - "parameters": [ - { - "$id": "389", - "name": "headParameter", - "nameInRequest": "head-parameter", - "type": { - "$id": "390", - "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": "391", - "name": "queryParameter", - "nameInRequest": "queryParameter", - "type": { - "$id": "392", - "kind": "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": "393", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "type": { - "$id": "394", - "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": "395", - "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": "396", - "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": "397", - "name": "headParameter", - "nameInRequest": "head-parameter", - "type": { - "$id": "398", + "$id": "121", + "kind": "constant", + "name": "friendlyModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$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": "399", - "name": "queryParameter", - "nameInRequest": "queryParameter", - "type": { - "$id": "400", + "value": "application/json", + "decorators": [] + }, + { + "$id": "123", + "kind": "constant", + "name": "friendlyModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "124", "kind": "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": "401", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "type": { - "$id": "402", + "value": "application/json", + "decorators": [] + }, + { + "$id": "125", + "kind": "constant", + "name": "projectedNameModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "126", "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": "403", - "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": "404", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" + "value": "application/json", + "decorators": [] }, { - "$id": "405", - "kind": "basic", - "name": "helloAgain", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "406", - "name": "helloAgain", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "407", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "408", - "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": "409", - "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": "410", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "411", - "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": "412", - "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": "413", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "235" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "414", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "235" - }, - "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": "415", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "416", + "$id": "127", + "kind": "constant", + "name": "projectedNameModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "417", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "235" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "418", - "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": "419", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "420", + "value": "application/json", + "decorators": [] + }, + { + "$id": "129", + "kind": "constant", + "name": "returnsAnonymousModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$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 }, - { - "$id": "421", - "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": "422", - "type": { - "$ref": "235" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" + "value": "application/json", + "decorators": [] }, { - "$id": "423", - "kind": "basic", - "name": "noContentType", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "424", - "name": "noContentType", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "425", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "426", - "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": "427", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "428", - "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": "429", - "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": "430", - "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": "431", - "name": "action", - "nameInRequest": "action", - "type": { - "$ref": "235" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "432", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "235" - }, - "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": "433", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "434", + "$id": "131", + "kind": "constant", + "name": "GetUnknownValueResponse6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "132", "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": "action", - "nameInRequest": "action", - "type": { - "$ref": "235" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false }, - { - "$id": "436", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$id": "437", + "value": "Sunday", + "decorators": [] + }, + { + "$id": "133", + "kind": "constant", + "name": "internalProtocolContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$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": "438", - "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": "439", - "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": "440", - "type": { - "$ref": "235" - } - }, - "isOverride": false, - "generateConvenient": false, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" - }, - { - "$id": "441", - "kind": "basic", - "name": "helloDemo2", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi in demo2", - "operation": { - "$id": "442", - "name": "helloDemo2", - "resourceName": "SampleTypeSpec", - "doc": "Return hi in demo2", - "accessibility": "public", - "parameters": [ - { - "$id": "443", - "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": "444", - "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", + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "445", - "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": "446", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, { - "$id": "447", - "kind": "basic", - "name": "createLiteral", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Create with literal value", - "operation": { - "$id": "448", - "name": "createLiteral", - "resourceName": "SampleTypeSpec", - "doc": "Create with literal value", - "accessibility": "public", - "parameters": [ - { - "$id": "449", - "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": "450", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "451", - "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": "452", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "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": "453", - "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": "454", - "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": "135", + "kind": "constant", + "name": "internalProtocolContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "455", - "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": "456", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" - }, - { - "$id": "457", - "kind": "basic", - "name": "helloLiteral", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Send literal parameters", - "operation": { - "$id": "458", - "name": "helloLiteral", - "resourceName": "SampleTypeSpec", - "doc": "Send literal parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "459", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "460", - "name": "p2", - "nameInRequest": "p2", - "type": { - "$ref": "108" - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "461", - "name": "p3", - "nameInRequest": "p3", - "type": { - "$ref": "110" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "462", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "463", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/helloLiteral/{p2}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral", + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "464", - "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": "465", - "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": "466", - "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": "467", - "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": "468", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" }, { - "$id": "469", - "kind": "basic", - "name": "topAction", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level method", - "operation": { - "$id": "470", - "name": "topAction", - "resourceName": "SampleTypeSpec", - "doc": "top level method", - "accessibility": "public", - "parameters": [ - { - "$id": "471", - "name": "action", - "nameInRequest": "action", - "type": { - "$id": "472", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "473", - "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": "474", - "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": "475", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "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": "476", - "name": "action", - "nameInRequest": "action", - "type": { - "$id": "477", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "478", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "$id": "137", + "kind": "constant", + "name": "ListWithNextLinkContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "138", + "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": "479", - "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": "480", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction" - }, - { - "$id": "481", - "kind": "basic", - "name": "topAction2", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level method2", - "operation": { - "$id": "482", - "name": "topAction2", - "resourceName": "SampleTypeSpec", - "doc": "top level method2", - "accessibility": "public", - "parameters": [ - { - "$id": "483", - "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": "484", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/top2", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2", + "value": "application/json", "decorators": [] - }, - "parameters": [ - { - "$id": "485", - "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": "486", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": false, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" }, { - "$id": "487", - "kind": "basic", - "name": "patchAction", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "top level patch", - "operation": { - "$id": "488", - "name": "patchAction", - "resourceName": "SampleTypeSpec", - "doc": "top level patch", - "accessibility": "public", - "parameters": [ - { - "$id": "489", - "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": "490", - "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": "491", - "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": "492", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "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": "493", - "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": "494", - "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": "139", + "kind": "constant", + "name": "ListWithContinuationTokenContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "495", - "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": "496", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" + "value": "application/json", + "decorators": [] }, { - "$id": "497", - "kind": "basic", - "name": "anonymousBody", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "body parameter without body decorator", - "operation": { - "$id": "498", - "name": "anonymousBody", - "resourceName": "SampleTypeSpec", - "doc": "body parameter without body decorator", - "accessibility": "public", - "parameters": [ - { - "$id": "499", - "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": "500", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "501", - "name": "thing", - "nameInRequest": "thing", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "502", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "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": "503", - "name": "name", - "nameInRequest": "name", - "doc": "name of the Thing", - "type": { - "$id": "504", + "$id": "141", + "kind": "constant", + "name": "ListWithContinuationTokenHeaderResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "142", "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": "505", - "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": "506", - "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": "507", - "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": "508", - "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": "509", - "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": "510", - "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": "511", - "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": "512", - "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": "513", - "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": "514", - "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": "515", - "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": "516", - "name": "requiredBadDescription", - "nameInRequest": "requiredBadDescription", - "doc": "description with xml <|endoftext|>", - "type": { - "$id": "517", + "value": "application/json", + "decorators": [] + }, + { + "$id": "143", + "kind": "constant", + "name": "ListWithPagingContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "144", "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": "518", - "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": "519", - "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": "520", - "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": "521", - "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": "522", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" + "value": "application/json", + "decorators": [] }, { - "$id": "523", - "kind": "basic", - "name": "friendlyModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Model can have its friendly name", - "operation": { - "$id": "524", - "name": "friendlyModel", - "resourceName": "SampleTypeSpec", - "doc": "Model can have its friendly name", - "accessibility": "public", - "parameters": [ - { - "$id": "525", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "526", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "527", - "name": "friend", - "nameInRequest": "friend", - "type": { - "$ref": "337" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "528", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "337" - }, - "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": "529", - "name": "name", - "nameInRequest": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "530", + "$id": "145", + "kind": "constant", + "name": "EmbeddedParametersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "146", "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": "531", - "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": "532", - "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": "533", - "type": { - "$ref": "337" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" - }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ { - "$id": "534", - "kind": "basic", - "name": "addTimeHeader", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "operation": { - "$id": "535", - "name": "addTimeHeader", - "resourceName": "SampleTypeSpec", - "accessibility": "public", - "parameters": [ - { - "$id": "536", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "537", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "538", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "$id": "147", + "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": "148", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the Thing", + "type": { + "$id": "149", + "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": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "539", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader", - "decorators": [] - }, - "parameters": [ - { - "$id": "540", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "type": { - "$id": "541", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "150", + "kind": "property", + "name": "requiredUnion", + "serializedName": "requiredUnion", + "doc": "required Union", + "type": { + "$id": "151", + "kind": "union", + "name": "ThingRequiredUnion", + "variantTypes": [ + { + "$id": "152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "153", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + { + "$id": "155", + "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" + } + } }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "543" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" - }, - { - "$id": "544", - "kind": "basic", - "name": "projectedNameModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Model can have its projected name", - "operation": { - "$id": "545", - "name": "projectedNameModel", - "resourceName": "SampleTypeSpec", - "doc": "Model can have its projected name", - "accessibility": "public", - "parameters": [ - { - "$id": "546", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "152" + { + "$id": "156", + "kind": "property", + "name": "requiredLiteralString", + "serializedName": "requiredLiteralString", + "doc": "required literal string", + "type": { + "$ref": "47" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralString", + "serializationOptions": { + "json": { + "name": "requiredLiteralString" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "547", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "154" + { + "$id": "157", + "kind": "property", + "name": "requiredNullableString", + "serializedName": "requiredNullableString", + "doc": "required nullable string", + "type": { + "$id": "158", + "kind": "nullable", + "type": { + "$id": "159", + "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": "548", - "name": "renamedModel", - "nameInRequest": "renamedModel", - "type": { - "$ref": "342" + { + "$id": "160", + "kind": "property", + "name": "optionalNullableString", + "serializedName": "optionalNullableString", + "doc": "required optional string", + "type": { + "$id": "161", + "kind": "nullable", + "type": { + "$id": "162", + "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": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "549", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "342" + { + "$id": "163", + "kind": "property", + "name": "requiredLiteralInt", + "serializedName": "requiredLiteralInt", + "doc": "required literal int", + "type": { + "$ref": "49" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralInt", + "serializationOptions": { + "json": { + "name": "requiredLiteralInt" + } + } }, - "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": "550", - "name": "name", - "nameInRequest": "name", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "551", - "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": "552", - "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": "553", - "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": "554", - "type": { - "$ref": "342" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" - }, - { - "$id": "555", - "kind": "basic", - "name": "returnsAnonymousModel", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "return anonymous model", - "operation": { - "$id": "556", - "name": "returnsAnonymousModel", - "resourceName": "SampleTypeSpec", - "doc": "return anonymous model", - "accessibility": "public", - "parameters": [ - { - "$id": "557", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "156" + { + "$id": "164", + "kind": "property", + "name": "requiredLiteralFloat", + "serializedName": "requiredLiteralFloat", + "doc": "required literal float", + "type": { + "$ref": "51" + }, + "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": "558", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "347" + { + "$id": "165", + "kind": "property", + "name": "requiredLiteralBool", + "serializedName": "requiredLiteralBool", + "doc": "required literal bool", + "type": { + "$ref": "53" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredLiteralBool", + "serializationOptions": { + "json": { + "name": "requiredLiteralBool" + } + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{sampleTypeSpecUrl}", - "path": "/returnsAnonymousModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", - "decorators": [] - }, - "parameters": [ - { - "$id": "559", - "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": "560", - "type": { - "$ref": "347" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" - }, - { - "$id": "561", - "kind": "basic", - "name": "getUnknownValue", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "get extensible enum", - "operation": { - "$id": "562", - "name": "getUnknownValue", - "resourceName": "SampleTypeSpec", - "doc": "get extensible enum", - "accessibility": "public", - "parameters": [ - { - "$id": "563", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "166", + "kind": "property", + "name": "optionalLiteralString", + "serializedName": "optionalLiteralString", + "doc": "optional literal string", + "type": { + "$ref": "55" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralString", + "serializationOptions": { + "json": { + "name": "optionalLiteralString" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "565", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "158" + { + "$id": "167", + "kind": "property", + "name": "optionalLiteralInt", + "serializedName": "optionalLiteralInt", + "doc": "optional literal int", + "type": { + "$ref": "57" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralInt", + "serializationOptions": { + "json": { + "name": "optionalLiteralInt" + } + } }, - "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": "566", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "564" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "567", - "type": { - "$ref": "158" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" + { + "$id": "168", + "kind": "property", + "name": "optionalLiteralFloat", + "serializedName": "optionalLiteralFloat", + "doc": "optional literal float", + "type": { + "$ref": "59" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralFloat", + "serializationOptions": { + "json": { + "name": "optionalLiteralFloat" + } + } + }, + { + "$id": "169", + "kind": "property", + "name": "optionalLiteralBool", + "serializedName": "optionalLiteralBool", + "doc": "optional literal bool", + "type": { + "$ref": "61" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.optionalLiteralBool", + "serializationOptions": { + "json": { + "name": "optionalLiteralBool" + } + } + }, + { + "$id": "170", + "kind": "property", + "name": "requiredBadDescription", + "serializedName": "requiredBadDescription", + "doc": "description with xml <|endoftext|>", + "type": { + "$id": "171", + "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" + } + } + }, + { + "$id": "172", + "kind": "property", + "name": "optionalNullableList", + "serializedName": "optionalNullableList", + "doc": "optional nullable collection", + "type": { + "$id": "173", + "kind": "nullable", + "type": { + "$id": "174", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "175", + "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" + } + } + }, + { + "$id": "176", + "kind": "property", + "name": "requiredNullableList", + "serializedName": "requiredNullableList", + "doc": "required nullable collection", + "type": { + "$id": "177", + "kind": "nullable", + "type": { + "$ref": "174" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Thing.requiredNullableList", + "serializationOptions": { + "json": { + "name": "requiredNullableList" + } + } + } + ] }, { - "$id": "568", - "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": "569", - "name": "internalProtocol", - "resourceName": "SampleTypeSpec", - "doc": "When set protocol false and convenient true, then the protocol method should be internal", - "accessibility": "public", - "parameters": [ - { - "$id": "570", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "160" + "$id": "178", + "kind": "model", + "name": "RoundTripModel", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel", + "usage": "Input,Output,Json", + "doc": "this is a roundtrip model", + "decorators": [], + "properties": [ + { + "$id": "179", + "kind": "property", + "name": "requiredString", + "serializedName": "requiredString", + "doc": "Required string, illustrating a reference type property.", + "type": { + "$id": "180", + "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" + } + } }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "571", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "162" + { + "$id": "181", + "kind": "property", + "name": "requiredInt", + "serializedName": "requiredInt", + "doc": "Required int, illustrating a value type property.", + "type": { + "$id": "182", + "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": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "572", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "174" + { + "$id": "183", + "kind": "property", + "name": "requiredCollection", + "serializedName": "requiredCollection", + "doc": "Required collection of enums", + "type": { + "$id": "184", + "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": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "573", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" + { + "$id": "185", + "kind": "property", + "name": "requiredDictionary", + "serializedName": "requiredDictionary", + "doc": "Required dictionary of enums", + "type": { + "$id": "186", + "kind": "dict", + "keyType": { + "$id": "187", + "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" + } + } }, - "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": "574", - "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": "575", - "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": "576", - "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": "577", - "type": { - "$ref": "174" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": false, - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" + { + "$id": "188", + "kind": "property", + "name": "requiredModel", + "serializedName": "requiredModel", + "doc": "Required model", + "type": { + "$ref": "147" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredModel", + "serializationOptions": { + "json": { + "name": "requiredModel" + } + } + }, + { + "$id": "189", + "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" + } + } + }, + { + "$id": "190", + "kind": "property", + "name": "intExtensibleEnumCollection", + "serializedName": "intExtensibleEnumCollection", + "doc": "this is a collection of int based extensible enum", + "type": { + "$id": "191", + "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" + } + } + }, + { + "$id": "192", + "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" + } + } + }, + { + "$id": "193", + "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" + } + } + }, + { + "$id": "194", + "kind": "property", + "name": "floatExtensibleEnumCollection", + "serializedName": "floatExtensibleEnumCollection", + "doc": "this is a collection of float based extensible enum", + "type": { + "$id": "195", + "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" + } + } + }, + { + "$id": "196", + "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" + } + } + }, + { + "$id": "197", + "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" + } + } + }, + { + "$id": "198", + "kind": "property", + "name": "floatFixedEnumCollection", + "serializedName": "floatFixedEnumCollection", + "doc": "this is a collection of float based fixed enum", + "type": { + "$id": "199", + "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" + } + } + }, + { + "$id": "200", + "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" + } + } + }, + { + "$id": "201", + "kind": "property", + "name": "intFixedEnumCollection", + "serializedName": "intFixedEnumCollection", + "doc": "this is a collection of int based fixed enum", + "type": { + "$id": "202", + "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" + } + } + }, + { + "$id": "203", + "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" + } + } + }, + { + "$id": "204", + "kind": "property", + "name": "requiredUnknown", + "serializedName": "requiredUnknown", + "doc": "required unknown", + "type": { + "$id": "205", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredUnknown", + "serializationOptions": { + "json": { + "name": "requiredUnknown" + } + } + }, + { + "$id": "206", + "kind": "property", + "name": "optionalUnknown", + "serializedName": "optionalUnknown", + "doc": "optional unknown", + "type": { + "$id": "207", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalUnknown", + "serializationOptions": { + "json": { + "name": "optionalUnknown" + } + } + }, + { + "$id": "208", + "kind": "property", + "name": "requiredRecordUnknown", + "serializedName": "requiredRecordUnknown", + "doc": "required record of unknown", + "type": { + "$id": "209", + "kind": "dict", + "keyType": { + "$id": "210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "211", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.requiredRecordUnknown", + "serializationOptions": { + "json": { + "name": "requiredRecordUnknown" + } + } + }, + { + "$id": "212", + "kind": "property", + "name": "optionalRecordUnknown", + "serializedName": "optionalRecordUnknown", + "doc": "optional record of unknown", + "type": { + "$ref": "209" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.optionalRecordUnknown", + "serializationOptions": { + "json": { + "name": "optionalRecordUnknown" + } + } + }, + { + "$id": "213", + "kind": "property", + "name": "readOnlyRequiredRecordUnknown", + "serializedName": "readOnlyRequiredRecordUnknown", + "doc": "required readonly record of unknown", + "type": { + "$ref": "209" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown", + "serializationOptions": { + "json": { + "name": "readOnlyRequiredRecordUnknown" + } + } + }, + { + "$id": "214", + "kind": "property", + "name": "readOnlyOptionalRecordUnknown", + "serializedName": "readOnlyOptionalRecordUnknown", + "doc": "optional readonly record of unknown", + "type": { + "$ref": "209" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown", + "serializationOptions": { + "json": { + "name": "readOnlyOptionalRecordUnknown" + } + } + }, + { + "$id": "215", + "kind": "property", + "name": "modelWithRequiredNullable", + "serializedName": "modelWithRequiredNullable", + "doc": "this is a model with required nullable properties", + "type": { + "$id": "216", + "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": "217", + "kind": "property", + "name": "requiredNullablePrimitive", + "serializedName": "requiredNullablePrimitive", + "doc": "required nullable primitive type", + "type": { + "$id": "218", + "kind": "nullable", + "type": { + "$id": "219", + "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": "220", + "kind": "property", + "name": "requiredExtensibleEnum", + "serializedName": "requiredExtensibleEnum", + "doc": "required nullable extensible enum type", + "type": { + "$id": "221", + "kind": "nullable", + "type": { + "$ref": "6" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum", + "serializationOptions": { + "json": { + "name": "requiredExtensibleEnum" + } + } + }, + { + "$id": "222", + "kind": "property", + "name": "requiredFixedEnum", + "serializedName": "requiredFixedEnum", + "doc": "required nullable fixed enum type", + "type": { + "$id": "223", + "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" + } + } + }, + { + "$id": "224", + "kind": "property", + "name": "requiredBytes", + "serializedName": "requiredBytes", + "doc": "Required bytes", + "type": { + "$id": "225", + "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": "578", - "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": "579", - "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": "580", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/stillConvenient", - "bufferResponse": true, - "generateProtocolMethod": false, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient", - "decorators": [] - }, - "parameters": [], - "response": { - "$id": "581" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": false, - "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" + "$ref": "216" }, { - "$id": "582", - "kind": "basic", - "name": "headAsBoolean", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "head as boolean.", - "operation": { - "$id": "583", - "name": "headAsBoolean", - "resourceName": "SampleTypeSpec", - "doc": "head as boolean.", - "accessibility": "public", - "parameters": [ - { - "$id": "584", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "585", - "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": "586", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "HEAD", - "uri": "{sampleTypeSpecUrl}", - "path": "/headAsBoolean/{id}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean", - "decorators": [] - }, - "parameters": [ - { - "$id": "587", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "588", - "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": "589" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" + "$id": "226", + "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": "227", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the NotFriend", + "type": { + "$id": "228", + "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": "590", - "kind": "basic", - "name": "WithApiVersion", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "Return hi again", - "operation": { - "$id": "591", - "name": "WithApiVersion", - "resourceName": "SampleTypeSpec", - "doc": "Return hi again", - "accessibility": "public", - "parameters": [ - { - "$id": "592", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "593", - "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": "594", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "type": { - "$id": "595", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "596", - "type": { - "$id": "597", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2024-08-16-preview" - }, - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "598", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/WithApiVersion", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion", - "decorators": [] - }, - "parameters": [ - { - "$id": "599", - "name": "p1", - "nameInRequest": "p1", - "type": { - "$id": "600", - "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": "601" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" + "$id": "229", + "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": "230", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the ModelWithClientName", + "type": { + "$id": "231", + "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": "602", - "kind": "paging", - "name": "ListWithNextLink", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with nextlink", - "operation": { - "$id": "603", - "name": "ListWithNextLink", - "resourceName": "SampleTypeSpec", - "doc": "List things with nextlink", - "accessibility": "public", - "parameters": [ - { - "$id": "604", - "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": "605", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "348" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{sampleTypeSpecUrl}", - "path": "/link", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", - "decorators": [] - }, - "parameters": [ - { - "$id": "606", - "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": "607", - "type": { - "$ref": "350" - }, - "resultSegments": [ - "things" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", - "pagingMetadata": { - "$id": "608", - "itemPropertySegments": [ - "things" - ], - "nextLink": { - "$id": "609", - "responseSegments": [ - "next" - ], - "responseLocation": "Body" - } - } + "$id": "232", + "kind": "model", + "name": "ReturnsAnonymousModelResponse", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [] }, { - "$id": "610", - "kind": "paging", - "name": "ListWithContinuationToken", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with continuation token", - "operation": { - "$id": "611", - "name": "ListWithContinuationToken", - "resourceName": "SampleTypeSpec", - "doc": "List things with continuation token", - "accessibility": "public", - "parameters": [ - { - "$id": "612", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "613", - "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": "614", - "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": "615", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "357" + "$id": "233", + "kind": "model", + "name": "ListWithNextLinkResponse", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "234", + "kind": "property", + "name": "things", + "serializedName": "things", + "type": { + "$id": "235", + "kind": "array", + "name": "ArrayThing", + "valueType": { + "$ref": "147" + }, + "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": "616", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "617", - "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": "618", - "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": "619", - "type": { - "$ref": "350" - }, - "resultSegments": [ - "things" + { + "$id": "236", + "kind": "property", + "name": "next", + "serializedName": "next", + "type": { + "$id": "237", + "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": "620", - "itemPropertySegments": [ - "things" - ], - "continuationToken": { - "$id": "621", - "parameter": { - "$ref": "612" - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" - } - } }, { - "$id": "622", - "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": "623", - "name": "ListWithContinuationTokenHeaderResponse", - "resourceName": "SampleTypeSpec", - "doc": "List things with continuation token header response", - "accessibility": "public", - "parameters": [ - { - "$id": "624", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "625", - "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": "626", - "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": "627", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "365" + "$id": "238", + "kind": "model", + "name": "ListWithContinuationTokenResponse", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "239", + "kind": "property", + "name": "things", + "serializedName": "things", + "type": { + "$ref": "235" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.Response.anonymous.things", + "serializationOptions": { + "json": { + "name": "things" + } + } }, - "headers": [ - { - "$id": "628", + { + "$id": "240", + "kind": "property", "name": "nextToken", - "nameInResponse": "next-token", + "serializedName": "nextToken", "type": { - "$id": "629", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "241", + "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": "630", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "631", - "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": "632", - "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": "633", - "type": { - "$ref": "350" - }, - "resultSegments": [ - "things" + } ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", - "pagingMetadata": { - "$id": "634", - "itemPropertySegments": [ - "things" - ], - "continuationToken": { - "$id": "635", - "parameter": { - "$ref": "624" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" - } - } }, { - "$id": "636", - "kind": "paging", - "name": "ListWithPaging", - "accessibility": "public", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "doc": "List things with paging", - "operation": { - "$id": "637", - "name": "ListWithPaging", - "resourceName": "SampleTypeSpec", - "doc": "List things with paging", - "accessibility": "public", - "parameters": [ - { - "$id": "638", - "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": "639", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "369" - }, - "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": "640", - "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": "641", - "type": { - "$ref": "350" - }, - "resultSegments": [ - "items" + "$id": "242", + "kind": "model", + "name": "ListWithContinuationTokenHeaderResponseResponse", + "namespace": "", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "243", + "kind": "property", + "name": "things", + "serializedName": "things", + "type": { + "$ref": "235" + }, + "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": "642", - "itemPropertySegments": [ - "items" + }, + { + "$id": "244", + "kind": "model", + "name": "PageThing", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.Page", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "245", + "kind": "property", + "name": "items", + "serializedName": "items", + "type": { + "$ref": "235" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Page.items", + "serializationOptions": { + "json": { + "name": "items" + } + } + } ] - } }, { - "$id": "643", - "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": "644", - "name": "EmbeddedParameters", - "resourceName": "SampleTypeSpec", - "doc": "An operation with embedded parameters within the body", - "accessibility": "public", - "parameters": [ - { - "$id": "645", - "name": "requiredHeader", - "nameInRequest": "required-header", - "doc": "required header parameter", - "type": { - "$id": "646", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "246", + "kind": "model", + "name": "ModelWithEmbeddedNonBodyParameters", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "247", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "name of the ModelWithEmbeddedNonBodyParameters", + "type": { + "$id": "248", + "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": "647", - "name": "optionalHeader", - "nameInRequest": "optional-header", - "doc": "optional header parameter", - "type": { - "$id": "648", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "249", + "kind": "header", + "name": "requiredHeader", + "serializedName": "required-header", + "doc": "required header parameter", + "type": { + "$id": "250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", + "correspondingMethodParams": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "649", - "name": "requiredQuery", - "nameInRequest": "requiredQuery", - "doc": "required query parameter", - "type": { - "$id": "650", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "251", + "kind": "header", + "name": "optionalHeader", + "serializedName": "optional-header", + "doc": "optional header parameter", + "type": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", + "correspondingMethodParams": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "651", - "name": "optionalQuery", - "nameInRequest": "optionalQuery", - "doc": "optional query parameter", - "type": { - "$id": "652", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "253", + "kind": "query", + "name": "requiredQuery", + "serializedName": "requiredQuery", + "doc": "required query parameter", + "type": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", + "correspondingMethodParams": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "653", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "172" + { + "$id": "255", + "kind": "query", + "name": "optionalQuery", + "serializedName": "optionalQuery", + "doc": "optional query parameter", + "type": { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", + "correspondingMethodParams": [] + } + ] + } + ], + "clients": [ + { + "$id": "257", + "kind": "client", + "name": "SampleTypeSpecClient", + "namespace": "SampleTypeSpec", + "doc": "This is a sample typespec project.", + "methods": [ + { + "$id": "258", + "kind": "basic", + "name": "sayHi", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi", + "operation": { + "$id": "259", + "name": "sayHi", + "resourceName": "SampleTypeSpec", + "doc": "Return hi", + "accessibility": "public", + "parameters": [ + { + "$id": "260", + "name": "headParameter", + "nameInRequest": "head-parameter", + "type": { + "$id": "261", + "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": "262", + "name": "queryParameter", + "nameInRequest": "queryParameter", + "type": { + "$id": "263", + "kind": "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": "264", + "name": "optionalQuery", + "nameInRequest": "optionalQuery", + "type": { + "$id": "265", + "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": "266", + "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": "267", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/hello", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi", + "decorators": [] + }, + "parameters": [ + { + "$id": "268", + "name": "headParameter", + "nameInRequest": "head-parameter", + "type": { + "$id": "269", + "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": "270", + "name": "queryParameter", + "nameInRequest": "queryParameter", + "type": { + "$id": "271", + "kind": "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": "272", + "name": "optionalQuery", + "nameInRequest": "optionalQuery", + "type": { + "$id": "273", + "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": "274", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "654", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "373" + { + "$id": "275", + "kind": "basic", + "name": "helloAgain", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi again", + "operation": { + "$id": "276", + "name": "helloAgain", + "resourceName": "SampleTypeSpec", + "doc": "Return hi again", + "accessibility": "public", + "parameters": [ + { + "$id": "277", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "278", + "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": "279", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "280", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "281", + "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": "282", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "283", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "284", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "178" + }, + "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": "285", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "286", + "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": "287", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "288", + "name": "contentType", + "nameInRequest": "content-type", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "289", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "290", + "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": "291", + "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": "178" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "655", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } + { + "$id": "292", + "kind": "basic", + "name": "noContentType", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi again", + "operation": { + "$id": "293", + "name": "noContentType", + "resourceName": "SampleTypeSpec", + "doc": "Return hi again", + "accessibility": "public", + "parameters": [ + { + "$id": "294", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "295", + "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": "296", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "297", + "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": "298", + "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": "299", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "300", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "301", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "178" + }, + "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": "302", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "303", + "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": "304", + "name": "action", + "nameInRequest": "action", + "type": { + "$ref": "178" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "305", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "307", + "name": "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 + }, + { + "$id": "308", + "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": "178" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" + }, + { + "$id": "309", + "kind": "basic", + "name": "helloDemo2", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi in demo2", + "operation": { + "$id": "310", + "name": "helloDemo2", + "resourceName": "SampleTypeSpec", + "doc": "Return hi in demo2", + "accessibility": "public", + "parameters": [ + { + "$id": "311", + "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": "312", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/demoHi", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2", + "decorators": [] + }, + "parameters": [ + { + "$id": "313", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" + }, + { + "$id": "314", + "kind": "basic", + "name": "createLiteral", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Create with literal value", + "operation": { + "$id": "315", + "name": "createLiteral", + "resourceName": "SampleTypeSpec", + "doc": "Create with literal value", + "accessibility": "public", + "parameters": [ + { + "$id": "316", + "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": "317", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "318", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "319", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": "320", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "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": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "322", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" + }, + { + "$id": "323", + "kind": "basic", + "name": "helloLiteral", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Send literal parameters", + "operation": { + "$id": "324", + "name": "helloLiteral", + "resourceName": "SampleTypeSpec", + "doc": "Send literal parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "325", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "326", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$ref": "81" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "327", + "name": "p3", + "nameInRequest": "p3", + "type": { + "$ref": "83" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "328", + "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": "329", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": "330", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "331", + "name": "p2", + "nameInRequest": "p2", + "type": { + "$ref": "89" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "332", + "name": "p3", + "nameInRequest": "p3", + "type": { + "$ref": "91" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "333", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" + }, + { + "$id": "334", + "kind": "basic", + "name": "topAction", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "top level method", + "operation": { + "$id": "335", + "name": "topAction", + "resourceName": "SampleTypeSpec", + "doc": "top level method", + "accessibility": "public", + "parameters": [ + { + "$id": "336", + "name": "action", + "nameInRequest": "action", + "type": { + "$id": "337", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "338", + "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": "339", + "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": "340", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": "341", + "name": "action", + "nameInRequest": "action", + "type": { + "$id": "342", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "343", + "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": "344", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction" + }, + { + "$id": "345", + "kind": "basic", + "name": "topAction2", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "top level method2", + "operation": { + "$id": "346", + "name": "topAction2", + "resourceName": "SampleTypeSpec", + "doc": "top level method2", + "accessibility": "public", + "parameters": [ + { + "$id": "347", + "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": "348", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/top2", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction2", + "decorators": [] + }, + "parameters": [ + { + "$id": "349", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" + }, + { + "$id": "350", + "kind": "basic", + "name": "patchAction", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "top level patch", + "operation": { + "$id": "351", + "name": "patchAction", + "resourceName": "SampleTypeSpec", + "doc": "top level patch", + "accessibility": "public", + "parameters": [ + { + "$id": "352", + "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": "353", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "354", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "355", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": "356", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "357", + "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 + }, + { + "$id": "358", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" + }, + { + "$id": "359", + "kind": "basic", + "name": "anonymousBody", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "body parameter without body decorator", + "operation": { + "$id": "360", + "name": "anonymousBody", + "resourceName": "SampleTypeSpec", + "doc": "body parameter without body decorator", + "accessibility": "public", + "parameters": [ + { + "$id": "361", + "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": "362", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "363", + "name": "thing", + "nameInRequest": "thing", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "364", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": "365", + "name": "name", + "nameInRequest": "name", + "doc": "name of the Thing", + "type": { + "$id": "366", + "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": "367", + "name": "requiredUnion", + "nameInRequest": "requiredUnion", + "doc": "required Union", + "type": { + "$ref": "151" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "368", + "name": "requiredLiteralString", + "nameInRequest": "requiredLiteralString", + "doc": "required literal string", + "type": { + "$ref": "47" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "369", + "name": "requiredNullableString", + "nameInRequest": "requiredNullableString", + "doc": "required nullable string", + "type": { + "$ref": "158" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "370", + "name": "optionalNullableString", + "nameInRequest": "optionalNullableString", + "doc": "required optional string", + "type": { + "$ref": "161" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "371", + "name": "requiredLiteralInt", + "nameInRequest": "requiredLiteralInt", + "doc": "required literal int", + "type": { + "$ref": "49" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "372", + "name": "requiredLiteralFloat", + "nameInRequest": "requiredLiteralFloat", + "doc": "required literal float", + "type": { + "$ref": "51" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "373", + "name": "requiredLiteralBool", + "nameInRequest": "requiredLiteralBool", + "doc": "required literal bool", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "374", + "name": "optionalLiteralString", + "nameInRequest": "optionalLiteralString", + "doc": "optional literal string", + "type": { + "$ref": "55" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "375", + "name": "optionalLiteralInt", + "nameInRequest": "optionalLiteralInt", + "doc": "optional literal int", + "type": { + "$ref": "57" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "376", + "name": "optionalLiteralFloat", + "nameInRequest": "optionalLiteralFloat", + "doc": "optional literal float", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "377", + "name": "optionalLiteralBool", + "nameInRequest": "optionalLiteralBool", + "doc": "optional literal bool", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "378", + "name": "requiredBadDescription", + "nameInRequest": "requiredBadDescription", + "doc": "description with xml <|endoftext|>", + "type": { + "$id": "379", + "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": "380", + "name": "optionalNullableList", + "nameInRequest": "optionalNullableList", + "doc": "optional nullable collection", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "381", + "name": "requiredNullableList", + "nameInRequest": "requiredNullableList", + "doc": "required nullable collection", + "type": { + "$ref": "177" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "382", + "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 + }, + { + "$id": "383", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" + }, + { + "$id": "384", + "kind": "basic", + "name": "friendlyModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Model can have its friendly name", + "operation": { + "$id": "385", + "name": "friendlyModel", + "resourceName": "SampleTypeSpec", + "doc": "Model can have its friendly name", + "accessibility": "public", + "parameters": [ + { + "$id": "386", + "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": "387", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "388", + "name": "friend", + "nameInRequest": "friend", + "type": { + "$ref": "226" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "389", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "226" + }, + "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": "390", + "name": "name", + "nameInRequest": "name", + "doc": "name of the NotFriend", + "type": { + "$id": "391", + "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": "392", + "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 + }, + { + "$id": "393", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "123" + }, + "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": "SampleTypeSpec.friendlyModel" + }, + { + "$id": "394", + "kind": "basic", + "name": "addTimeHeader", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "operation": { + "$id": "395", + "name": "addTimeHeader", + "resourceName": "SampleTypeSpec", + "accessibility": "public", + "parameters": [ + { + "$id": "396", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "type": { + "$id": "397", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "398", + "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": "399", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader", + "decorators": [] + }, + "parameters": [ + { + "$id": "400", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "type": { + "$id": "401", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "402", + "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": "403", + "kind": "basic", + "name": "projectedNameModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Model can have its projected name", + "operation": { + "$id": "404", + "name": "projectedNameModel", + "resourceName": "SampleTypeSpec", + "doc": "Model can have its projected name", + "accessibility": "public", + "parameters": [ + { + "$id": "405", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "406", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "127" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "407", + "name": "renamedModel", + "nameInRequest": "renamedModel", + "type": { + "$ref": "229" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "408", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "229" + }, + "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": "409", + "name": "name", + "nameInRequest": "name", + "doc": "name of the ModelWithClientName", + "type": { + "$id": "410", + "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": "411", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "412", + "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": "229" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" + }, + { + "$id": "413", + "kind": "basic", + "name": "returnsAnonymousModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "return anonymous model", + "operation": { + "$id": "414", + "name": "returnsAnonymousModel", + "resourceName": "SampleTypeSpec", + "doc": "return anonymous model", + "accessibility": "public", + "parameters": [ + { + "$id": "415", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "416", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "232" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/returnsAnonymousModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "417", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "232" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" + }, + { + "$id": "418", + "kind": "basic", + "name": "getUnknownValue", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "get extensible enum", + "operation": { + "$id": "419", + "name": "getUnknownValue", + "resourceName": "SampleTypeSpec", + "doc": "get extensible enum", + "accessibility": "public", + "parameters": [ + { + "$id": "420", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "421", + "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": "422", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "131" + }, + "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": "423", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "421" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "131" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" + }, + { + "$id": "424", + "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": "425", + "name": "internalProtocol", + "resourceName": "SampleTypeSpec", + "doc": "When set protocol false and convenient true, then the protocol method should be internal", + "accessibility": "public", + "parameters": [ + { + "$id": "426", + "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": "427", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "428", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "429", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "147" + }, + "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": "430", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "431", + "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 + }, + { + "$id": "432", + "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": "147" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": false, + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" + }, + { + "$id": "433", + "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": "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", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "435", + "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": "436", + "kind": "basic", + "name": "headAsBoolean", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "head as boolean.", + "operation": { + "$id": "437", + "name": "headAsBoolean", + "resourceName": "SampleTypeSpec", + "doc": "head as boolean.", + "accessibility": "public", + "parameters": [ + { + "$id": "438", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "439", + "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": "440", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "HEAD", + "uri": "{sampleTypeSpecUrl}", + "path": "/headAsBoolean/{id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean", + "decorators": [] + }, + "parameters": [ + { + "$id": "441", + "name": "id", + "nameInRequest": "id", + "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 + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" + }, + { + "$id": "443", + "kind": "basic", + "name": "WithApiVersion", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Return hi again", + "operation": { + "$id": "444", + "name": "WithApiVersion", + "resourceName": "SampleTypeSpec", + "doc": "Return hi again", + "accessibility": "public", + "parameters": [ + { + "$id": "445", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "446", + "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": "447", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "type": { + "$id": "448", + "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": "449", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/WithApiVersion", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion", + "decorators": [] + }, + "parameters": [ + { + "$id": "450", + "name": "p1", + "nameInRequest": "p1", + "type": { + "$id": "451", + "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": "452", + "kind": "paging", + "name": "ListWithNextLink", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with nextlink", + "operation": { + "$id": "453", + "name": "ListWithNextLink", + "resourceName": "SampleTypeSpec", + "doc": "List things with nextlink", + "accessibility": "public", + "parameters": [ + { + "$id": "454", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "455", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "233" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/link", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", + "decorators": [] + }, + "parameters": [ + { + "$id": "456", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "235" + }, + "resultSegments": [ + "things" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink", + "pagingMetadata": { + "itemPropertySegments": [ + "things" + ], + "nextLink": { + "responseSegments": [ + "next" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "457", + "kind": "paging", + "name": "ListWithContinuationToken", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with continuation token", + "operation": { + "$id": "458", + "name": "ListWithContinuationToken", + "resourceName": "SampleTypeSpec", + "doc": "List things with continuation token", + "accessibility": "public", + "parameters": [ + { + "$id": "459", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "460", + "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": "461", + "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": "462", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "238" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{sampleTypeSpecUrl}", + "path": "/continuation", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", + "decorators": [] + }, + "parameters": [ + { + "$id": "463", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "464", + "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": "465", + "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": "235" + }, + "resultSegments": [ + "things" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken", + "pagingMetadata": { + "itemPropertySegments": [ + "things" + ], + "continuationToken": { + "parameter": { + "$ref": "459" + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "466", + "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": "467", + "name": "ListWithContinuationTokenHeaderResponse", + "resourceName": "SampleTypeSpec", + "doc": "List things with continuation token header response", + "accessibility": "public", + "parameters": [ + { + "$id": "468", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "469", + "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": "470", + "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": "471", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "242" + }, + "headers": [ + { + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "472", + "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": "473", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "474", + "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": "475", + "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": "235" + }, + "resultSegments": [ + "things" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse", + "pagingMetadata": { + "itemPropertySegments": [ + "things" + ], + "continuationToken": { + "parameter": { + "$ref": "468" + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + } + }, + { + "$id": "476", + "kind": "paging", + "name": "ListWithPaging", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "List things with paging", + "operation": { + "$id": "477", + "name": "ListWithPaging", + "resourceName": "SampleTypeSpec", + "doc": "List things with paging", + "accessibility": "public", + "parameters": [ + { + "$id": "478", + "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": "479", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "244" + }, + "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": "480", + "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": "235" + }, + "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": { + "$ref": "145" + }, + "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": "246" + }, + "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": "POST", + "uri": "{sampleTypeSpecUrl}", + "path": "/embeddedParameters", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters", + "decorators": [] + }, + "parameters": [ + { + "$id": "494", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "246" + }, + "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": "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": "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": "656", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "373" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "657", - "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": "658" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters" + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ] } - ], - "parameters": [ - { - "$id": "659", - "name": "sampleTypeSpecUrl", - "nameInRequest": "sampleTypeSpecUrl", - "type": { - "$id": "660", - "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": "661", - "apiKey": { - "$id": "662", - "name": "my-api-key", - "in": "header" } - } } 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..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 @@ -1,237 +1,224 @@ { - "$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": [ { - "$id": "5", - "kind": "property", - "name": "error", - "serializedName": "error", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "invalidContentType", + "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": "Authentication.ApiKey.InvalidAuth.error", - "serializationOptions": { - "$id": "7", - "json": { - "$id": "8", - "name": "error" - } - } } - ] - } - ], - "clients": [ - { - "$id": "9", - "kind": "client", - "name": "ApiKeyClient", - "namespace": "Authentication.ApiKey", - "doc": "Illustrates clients generated with ApiKey authentication.", - "methods": [ + ], + "models": [ { - "$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" - }, + "$id": "3", + "kind": "model", + "name": "InvalidAuth", + "namespace": "Authentication.ApiKey", + "crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "4", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "5", + "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": "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": "6", + "kind": "client", + "name": "ApiKeyClient", + "namespace": "Authentication.ApiKey", + "doc": "Illustrates clients generated with ApiKey authentication.", + "methods": [ + { + "$id": "7", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "8", + "name": "valid", + "resourceName": "ApiKey", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "9", + "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": "10", + "kind": "basic", + "name": "invalid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated.", + "operation": { + "$id": "11", + "name": "invalid", + "resourceName": "ApiKey", + "doc": "Check whether client is authenticated.", + "accessibility": "public", + "parameters": [ + { + "$id": "12", + "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": "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": "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": "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/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json index 22fb8f77093..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 @@ -1,238 +1,225 @@ { - "$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": [ { - "$id": "5", - "kind": "property", - "name": "error", - "serializedName": "error", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "invalidContentType", + "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": "Authentication.Http.Custom.InvalidAuth.error", - "serializationOptions": { - "$id": "7", - "json": { - "$id": "8", - "name": "error" - } - } } - ] - } - ], - "clients": [ - { - "$id": "9", - "kind": "client", - "name": "CustomClient", - "namespace": "Authentication.Http.Custom", - "doc": "Illustrates clients generated with generic HTTP auth.", - "methods": [ + ], + "models": [ { - "$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" - }, + "$id": "3", + "kind": "model", + "name": "InvalidAuth", + "namespace": "Authentication.Http.Custom", + "crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "4", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "5", + "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": "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": "6", + "kind": "client", + "name": "CustomClient", + "namespace": "Authentication.Http.Custom", + "doc": "Illustrates clients generated with generic HTTP auth.", + "methods": [ + { + "$id": "7", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "8", + "name": "valid", + "resourceName": "Custom", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "9", + "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": "10", + "kind": "basic", + "name": "invalid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated.", + "operation": { + "$id": "11", + "name": "invalid", + "resourceName": "Custom", + "doc": "Check whether client is authenticated.", + "accessibility": "public", + "parameters": [ + { + "$id": "12", + "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": "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": "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": "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..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 @@ -1,238 +1,225 @@ { - "$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": [ { - "$id": "5", - "kind": "property", - "name": "error", - "serializedName": "error", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "constant", + "name": "invalidContentType", + "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": "Authentication.OAuth2.InvalidAuth.error", - "serializationOptions": { - "$id": "7", - "json": { - "$id": "8", - "name": "error" - } - } } - ] - } - ], - "clients": [ - { - "$id": "9", - "kind": "client", - "name": "OAuth2Client", - "namespace": "Authentication.OAuth2", - "doc": "Illustrates clients generated with OAuth2 authentication.", - "methods": [ + ], + "models": [ { - "$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" - }, + "$id": "3", + "kind": "model", + "name": "InvalidAuth", + "namespace": "Authentication.OAuth2", + "crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "4", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "5", + "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": "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": "6", + "kind": "client", + "name": "OAuth2Client", + "namespace": "Authentication.OAuth2", + "doc": "Illustrates clients generated with OAuth2 authentication.", + "methods": [ + { + "$id": "7", + "kind": "basic", + "name": "valid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated", + "operation": { + "$id": "8", + "name": "valid", + "resourceName": "OAuth2", + "doc": "Check whether client is authenticated", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "9", + "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": "10", + "kind": "basic", + "name": "invalid", + "accessibility": "public", + "apiVersions": [], + "doc": "Check whether client is authenticated. Will return an invalid bearer error.", + "operation": { + "$id": "11", + "name": "invalid", + "resourceName": "OAuth2", + "doc": "Check whether client is authenticated. Will return an invalid bearer error.", + "accessibility": "public", + "parameters": [ + { + "$id": "12", + "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": "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": "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": "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/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 31d4aa1f778..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 @@ -1,3274 +1,3202 @@ { - "$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": { - "$ref": "71" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "109", - "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": "110", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "71" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "111" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray" - } - ], - "parameters": [ - { - "$id": "112", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "113", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "114", - "type": { - "$id": "115", - "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": "116", - "kind": "client", - "name": "Property", - "namespace": "Encode.Bytes.Property", - "methods": [ - { - "$id": "117", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "118", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "119", - "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": "120", - "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": "121", - "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": "122", - "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": "123", - "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": "124", - "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": "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 - } - ], - "response": { - "$id": "126", - "type": { - "$ref": "54" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.default" }, - { - "$id": "127", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "128", - "name": "base64", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "129", - "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": "130", - "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": "131", - "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": "132", - "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": "133", - "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": "134", - "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": "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 - } - ], - "response": { - "$id": "136", - "type": { - "$ref": "59" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64" }, - { - "$id": "137", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "138", - "name": "base64url", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "139", - "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": "140", - "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": "141", - "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": "142", - "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": "143", - "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": "144", - "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": "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 - } - ], - "response": { - "$id": "146", - "type": { - "$ref": "64" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url" }, - { - "$id": "147", - "kind": "basic", - "name": "base64urlArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "148", - "name": "base64urlArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "149", - "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": "150", - "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": "151", - "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": "152", - "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": "153", - "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": "154", - "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": "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 - } - ], - "response": { - "$id": "156", - "type": { - "$ref": "69" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray" - } - ], - "parameters": [ - { - "$id": "157", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "158", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "159", - "type": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property", - "apiVersions": [], - "parent": { - "$ref": "76" - } + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "Base64RequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "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": "161", - "kind": "client", - "name": "Header", - "namespace": "Encode.Bytes.Header", - "methods": [ - { - "$id": "162", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "163", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "164", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "165", - "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": "166", - "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": "49", + "kind": "constant", + "name": "base64urlContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "167", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "168", - "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": "169" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.default" }, - { - "$id": "170", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "171", - "name": "base64", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "172", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "173", - "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": "174", - "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": "51", + "kind": "constant", + "name": "Base64RequestContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "175", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "176", - "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": "177" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64" }, - { - "$id": "178", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "179", - "name": "base64url", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "180", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "181", - "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": "182", - "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": [ + "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": "183", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "184", - "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": "185" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url" - }, - { - "$id": "186", - "kind": "basic", - "name": "base64urlArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "187", - "name": "base64urlArray", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "188", + "$id": "54", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$ref": "71" + "$id": "55", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "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": "189", - "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": "190", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "71" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Encode.Bytes.DefaultBytesProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "191" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray" - } - ], - "parameters": [ - { - "$id": "192", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "193", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "194", - "type": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header", - "apiVersions": [], - "parent": { - "$ref": "76" - } + ] }, { - "$id": "196", - "kind": "client", - "name": "RequestBody", - "namespace": "Encode.Bytes.RequestBody", - "methods": [ - { - "$id": "197", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "198", - "name": "default", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "199", - "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": "200", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "201", - "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": "202", - "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": "203", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "204", - "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": "205", - "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": "206" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default" - }, - { - "$id": "207", - "kind": "basic", - "name": "octetStream", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "208", - "name": "octetStream", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "209", - "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": "210", + "$id": "57", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "211", - "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": "212", - "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": "213", - "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": "214", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "215", - "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": "216" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream" - }, - { - "$id": "217", - "kind": "basic", - "name": "customContentType", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "218", - "name": "customContentType", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "219", - "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": "220", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "221", - "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": "222", - "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": "223", - "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": "224", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "225", - "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": "226" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType" - }, - { - "$id": "227", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "228", - "name": "base64", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "229", - "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": "230", + "$id": "60", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "231", - "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": "232", - "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": "233", - "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": "234", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "235", - "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": "236" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64" - }, - { - "$id": "237", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "238", - "name": "base64url", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "239", - "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": "240", + ] + }, + { + "$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": "241", - "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": "242", - "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": "243", - "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": "244", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "245", - "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": "246" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url" - } - ], - "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": "Encode.Bytes.RequestBody", - "apiVersions": [], - "parent": { - "$ref": "76" - } - }, + ] + } + ], + "clients": [ { - "$id": "251", - "kind": "client", - "name": "ResponseBody", - "namespace": "Encode.Bytes.ResponseBody", - "methods": [ - { - "$id": "252", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "253", - "name": "default", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "254", - "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": "255", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "256", - "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": "257", - "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": "258", - "type": { - "$ref": "256" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default" - }, - { - "$id": "259", - "kind": "basic", - "name": "octetStream", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "260", - "name": "octetStream", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "261", - "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": "262", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "263", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "264", - "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": { + "$ref": "64" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "93", + "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": "94", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "64" + }, + "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": "265", - "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": "266", - "type": { - "$ref": "263" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream" - }, - { - "$id": "267", - "kind": "basic", - "name": "customContentType", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "268", - "name": "customContentType", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "269", - "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": "270", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Encode.Bytes.Query", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, + { + "$id": "95", + "kind": "client", + "name": "Property", + "namespace": "Encode.Bytes.Property", + "methods": [ + { + "$id": "96", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "97", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "98", + "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": "99", + "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": "100", + "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": "101", + "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": "102", + "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": "103", + "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": "104", + "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": "105", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "106", + "name": "base64", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "107", + "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": "108", + "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": "109", + "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": "110", + "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": "111", + "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": "112", + "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": "113", + "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": "114", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "115", + "name": "base64url", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "116", + "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": "117", + "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": "118", + "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": "119", + "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": "120", + "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": "121", + "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": "122", + "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": "123", + "kind": "basic", + "name": "base64urlArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "124", + "name": "base64urlArray", + "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": "13" + }, + "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": "15" + }, + "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": "62" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "128", + "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": "129", + "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": "130", + "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": "131", + "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": "271", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "272", - "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": "273", - "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": "274", - "type": { - "$ref": "271" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType" - }, - { - "$id": "275", - "kind": "basic", - "name": "base64", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "276", - "name": "base64", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "277", - "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": "278", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Encode.Bytes.Property", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, + { + "$id": "132", + "kind": "client", + "name": "Header", + "namespace": "Encode.Bytes.Header", + "methods": [ + { + "$id": "133", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "134", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "135", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "136", + "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": "137", + "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": "138", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "139", + "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": "140", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "141", + "name": "base64", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "142", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "143", + "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": "144", + "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": "145", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "146", + "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": "147", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "148", + "name": "base64url", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "149", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "150", + "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": "151", + "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": "152", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "153", + "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": "154", + "kind": "basic", + "name": "base64urlArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "155", + "name": "base64urlArray", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "156", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "64" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "157", + "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": "158", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "64" + }, + "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": "279", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "280", - "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": "281", - "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": "282", - "type": { - "$ref": "279" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64" - }, - { - "$id": "283", - "kind": "basic", - "name": "base64url", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "284", - "name": "base64url", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "285", - "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": "286", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Encode.Bytes.Header", + "apiVersions": [], + "parent": { + "$ref": "67" + } + }, + { + "$id": "159", + "kind": "client", + "name": "RequestBody", + "namespace": "Encode.Bytes.RequestBody", + "methods": [ + { + "$id": "160", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "161", + "name": "default", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "162", + "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": "163", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "164", + "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": "165", + "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": "166", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "167", + "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": "168", + "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": "169", + "kind": "basic", + "name": "octetStream", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "170", + "name": "octetStream", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "171", + "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": "172", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "173", + "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": "174", + "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": "175", + "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": "176", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "177", + "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": "178", + "kind": "basic", + "name": "customContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "179", + "name": "customContentType", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "180", + "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": "181", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "182", + "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": "183", + "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": "184", + "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": "185", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "186", + "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": "187", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "188", + "name": "base64", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "189", + "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": "190", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "191", + "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": "192", + "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": "193", + "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": "194", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "195", + "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": "196", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "197", + "name": "base64url", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "198", + "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": "199", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "200", + "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": "201", + "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": "202", + "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": "203", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "204", + "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": "287", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "288", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "headers": [ - { - "$id": "289", - "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": "290", - "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": "291", - "type": { - "$ref": "287" + "$id": "205", + "kind": "client", + "name": "ResponseBody", + "namespace": "Encode.Bytes.ResponseBody", + "methods": [ + { + "$id": "206", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "207", + "name": "default", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "208", + "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": "209", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "210", + "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": "211", + "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": "210" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default" + }, + { + "$id": "212", + "kind": "basic", + "name": "octetStream", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "213", + "name": "octetStream", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "214", + "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": "215", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "216", + "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": "217", + "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": "216" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream" + }, + { + "$id": "218", + "kind": "basic", + "name": "customContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "219", + "name": "customContentType", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "220", + "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": "221", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "222", + "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": "223", + "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": "222" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType" + }, + { + "$id": "224", + "kind": "basic", + "name": "base64", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "225", + "name": "base64", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "226", + "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": "227", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "228", + "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": "229", + "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": "228" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64" + }, + { + "$id": "230", + "kind": "basic", + "name": "base64url", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "231", + "name": "base64url", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "232", + "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": "233", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "234", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "235", + "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": "236", + "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": "234" + } + }, + "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": "292", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "293", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "294", - "type": { - "$id": "295", - "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 6b94ab216d5..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 @@ -1,2636 +1,2568 @@ { - "$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", - "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", + "$id": "10", + "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.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" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime", - "apiVersions": [], - "children": [ + }, { - "$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", - "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", - "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", + "$id": "11", + "kind": "constant", + "name": "rfc7231ContentType1", + "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": "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": "13", + "kind": "constant", + "name": "unixTimestampContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "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", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "48" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "104", - "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": "105", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "48" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "106" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray" - } - ], - "parameters": [ - { - "$id": "107", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "108", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "109", - "type": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Query", - "apiVersions": [], - "parent": { - "$ref": "55" - } + "value": "application/json", + "decorators": [] }, { - "$id": "111", - "kind": "client", - "name": "Property", - "namespace": "Encode.Datetime.Property", - "methods": [ - { - "$id": "112", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "113", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "114", - "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": "115", - "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": "116", - "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": "117", - "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", + "$id": "15", + "kind": "constant", + "name": "unixTimestampContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "118", - "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": "119", - "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": "120", - "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": "121", - "type": { - "$ref": "22" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.default" }, - { - "$id": "122", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "123", - "name": "rfc3339", - "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": "6" - }, - "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": "8" - }, - "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": "28" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "127", - "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", + "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": "128", - "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": "129", - "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": "130", - "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": "131", - "type": { - "$ref": "28" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339" }, - { - "$id": "132", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "133", - "name": "rfc7231", - "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": "10" - }, - "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": "12" - }, - "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": "34" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "137", - "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", + "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": "138", - "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": "139", - "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": "140", - "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": "141", - "type": { - "$ref": "34" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231" }, - { - "$id": "142", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "143", - "name": "unixTimestamp", - "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": "14" - }, - "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": "16" - }, - "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": "40" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "147", - "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": "148", - "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": "149", - "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 - }, + "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": "150", - "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": "151", - "type": { - "$ref": "40" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp" - }, - { - "$id": "152", - "kind": "basic", - "name": "unixTimestampArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "153", - "name": "unixTimestampArray", - "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": "18" - }, - "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": "20" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "156", - "name": "body", - "nameInRequest": "body", + "$id": "22", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$ref": "46" + "$id": "23", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "24", + "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": "157", - "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": "158", - "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": "159", - "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": "160", - "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": "161", - "type": { - "$ref": "46" + "crossLanguageDefinitionId": "Encode.Datetime.DefaultDatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray" - } - ], - "parameters": [ - { - "$id": "162", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "163", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "164", - "type": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property", - "apiVersions": [], - "parent": { - "$ref": "55" - } + ] }, { - "$id": "166", - "kind": "client", - "name": "Header", - "namespace": "Encode.Datetime.Header", - "methods": [ - { - "$id": "167", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "168", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "169", + "$id": "25", + "kind": "model", + "name": "Rfc3339DatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "26", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "170", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "27", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "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": "172", - "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": "173", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "174", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "176" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.default" - }, - { - "$id": "177", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "178", - "name": "rfc3339", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "179", + ] + }, + { + "$id": "29", + "kind": "model", + "name": "Rfc7231DatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "30", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "180", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "181", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "31", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "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": "182", - "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": "183", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "184", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "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 + "crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "186" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339" - }, - { - "$id": "187", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "188", - "name": "rfc7231", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "189", + ] + }, + { + "$id": "33", + "kind": "model", + "name": "UnixTimestampDatetimeProperty", + "namespace": "Encode.Datetime", + "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampDatetimeProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "34", + "kind": "property", "name": "value", - "nameInRequest": "value", + "serializedName": "value", "type": { - "$id": "190", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "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/rfc7231", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", - "decorators": [] - }, - "parameters": [ - { - "$id": "193", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "194", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "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.rfc7231" - }, - { - "$id": "197", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "198", - "name": "unixTimestamp", - "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": "unixTimestamp", - "wireType": { - "$id": "201", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$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/unix-timestamp", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", - "decorators": [] - }, - "parameters": [ - { - "$id": "203", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "204", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "205", - "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 + "crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampArrayDatetimeProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "206" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp" - }, - { - "$id": "207", - "kind": "basic", - "name": "unixTimestampArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "208", - "name": "unixTimestampArray", - "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": { - "$ref": "48" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "210", - "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": "211", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "212" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray" - } - ], - "parameters": [ - { - "$id": "213", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "214", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "215", - "type": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header", - "apiVersions": [], - "parent": { - "$ref": "55" - } - }, - { - "$id": "217", - "kind": "client", - "name": "ResponseHeader", - "namespace": "Encode.Datetime.ResponseHeader", - "methods": [ - { - "$id": "218", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "219", - "name": "default", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "220", - "statusCodes": [ - 204 - ], - "headers": [ - { - "$id": "221", - "name": "value", - "nameInResponse": "value", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$id": "222", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "223", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime", + "apiVersions": [], + "children": [ + { + "$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" + }, + { + "$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": { + "$ref": "39" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "85", + "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": "86", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "39" + }, + "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" } - } - ], - "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": "224" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default" - }, - { - "$id": "225", - "kind": "basic", - "name": "rfc3339", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "226", - "name": "rfc3339", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "227", - "statusCodes": [ - 204 ], - "headers": [ - { - "$id": "228", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "229", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "230", - "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": "231" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339" - }, - { - "$id": "232", - "kind": "basic", - "name": "rfc7231", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "233", - "name": "rfc7231", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "234", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Query", + "apiVersions": [], + "parent": { + "$ref": "44" + } + }, + { + "$id": "87", + "kind": "client", + "name": "Property", + "namespace": "Encode.Datetime.Property", + "methods": [ + { + "$id": "88", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "89", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "90", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "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": "3" + }, + "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": "21" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "93", + "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": "94", + "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": "95", + "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": "96", + "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": "97", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "98", + "name": "rfc3339", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "99", + "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": "100", + "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": "101", + "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": "102", + "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": "103", + "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": "104", + "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": "105", + "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": "106", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "107", + "name": "rfc7231", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "108", + "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": "109", + "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": "110", + "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": "111", + "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": "112", + "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": "113", + "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": "114", + "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": "115", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "116", + "name": "unixTimestamp", + "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": "13" + }, + "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": "15" + }, + "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": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "120", + "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": "121", + "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": "122", + "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": "123", + "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": "124", + "kind": "basic", + "name": "unixTimestampArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "125", + "name": "unixTimestampArray", + "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": "17" + }, + "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": "19" + }, + "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": "37" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "129", + "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": "130", + "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": "131", + "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": "132", + "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": "235", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "236", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "237", - "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": "238" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231" - }, - { - "$id": "239", - "kind": "basic", - "name": "unixTimestamp", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "240", - "name": "unixTimestamp", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "241", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Property", + "apiVersions": [], + "parent": { + "$ref": "44" + } + }, + { + "$id": "133", + "kind": "client", + "name": "Header", + "namespace": "Encode.Datetime.Header", + "methods": [ + { + "$id": "134", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "135", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "136", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "137", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "138", + "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": "139", + "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": "140", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "141", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "142", + "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": "143", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "144", + "name": "rfc3339", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "145", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "146", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "147", + "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": "148", + "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": "149", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "150", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "151", + "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": "152", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "153", + "name": "rfc7231", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "154", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "155", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "156", + "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": "157", + "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": "158", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "159", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "160", + "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": "161", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "162", + "name": "unixTimestamp", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "163", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "164", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "165", + "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": "166", + "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": "167", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "168", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "169", + "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": "170", + "kind": "basic", + "name": "unixTimestampArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "171", + "name": "unixTimestampArray", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "172", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "173", + "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": "174", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "39" + }, + "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": "242", - "name": "value", - "nameInResponse": "value", - "type": { - "$id": "243", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "244", - "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": "245" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp" - } - ], - "parameters": [ - { - "$id": "246", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "247", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "248", - "type": { - "$id": "249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Header", + "apiVersions": [], + "parent": { + "$ref": "44" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", - "apiVersions": [], - "parent": { - "$ref": "55" - } + { + "$id": "175", + "kind": "client", + "name": "ResponseHeader", + "namespace": "Encode.Datetime.ResponseHeader", + "methods": [ + { + "$id": "176", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "177", + "name": "default", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "178", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "179", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "180", + "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": "181", + "kind": "basic", + "name": "rfc3339", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "182", + "name": "rfc3339", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "183", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "184", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "185", + "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": "186", + "kind": "basic", + "name": "rfc7231", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "187", + "name": "rfc7231", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "188", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "189", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "190", + "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": "191", + "kind": "basic", + "name": "unixTimestamp", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "192", + "name": "unixTimestamp", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "193", + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "194", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "195", + "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" + } + ], + "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.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 cd6ed6f9743..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 @@ -1,2849 +1,2790 @@ { - "$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": [ - { - "$id": "130", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "124" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Encode.Duration.Property.DefaultDurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "131" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray" - } - ], - "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": "Encode.Duration.Query", - "apiVersions": [], - "parent": { - "$ref": "65" - } + ] }, { - "$id": "136", - "kind": "client", - "name": "Property", - "namespace": "Encode.Duration.Property", - "methods": [ - { - "$id": "137", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "138", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "139", - "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": "140", - "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": "141", - "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": "142", - "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": "143", - "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": "29", + "kind": "model", + "name": "ISO8601DurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "144", - "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": "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 - } - ], - "response": { - "$id": "146", - "type": { - "$ref": "26" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.default" - }, - { - "$id": "147", - "kind": "basic", - "name": "iso8601", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "148", - "name": "iso8601", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "149", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "30", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "150", - "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": "151", - "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": "152", - "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": "153", - "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": "154", - "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": "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 - } - ], - "response": { - "$id": "156", - "type": { - "$ref": "32" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601" - }, - { - "$id": "157", - "kind": "basic", - "name": "int32Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "158", - "name": "int32Seconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "159", - "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": "160", - "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": "161", - "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": "162", - "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": "163", - "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": "164", - "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": "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 - } - ], - "response": { - "$id": "166", - "type": { - "$ref": "38" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds" - }, - { - "$id": "167", - "kind": "basic", - "name": "floatSeconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "168", - "name": "floatSeconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "169", - "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": "170", - "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": "171", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "44" + "$id": "31", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "32", + "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": "172", - "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": "173", - "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": "174", - "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": "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 - } - ], - "response": { - "$id": "176", - "type": { - "$ref": "44" + "crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds" - }, - { - "$id": "177", - "kind": "basic", - "name": "float64Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "178", - "name": "float64Seconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "179", - "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": "180", - "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": "181", - "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": "182", - "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": "183", - "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": "184", - "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": "33", + "kind": "model", + "name": "Int32SecondsDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.Int32SecondsDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$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 - } - ], - "response": { - "$id": "186", - "type": { - "$ref": "50" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds" - }, - { - "$id": "187", - "kind": "basic", - "name": "floatSecondsArray", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "188", - "name": "floatSecondsArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "189", - "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": "190", - "name": "accept", - "nameInRequest": "Accept", + "$id": "34", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "191", - "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": "192", - "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": "193", - "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": "194", - "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": "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 - } - ], - "response": { - "$id": "196", - "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": "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": "Encode.Duration.Property", - "apiVersions": [], - "parent": { - "$ref": "65" - } + ] }, { - "$id": "201", - "kind": "client", - "name": "Header", - "namespace": "Encode.Duration.Header", - "methods": [ - { - "$id": "202", - "kind": "basic", - "name": "default", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "203", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "204", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "205", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "206", - "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": "207", - "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": "37", + "kind": "model", + "name": "FloatSecondsDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "208", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "209", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "210", - "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": "211" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.default" - }, - { - "$id": "212", - "kind": "basic", - "name": "iso8601", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "213", - "name": "iso8601", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "214", - "name": "duration", - "nameInRequest": "duration", + "$id": "38", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "215", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "39", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "40", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", "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": "217", - "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": "218", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "219", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "220", - "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 + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + } } - ], - "response": { - "$id": "221" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601" - }, - { - "$id": "222", - "kind": "basic", - "name": "iso8601Array", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "223", - "name": "iso8601Array", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "224", - "name": "duration", - "nameInRequest": "duration", + ] + }, + { + "$id": "41", + "kind": "model", + "name": "Float64SecondsDurationProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.Float64SecondsDurationProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "42", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "225", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "226", + "$id": "43", "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", + "name": "duration", + "encode": "seconds", "wireType": { - "$id": "227", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "228", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "229", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "44", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", "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": "230", - "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": "231", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$ref": "225" - }, - "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": "232" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array" - }, - { - "$id": "233", - "kind": "basic", - "name": "int32Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "234", - "name": "int32Seconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "235", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "236", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "237", - "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": "238", - "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": "45", + "kind": "model", + "name": "FloatSecondsDurationArrayProperty", + "namespace": "Encode.Duration.Property", + "crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ { - "$id": "239", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "240", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "241", - "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": { - "$id": "242" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds" - }, - { - "$id": "243", - "kind": "basic", - "name": "floatSeconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "244", - "name": "floatSeconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "name": "duration", - "nameInRequest": "duration", + "$id": "46", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "246", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "247", - "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": "248", - "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": "249", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "250", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "251", - "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": "252" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds" - }, - { - "$id": "253", - "kind": "basic", - "name": "float64Seconds", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "254", - "name": "float64Seconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "255", - "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": "256", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "257", - "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": { + "$ref": "102" + }, + "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": "258", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Encode.Duration.Query", + "apiVersions": [], + "parent": { + "$ref": "52" + } + }, + { + "$id": "109", + "kind": "client", + "name": "Property", + "namespace": "Encode.Duration.Property", + "methods": [ + { + "$id": "110", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "111", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "112", + "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": "113", + "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": "114", + "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": "115", + "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": "116", + "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": "117", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "25" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.default" + }, + { + "$id": "119", + "kind": "basic", + "name": "iso8601", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "120", + "name": "iso8601", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "121", + "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": "122", + "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": "123", + "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": "124", + "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": "125", + "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": "126", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601" + }, + { + "$id": "128", + "kind": "basic", + "name": "int32Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "129", + "name": "int32Seconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "130", + "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": "131", + "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": "132", + "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": "133", + "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": "134", + "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": "135", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "33" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds" + }, + { + "$id": "137", + "kind": "basic", + "name": "floatSeconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "138", + "name": "floatSeconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$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": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "141", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "37" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "142", + "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": "143", + "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": "144", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "37" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds" + }, + { + "$id": "146", + "kind": "basic", + "name": "float64Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "147", + "name": "float64Seconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "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": "149", + "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": "150", + "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": "151", + "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": "152", + "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": "153", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "41" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds" + }, + { + "$id": "155", + "kind": "basic", + "name": "floatSecondsArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "156", + "name": "floatSecondsArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "157", + "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": "158", + "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": "159", + "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": "160", + "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": "161", + "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": "162", + "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": "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 + } + ], + "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": "259", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "260", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "261", - "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": "164", + "kind": "client", + "name": "Header", + "namespace": "Encode.Duration.Header", + "methods": [ + { + "$id": "165", + "kind": "basic", + "name": "default", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "166", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "167", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "168", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "169", + "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": "170", + "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": "171", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "172", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "173", + "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": "174", + "kind": "basic", + "name": "iso8601", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "175", + "name": "iso8601", + "resourceName": "Header", + "accessibility": "public", + "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 + } + ], + "responses": [ + { + "$id": "179", + "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": "180", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "181", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "182", + "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": "183", + "kind": "basic", + "name": "iso8601Array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "184", + "name": "iso8601Array", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "185", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "186", + "kind": "array", + "name": "Array2", + "valueType": { + "$id": "187", + "kind": "duration", + "name": "Iso8601Duration", + "encode": "ISO8601", + "wireType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", + "baseType": { + "$id": "189", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "190", + "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": "191", + "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": "192", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$ref": "186" + }, + "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": "193", + "kind": "basic", + "name": "int32Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "194", + "name": "int32Seconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "195", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "196", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "197", + "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": "198", + "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": "199", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "200", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "201", + "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": "202", + "kind": "basic", + "name": "floatSeconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "203", + "name": "floatSeconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "204", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "205", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "206", + "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": "207", + "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": "208", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "209", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "210", + "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": "211", + "kind": "basic", + "name": "float64Seconds", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "212", + "name": "float64Seconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "213", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "214", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "215", + "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": "216", + "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": "217", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "218", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "219", + "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": "262" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds" - } - ], - "parameters": [ - { - "$id": "263", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "264", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "265", - "type": { - "$id": "266", - "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 a98619dddc3..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 @@ -1,552 +1,529 @@ { - "$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": { - "$ref": "11" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "15" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi" - }, - { - "$id": "16", - "kind": "basic", - "name": "ssv", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "17", - "name": "ssv", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "18", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "11" + "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": "19", - "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": "20", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "21" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv" - }, - { - "$id": "22", - "kind": "basic", - "name": "pipes", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "23", - "name": "pipes", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "24", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "arraySerializationDelimiter": "|", - "isRequired": true, - "kind": "Method", + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "apiVersions": [], + "children": [ + { + "$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": { + "$ref": "6" + }, + "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": "10", + "kind": "basic", + "name": "ssv", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "11", + "name": "ssv", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "12", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": " ", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "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": "14", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "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": "15", + "kind": "basic", + "name": "pipes", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "16", + "name": "pipes", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "17", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": "|", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "18", + "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": "19", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "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": "20", + "kind": "basic", + "name": "csv", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "21", + "name": "csv", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "22", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "location": "Query", + "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/csv", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", + "decorators": [] + }, + "parameters": [ + { + "$id": "24", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "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" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "apiVersions": [], + "parent": { + "$ref": "1" + } + }, + { "$id": "25", - "statusCodes": [ - 204 + "kind": "client", + "name": "Header", + "namespace": "Parameters.CollectionFormat.Header", + "methods": [ + { + "$id": "26", + "kind": "basic", + "name": "csv", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "27", + "name": "csv", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "28", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "29", + "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": "30", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "6" + }, + "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" + } ], - "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": "26", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "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.pipes" - }, - { - "$id": "28", - "kind": "basic", - "name": "csv", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "29", - "name": "csv", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "30", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "31", - "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": "GET", - "uri": "{endpoint}", - "path": "/parameters/collection-format/query/csv", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", - "decorators": [] - }, - "parameters": [ - { - "$id": "32", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "location": "Query", - "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": "Parameters.CollectionFormat.Query.csv" - } - ], - "parameters": [ - { - "$id": "34", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "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", - "defaultValue": { - "$id": "36", - "type": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", - "apiVersions": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "38", - "kind": "client", - "name": "Header", - "namespace": "Parameters.CollectionFormat.Header", - "methods": [ - { - "$id": "39", - "kind": "basic", - "name": "csv", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "40", - "name": "csv", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "41", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "42", - "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": "43", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "apiVersions": [], + "parent": { + "$ref": "1" + } } - ], - "response": { - "$id": "44" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv" - } - ], - "parameters": [ - { - "$id": "45", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "46", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "47", - "type": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "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 da2e041feda..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 @@ -1,2450 +1,2395 @@ { - "$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", - "type": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "100", - "name": "testHeader", - "nameInRequest": "test-header", + "serializedName": "name", "type": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "27", + "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 - } - ], - "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", - "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", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "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", - "type": { - "$id": "157", - "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": "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", - "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", + "$id": "37", + "kind": "property", + "name": "optionalInt", + "serializedName": "optionalInt", + "doc": "optional int", "type": { - "$ref": "35" + "$id": "38", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "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", + "$id": "39", + "kind": "property", + "name": "requiredIntList", + "serializedName": "requiredIntList", + "doc": "required int", "type": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$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": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "177", - "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": "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 - }, - { - "$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 + "crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredIntList", + "serializationOptions": { + "json": { + "name": "requiredIntList" + } + } }, { - "$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", - "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", + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, "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": { - "$ref": "55" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, { - "$id": "206", - "name": "optionalStringList", - "nameInRequest": "optionalStringList", - "doc": "optional string", - "type": { - "$ref": "60" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "207", - "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": "208" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters" - }, - { - "$id": "209", - "kind": "basic", - "name": "spreadParameterWithInnerAlias", - "accessibility": "public", - "apiVersions": [], - "doc": "spread an alias with contains another alias property as body.", - "operation": { - "$id": "210", - "name": "spreadParameterWithInnerAlias", - "resourceName": "Alias", - "doc": "spread an alias with contains another alias property as body.", - "accessibility": "public", - "parameters": [ - { - "$id": "211", - "name": "id", - "nameInRequest": "id", + "$id": "48", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "age of the Thing", "type": { - "$id": "212", - "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": "213", - "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": "214", - "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": "215", - "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": "216", - "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": "217", - "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": "218", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "219", - "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": "220", - "name": "name", - "nameInRequest": "name", - "doc": "name of the Thing", - "type": { - "$id": "221", - "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": "222", - "name": "age", - "nameInRequest": "age", - "doc": "age of the Thing", - "type": { - "$id": "223", - "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": "224", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "225", - "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": "226", - "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": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "167", + "name": "optionalStringList", + "nameInRequest": "optionalStringList", + "doc": "optional string", + "type": { + "$ref": "43" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "168", + "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": "169", + "kind": "basic", + "name": "spreadParameterWithInnerAlias", + "accessibility": "public", + "apiVersions": [], + "doc": "spread an alias with contains another alias property as body.", + "operation": { + "$id": "170", + "name": "spreadParameterWithInnerAlias", + "resourceName": "Alias", + "doc": "spread an alias with contains another alias property as body.", + "accessibility": "public", + "parameters": [ + { + "$id": "171", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "172", + "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": "173", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "174", + "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": "175", + "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": "176", + "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": "177", + "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": "178", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "179", + "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": "180", + "name": "name", + "nameInRequest": "name", + "doc": "name of the Thing", + "type": { + "$id": "181", + "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": "182", + "name": "age", + "nameInRequest": "age", + "doc": "age of the Thing", + "type": { + "$id": "183", + "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": "184", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "185", + "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": "186", + "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": "227" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias" - } - ], - "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": "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 b8be99cf8fc..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 @@ -1,1136 +1,1094 @@ { - "$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", + "$id": "1", + "kind": "constant", + "name": "createResourceContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$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.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": "3", + "kind": "constant", + "name": "createResourceContentType1", + "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": "4", + "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": "5", + "kind": "constant", + "name": "UpdateResourceRequestContentType", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "30" + "$id": "6", + "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.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", + "$id": "7", + "kind": "constant", + "name": "updateResourceContentType", + "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": "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", + "$id": "9", + "kind": "constant", + "name": "UpdateResourceRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "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.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": "11", + "kind": "constant", + "name": "UpdateResourceRequestContentType2", + "namespace": "", + "usage": "None", "valueType": { - "$id": "58", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "12", + "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": { - "$ref": "28" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.map", - "serializationOptions": { - "$id": "67", - "json": { - "$id": "68", - "name": "map" - } - } - }, - { - "$id": "69", - "kind": "property", - "name": "array", - "serializedName": "array", - "type": { - "$ref": "42" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.array", - "serializationOptions": { - "$id": "70", - "json": { - "$id": "71", - "name": "array" - } - } }, { - "$id": "72", - "kind": "property", - "name": "intValue", - "serializedName": "intValue", - "type": { - "$id": "73", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$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.intValue", - "serializationOptions": { - "$id": "74", - "json": { - "$id": "75", - "name": "intValue" - } - } }, { - "$id": "76", - "kind": "property", - "name": "floatValue", - "serializedName": "floatValue", - "type": { - "$id": "77", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "15", + "kind": "constant", + "name": "UpdateResourceRequestContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "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.floatValue", - "serializationOptions": { - "$id": "78", - "json": { - "$id": "79", - "name": "floatValue" - } - } - }, - { - "$id": "80", - "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": "81", - "json": { - "$id": "82", - "name": "innerModel" - } - } - }, - { - "$id": "83", - "kind": "property", - "name": "intArray", - "serializedName": "intArray", - "type": { - "$ref": "57" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intArray", - "serializationOptions": { - "$id": "84", - "json": { - "$id": "85", - "name": "intArray" - } - } } - ] - } - ], - "clients": [ - { - "$id": "86", - "kind": "client", - "name": "JsonMergePatchClient", - "namespace": "Payload.JsonMergePatch", - "doc": "Test for merge-patch+json content-type", - "methods": [ + ], + "models": [ { - "$id": "87", - "kind": "basic", - "name": "createResource", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: application/merge-patch+json with required body", - "operation": { - "$id": "88", - "name": "createResource", - "resourceName": "JsonMergePatch", - "doc": "Test content-type: application/merge-patch+json with required body", - "accessibility": "public", - "parameters": [ - { - "$id": "89", - "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" + } + } + }, + { + "$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": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "90", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "4" + { + "$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": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "91", - "name": "body", - "nameInRequest": "body", - "type": { - "$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" + } + } }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "92", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" + { + "$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" + } + } }, - "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": "93", - "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": "94", - "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": "95", - "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": "96", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource" + { + "$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": "97", - "kind": "basic", - "name": "updateResource", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: application/merge-patch+json with required body", - "operation": { - "$id": "98", - "name": "updateResource", - "resourceName": "JsonMergePatch", - "doc": "Test content-type: application/merge-patch+json with required body", - "accessibility": "public", - "parameters": [ - { - "$id": "99", - "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": "100", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "8" + { + "$id": "43", + "kind": "property", + "name": "map", + "serializedName": "map", + "type": { + "$ref": "23" + }, + "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": "101", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" + { + "$id": "44", + "kind": "property", + "name": "array", + "serializedName": "array", + "type": { + "$ref": "31" + }, + "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": "102", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" + { + "$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.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": "103", - "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": "104", - "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": "105", - "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": "106", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource" - }, - { - "$id": "107", - "kind": "basic", - "name": "updateOptionalResource", - "accessibility": "public", - "apiVersions": [], - "doc": "Test content-type: application/merge-patch+json with optional body", - "operation": { - "$id": "108", - "name": "updateOptionalResource", - "resourceName": "JsonMergePatch", - "doc": "Test content-type: application/merge-patch+json with optional body", - "accessibility": "public", - "parameters": [ - { - "$id": "109", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$ref": "12" + { + "$id": "47", + "kind": "property", + "name": "floatValue", + "serializedName": "floatValue", + "type": { + "$id": "48", + "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": "110", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "14" + { + "$id": "49", + "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": "111", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" + { + "$id": "50", + "kind": "property", + "name": "intArray", + "serializedName": "intArray", + "type": { + "$ref": "38" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intArray", + "serializationOptions": { + "json": { + "name": "intArray" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "51", + "kind": "client", + "name": "JsonMergePatchClient", + "namespace": "Payload.JsonMergePatch", + "doc": "Test for merge-patch+json content-type", + "methods": [ + { + "$id": "52", + "kind": "basic", + "name": "createResource", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: application/merge-patch+json with required body", + "operation": { + "$id": "53", + "name": "createResource", + "resourceName": "JsonMergePatch", + "doc": "Test content-type: application/merge-patch+json with required body", + "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": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "3" + }, + "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": "17" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "57", + "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": "58", + "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": "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 + }, + { + "$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 + } + ], + "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": "112", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" + { + "$id": "61", + "kind": "basic", + "name": "updateResource", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: application/merge-patch+json with required body", + "operation": { + "$id": "62", + "name": "updateResource", + "resourceName": "JsonMergePatch", + "doc": "Test content-type: application/merge-patch+json with required body", + "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": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "7" + }, + "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": "40" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "66", + "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": "67", + "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": "68", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "17" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource" }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$id": "70", + "kind": "basic", + "name": "updateOptionalResource", + "accessibility": "public", + "apiVersions": [], + "doc": "Test content-type: application/merge-patch+json with optional body", + "operation": { + "$id": "71", + "name": "updateOptionalResource", + "resourceName": "JsonMergePatch", + "doc": "Test content-type: application/merge-patch+json with optional body", + "accessibility": "public", + "parameters": [ + { + "$id": "72", + "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": "73", + "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": "74", + "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": "75", + "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": "76", + "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": "77", + "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": "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 + } + ], + "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": "113", - "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": "114", - "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": "115", - "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": "116", - "type": { - "$ref": "18" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource" - } - ], - "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": "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 a6606a51db7..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 @@ -1,1591 +1,1541 @@ { - "$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", + "$id": "3", + "kind": "constant", + "name": "requestQueryResponseBodyContentType", + "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": "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": { - "$ref": "14" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous.pets", - "serializationOptions": { - "$id": "32", - "json": { - "$id": "33", - "name": "pets" - } - } }, { - "$id": "34", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "5", + "kind": "constant", + "name": "requestHeaderResponseBodyContentType", + "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": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "36", - "json": { - "$id": "37", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "38", - "kind": "model", - "name": "RequestHeaderResponseBodyResponse", - "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "39", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$ref": "14" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.pets", - "serializationOptions": { - "$id": "40", - "json": { - "$id": "41", - "name": "pets" - } - } }, { - "$id": "42", - "kind": "property", - "name": "nextToken", - "serializedName": "nextToken", - "type": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "7", + "kind": "constant", + "name": "requestQueryResponseHeaderContentType", + "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": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.nextToken", - "serializationOptions": { - "$id": "44", - "json": { - "$id": "45", - "name": "nextToken" - } - } - } - ] - }, - { - "$id": "46", - "kind": "model", - "name": "RequestQueryResponseHeaderResponse", - "namespace": "", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "47", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$ref": "14" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "requestQueryResponseHeader.Response.anonymous.pets", - "serializationOptions": { - "$id": "48", - "json": { - "$id": "49", - "name": "pets" - } - } - } - ] - }, - { - "$id": "50", - "kind": "model", - "name": "RequestHeaderResponseHeaderResponse", - "namespace": "", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ - { - "$id": "51", - "kind": "property", - "name": "pets", - "serializedName": "pets", - "type": { - "$ref": "14" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "requestHeaderResponseHeader.Response.anonymous.pets", - "serializationOptions": { - "$id": "52", - "json": { - "$id": "53", - "name": "pets" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "54", - "kind": "client", - "name": "PageableClient", - "namespace": "Payload.Pageable", - "doc": "Test for pageable payload.", - "methods": [], - "parameters": [ + }, { - "$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": "9", + "kind": "constant", + "name": "requestHeaderResponseHeaderContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$id": "59", - "kind": "client", - "name": "ServerDrivenPagination", - "namespace": "Payload.Pageable.ServerDrivenPagination", - "methods": [ - { - "$id": "60", - "kind": "paging", - "name": "link", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "61", - "name": "link", - "resourceName": "ServerDrivenPagination", - "accessibility": "public", - "parameters": [ - { - "$id": "62", - "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": "63", - "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": "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 - } - ], - "response": { - "$id": "65", - "type": { - "$ref": "14" - }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", - "pagingMetadata": { - "$id": "66", - "itemPropertySegments": [ - "pets" - ], - "nextLink": { - "$id": "67", - "responseSegments": [ - "next" - ], - "responseLocation": "Body" - } - } - } - ], - "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" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", - "apiVersions": [], - "parent": { - "$ref": "54" - }, - "children": [ - { - "$id": "72", - "kind": "client", - "name": "ContinuationToken", - "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "methods": [ { - "$id": "73", - "kind": "paging", - "name": "requestQueryResponseBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "74", - "name": "requestQueryResponseBody", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "75", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "76", - "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": "77", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "78", - "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": "79", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "80", - "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": "81", - "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": "82", - "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": "83", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "84", - "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": "85", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "86", - "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": "87", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "88", - "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": "89", - "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": "90", + } + ] + }, + { + "$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": { - "$ref": "14" + "$ref": "13" }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", - "pagingMetadata": { - "$id": "91", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "92", - "parameter": { - "$ref": "75" - }, - "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": "93", - "kind": "paging", - "name": "requestHeaderResponseBody", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "94", - "name": "requestHeaderResponseBody", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "name": "token", - "nameInRequest": "token", - "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": "foo", - "nameInRequest": "foo", - "type": { - "$id": "98", - "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": "99", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "100", - "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": "101", - "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": "102", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "38" - }, - "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": "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", + "$id": "23", + "kind": "property", + "name": "nextToken", + "serializedName": "nextToken", + "type": { + "$id": "24", "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": "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": "110", + } + ] + }, + { + "$id": "25", + "kind": "model", + "name": "RequestHeaderResponseBodyResponse", + "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "26", + "kind": "property", + "name": "pets", + "serializedName": "pets", "type": { - "$ref": "14" + "$ref": "13" }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", - "pagingMetadata": { - "$id": "111", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "112", - "parameter": { - "$ref": "95" - }, - "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": "113", - "kind": "paging", - "name": "requestQueryResponseHeader", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "114", - "name": "requestQueryResponseHeader", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "115", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "116", - "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": "117", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "118", - "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": "119", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "120", - "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": "121", - "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": "122", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "46" - }, - "headers": [ - { - "$id": "123", - "name": "nextToken", - "nameInResponse": "next-token", - "type": { - "$id": "124", - "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": "125", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "126", - "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": "127", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "128", + "$id": "27", + "kind": "property", + "name": "nextToken", + "serializedName": "nextToken", + "type": { + "$id": "28", "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": "129", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "130", - "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 + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.Response.anonymous.nextToken", + "serializationOptions": { + "json": { + "name": "nextToken" + } + } + } + ] + }, + { + "$id": "29", + "kind": "model", + "name": "RequestQueryResponseHeaderResponse", + "namespace": "", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "30", + "kind": "property", + "name": "pets", + "serializedName": "pets", + "type": { + "$ref": "13" }, - { - "$id": "131", - "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": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "requestQueryResponseHeader.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } } - ], - "response": { - "$id": "132", + } + ] + }, + { + "$id": "31", + "kind": "model", + "name": "RequestHeaderResponseHeaderResponse", + "namespace": "", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "32", + "kind": "property", + "name": "pets", + "serializedName": "pets", "type": { - "$ref": "14" + "$ref": "13" }, - "resultSegments": [ - "pets" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", - "pagingMetadata": { - "$id": "133", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "134", - "parameter": { - "$ref": "115" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "requestHeaderResponseHeader.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } } - } - }, + } + ] + } + ], + "clients": [ + { + "$id": "33", + "kind": "client", + "name": "PageableClient", + "namespace": "Payload.Pageable", + "doc": "Test for pageable payload.", + "methods": [], + "parameters": [ { - "$id": "135", - "kind": "paging", - "name": "requestHeaderResponseHeader", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "136", - "name": "requestHeaderResponseHeader", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "137", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "138", - "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": "139", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "140", - "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": "141", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "142", - "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": "143", - "name": "accept", - "nameInRequest": "Accept", + "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": { - "$ref": "10" + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable", + "apiVersions": [], + "children": [ + { + "$id": "34", + "kind": "client", + "name": "ServerDrivenPagination", + "namespace": "Payload.Pageable.ServerDrivenPagination", + "methods": [ + { + "$id": "35", + "kind": "paging", + "name": "link", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "36", + "name": "link", + "resourceName": "ServerDrivenPagination", + "accessibility": "public", + "parameters": [ + { + "$id": "37", + "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": "38", + "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": "39", + "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": "13" + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "nextLink": { + "responseSegments": [ + "next" + ], + "responseLocation": "Body" + } + } + } ], - "responses": [ - { - "$id": "144", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "50" - }, - "headers": [ - { - "$id": "145", - "name": "nextToken", - "nameInResponse": "next-token", + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "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": "/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": "147", - "name": "token", - "nameInRequest": "token", - "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": "foo", - "nameInRequest": "foo", - "type": { - "$id": "150", - "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": "151", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "152", - "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": "153", - "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": "154", - "type": { - "$ref": "14" + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", + "apiVersions": [], + "parent": { + "$ref": "33" }, - "resultSegments": [ - "pets" + "children": [ + { + "$id": "40", + "kind": "client", + "name": "ContinuationToken", + "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "methods": [ + { + "$id": "41", + "kind": "paging", + "name": "requestQueryResponseBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "42", + "name": "requestQueryResponseBody", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "43", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "44", + "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": "45", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "46", + "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": "47", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "48", + "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": "49", + "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": "50", + "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": "51", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "52", + "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": "53", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "54", + "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": "55", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "56", + "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": "57", + "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" + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "43" + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "58", + "kind": "paging", + "name": "requestHeaderResponseBody", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "59", + "name": "requestHeaderResponseBody", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "60", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "61", + "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": "62", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "63", + "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": "64", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "65", + "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": "66", + "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": "67", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "25" + }, + "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": "68", + "name": "token", + "nameInRequest": "token", + "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": "foo", + "nameInRequest": "foo", + "type": { + "$id": "71", + "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": "72", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "73", + "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": "74", + "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": "13" + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "60" + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "75", + "kind": "paging", + "name": "requestQueryResponseHeader", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "76", + "name": "requestQueryResponseHeader", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "77", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "78", + "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": "79", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "80", + "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": "81", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "82", + "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": "83", + "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": "84", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [ + { + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "85", + "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": "86", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "87", + "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": "88", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "89", + "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": "90", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "91", + "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": "92", + "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": "13" + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "77" + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + } + }, + { + "$id": "93", + "kind": "paging", + "name": "requestHeaderResponseHeader", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "94", + "name": "requestHeaderResponseHeader", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "token", + "nameInRequest": "token", + "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": "foo", + "nameInRequest": "foo", + "type": { + "$id": "98", + "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": "99", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "100", + "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": "101", + "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": "102", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "31" + }, + "headers": [ + { + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "103", + "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": "104", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "105", + "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": "106", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "107", + "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": "108", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "109", + "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": "110", + "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": "13" + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "parameter": { + "$ref": "95" + }, + "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": "34" + } + } ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", - "pagingMetadata": { - "$id": "155", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "156", - "parameter": { - "$ref": "137" - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" - } - } - } - ], - "parameters": [ - { - "$id": "157", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "158", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "159", - "type": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "apiVersions": [], - "parent": { - "$ref": "59" - } - } - ] + ] } - ] - } - ] + ] } 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/routes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json index 5a395102d41..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 @@ -1,4689 +1,4504 @@ { - "$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": { - "$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": "1", + "kind": "client", + "name": "RoutesClient", + "namespace": "Routes", + "doc": "Define scenario in building the http route/uri", + "methods": [ { - "$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", + "$id": "2", + "kind": "basic", + "name": "fixed", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3", + "name": "fixed", + "resourceName": "Routes", "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 - } - ], + "parameters": [], "responses": [ - { - "$id": "357", - "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": "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", + "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": "368", + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$id": "369", - "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": "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": [ + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes", + "apiVersions": [], + "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": [] + "$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": "380", - "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": "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" + "$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": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "387", - "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": "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 + "$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": [] + }, + "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": "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", + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "86" + "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": "393", - "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": { + "$ref": "54" + }, + "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": "58", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "59", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "60", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "61", + "kind": "dict", + "keyType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "63", + "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": "64", + "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": "65", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "66", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.SimpleExpansion.Explode", + "methods": [ + { + "$id": "67", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "68", + "name": "primitive", + "resourceName": "Explode", + "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": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "71", + "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": "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": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive" + }, + { + "$id": "74", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "75", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "76", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "77", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", + "decorators": [] + }, + "parameters": [ + { + "$id": "78", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "79", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "80", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "81", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "82", + "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": "83", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "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" + "$id": "84", + "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" + }, + "children": [ + { + "$id": "85", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.PathExpansion.Standard", + "methods": [ + { + "$id": "86", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "87", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "88", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "89", + "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": "90", + "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": "91", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "92", + "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": "93", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "94", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Path", + "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": "/routes/path/path/standard/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", + "decorators": [] + }, + "parameters": [ + { + "$id": "97", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "98", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "99", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "100", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "101", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", + "decorators": [] + }, + "parameters": [ + { + "$id": "102", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "84" + } + }, + { + "$id": "103", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.PathExpansion.Explode", + "methods": [ + { + "$id": "104", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "105", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "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": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "108", + "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": "109", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "110", + "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": "111", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "112", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "113", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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/path/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", + "decorators": [] + }, + "parameters": [ + { + "$id": "115", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "116", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "117", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "118", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "119", + "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": "120", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "84" + } + } + ] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", - "apiVersions": [], - "parent": { - "$ref": "370" - } + { + "$id": "121", + "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" + }, + "children": [ + { + "$id": "122", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.LabelExpansion.Standard", + "methods": [ + { + "$id": "123", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "124", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "125", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "127", + "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": "128", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "129", + "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": "130", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "131", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "132", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "133", + "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": "134", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "135", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "136", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "137", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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/label/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", + "decorators": [] + }, + "parameters": [ + { + "$id": "139", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "121" + } + }, + { + "$id": "140", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.LabelExpansion.Explode", + "methods": [ + { + "$id": "141", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "142", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "143", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "144", + "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": "145", + "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": "146", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive" + }, + { + "$id": "148", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "149", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "150", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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/label/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", + "decorators": [] + }, + "parameters": [ + { + "$id": "152", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "153", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "154", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "155", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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/label/explode/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", + "decorators": [] + }, + "parameters": [ + { + "$id": "157", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "121" + } + } + ] + }, + { + "$id": "158", + "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": "159", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.MatrixExpansion.Standard", + "methods": [ + { + "$id": "160", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "161", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "162", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "163", + "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": "164", + "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": "165", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "166", + "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": "167", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "168", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "169", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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/matrix/standard/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", + "decorators": [] + }, + "parameters": [ + { + "$id": "171", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "172", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "173", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "174", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Path", + "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": "/routes/path/matrix/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", + "decorators": [] + }, + "parameters": [ + { + "$id": "176", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "158" + } + }, + { + "$id": "177", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.MatrixExpansion.Explode", + "methods": [ + { + "$id": "178", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "179", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "180", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "181", + "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": "182", + "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": "183", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "184", + "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": "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": { + "$ref": "54" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "188", + "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": "189", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "190", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "191", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "192", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "193", + "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": "194", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "158" + } + } + ] + } + ] }, { - "$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": [] + "$id": "195", + "kind": "client", + "name": "QueryParameters", + "namespace": "Routes.QueryParameters", + "methods": [ + { + "$id": "196", + "kind": "basic", + "name": "templateOnly", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "197", + "name": "templateOnly", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "198", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "199", + "kind": "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": "200", + "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": "405", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "201", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "202", + "kind": "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": "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 + "$id": "203", + "kind": "basic", + "name": "explicit", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "204", + "name": "explicit", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "205", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "206", + "kind": "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": "207", + "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": "208", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "209", + "kind": "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.explicit" + }, + { + "$id": "210", + "kind": "basic", + "name": "annotationOnly", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "211", + "name": "annotationOnly", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "212", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "213", + "kind": "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": "214", + "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": "215", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "216", + "kind": "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": "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", + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "78" + "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": "217", + "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": "412", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "apiVersions": [], + "parent": { + "$ref": "195" + }, + "children": [ + { + "$id": "218", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryExpansion.Standard", + "methods": [ + { + "$id": "219", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "220", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "221", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "222", + "kind": "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": "223", + "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": "224", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "225", + "kind": "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": "226", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "227", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "228", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "229", + "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": "230", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "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": { + "$ref": "61" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "234", + "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": "235", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "217" + } + }, + { + "$id": "236", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryExpansion.Explode", + "methods": [ + { + "$id": "237", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "238", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "239", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "240", + "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": "241", + "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": "242", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "243", + "kind": "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": "244", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "245", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "246", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Query", + "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/query/query-expansion/explode/array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", + "decorators": [] + }, + "parameters": [ + { + "$id": "248", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "249", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "250", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "251", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "252", + "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": "253", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "217" + } + } + ] + }, + { + "$id": "254", + "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/array?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", - "decorators": [] - }, - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "apiVersions": [], + "parent": { + "$ref": "195" + }, + "children": [ + { + "$id": "255", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryContinuation.Standard", + "methods": [ + { + "$id": "256", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "257", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "258", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "259", + "kind": "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": "260", + "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": "261", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "262", + "kind": "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": "263", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "264", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "265", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "266", + "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": "267", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "268", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "269", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "270", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "271", + "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": "272", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "254" + } + }, + { + "$id": "273", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryContinuation.Explode", + "methods": [ + { + "$id": "274", + "kind": "basic", + "name": "primitive", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "275", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "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": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "278", + "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": "279", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "280", + "kind": "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": "281", + "kind": "basic", + "name": "array", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "282", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "283", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "284", + "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": "285", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "54" + }, + "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": "286", + "kind": "basic", + "name": "record", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "287", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "288", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "289", + "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": "290", + "name": "param", + "nameInRequest": "param", + "type": { + "$ref": "61" + }, + "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": "254" + } + } + ] + } + ] + }, + { + "$id": "291", + "kind": "client", + "name": "InInterface", + "namespace": "Routes", + "methods": [ { - "$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 + "$id": "292", + "kind": "basic", + "name": "fixed", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "293", + "name": "fixed", + "resourceName": "InInterface", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "294", + "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": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Routes.InInterface.fixed" } - ], - "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", + ], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "86" + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "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 + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } - ], - "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.InInterface", + "apiVersions": [], + "parent": { + "$ref": "1" } - ], - "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" - } + ] } - ] - } - ] + ] } 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 c0ec2fe6126..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 @@ -1,10133 +1,9842 @@ { - "$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": [ { - "$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", + "$id": "1", + "kind": "constant", + "name": "withAndContentType", + "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": "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", + "$id": "3", + "kind": "constant", + "name": "withAsContentType", + "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": "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", + "$id": "5", + "kind": "constant", + "name": "withAssertContentType", + "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": "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", + "$id": "7", + "kind": "constant", + "name": "withAsyncContentType", + "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": "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", + "$id": "9", + "kind": "constant", + "name": "withAwaitContentType", + "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": "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", + "$id": "11", + "kind": "constant", + "name": "withBreakContentType", + "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": "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", + "$id": "13", + "kind": "constant", + "name": "withClassContentType", + "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": "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", + "$id": "15", + "kind": "constant", + "name": "withConstructorContentType", + "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": "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", + "$id": "17", + "kind": "constant", + "name": "withContinueContentType", + "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": "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", + "$id": "19", + "kind": "constant", + "name": "withDefContentType", + "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": "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", + "$id": "21", + "kind": "constant", + "name": "withDelContentType", + "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": "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", + "$id": "23", + "kind": "constant", + "name": "withElifContentType", + "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": "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", + "$id": "25", + "kind": "constant", + "name": "withElseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "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", + "$id": "27", + "kind": "constant", + "name": "withExceptContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "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", + "$id": "29", + "kind": "constant", + "name": "withExecContentType", + "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": "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", + "$id": "31", + "kind": "constant", + "name": "withFinallyContentType", + "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": "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", + "$id": "33", + "kind": "constant", + "name": "withForContentType", + "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": "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", + "$id": "35", + "kind": "constant", + "name": "withFromContentType", + "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": "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", + "$id": "37", + "kind": "constant", + "name": "withGlobalContentType", + "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": "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", + "$id": "39", + "kind": "constant", + "name": "withIfContentType", + "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": "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", + "$id": "41", + "kind": "constant", + "name": "withImportContentType", + "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": "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", + "$id": "43", + "kind": "constant", + "name": "withInContentType", + "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": "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", + "$id": "45", + "kind": "constant", + "name": "withIsContentType", + "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": "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", + "$id": "47", + "kind": "constant", + "name": "withLambdaContentType", + "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": "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", + "$id": "49", + "kind": "constant", + "name": "withNotContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "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", + "$id": "51", + "kind": "constant", + "name": "withOrContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "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", + "$id": "53", + "kind": "constant", + "name": "withPassContentType", + "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": "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", + "$id": "55", + "kind": "constant", + "name": "withRaiseContentType", + "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": "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", + "$id": "57", + "kind": "constant", + "name": "withReturnContentType", + "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": "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", + "$id": "59", + "kind": "constant", + "name": "withTryContentType", + "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": "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", + "$id": "61", + "kind": "constant", + "name": "withWhileContentType", + "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": "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", + "$id": "63", + "kind": "constant", + "name": "withWithContentType", + "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": "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", + "$id": "65", + "kind": "constant", + "name": "withYieldContentType", + "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": "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" + "$id": "67", + "kind": "constant", + "name": "sameAsModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "value": "http://localhost:3000" - } + "value": "application/json", + "decorators": [] } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords", - "apiVersions": [], - "children": [ + ], + "models": [ { - "$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", + "$id": "69", + "kind": "model", + "name": "and", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.and", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "70", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "2" + "$id": "71", + "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": "249", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "SpecialWords.Models.and.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "72", + "kind": "model", + "name": "as", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.as", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "73", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "70" + "$id": "74", + "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": "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 + "crossLanguageDefinitionId": "SpecialWords.Models.as.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "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", + ] + }, + { + "$id": "75", + "kind": "model", + "name": "assert", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.assert", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "76", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "4" + "$id": "77", + "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": "257", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "SpecialWords.Models.assert.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "78", + "kind": "model", + "name": "async", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.async", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "79", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "75" + "$id": "80", + "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": "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 + "crossLanguageDefinitionId": "SpecialWords.Models.async.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "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", + ] + }, + { + "$id": "81", + "kind": "model", + "name": "await", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.await", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "82", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "6" + "$id": "83", + "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": "265", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "SpecialWords.Models.await.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "84", + "kind": "model", + "name": "break", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.break", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "85", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "80" + "$id": "86", + "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": "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 + "crossLanguageDefinitionId": "SpecialWords.Models.break.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "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", + ] + }, + { + "$id": "87", + "kind": "model", + "name": "class", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.class", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "88", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "8" + "$id": "89", + "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": "273", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "SpecialWords.Models.class.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "90", + "kind": "model", + "name": "constructor", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.constructor", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "91", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "85" + "$id": "92", + "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": "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 + "crossLanguageDefinitionId": "SpecialWords.Models.constructor.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "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", + ] + }, + { + "$id": "93", + "kind": "model", + "name": "continue", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.continue", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "94", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "10" + "$id": "95", + "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": "281", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "SpecialWords.Models.continue.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "96", + "kind": "model", + "name": "def", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.def", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "97", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "90" + "$id": "98", + "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": "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 + "crossLanguageDefinitionId": "SpecialWords.Models.def.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "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", + ] + }, + { + "$id": "99", + "kind": "model", + "name": "del", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.del", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "100", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$ref": "12" + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "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": "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", - "type": { - "$ref": "200" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "458", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "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 - } - ], - "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": "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", - "type": { - "$ref": "210" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "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 - } - ], - "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": "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", - "type": { - "$ref": "220" - }, - "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": "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 - } - ], - "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": "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", - "type": { - "$ref": "230" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "506", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "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 - } - ], - "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", - "type": { - "$ref": "235" - }, - "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.del.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": "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", - "type": { - "$id": "676", - "kind": "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": "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 - } - ], - "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": "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", - "type": { - "$id": "692", - "kind": "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": "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 - } - ], - "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": "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", - "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 - } - ], - "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 - } - ], - "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": "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", - "type": { - "$id": "724", - "kind": "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": "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 - } - ], - "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", - "type": { - "$id": "732", - "kind": "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": "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": "102", + "kind": "model", + "name": "elif", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.elif", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$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 - } - ], - "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": "103", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "740", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "104", + "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.elif.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", - "type": { - "$id": "748", - "kind": "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": "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": "105", + "kind": "model", + "name": "else", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.else", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$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 - } - ], - "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": "106", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "756", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "107", + "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", - "type": { - "$id": "764", - "kind": "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": "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": "108", + "kind": "model", + "name": "except", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.except", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$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 - } - ], - "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": "109", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "772", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "110", + "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.except.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": "111", + "kind": "model", + "name": "exec", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.exec", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "112", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "780", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "113", + "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.exec.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": "114", + "kind": "model", + "name": "finally", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.finally", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "115", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "788", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "116", + "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.finally.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": "117", + "kind": "model", + "name": "for", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.for", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "118", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "796", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "119", + "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.for.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": "120", + "kind": "model", + "name": "from", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.from", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "121", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "804", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "122", + "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.from.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": "123", + "kind": "model", + "name": "global", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.global", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "124", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "812", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "125", + "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.global.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": "126", + "kind": "model", + "name": "if", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.if", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "127", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "820", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "128", + "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.if.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": "129", + "kind": "model", + "name": "import", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.import", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "130", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "828", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "131", + "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.import.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": "132", + "kind": "model", + "name": "in", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.in", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "133", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "836", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "134", + "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.in.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": "135", + "kind": "model", + "name": "is", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.is", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "136", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "844", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "137", + "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.is.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": "138", + "kind": "model", + "name": "lambda", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.lambda", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "139", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "852", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "140", + "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.lambda.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": "141", + "kind": "model", + "name": "not", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.not", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "142", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "860", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "143", + "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.not.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": "144", + "kind": "model", + "name": "or", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.or", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "145", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "868", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "146", + "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.or.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": "147", + "kind": "model", + "name": "pass", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.pass", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "148", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "876", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "149", + "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.pass.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": "150", + "kind": "model", + "name": "raise", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.raise", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "151", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "884", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "152", + "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.raise.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": "153", + "kind": "model", + "name": "return", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.return", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "154", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "892", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "155", + "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.return.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": "156", + "kind": "model", + "name": "try", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.try", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "157", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "900", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "158", + "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.try.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": "159", + "kind": "model", + "name": "while", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.while", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "160", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "908", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "161", + "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.while.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": "162", + "kind": "model", + "name": "with", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.with", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "163", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "916", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "164", + "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.with.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": "165", + "kind": "model", + "name": "yield", + "namespace": "SpecialWords.Models", + "crossLanguageDefinitionId": "SpecialWords.Models.yield", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "166", + "kind": "property", + "name": "name", + "serializedName": "name", "type": { - "$id": "924", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "167", + "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": [ + "crossLanguageDefinitionId": "SpecialWords.Models.yield.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "168", + "kind": "model", + "name": "SameAsModel", + "namespace": "SpecialWords.ModelProperties", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.SameAsModel", + "usage": "Input,Json", + "decorators": [], + "properties": [ { - "$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 + "$id": "169", + "kind": "property", + "name": "SameAsModel", + "serializedName": "SameAsModel", + "type": { + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "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": "171", + "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": "172", + "kind": "client", + "name": "Models", + "namespace": "SpecialWords.Models", + "doc": "Verify model names", + "methods": [ + { + "$id": "173", + "kind": "basic", + "name": "withAnd", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "174", + "name": "withAnd", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "175", + "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": "176", + "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": "177", + "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": "178", + "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": "179", + "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": "SpecialWords.Models.withAnd" + }, + { + "$id": "180", + "kind": "basic", + "name": "withAs", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "181", + "name": "withAs", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "182", + "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": "183", + "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": "184", + "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": "185", + "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": "186", + "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": "SpecialWords.Models.withAs" + }, + { + "$id": "187", + "kind": "basic", + "name": "withAssert", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "188", + "name": "withAssert", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "189", + "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": "190", + "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": "191", + "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": "192", + "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": "193", + "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": "SpecialWords.Models.withAssert" + }, + { + "$id": "194", + "kind": "basic", + "name": "withAsync", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "195", + "name": "withAsync", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "196", + "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": "197", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "78" + }, + "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": "/special-words/models/async", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAsync", + "decorators": [] + }, + "parameters": [ + { + "$id": "199", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "78" + }, + "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": "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": "SpecialWords.Models.withAsync" + }, + { + "$id": "201", + "kind": "basic", + "name": "withAwait", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "202", + "name": "withAwait", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "203", + "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": "204", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "81" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "205", + "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": "206", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "81" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "207", + "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": "SpecialWords.Models.withAwait" + }, + { + "$id": "208", + "kind": "basic", + "name": "withBreak", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "209", + "name": "withBreak", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "210", + "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": "211", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "84" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "212", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/break", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak", + "decorators": [] + }, + "parameters": [ + { + "$id": "213", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "84" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "214", + "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": "SpecialWords.Models.withBreak" + }, + { + "$id": "215", + "kind": "basic", + "name": "withClass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "216", + "name": "withClass", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "217", + "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": "218", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "87" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "219", + "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": "220", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "87" + }, + "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": "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": "SpecialWords.Models.withClass" + }, + { + "$id": "222", + "kind": "basic", + "name": "withConstructor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "223", + "name": "withConstructor", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "224", + "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": "225", + "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": "226", + "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": "227", + "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": "228", + "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": "SpecialWords.Models.withConstructor" + }, + { + "$id": "229", + "kind": "basic", + "name": "withContinue", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "230", + "name": "withContinue", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "231", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "232", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "93" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/continue", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue", + "decorators": [] + }, + "parameters": [ + { + "$id": "234", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "93" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "235", + "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": "SpecialWords.Models.withContinue" + }, + { + "$id": "236", + "kind": "basic", + "name": "withDef", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "237", + "name": "withDef", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "238", + "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": "239", + "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": "240", + "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": "241", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "96" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "242", + "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": "SpecialWords.Models.withDef" + }, + { + "$id": "243", + "kind": "basic", + "name": "withDel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "244", + "name": "withDel", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "245", + "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": "246", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "99" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "247", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/del", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withDel", + "decorators": [] + }, + "parameters": [ + { + "$id": "248", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "99" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "249", + "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": "SpecialWords.Models.withDel" + }, + { + "$id": "250", + "kind": "basic", + "name": "withElif", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "251", + "name": "withElif", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "252", + "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": "253", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "102" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "254", + "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": "255", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "102" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "256", + "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": "SpecialWords.Models.withElif" + }, + { + "$id": "257", + "kind": "basic", + "name": "withElse", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "258", + "name": "withElse", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "259", + "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": "260", + "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": "261", + "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": "262", + "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": "263", + "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": "SpecialWords.Models.withElse" + }, + { + "$id": "264", + "kind": "basic", + "name": "withExcept", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "265", + "name": "withExcept", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "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": "267", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "108" + }, + "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": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/except", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept", + "decorators": [] + }, + "parameters": [ + { + "$id": "269", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "108" + }, + "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": "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": "SpecialWords.Models.withExcept" + }, + { + "$id": "271", + "kind": "basic", + "name": "withExec", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "272", + "name": "withExec", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "273", + "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": "274", + "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": "275", + "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": "276", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "277", + "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": "SpecialWords.Models.withExec" + }, + { + "$id": "278", + "kind": "basic", + "name": "withFinally", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "279", + "name": "withFinally", + "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": "31" + }, + "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": "114" + }, + "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/finally", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally", + "decorators": [] + }, + "parameters": [ + { + "$id": "283", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "114" + }, + "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": "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": "SpecialWords.Models.withFinally" + }, + { + "$id": "285", + "kind": "basic", + "name": "withFor", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "286", + "name": "withFor", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "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": "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 + } + ], + "responses": [ + { + "$id": "289", + "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": "290", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "117" + }, + "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": "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": "SpecialWords.Models.withFor" + }, + { + "$id": "292", + "kind": "basic", + "name": "withFrom", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "293", + "name": "withFrom", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "294", + "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": "295", + "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": "296", + "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": "297", + "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": "298", + "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": "SpecialWords.Models.withFrom" + }, + { + "$id": "299", + "kind": "basic", + "name": "withGlobal", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "300", + "name": "withGlobal", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "301", + "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": "302", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "123" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "303", + "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": "304", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "123" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "305", + "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": "SpecialWords.Models.withGlobal" + }, + { + "$id": "306", + "kind": "basic", + "name": "withIf", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "307", + "name": "withIf", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "308", + "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": "309", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "126" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "310", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/if", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIf", + "decorators": [] + }, + "parameters": [ + { + "$id": "311", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "126" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "312", + "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": "SpecialWords.Models.withIf" + }, + { + "$id": "313", + "kind": "basic", + "name": "withImport", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "314", + "name": "withImport", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "315", + "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": "316", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "129" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "317", + "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": "318", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "129" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "319", + "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": "SpecialWords.Models.withImport" + }, + { + "$id": "320", + "kind": "basic", + "name": "withIn", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "321", + "name": "withIn", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "322", + "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": "323", + "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": "324", + "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": "325", + "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": "326", + "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": "SpecialWords.Models.withIn" + }, + { + "$id": "327", + "kind": "basic", + "name": "withIs", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "328", + "name": "withIs", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "329", + "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": "330", + "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": "331", + "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": "332", + "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": "333", + "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": "SpecialWords.Models.withIs" + }, + { + "$id": "334", + "kind": "basic", + "name": "withLambda", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "335", + "name": "withLambda", + "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": "47" + }, + "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": "138" + }, + "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/lambda", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda", + "decorators": [] + }, + "parameters": [ + { + "$id": "339", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "138" + }, + "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": "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": "SpecialWords.Models.withLambda" + }, + { + "$id": "341", + "kind": "basic", + "name": "withNot", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "342", + "name": "withNot", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "343", + "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": "344", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "141" + }, + "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/not", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withNot", + "decorators": [] + }, + "parameters": [ + { + "$id": "346", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "141" + }, + "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": "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": "SpecialWords.Models.withNot" + }, + { + "$id": "348", + "kind": "basic", + "name": "withOr", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "349", + "name": "withOr", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "350", + "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": "351", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "144" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "352", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/or", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withOr", + "decorators": [] + }, + "parameters": [ + { + "$id": "353", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "144" + }, + "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": "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": "SpecialWords.Models.withOr" + }, + { + "$id": "355", + "kind": "basic", + "name": "withPass", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "356", + "name": "withPass", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "357", + "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": "358", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "359", + "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": "360", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "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": "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": "SpecialWords.Models.withPass" + }, + { + "$id": "362", + "kind": "basic", + "name": "withRaise", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "363", + "name": "withRaise", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "364", + "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": "365", + "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": "366", + "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": "367", + "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": "368", + "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": "SpecialWords.Models.withRaise" + }, + { + "$id": "369", + "kind": "basic", + "name": "withReturn", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "370", + "name": "withReturn", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "371", + "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": "372", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "153" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "373", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/return", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn", + "decorators": [] + }, + "parameters": [ + { + "$id": "374", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "153" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "375", + "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": "SpecialWords.Models.withReturn" + }, + { + "$id": "376", + "kind": "basic", + "name": "withTry", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "377", + "name": "withTry", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "378", + "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": "379", + "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": "380", + "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": "381", + "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": "382", + "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": "SpecialWords.Models.withTry" + }, + { + "$id": "383", + "kind": "basic", + "name": "withWhile", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "384", + "name": "withWhile", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "385", + "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": "386", + "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": "387", + "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": "388", + "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": "389", + "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": "SpecialWords.Models.withWhile" + }, + { + "$id": "390", + "kind": "basic", + "name": "withWith", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "391", + "name": "withWith", + "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": "63" + }, + "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": "162" + }, + "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/with", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withWith", + "decorators": [] + }, + "parameters": [ + { + "$id": "395", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "162" + }, + "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": "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": "SpecialWords.Models.withWith" + }, + { + "$id": "397", + "kind": "basic", + "name": "withYield", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "398", + "name": "withYield", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "399", + "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": "400", + "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": "401", + "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": "402", + "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": "403", + "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": "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": "171" + } + }, + { + "$id": "404", + "kind": "client", + "name": "ModelProperties", + "namespace": "SpecialWords.ModelProperties", + "doc": "Verify model names", + "methods": [ + { + "$id": "405", + "kind": "basic", + "name": "sameAsModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "406", + "name": "sameAsModel", + "resourceName": "ModelProperties", + "accessibility": "public", + "parameters": [ + { + "$id": "407", + "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": "408", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "168" + }, + "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": "168" + }, + "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": "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": "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": "171" + } + }, { - "$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": "171" + } }, - "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": "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 f6dce434e29..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 @@ -1,4211 +1,4110 @@ { - "$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": { - "$ref": "77" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "85", - "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": "86", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "77" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "87", - "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": "88" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int32Value.put" - } - ], - "parameters": [ - { - "$id": "89", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "90", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "91", - "type": { - "$id": "92", - "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": "93", - "kind": "client", - "name": "Int64Value", - "namespace": "Type.Array", - "doc": "Array of int64 values", - "methods": [ - { - "$id": "94", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "95", - "name": "get", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "96", - "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": "97", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "98", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "99", - "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": "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 - } - ], - "response": { - "$id": "101", - "type": { - "$ref": "98" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int64Value.get" }, - { - "$id": "102", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "103", - "name": "put", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "104", - "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": "105", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "98" - }, - "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/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": "107", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "98" - }, - "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": "8" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "109" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Int64Value.put" - } - ], - "parameters": [ - { - "$id": "110", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "111", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "112", - "type": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int64Value", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "114", - "kind": "client", - "name": "BooleanValue", - "namespace": "Type.Array", - "doc": "Array of boolean values", - "methods": [ - { - "$id": "115", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "116", - "name": "get", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "117", - "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": "118", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "119", - "kind": "array", - "name": "Array2", - "valueType": { - "$id": "120", - "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": "121", - "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": "122", - "type": { - "$ref": "119" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.get" }, - { - "$id": "123", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "124", - "name": "put", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "125", - "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": "126", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "119" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "127", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/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": "128", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "119" - }, - "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": "12" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "130" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put" - } - ], - "parameters": [ - { - "$id": "131", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "132", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "133", - "type": { - "$id": "134", - "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": "135", - "kind": "client", - "name": "StringValue", - "namespace": "Type.Array", - "doc": "Array of string values", - "methods": [ - { - "$id": "136", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "137", - "name": "get", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "138", - "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": "139", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "140", - "kind": "array", - "name": "Array3", - "valueType": { - "$id": "141", - "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": "142", - "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": "143", - "type": { - "$ref": "140" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.StringValue.get" }, - { - "$id": "144", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "145", - "name": "put", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "146", - "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": "147", - "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": "148", - "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": "149", - "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": "150", - "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": "151" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.StringValue.put" - } - ], - "parameters": [ - { - "$id": "152", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "153", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "154", - "type": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.StringValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "156", - "kind": "client", - "name": "Float32Value", - "namespace": "Type.Array", - "doc": "Array of float values", - "methods": [ - { - "$id": "157", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "158", - "name": "get", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "159", - "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": "160", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "161", - "kind": "array", - "name": "Array4", - "valueType": { - "$id": "162", - "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": "163", - "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": "164", - "type": { - "$ref": "161" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Float32Value.get" }, - { - "$id": "165", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "166", - "name": "put", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "167", - "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": "168", - "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": "169", - "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": "170", - "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": "171", - "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": "172" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.Float32Value.put" - } - ], - "parameters": [ - { - "$id": "173", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "174", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "175", - "type": { - "$id": "176", - "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": "177", - "kind": "client", - "name": "DatetimeValue", - "namespace": "Type.Array", - "doc": "Array of datetime values", - "methods": [ - { - "$id": "178", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "179", - "name": "get", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "180", - "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": "181", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "182", - "kind": "array", - "name": "Array5", - "valueType": { - "$id": "183", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "184", - "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": "185", - "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": "186", - "type": { - "$ref": "182" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get" }, - { - "$id": "187", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "188", - "name": "put", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "189", - "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": "190", - "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": "191", - "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": "192", - "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": "193", - "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": "194" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put" - } - ], - "parameters": [ - { - "$id": "195", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "196", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "197", - "type": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DatetimeValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "199", - "kind": "client", - "name": "DurationValue", - "namespace": "Type.Array", - "doc": "Array of duration values", - "methods": [ - { - "$id": "200", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "201", - "name": "get", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "202", - "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": "203", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "204", - "kind": "array", - "name": "Array6", - "valueType": { - "$id": "205", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "206", - "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": "207", - "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": "208", - "type": { - "$ref": "204" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DurationValue.get" }, - { - "$id": "209", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "210", - "name": "put", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "211", - "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": "212", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "204" - }, - "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": "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": "214", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "204" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "215", - "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": "216" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.DurationValue.put" - } - ], - "parameters": [ - { - "$id": "217", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "218", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "219", - "type": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DurationValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "221", - "kind": "client", - "name": "UnknownValue", - "namespace": "Type.Array", - "doc": "Array of unknown values", - "methods": [ - { - "$id": "222", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "223", - "name": "get", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "224", - "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": "225", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "226", - "kind": "array", - "name": "Array7", - "valueType": { - "$id": "227", - "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": "228", - "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": "229", - "type": { - "$ref": "226" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.get" }, - { - "$id": "230", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "231", - "name": "put", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "232", - "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": "233", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "226" - }, - "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": "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": "235", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "226" - }, - "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": "32" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "237" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put" - } - ], - "parameters": [ - { - "$id": "238", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "239", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "240", - "type": { - "$id": "241", - "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": "242", - "kind": "client", - "name": "ModelValue", - "namespace": "Type.Array", - "doc": "Array of model values", - "methods": [ - { - "$id": "243", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "244", - "name": "get", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "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": "246", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "64" - }, - "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": "247", - "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": "248", - "type": { - "$ref": "64" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.ModelValue.get" }, - { - "$id": "249", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "250", - "name": "put", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "251", - "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": "252", - "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": "253", - "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": [] - }, - "parameters": [ - { - "$id": "254", - "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": "255", - "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": "256" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.ModelValue.put" - } - ], - "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": "Type.Array.ModelValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "261", - "kind": "client", - "name": "NullableFloatValue", - "namespace": "Type.Array", - "doc": "Array of nullable float values", - "methods": [ - { - "$id": "262", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "263", - "name": "get", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "264", - "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": "265", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "266", - "kind": "array", - "name": "Array8", - "valueType": { - "$id": "267", - "kind": "nullable", - "type": { - "$id": "268", - "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": "45", + "kind": "constant", + "name": "getContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "269", - "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": "270", - "type": { - "$ref": "266" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" }, - { - "$id": "271", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "272", - "name": "put", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "273", - "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": "274", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "266" - }, - "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": "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": "47", + "kind": "constant", + "name": "putContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "276", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "266" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "277", - "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": "278" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put" - } - ], - "parameters": [ - { - "$id": "279", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "280", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "281", - "type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "283", - "kind": "client", - "name": "NullableInt32Value", - "namespace": "Type.Array", - "doc": "Array of nullable int32 values", - "methods": [ - { - "$id": "284", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "285", - "name": "get", - "resourceName": "NullableInt32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "286", - "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": "287", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "288", - "kind": "array", - "name": "Array9", - "valueType": { - "$id": "289", - "kind": "nullable", - "type": { - "$id": "290", - "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": "49", + "kind": "constant", + "name": "getContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "291", - "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": "292", - "type": { - "$ref": "288" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" }, - { - "$id": "293", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "294", - "name": "put", - "resourceName": "NullableInt32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "295", - "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": "296", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "288" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "297", - "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": "51", + "kind": "constant", + "name": "putContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "298", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "288" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "299", - "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": "300" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put" - } - ], - "parameters": [ - { - "$id": "301", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "302", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "303", - "type": { - "$id": "304", - "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": "305", - "kind": "client", - "name": "NullableBooleanValue", - "namespace": "Type.Array", - "doc": "Array of nullable boolean values", - "methods": [ - { - "$id": "306", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "307", - "name": "get", - "resourceName": "NullableBooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "308", - "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": "309", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "310", - "kind": "array", - "name": "Array10", - "valueType": { - "$id": "311", - "kind": "nullable", - "type": { - "$id": "312", - "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": "53", + "kind": "constant", + "name": "getContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "313", - "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": "314", - "type": { - "$ref": "310" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" }, - { - "$id": "315", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "316", - "name": "put", - "resourceName": "NullableBooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "317", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "value": "application/json", + "decorators": [] + }, + { + "$id": "55", + "kind": "constant", + "name": "putContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "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": "318", - "name": "body", - "nameInRequest": "body", + "crossLanguageDefinitionId": "Type.Array.InnerModel.property", + "serializationOptions": { + "json": { + "name": "property" + } + } + }, + { + "$id": "60", + "kind": "property", + "name": "children", + "serializedName": "children", "type": { - "$ref": "310" + "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": "319", - "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": "320", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "310" - }, - "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": "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": "322" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.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.Array.NullableBooleanValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } - }, + ] + } + ], + "clients": [ { - "$id": "327", - "kind": "client", - "name": "NullableStringValue", - "namespace": "Type.Array", - "doc": "Array of nullable string values", - "methods": [ - { - "$id": "328", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "329", - "name": "get", - "resourceName": "NullableStringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "330", - "name": "accept", - "nameInRequest": "Accept", + "$id": "61", + "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": "331", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "332", - "kind": "array", - "name": "Array11", - "valueType": { - "$id": "333", - "kind": "nullable", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { "type": { - "$id": "334", - "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": "335", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } - ], - "response": { - "$id": "336", - "type": { - "$ref": "332" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" - }, - { - "$id": "337", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "338", - "name": "put", - "resourceName": "NullableStringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "339", - "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": "62", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Array", + "doc": "Array of int32 values", + "methods": [ + { + "$id": "63", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "64", + "name": "get", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "65", + "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": "66", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "67", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "68", + "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": "69", + "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": "67" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Int32Value.get" + }, + { + "$id": "70", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "71", + "name": "put", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "72", + "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": "73", + "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": "74", + "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": "75", + "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": "76", + "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": "340", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "332" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Array.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "61" + } + }, + { + "$id": "77", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Array", + "doc": "Array of int64 values", + "methods": [ + { + "$id": "78", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "79", + "name": "get", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$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 + } + ], + "responses": [ + { + "$id": "81", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "82", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "83", + "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": "84", + "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": "82" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Int64Value.get" + }, + { + "$id": "85", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "86", + "name": "put", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "87", + "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": "88", + "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": "89", + "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": "90", + "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": "91", + "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": "341", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Array.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "61" + } + }, + { + "$id": "92", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Array", + "doc": "Array of boolean values", + "methods": [ + { + "$id": "93", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "94", + "name": "get", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "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": "96", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "97", + "kind": "array", + "name": "Array2", + "valueType": { + "$id": "98", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "97" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.BooleanValue.get" + }, + { + "$id": "100", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "101", + "name": "put", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "102", + "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": "103", + "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": "104", + "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": "105", + "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": "106", + "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": "61" + } + }, { - "$id": "342", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "332" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "107", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Array", + "doc": "Array of string values", + "methods": [ + { + "$id": "108", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "109", + "name": "get", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "110", + "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": "111", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "112", + "kind": "array", + "name": "Array3", + "valueType": { + "$id": "113", + "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": "114", + "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": "112" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.StringValue.get" + }, + { + "$id": "115", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "116", + "name": "put", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "117", + "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": "118", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "112" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "119", + "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": "120", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "112" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "121", + "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": "61" + } }, { - "$id": "343", - "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": "344" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put" - } - ], - "parameters": [ - { - "$id": "345", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "346", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "347", - "type": { - "$id": "348", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "122", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Array", + "doc": "Array of float values", + "methods": [ + { + "$id": "123", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "124", + "name": "get", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "125", + "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": "126", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "127", + "kind": "array", + "name": "Array4", + "valueType": { + "$id": "128", + "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": "129", + "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": "127" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.Float32Value.get" + }, + { + "$id": "130", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "131", + "name": "put", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "132", + "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": "133", + "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": "134", + "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": "135", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "127" + }, + "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": "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": "61" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableStringValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } - }, - { - "$id": "349", - "kind": "client", - "name": "NullableModelValue", - "namespace": "Type.Array", - "doc": "Array of nullable model values", - "methods": [ - { - "$id": "350", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "351", - "name": "get", - "resourceName": "NullableModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "352", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "137", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Array", + "doc": "Array of datetime values", + "methods": [ + { + "$id": "138", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "139", + "name": "get", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "140", + "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": "141", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "142", + "kind": "array", + "name": "Array5", + "valueType": { + "$id": "143", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "144", + "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": "145", + "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": "142" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get" + }, + { + "$id": "146", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "147", + "name": "put", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "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": "149", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "142" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "150", + "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": "151", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "142" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "152", + "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": "353", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "61" + } + }, + { + "$id": "153", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Array", + "doc": "Array of duration values", + "methods": [ + { + "$id": "154", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "155", + "name": "get", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "156", + "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": "157", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "158", + "kind": "array", + "name": "Array6", + "valueType": { + "$id": "159", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "160", + "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": "161", + "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": "158" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.DurationValue.get" + }, + { + "$id": "162", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "163", + "name": "put", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "164", + "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": "165", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "158" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "166", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/duration", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.DurationValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "167", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "158" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "168", + "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": "354", - "kind": "array", - "name": "Array12", - "valueType": { - "$id": "355", - "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": "61" + } + }, + { + "$id": "169", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Array", + "doc": "Array of unknown values", + "methods": [ + { + "$id": "170", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "171", + "name": "get", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "172", + "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": "173", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "174", + "kind": "array", + "name": "Array7", + "valueType": { + "$id": "175", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/unknown", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.UnknownValue.get", + "decorators": [] + }, + "parameters": [ + { + "$id": "176", + "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": "174" + } + }, + "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": "177", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "178", + "name": "put", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "179", + "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": "180", + "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": "181", + "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": "182", + "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": "183", + "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": "61" + } + }, { - "$id": "356", - "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": "357", - "type": { - "$ref": "354" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" - }, - { - "$id": "358", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "359", - "name": "put", - "resourceName": "NullableModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "360", - "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": "184", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Array", + "doc": "Array of model values", + "methods": [ + { + "$id": "185", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "186", + "name": "get", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "187", + "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": "188", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "189", + "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": "190", + "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": "189" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.ModelValue.get" + }, + { + "$id": "191", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "192", + "name": "put", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "193", + "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": "194", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "189" + }, + "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": "PUT", + "uri": "{endpoint}", + "path": "/type/array/model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.ModelValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "196", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "189" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "197", + "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": "361", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "354" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Array.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "61" + } + }, + { + "$id": "198", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Array", + "doc": "Array of nullable float values", + "methods": [ + { + "$id": "199", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "200", + "name": "get", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "201", + "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": "202", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "203", + "kind": "array", + "name": "Array8", + "valueType": { + "$id": "204", + "kind": "nullable", + "type": { + "$id": "205", + "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": "206", + "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": "203" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get" + }, + { + "$id": "207", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "208", + "name": "put", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "209", + "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": "210", + "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": "211", + "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": "212", + "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": "213", + "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": "362", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "apiVersions": [], + "parent": { + "$ref": "61" + } + }, + { + "$id": "214", + "kind": "client", + "name": "NullableInt32Value", + "namespace": "Type.Array", + "doc": "Array of nullable int32 values", + "methods": [ + { + "$id": "215", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "216", + "name": "get", + "resourceName": "NullableInt32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "217", + "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": "218", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "219", + "kind": "array", + "name": "Array9", + "valueType": { + "$id": "220", + "kind": "nullable", + "type": { + "$id": "221", + "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": "222", + "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": "219" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get" + }, + { + "$id": "223", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "224", + "name": "put", + "resourceName": "NullableInt32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "225", + "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": "226", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "219" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "227", + "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": "228", + "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": "229", + "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": "61" + } + }, { - "$id": "363", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "354" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "230", + "kind": "client", + "name": "NullableBooleanValue", + "namespace": "Type.Array", + "doc": "Array of nullable boolean values", + "methods": [ + { + "$id": "231", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "232", + "name": "get", + "resourceName": "NullableBooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "233", + "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": "234", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "235", + "kind": "array", + "name": "Array10", + "valueType": { + "$id": "236", + "kind": "nullable", + "type": { + "$id": "237", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "235" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get" + }, + { + "$id": "239", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "240", + "name": "put", + "resourceName": "NullableBooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "241", + "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": "242", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "235" + }, + "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/array/nullable-boolean", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "244", + "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": "245", + "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": "61" + } }, { - "$id": "364", - "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": "365" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put" - } - ], - "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" + "$id": "246", + "kind": "client", + "name": "NullableStringValue", + "namespace": "Type.Array", + "doc": "Array of nullable string values", + "methods": [ + { + "$id": "247", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "248", + "name": "get", + "resourceName": "NullableStringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "249", + "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": "250", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "251", + "kind": "array", + "name": "Array11", + "valueType": { + "$id": "252", + "kind": "nullable", + "type": { + "$id": "253", + "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": "254", + "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": "251" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get" + }, + { + "$id": "255", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "256", + "name": "put", + "resourceName": "NullableStringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "257", + "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": "258", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "251" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "259", + "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": "260", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "251" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "261", + "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": "61" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableModelValue", - "apiVersions": [], - "parent": { - "$ref": "67" - } + { + "$id": "262", + "kind": "client", + "name": "NullableModelValue", + "namespace": "Type.Array", + "doc": "Array of nullable model values", + "methods": [ + { + "$id": "263", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "264", + "name": "get", + "resourceName": "NullableModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "265", + "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": "266", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "267", + "kind": "array", + "name": "Array12", + "valueType": { + "$id": "268", + "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": "269", + "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": "267" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get" + }, + { + "$id": "270", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "271", + "name": "put", + "resourceName": "NullableModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "272", + "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": "273", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "267" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "274", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "275", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "267" + }, + "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": "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": "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 74104606ad3..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 @@ -1,3364 +1,3285 @@ { - "$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": { + "$id": "4", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "5", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", "valueType": { - "$ref": "46" + "$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.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": "7", + "kind": "constant", + "name": "putContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "8", + "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": "9", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "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": { - "$ref": "66" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "75", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/int32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.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": "76", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "66" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "77", - "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": "78" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put" - } - ], - "parameters": [ - { - "$id": "79", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "80", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "81", - "type": { - "$id": "82", - "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": "83", - "kind": "client", - "name": "Int64Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of int64 values", - "methods": [ - { - "$id": "84", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "85", - "name": "get", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "86", - "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": "87", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "88", - "kind": "dict", - "keyType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "90", - "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": "13", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "91", - "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": "92", - "type": { - "$ref": "88" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get" }, - { - "$id": "93", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "94", - "name": "put", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "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": "96", - "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": "97", - "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": "15", + "kind": "constant", + "name": "putContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "98", - "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": "99", - "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": "100" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.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.Dictionary.Int64Value", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "105", - "kind": "client", - "name": "BooleanValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of boolean values", - "methods": [ - { - "$id": "106", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "107", - "name": "get", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "108", - "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": "109", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "110", - "kind": "dict", - "keyType": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "112", - "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": "17", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "113", - "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": "114", - "type": { - "$ref": "110" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get" }, - { - "$id": "115", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "116", - "name": "put", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "117", - "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": "118", - "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": "119", - "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": "19", + "kind": "constant", + "name": "putContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "120", - "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": "121", - "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": "122" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put" - } - ], - "parameters": [ - { - "$id": "123", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "124", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "125", - "type": { - "$id": "126", - "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": "127", - "kind": "client", - "name": "StringValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of string values", - "methods": [ - { - "$id": "128", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "129", - "name": "get", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "130", - "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": "131", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "132", - "kind": "dict", - "keyType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "134", - "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": "21", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "135", - "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": "136", - "type": { - "$ref": "132" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get" }, - { - "$id": "137", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "138", - "name": "put", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "139", - "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": "140", - "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": "141", - "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": "23", + "kind": "constant", + "name": "putContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "142", - "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": "143", - "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": "144" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put" - } - ], - "parameters": [ - { - "$id": "145", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "146", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "147", - "type": { - "$id": "148", - "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": "149", - "kind": "client", - "name": "Float32Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of float values", - "methods": [ - { - "$id": "150", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "151", - "name": "get", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "152", - "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": "153", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "154", - "kind": "dict", - "keyType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "156", - "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": "25", + "kind": "constant", + "name": "getContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "157", - "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": "158", - "type": { - "$ref": "154" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get" }, - { - "$id": "159", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "160", - "name": "put", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "161", - "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": "162", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "154" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "163", - "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": "27", + "kind": "constant", + "name": "putContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "164", - "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": "165", - "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": "166" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put" - } - ], - "parameters": [ - { - "$id": "167", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "168", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "169", - "type": { - "$id": "170", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", - "apiVersions": [], - "parent": { - "$ref": "56" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "171", - "kind": "client", - "name": "DatetimeValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of datetime values", - "methods": [ - { - "$id": "172", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "173", - "name": "get", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "174", - "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": "175", - "statusCodes": [ - 200 - ], - "bodyType": { - "$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": [] - }, - "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": "29", + "kind": "constant", + "name": "getContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "putContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "33", + "kind": "constant", + "name": "getContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "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": "180", - "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": "181", - "type": { - "$ref": "176" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get" }, - { - "$id": "182", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "183", - "name": "put", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "184", - "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": "185", - "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": "186", - "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": "37", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "187", - "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": "188", - "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": "189" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put" - } - ], - "parameters": [ - { - "$id": "190", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "191", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "192", - "type": { - "$id": "193", - "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": "194", - "kind": "client", - "name": "DurationValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of duration values", - "methods": [ - { - "$id": "195", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "196", - "name": "get", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "197", - "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": "198", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "199", - "kind": "dict", - "keyType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "201", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "202", - "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": "39", + "kind": "constant", + "name": "putContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "203", - "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": "204", - "type": { - "$ref": "199" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get" }, - { - "$id": "205", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "206", - "name": "put", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "207", - "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": "208", - "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": "209", - "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": "41", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "210", - "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": "211", - "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": "212" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put" - } - ], - "parameters": [ - { - "$id": "213", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "214", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "215", - "type": { - "$id": "216", - "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": "217", - "kind": "client", - "name": "UnknownValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of unknown values", - "methods": [ - { - "$id": "218", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "219", - "name": "get", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "220", - "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": "30" - }, - "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": "dict", - "keyType": { - "$id": "223", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "valueType": { - "$id": "224", - "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": "225", - "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": "226", - "type": { - "$ref": "222" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get" - }, - { - "$id": "227", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "228", - "name": "put", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "229", - "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": "230", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "222" - }, - "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": "231", - "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": "232", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "222" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Dictionary.InnerModel.property", + "serializationOptions": { + "json": { + "name": "property" + } + } }, { - "$id": "233", - "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": "234" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put" - } - ], - "parameters": [ - { - "$id": "235", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "236", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "237", - "type": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } - }, - { - "$id": "239", - "kind": "client", - "name": "ModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", - "methods": [ - { - "$id": "240", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "241", - "name": "get", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "242", - "name": "accept", - "nameInRequest": "Accept", + "$id": "48", + "kind": "property", + "name": "children", + "serializedName": "children", "type": { - "$ref": "34" + "kind": "dict", + "keyType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "45" + }, + "decorators": [] }, - "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": "243", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "52" - }, - "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": "244", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Dictionary.InnerModel.children", + "serializationOptions": { + "json": { + "name": "children" + } + } } - ], - "response": { - "$id": "245", - "type": { - "$ref": "52" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" - }, - { - "$id": "246", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "247", - "name": "put", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "248", - "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": "249", - "name": "body", - "nameInRequest": "body", + ] + } + ], + "clients": [ + { + "$id": "50", + "kind": "client", + "name": "DictionaryClient", + "namespace": "Type.Dictionary", + "doc": "Illustrates various of dictionaries.", + "methods": [], + "parameters": [ + { + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "52" + "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": "250", - "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": [ + "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": "251", - "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": "51", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int32 values", + "methods": [ + { + "$id": "52", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "53", + "name": "get", + "resourceName": "Int32Value", + "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": { + "$id": "56", + "kind": "dict", + "keyType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "58", + "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": "59", + "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": "56" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get" + }, + { + "$id": "60", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "61", + "name": "put", + "resourceName": "Int32Value", + "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": "56" + }, + "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/dictionary/int32", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "65", + "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": "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": "Type.Dictionary.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": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "50" + } }, { - "$id": "252", - "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": "253" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put" - } - ], - "parameters": [ - { - "$id": "254", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "255", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "256", - "type": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } - }, - { - "$id": "258", - "kind": "client", - "name": "RecursiveModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", - "methods": [ - { - "$id": "259", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "260", - "name": "get", - "resourceName": "RecursiveModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "261", - "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": "262", - "statusCodes": [ - 200 + "$id": "67", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int64 values", + "methods": [ + { + "$id": "68", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "69", + "name": "get", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "70", + "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": "71", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "72", + "kind": "dict", + "keyType": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "74", + "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": "75", + "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": "72" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get" + }, + { + "$id": "76", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "77", + "name": "put", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "78", + "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": "79", + "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": "80", + "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": "81", + "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": "82", + "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" + } ], - "bodyType": { - "$ref": "52" - }, - "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": "263", - "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": "264", - "type": { - "$ref": "52" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" - }, - { - "$id": "265", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "266", - "name": "put", - "resourceName": "RecursiveModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "267", - "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": "268", - "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": "269", - "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/dictionary/model/recursive", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", - "decorators": [] - }, - "parameters": [ - { - "$id": "270", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "52" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "50" + } }, { - "$id": "271", - "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": "272" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put" - } - ], - "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" + "$id": "83", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of boolean values", + "methods": [ + { + "$id": "84", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "85", + "name": "get", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "86", + "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": "87", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "88", + "kind": "dict", + "keyType": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "90", + "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": "91", + "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": "88" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get" + }, + { + "$id": "92", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "93", + "name": "put", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "94", + "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": "95", + "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": "96", + "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": "97", + "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": "98", + "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": "50" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", - "apiVersions": [], - "parent": { - "$ref": "56" - } - }, - { - "$id": "277", - "kind": "client", - "name": "NullableFloatValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of nullable float values", - "methods": [ - { - "$id": "278", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "279", - "name": "get", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "280", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "99", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of string values", + "methods": [ + { + "$id": "100", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "101", + "name": "get", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "102", + "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": "103", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "104", + "kind": "dict", + "keyType": { + "$id": "105", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "106", + "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": "107", + "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": "104" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get" + }, + { + "$id": "108", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "109", + "name": "put", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "110", + "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": "111", + "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": "112", + "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": "113", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "104" + }, + "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": "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": "281", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "apiVersions": [], + "parent": { + "$ref": "50" + } + }, + { + "$id": "115", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of float values", + "methods": [ + { + "$id": "116", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "117", + "name": "get", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "118", + "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": "119", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "120", + "kind": "dict", + "keyType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "122", + "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": "123", + "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": "120" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get" + }, + { + "$id": "124", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "125", + "name": "put", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "126", + "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": "127", + "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": "128", + "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": "129", + "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": "130", + "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": "282", - "kind": "dict", - "keyType": { - "$id": "283", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "284", - "kind": "nullable", - "type": { - "$id": "285", - "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": "50" + } + }, + { + "$id": "131", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of datetime values", + "methods": [ + { + "$id": "132", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "133", + "name": "get", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "134", + "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": "135", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "136", + "kind": "dict", + "keyType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "138", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "139", + "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": "140", + "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": "136" + } + }, + "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": "141", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "142", + "name": "put", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "143", + "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": "144", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "136" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "145", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "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": "146", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "136" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "147", + "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": "50" + } + }, { - "$id": "286", - "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": "287", - "type": { - "$ref": "282" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" - }, - { - "$id": "288", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "289", - "name": "put", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "290", - "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": "148", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of duration values", + "methods": [ + { + "$id": "149", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "150", + "name": "get", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "151", + "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": "152", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "153", + "kind": "dict", + "keyType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "155", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "156", + "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": "157", + "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": "153" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get" + }, + { + "$id": "158", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "159", + "name": "put", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "160", + "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": "161", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "153" + }, + "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/duration", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "163", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "153" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "164", + "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": "291", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "282" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "50" + } + }, + { + "$id": "165", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of unknown values", + "methods": [ + { + "$id": "166", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "167", + "name": "get", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "168", + "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": "169", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "170", + "kind": "dict", + "keyType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "172", + "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": "173", + "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": "170" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get" + }, + { + "$id": "174", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "175", + "name": "put", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "176", + "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": "177", + "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": "178", + "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": "179", + "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": "180", + "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": "292", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "50" + } + }, + { + "$id": "181", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "methods": [ + { + "$id": "182", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "183", + "name": "get", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "184", + "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": "185", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "186", + "kind": "dict", + "keyType": { + "$ref": "49" + }, + "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": "187", + "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": "186" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get" + }, + { + "$id": "188", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "189", + "name": "put", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "190", + "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": "191", + "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": "192", + "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": "193", + "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": "194", + "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": "50" + } + }, { - "$id": "293", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "282" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "195", + "kind": "client", + "name": "RecursiveModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "methods": [ + { + "$id": "196", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "197", + "name": "get", + "resourceName": "RecursiveModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "198", + "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": "199", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "186" + }, + "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": "200", + "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": "186" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get" + }, + { + "$id": "201", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "202", + "name": "put", + "resourceName": "RecursiveModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "203", + "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": "204", + "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": "205", + "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": "206", + "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": "207", + "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": "50" + } }, { - "$id": "294", - "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": "208", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of nullable float values", + "methods": [ + { + "$id": "209", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "210", + "name": "get", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "211", + "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": "212", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "213", + "kind": "dict", + "keyType": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "215", + "kind": "nullable", + "type": { + "$id": "216", + "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": "217", + "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": "213" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get" + }, + { + "$id": "218", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "219", + "name": "put", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "220", + "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": "221", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "213" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "222", + "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": "223", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "213" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "224", + "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": "50" + } } - ], - "response": { - "$id": "295" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.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.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 accc4727865..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 @@ -1,1367 +1,1338 @@ { - "$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": { - "$ref": "33" + "$id": "11", + "kind": "constant", + "name": "postModelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "namespace": "" - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalNullableIntList", - "serializationOptions": { - "$id": "44", - "json": { - "$id": "45", - "name": "optionalNullableIntList" - } - } + "value": "application/json", + "decorators": [] }, { - "$id": "46", - "kind": "property", - "name": "optionalStringRecord", - "serializedName": "optionalStringRecord", - "doc": "Optional readonly string dictionary.", - "type": { - "$id": "47", - "kind": "dict", - "keyType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, + "$id": "13", + "kind": "constant", + "name": "deleteModelContentType", + "namespace": "", + "usage": "None", "valueType": { - "$id": "49", - "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": "50", - "json": { - "$id": "51", - "name": "optionalStringRecord" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "52", - "kind": "client", - "name": "VisibilityClient", - "namespace": "Type.Model.Visibility", - "doc": "Illustrates models with visibility properties.", - "methods": [ + }, { - "$id": "53", - "kind": "basic", - "name": "getModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "54", - "name": "getModel", - "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": "2" - }, - "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": "4" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "59", - "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": "60", - "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": "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 - }, - { - "$id": "62", - "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": "63", - "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": "64", - "type": { - "$ref": "20" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel" + "value": "application/json", + "decorators": [] }, { - "$id": "65", - "kind": "basic", - "name": "headModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "66", - "name": "headModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "67", - "name": "queryProp", - "nameInRequest": "queryProp", - "doc": "Required int32, illustrating a query property.", - "type": { - "$id": "68", - "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": "69", - "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": "70", - "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": "71", - "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": "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 + "$id": "17", + "kind": "constant", + "name": "putReadOnlyModelContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "73", - "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": "74" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel" - }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ { - "$id": "75", - "kind": "basic", - "name": "putModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "76", - "name": "putModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "77", - "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": "78", - "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": "79", - "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": "80", - "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": "81", - "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": "82" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.putModel" - }, - { - "$id": "83", - "kind": "basic", - "name": "patchModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "84", - "name": "patchModel", - "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": "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": "86", - "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": "87", - "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": "88", - "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": "89", - "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": "90" - }, - "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": "91", - "kind": "basic", - "name": "postModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "92", - "name": "postModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "93", - "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": "94", - "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": { + "$ref": "28" + }, + "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": "95", - "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": "96", - "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": "97", - "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": "98" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel" - }, + { + "$id": "35", + "kind": "property", + "name": "optionalStringRecord", + "serializedName": "optionalStringRecord", + "doc": "Optional readonly string dictionary.", + "type": { + "$id": "36", + "kind": "dict", + "keyType": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "38", + "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": "99", - "kind": "basic", - "name": "deleteModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "100", - "name": "deleteModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "101", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "14" + "$id": "39", + "kind": "client", + "name": "VisibilityClient", + "namespace": "Type.Model.Visibility", + "doc": "Illustrates models with visibility properties.", + "methods": [ + { + "$id": "40", + "kind": "basic", + "name": "getModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "41", + "name": "getModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "42", + "name": "queryProp", + "nameInRequest": "queryProp", + "doc": "Required int32, illustrating a query property.", + "type": { + "$id": "43", + "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": "44", + "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": "45", + "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": "46", + "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": "47", + "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": "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 + }, + { + "$id": "49", + "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": "50", + "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": "102", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "20" + { + "$id": "51", + "kind": "basic", + "name": "headModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "52", + "name": "headModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "53", + "name": "queryProp", + "nameInRequest": "queryProp", + "doc": "Required int32, illustrating a query property.", + "type": { + "$id": "54", + "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": "55", + "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": "56", + "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": "57", + "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": "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 + }, + { + "$id": "59", + "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": "103", - "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": "104", - "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": "105", - "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": "106" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel" - }, - { - "$id": "107", - "kind": "basic", - "name": "putReadOnlyModel", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "108", - "name": "putReadOnlyModel", - "resourceName": "Visibility", - "accessibility": "public", - "parameters": [ - { - "$id": "109", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" + { + "$id": "60", + "kind": "basic", + "name": "putModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "61", + "name": "putModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "62", + "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": "63", + "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": "64", + "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": "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 + }, + { + "$id": "66", + "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": "110", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "18" + { + "$id": "67", + "kind": "basic", + "name": "patchModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "68", + "name": "patchModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "69", + "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": "70", + "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": "71", + "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": "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 + }, + { + "$id": "73", + "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": "111", - "name": "input", - "nameInRequest": "input", - "type": { - "$ref": "41" + { + "$id": "74", + "kind": "basic", + "name": "postModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "75", + "name": "postModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "76", + "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": "77", + "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": "78", + "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": "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 + }, + { + "$id": "80", + "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": "112", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "41" + { + "$id": "81", + "kind": "basic", + "name": "deleteModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "82", + "name": "deleteModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "83", + "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": "84", + "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": "85", + "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": "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 + }, + { + "$id": "87", + "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": "88", + "kind": "basic", + "name": "putReadOnlyModel", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "89", + "name": "putReadOnlyModel", + "resourceName": "Visibility", + "accessibility": "public", + "parameters": [ + { + "$id": "90", + "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": "91", + "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": "92", + "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": "93", + "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": "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 + }, + { + "$id": "95", + "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": "96", + "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": "113", - "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": "114", - "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": "115", - "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": "116", - "type": { - "$ref": "41" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel" - } - ], - "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": "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 3218028f881..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 @@ -1,10904 +1,10582 @@ { - "$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": { - "$ref": "137" - }, - "discriminatorProperty": { - "$id": "152", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The discriminator", - "type": { - "$id": "153", - "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": "154", - "json": { - "$id": "155", - "name": "kind" - } - } - }, - "properties": [ { - "$id": "156", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "157", - "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": "158", - "json": { - "$id": "159", - "name": "name" - } - } }, { - "$ref": "152" - } - ], - "discriminatedSubtypes": { - "$id": "160", - "derived": { - "$id": "161", - "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": "162", - "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": "163", - "json": { - "$id": "164", - "name": "kind" - } - } - }, - { - "$id": "165", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "166", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "9", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "10", + "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": "167", - "json": { - "$id": "168", - "name": "index" - } - } }, - { - "$id": "169", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "170", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "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": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.age", - "serializationOptions": { - "$id": "171", - "json": { - "$id": "172", - "name": "age" - } - } - } - ] - } - } - }, - { - "$ref": "161" - }, - { - "$id": "173", - "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": "174", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "properties": [ + }, + "value": "derived", + "decorators": [] + }, { - "$id": "175", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "13", + "kind": "constant", + "name": "putContentType2", + "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.Property.AdditionalProperties.IsUnknownAdditionalProperties.name", - "serializationOptions": { - "$id": "177", - "json": { - "$id": "178", - "name": "name" - } - } - } - ] - }, - { - "$id": "179", - "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": "173" - }, - "properties": [ + }, { - "$id": "180", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "181", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$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.IsUnknownAdditionalPropertiesDerived.index", - "serializationOptions": { - "$id": "182", - "json": { - "$id": "183", - "name": "index" - } - } }, { - "$id": "184", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "185", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$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": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.age", - "serializationOptions": { - "$id": "186", - "json": { - "$id": "187", - "name": "age" - } - } - } - ] - }, - { - "$id": "188", - "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": "189", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "discriminatorProperty": { - "$id": "190", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The discriminator", - "type": { - "$id": "191", - "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": "192", - "json": { - "$id": "193", - "name": "kind" - } - } - }, - "properties": [ { - "$id": "194", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$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": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.name", - "serializationOptions": { - "$id": "196", - "json": { - "$id": "197", - "name": "name" - } - } }, { - "$ref": "190" - } - ], - "discriminatedSubtypes": { - "$id": "198", - "derived": { - "$id": "199", - "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": "188" - }, - "properties": [ - { - "$id": "200", - "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": "201", - "json": { - "$id": "202", - "name": "kind" - } - } + "$id": "21", + "kind": "constant", + "name": "putContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "203", - "kind": "property", - "name": "index", - "serializedName": "index", - "doc": "The index property", - "type": { - "$id": "204", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "getContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "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": "205", - "json": { - "$id": "206", - "name": "index" - } - } }, - { - "$id": "207", - "kind": "property", - "name": "age", - "serializedName": "age", - "doc": "The age property", - "type": { - "$id": "208", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "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": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.age", - "serializationOptions": { - "$id": "209", - "json": { - "$id": "210", - "name": "age" - } - } - } - ] - } - } - }, - { - "$ref": "199" - }, - { - "$id": "211", - "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": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, + "value": "derived", + "decorators": [] + }, { - "$id": "213", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "214", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "27", + "kind": "constant", + "name": "putContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "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": "215", - "json": { - "$id": "216", - "name": "name" - } - } - } - ] - }, - { - "$id": "217", - "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": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, { - "$id": "219", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "220", - "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.IsStringAdditionalProperties.name", - "serializationOptions": { - "$id": "221", - "json": { - "$id": "222", - "name": "name" - } - } - } - ] - }, - { - "$id": "223", - "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": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + }, { - "$id": "225", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "226", - "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.SpreadStringRecord.name", - "serializationOptions": { - "$id": "227", - "json": { - "$id": "228", - "name": "name" - } - } - } - ] - }, - { - "$id": "229", - "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": "230", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "231", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The id property", - "type": { - "$id": "232", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$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.ExtendsFloatAdditionalProperties.id", - "serializationOptions": { - "$id": "233", - "json": { - "$id": "234", - "name": "id" - } - } - } - ] - }, - { - "$id": "235", - "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": "236", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "237", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The id property", - "type": { - "$id": "238", - "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.IsFloatAdditionalProperties.id", - "serializationOptions": { - "$id": "239", - "json": { - "$id": "240", - "name": "id" - } - } - } - ] - }, - { - "$id": "241", - "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": "242", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "243", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The id property", - "type": { - "$id": "244", - "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.SpreadFloatRecord.id", - "serializationOptions": { - "$id": "245", - "json": { - "$id": "246", - "name": "id" - } - } - } - ] - }, - { - "$id": "247", - "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": "248", - "kind": "model", - "name": "ModelForRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord", - "usage": "Input,Output,Json", - "doc": "model for record", - "decorators": [], - "properties": [ - { - "$id": "249", - "kind": "property", - "name": "state", - "serializedName": "state", - "doc": "The state property", - "type": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "putContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "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": "251", - "json": { - "$id": "252", - "name": "state" - } - } - } - ] - }, - "properties": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "253", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "248" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "254", - "json": { - "$id": "255", - "name": "knownProp" - } - } - } - ] - }, - { - "$ref": "248" - }, - { - "$id": "256", - "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": "248" - }, - "properties": [ + "$id": "41", + "kind": "constant", + "name": "getContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "257", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "248" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "258", - "json": { - "$id": "259", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "260", - "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": "248" - }, - "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": "261", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "248" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelRecord.knownProp", - "serializationOptions": { - "$id": "262", - "json": { - "$id": "263", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "264", - "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": "265", - "kind": "array", - "name": "ArrayModelForRecord", - "valueType": { - "$ref": "248" + "$id": "45", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "properties": [ { - "$id": "266", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "265" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "267", - "json": { - "$id": "268", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "269", - "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": { - "$ref": "265" - }, - "properties": [ + "$id": "47", + "kind": "constant", + "name": "putContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "270", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "265" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties.knownProp", - "serializationOptions": { - "$id": "271", - "json": { - "$id": "272", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "273", - "kind": "model", - "name": "SpreadModelArrayRecord", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord", - "usage": "Input,Output,Json", - "decorators": [], - "additionalProperties": { - "$ref": "265" - }, - "properties": [ + "$id": "49", + "kind": "constant", + "name": "getContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "274", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$ref": "265" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord.knownProp", - "serializationOptions": { - "$id": "275", - "json": { - "$id": "276", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "277", - "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": "278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "properties": [ + "$id": "51", + "kind": "constant", + "name": "putContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "279", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The name property", - "type": { - "$id": "280", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "53", + "kind": "constant", + "name": "getContentType12", + "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.AdditionalProperties.DifferentSpreadStringRecord.id", - "serializationOptions": { - "$id": "281", - "json": { - "$id": "282", - "name": "id" - } - } - } - ] - }, - { - "$id": "283", - "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": "284", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "properties": [ + }, { - "$id": "285", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The id property", - "type": { - "$id": "286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$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.DifferentSpreadFloatRecord.name", - "serializationOptions": { - "$id": "287", - "json": { - "$id": "288", - "name": "name" - } - } - } - ] - }, - { - "$id": "289", - "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": "248" - }, - "properties": [ + }, { - "$id": "290", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "291", - "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.DifferentSpreadModelRecord.knownProp", - "serializationOptions": { - "$id": "292", - "json": { - "$id": "293", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "294", - "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": { - "$ref": "265" - }, - "properties": [ + }, { - "$id": "295", - "kind": "property", - "name": "knownProp", - "serializedName": "knownProp", - "type": { - "$id": "296", - "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.DifferentSpreadModelArrayRecord.knownProp", - "serializationOptions": { - "$id": "297", - "json": { - "$id": "298", - "name": "knownProp" - } - } - } - ] - }, - { - "$id": "299", - "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": "277" - }, - "properties": [ + }, { - "$id": "300", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$id": "301", - "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.DifferentSpreadStringDerived.derivedProp", - "serializationOptions": { - "$id": "302", - "json": { - "$id": "303", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "304", - "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": "283" - }, - "properties": [ + }, { - "$id": "305", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$id": "306", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$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.DifferentSpreadFloatDerived.derivedProp", - "serializationOptions": { - "$id": "307", - "json": { - "$id": "308", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "309", - "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": "289" - }, - "properties": [ + }, { - "$id": "310", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$ref": "248" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelDerived.derivedProp", - "serializationOptions": { - "$id": "311", - "json": { - "$id": "312", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "313", - "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": "294" - }, - "properties": [ + "$id": "65", + "kind": "constant", + "name": "getContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, { - "$id": "314", - "kind": "property", - "name": "derivedProp", - "serializedName": "derivedProp", - "doc": "The index property", - "type": { - "$ref": "265" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived.derivedProp", - "serializationOptions": { - "$id": "315", - "json": { - "$id": "316", - "name": "derivedProp" - } - } - } - ] - }, - { - "$id": "317", - "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": "318", - "kind": "union", - "name": "MultipleSpreadRecordAdditionalProperty", - "variantTypes": [ - { - "$id": "319", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$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": "320", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + }, + { + "$id": "69", + "kind": "constant", + "name": "getContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ + }, { - "$id": "321", - "kind": "property", - "name": "flag", - "serializedName": "flag", - "doc": "The name property", - "type": { - "$id": "322", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "71", + "kind": "constant", + "name": "putContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "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": "323", - "json": { - "$id": "324", - "name": "flag" - } - } - } - ] - }, - { - "$id": "325", - "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": "326", - "kind": "union", - "name": "SpreadRecordForUnionAdditionalProperty", - "variantTypes": [ - { - "$id": "327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + }, + { + "$id": "73", + "kind": "constant", + "name": "getContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - { - "$id": "328", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + }, + { + "$id": "75", + "kind": "constant", + "name": "putContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "76", + "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": "77", + "kind": "constant", + "name": "getContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "78", + "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": "331", - "json": { - "$id": "332", - "name": "flag" - } - } - } - ] - }, - { - "$id": "333", - "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": "334", - "kind": "union", - "name": "SpreadRecordForNonDiscriminatedUnionAdditionalProperty", - "variantTypes": [ - { - "$id": "335", - "kind": "model", - "name": "WidgetData0", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "336", - "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": "337", - "json": { - "$id": "338", - "name": "kind" - } - } - }, - { - "$id": "339", - "kind": "property", - "name": "fooProp", - "serializedName": "fooProp", - "type": { - "$id": "340", - "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": "341", - "json": { - "$id": "342", - "name": "fooProp" - } - } - } - ] - }, - { - "$id": "343", - "kind": "model", - "name": "WidgetData1", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "344", - "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": "345", - "json": { - "$id": "346", - "name": "kind" - } - } - }, - { - "$id": "347", - "kind": "property", - "name": "start", - "serializedName": "start", - "type": { - "$id": "348", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "349", - "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": "350", - "json": { - "$id": "351", - "name": "start" - } - } - }, - { - "$id": "352", - "kind": "property", - "name": "end", - "serializedName": "end", - "type": { - "$id": "353", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "354", - "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": "355", - "json": { - "$id": "356", - "name": "end" - } - } - } - ] - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ - { - "$id": "357", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "358", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion.name", - "serializationOptions": { - "$id": "359", - "json": { - "$id": "360", - "name": "name" - } - } - } - ] - }, - { - "$ref": "335" - }, - { - "$ref": "343" - }, - { - "$id": "361", - "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": "362", - "kind": "union", - "name": "SpreadRecordForNonDiscriminatedUnion2AdditionalProperty", - "variantTypes": [ - { - "$id": "363", - "kind": "model", - "name": "WidgetData2", - "namespace": "Type.Property.AdditionalProperties", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2", - "usage": "Input,Output,Json", - "decorators": [], - "properties": [ - { - "$id": "364", - "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": "365", - "json": { - "$id": "366", - "name": "kind" - } - } - }, - { - "$id": "367", - "kind": "property", - "name": "start", - "serializedName": "start", - "type": { - "$id": "368", - "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": "369", - "json": { - "$id": "370", - "name": "start" - } - } - } - ] - }, - { - "$ref": "343" - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ - { - "$id": "371", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "372", - "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": "373", - "json": { - "$id": "374", - "name": "name" - } - } - } - ] - }, - { - "$ref": "363" - }, - { - "$id": "375", - "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": "376", - "kind": "union", - "name": "SpreadRecordForNonDiscriminatedUnion3AdditionalProperty", - "variantTypes": [ - { - "$id": "377", - "kind": "array", - "name": "ArrayWidgetData2", - "valueType": { - "$ref": "363" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - { - "$ref": "343" - } - ], - "namespace": "", - "decorators": [] - }, - "properties": [ - { - "$id": "378", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name property", - "type": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3.name", - "serializationOptions": { - "$id": "380", - "json": { - "$id": "381", - "name": "name" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "382", - "kind": "client", - "name": "AdditionalPropertiesClient", - "namespace": "Type.Property.AdditionalProperties", - "doc": "Tests for additional properties of models", - "methods": [], - "parameters": [ - { - "$id": "383", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "384", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "385", - "type": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", - "apiVersions": [], - "children": [ - { - "$id": "387", - "kind": "client", - "name": "ExtendsUnknown", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "388", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "389", - "name": "get", - "resourceName": "ExtendsUnknown", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "390", - "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": "391", - "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", - "decorators": [] - }, - "parameters": [ - { - "$id": "392", - "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": "393", - "type": { - "$ref": "136" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get" - }, - { - "$id": "394", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "395", - "name": "put", - "resourceName": "ExtendsUnknown", - "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": "14" - }, - "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": "136" - }, - "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/additionalProperties/extendsRecordUnknown", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", - "decorators": [] - }, - "parameters": [ - { - "$id": "399", - "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": "400", - "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": "401" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put" - } - ], - "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.AdditionalProperties.ExtendsUnknown", - "apiVersions": [], - "parent": { - "$ref": "382" - } - }, - { - "$id": "406", - "kind": "client", - "name": "ExtendsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "407", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "408", - "name": "get", - "resourceName": "ExtendsUnknownDerived", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "409", - "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": "410", - "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", - "decorators": [] - }, - "parameters": [ - { - "$id": "411", - "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": "412", - "type": { - "$ref": "142" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get" - }, - { - "$id": "413", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "414", - "name": "put", - "resourceName": "ExtendsUnknownDerived", - "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": "18" - }, - "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": "142" - }, - "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/extendsRecordUnknownDerived", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", - "decorators": [] - }, - "parameters": [ - { - "$id": "418", - "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": "419", - "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": "420" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put" - } - ], - "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": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", - "apiVersions": [], - "parent": { - "$ref": "382" - } }, { - "$id": "425", - "kind": "client", - "name": "ExtendsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "426", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "427", - "name": "get", - "resourceName": "ExtendsUnknownDiscriminated", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "428", - "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": "429", - "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": "79", + "kind": "constant", + "name": "putContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "430", - "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": "431", - "type": { - "$ref": "151" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get" }, - { - "$id": "432", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "433", - "name": "put", - "resourceName": "ExtendsUnknownDiscriminated", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "434", - "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": "435", - "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": "436", - "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": "437", - "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": "438", - "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": "439" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put" - } - ], - "parameters": [ - { - "$id": "440", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "441", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "442", - "type": { - "$id": "443", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", - "apiVersions": [], - "parent": { - "$ref": "382" - } + "value": "application/json", + "decorators": [] }, { - "$id": "444", - "kind": "client", - "name": "IsUnknown", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "445", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "446", - "name": "get", - "resourceName": "IsUnknown", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "447", - "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": "448", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "173" - }, - "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", + "$id": "81", + "kind": "constant", + "name": "getContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "449", - "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": "450", - "type": { - "$ref": "173" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get" }, - { - "$id": "451", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "452", - "name": "put", - "resourceName": "IsUnknown", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "453", - "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": "454", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "173" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "455", - "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": "456", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "173" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "457", - "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": "458" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put" - } - ], - "parameters": [ - { - "$id": "459", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "460", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "461", - "type": { - "$id": "462", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", - "apiVersions": [], - "parent": { - "$ref": "382" - } + "value": "application/json", + "decorators": [] }, { - "$id": "463", - "kind": "client", - "name": "IsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "464", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "465", - "name": "get", - "resourceName": "IsUnknownDerived", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "466", - "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": "467", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "179" - }, - "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", + "$id": "83", + "kind": "constant", + "name": "putContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "468", - "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": "469", - "type": { - "$ref": "179" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get" }, - { - "$id": "470", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "471", - "name": "put", - "resourceName": "IsUnknownDerived", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "472", - "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": "473", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "179" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordUnknownDerived", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", - "decorators": [] - }, - "parameters": [ - { - "$id": "475", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "179" - }, - "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": "30" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "477" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put" - } - ], - "parameters": [ - { - "$id": "478", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "479", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "480", - "type": { - "$id": "481", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", - "apiVersions": [], - "parent": { - "$ref": "382" - } + "value": "application/json", + "decorators": [] }, - { - "$id": "482", - "kind": "client", - "name": "IsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "483", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "484", - "name": "get", - "resourceName": "IsUnknownDiscriminated", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "485", - "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": "486", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "188" - }, - "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", + { + "$id": "85", + "kind": "constant", + "name": "getContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "487", - "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": "488", - "type": { - "$ref": "188" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get" }, - { - "$id": "489", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "490", - "name": "put", - "resourceName": "IsUnknownDiscriminated", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "491", - "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": "492", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "188" - }, - "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/additionalProperties/isUnknownDiscriminated", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", + "value": "application/json", + "decorators": [] + }, + { + "$id": "87", + "kind": "constant", + "name": "putContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "494", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "188" - }, - "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": "34" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "496" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put" - } - ], - "parameters": [ - { - "$id": "497", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "498", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "499", - "type": { - "$id": "500", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "501", - "kind": "client", - "name": "ExtendsString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "502", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "503", - "name": "get", - "resourceName": "ExtendsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "504", - "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": "505", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "211" - }, - "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": "89", + "kind": "constant", + "name": "getContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "506", - "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": "507", - "type": { - "$ref": "211" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get" }, - { - "$id": "508", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "509", - "name": "put", - "resourceName": "ExtendsString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "510", - "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": "511", - "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": "512", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "91", + "kind": "constant", + "name": "putContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "513", - "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": "514", - "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": "515" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put" - } - ], - "parameters": [ - { - "$id": "516", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "517", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "518", - "type": { - "$id": "519", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "520", - "kind": "client", - "name": "IsString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "521", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "522", - "name": "get", - "resourceName": "IsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "523", - "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": "524", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "217" - }, - "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": "93", + "kind": "constant", + "name": "getContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "525", - "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": "526", - "type": { - "$ref": "217" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get" }, - { - "$id": "527", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "528", - "name": "put", - "resourceName": "IsString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "529", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "530", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "217" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "531", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "95", + "kind": "constant", + "name": "putContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "532", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "217" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "533", - "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": "534" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put" - } - ], - "parameters": [ - { - "$id": "535", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "536", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "537", - "type": { - "$id": "538", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "539", - "kind": "client", - "name": "SpreadString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "540", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "541", - "name": "get", - "resourceName": "SpreadString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "542", - "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": "543", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "223" - }, - "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": "97", + "kind": "constant", + "name": "getContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "544", - "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": "545", - "type": { - "$ref": "223" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get" }, - { - "$id": "546", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "547", - "name": "put", - "resourceName": "SpreadString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "548", - "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": "549", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "223" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "550", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "99", + "kind": "constant", + "name": "putContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "551", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "223" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "552", - "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": "553" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put" - } - ], - "parameters": [ - { - "$id": "554", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "555", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "556", - "type": { - "$id": "557", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "558", - "kind": "client", - "name": "ExtendsFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "559", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "560", - "name": "get", - "resourceName": "ExtendsFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "561", - "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": "562", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "229" - }, - "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": "101", + "kind": "constant", + "name": "getContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "563", - "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": "564", - "type": { - "$ref": "229" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get" }, - { - "$id": "565", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "566", - "name": "put", - "resourceName": "ExtendsFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "567", - "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": "568", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "229" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "569", - "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", + "value": "application/json", + "decorators": [] + }, + { + "$id": "103", + "kind": "constant", + "name": "putContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "570", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "229" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "571", - "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": "572" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put" - } - ], - "parameters": [ - { - "$id": "573", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "574", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "575", - "type": { - "$id": "576", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "577", - "kind": "client", - "name": "IsFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "578", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "579", - "name": "get", - "resourceName": "IsFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "580", - "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": "581", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "235" - }, - "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", + "$id": "105", + "kind": "constant", + "name": "getContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "107", + "kind": "constant", + "name": "putContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "109", + "kind": "constant", + "name": "getContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "582", - "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": "583", - "type": { - "$ref": "235" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get" }, - { - "$id": "584", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "585", - "name": "put", - "resourceName": "IsFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "586", - "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": "587", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "235" - }, - "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/additionalProperties/isRecordFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", + "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": "589", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "235" - }, - "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": "54" - }, - "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.AdditionalProperties.IsFloat.put" - } - ], - "parameters": [ - { - "$id": "592", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "593", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "594", - "type": { - "$id": "595", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "596", - "kind": "client", - "name": "SpreadFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "597", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "598", - "name": "get", - "resourceName": "SpreadFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "599", - "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": "600", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "241" - }, - "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": "113", + "kind": "constant", + "name": "getContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "601", - "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": "602", - "type": { - "$ref": "241" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get" }, - { - "$id": "603", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "604", - "name": "put", - "resourceName": "SpreadFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "605", - "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": "606", - "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 - } - ], - "responses": [ - { - "$id": "607", - "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": "115", + "kind": "constant", + "name": "putContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "608", - "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": "609", - "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": "610" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put" - } - ], - "parameters": [ - { - "$id": "611", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "612", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "613", - "type": { - "$id": "614", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "615", - "kind": "client", - "name": "ExtendsModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "616", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "617", - "name": "get", - "resourceName": "ExtendsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "618", - "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": "619", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "247" - }, - "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": "117", + "kind": "constant", + "name": "getContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "620", - "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": "621", - "type": { - "$ref": "247" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get" }, - { - "$id": "622", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "623", - "name": "put", - "resourceName": "ExtendsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "624", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "625", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "247" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "626", - "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": "application/json", + "decorators": [] + }, + { + "$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": "627", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "247" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "628", - "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": "629" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put" - } - ], - "parameters": [ - { - "$id": "630", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "631", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "632", - "type": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "kind0", + "decorators": [] }, { - "$id": "634", - "kind": "client", - "name": "IsModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "635", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "636", - "name": "get", - "resourceName": "IsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "637", - "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": "638", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "256" - }, - "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": "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": "639", - "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": "640", - "type": { - "$ref": "256" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get" }, - { - "$id": "641", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "642", - "name": "put", - "resourceName": "IsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "643", - "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": "644", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "256" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "645", - "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": "kind1", + "decorators": [] + }, + { + "$id": "123", + "kind": "constant", + "name": "putContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "646", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "256" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "647", - "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": "648" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put" - } - ], - "parameters": [ - { - "$id": "649", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "650", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "651", - "type": { - "$id": "652", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "application/json", + "decorators": [] }, { - "$id": "653", - "kind": "client", - "name": "SpreadModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "654", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "655", - "name": "get", - "resourceName": "SpreadModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "656", - "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": "657", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "260" - }, - "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": "125", + "kind": "constant", + "name": "getContentType29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "658", - "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": "659", - "type": { - "$ref": "260" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get" }, - { - "$id": "660", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "661", - "name": "put", - "resourceName": "SpreadModel", - "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": "70" - }, - "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/spreadRecordModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", + "value": "application/json", + "decorators": [] + }, + { + "$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": "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": "70" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "667" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put" - } - ], - "parameters": [ - { - "$id": "668", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "669", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "670", - "type": { - "$id": "671", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", - "apiVersions": [], - "parent": { - "$ref": "382" - } + }, + "value": "kind1", + "decorators": [] }, { - "$id": "672", - "kind": "client", - "name": "ExtendsModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "673", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "674", - "name": "get", - "resourceName": "ExtendsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "675", - "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": "676", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "264" - }, - "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", + "$id": "129", + "kind": "constant", + "name": "putContentType29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "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": "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": [] - }, - "parameters": [ - { - "$id": "677", - "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": "678", - "type": { - "$ref": "264" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get" }, - { - "$id": "679", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "680", - "name": "put", - "resourceName": "ExtendsModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "681", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "137", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "74" + "$id": "138", + "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": "682", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$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" + }, + "properties": [ + { + "$id": "140", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", "type": { - "$ref": "264" + "$id": "141", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "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": "683", - "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": "684", - "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 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.index", + "serializationOptions": { + "json": { + "name": "index" + } + } }, { - "$id": "685", - "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": "686" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put" - } - ], - "parameters": [ - { - "$id": "687", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "688", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "689", - "type": { - "$id": "690", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", - "apiVersions": [], - "parent": { - "$ref": "382" - } - }, - { - "$id": "691", - "kind": "client", - "name": "IsModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "692", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "693", - "name": "get", - "resourceName": "IsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "694", - "name": "accept", - "nameInRequest": "Accept", + "$id": "142", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", "type": { - "$ref": "76" + "$id": "143", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - "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": "695", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "269" - }, - "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": "696", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "76" - }, - "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": "697", + ] + }, + { + "$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": { + "$ref": "136" + }, + "discriminatorProperty": { + "$id": "145", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The discriminator", "type": { - "$ref": "269" + "$id": "146", + "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": "698", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "699", - "name": "put", - "resourceName": "IsModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "700", - "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": "701", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "properties": [ + { + "$id": "147", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "269" + "$id": "148", + "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": "702", - "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": "703", - "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 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, { - "$id": "704", - "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": "145" + } + ], + "discriminatedSubtypes": { + "derived": { + "$id": "149", + "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": "150", + "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": "151", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", + "type": { + "$id": "152", + "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": "153", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", + "type": { + "$id": "154", + "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": "705" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put" - } - ], - "parameters": [ - { - "$id": "706", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "707", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "708", - "type": { - "$id": "709", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", - "apiVersions": [], - "parent": { - "$ref": "382" - } }, { - "$id": "710", - "kind": "client", - "name": "SpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "711", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "712", - "name": "get", - "resourceName": "SpreadModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "713", - "name": "accept", - "nameInRequest": "Accept", + "$ref": "149" + }, + { + "$id": "155", + "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": "156", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "properties": [ + { + "$id": "157", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "80" + "$id": "158", + "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": "714", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "273" - }, - "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": "715", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "716", - "type": { - "$ref": "273" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get" + ] + }, + { + "$id": "159", + "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": "155" }, - { - "$id": "717", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "718", - "name": "put", - "resourceName": "SpreadModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "719", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "160", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", "type": { - "$ref": "82" + "$id": "161", + "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": "720", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "162", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", "type": { - "$ref": "273" + "$id": "163", + "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": "721", - "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": "722", - "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": "723", - "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": "724" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put" - } - ], - "parameters": [ - { - "$id": "725", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "726", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "727", - "type": { - "$id": "728", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "729", - "kind": "client", - "name": "SpreadDifferentString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "730", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "731", - "name": "get", - "resourceName": "SpreadDifferentString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "732", - "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": "733", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "277" - }, - "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": "164", + "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": "165", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", "decorators": [] - }, - "parameters": [ - { - "$id": "734", - "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": "735", + }, + "discriminatorProperty": { + "$id": "166", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The discriminator", "type": { - "$ref": "277" + "$id": "167", + "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": "736", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "737", - "name": "put", - "resourceName": "SpreadDifferentString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "738", - "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": "739", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "properties": [ + { + "$id": "168", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "277" + "$id": "169", + "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": "740", - "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": "741", - "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.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, { - "$id": "742", - "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": "166" + } + ], + "discriminatedSubtypes": { + "derived": { + "$id": "170", + "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": "164" + }, + "properties": [ + { + "$id": "171", + "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": "172", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index property", + "type": { + "$id": "173", + "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": "174", + "kind": "property", + "name": "age", + "serializedName": "age", + "doc": "The age property", + "type": { + "$id": "175", + "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" + } + } + } + ] } - ], - "response": { - "$id": "743" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put" - } - ], - "parameters": [ - { - "$id": "744", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "745", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "746", - "type": { - "$id": "747", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", - "apiVersions": [], - "parent": { - "$ref": "382" - } }, { - "$id": "748", - "kind": "client", - "name": "SpreadDifferentFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "749", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "750", - "name": "get", - "resourceName": "SpreadDifferentFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "751", - "name": "accept", - "nameInRequest": "Accept", + "$ref": "170" + }, + { + "$id": "176", + "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": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "properties": [ + { + "$id": "178", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "88" + "$id": "179", + "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": "752", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "283" - }, - "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": "753", - "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": "754", - "type": { - "$ref": "283" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsStringAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get" + ] + }, + { + "$id": "180", + "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": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - { - "$id": "755", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "756", - "name": "put", - "resourceName": "SpreadDifferentFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "757", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "182", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "90" + "$id": "183", + "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": "758", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsStringAdditionalProperties.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$id": "184", + "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": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "properties": [ + { + "$id": "186", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "283" + "$id": "187", + "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": "759", - "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": "760", - "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 - }, - { - "$id": "761", - "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.SpreadStringRecord.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - ], - "response": { - "$id": "762" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put" - } - ], - "parameters": [ - { - "$id": "763", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "764", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "765", - "type": { - "$id": "766", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "767", - "kind": "client", - "name": "SpreadDifferentModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "768", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "769", - "name": "get", - "resourceName": "SpreadDifferentModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "770", - "name": "accept", - "nameInRequest": "Accept", + "$id": "188", + "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": "189", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "properties": [ + { + "$id": "190", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The id property", "type": { - "$ref": "92" + "$id": "191", + "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": "771", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "289" - }, - "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": "772", - "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": "773", - "type": { - "$ref": "289" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloatAdditionalProperties.id", + "serializationOptions": { + "json": { + "name": "id" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get" + ] + }, + { + "$id": "192", + "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": "193", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] }, - { - "$id": "774", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "775", - "name": "put", - "resourceName": "SpreadDifferentModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "776", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "194", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The id property", "type": { - "$ref": "94" + "$id": "195", + "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": "777", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloatAdditionalProperties.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + { + "$id": "196", + "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": "197", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "properties": [ + { + "$id": "198", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The id property", "type": { - "$ref": "289" + "$id": "199", + "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": "778", - "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": "779", - "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": "780", - "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.SpreadFloatRecord.id", + "serializationOptions": { + "json": { + "name": "id" + } + } } - ], - "response": { - "$id": "781" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put" - } - ], - "parameters": [ - { - "$id": "782", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "783", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "784", - "type": { - "$id": "785", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "786", - "kind": "client", - "name": "SpreadDifferentModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "787", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "788", - "name": "get", - "resourceName": "SpreadDifferentModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "789", - "name": "accept", - "nameInRequest": "Accept", + "$id": "200", + "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": "201", + "kind": "model", + "name": "ModelForRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord", + "usage": "Input,Output,Json", + "doc": "model for record", + "decorators": [], + "properties": [ + { + "$id": "202", + "kind": "property", + "name": "state", + "serializedName": "state", + "doc": "The state property", + "type": { + "$id": "203", + "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" + } + } + } + ] + }, + "properties": [ + { + "$id": "204", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "96" + "$ref": "201" }, - "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": "790", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "294" - }, - "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": "791", - "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": "792", - "type": { - "$ref": "294" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get" + ] + }, + { + "$ref": "201" + }, + { + "$id": "205", + "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": "201" }, - { - "$id": "793", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "794", - "name": "put", - "resourceName": "SpreadDifferentModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "795", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "206", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "98" + "$ref": "201" }, - "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": "796", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$id": "207", + "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": "201" + }, + "properties": [ + { + "$id": "208", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "294" + "$ref": "201" }, - "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": "797", - "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": "798", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "294" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "799", - "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.SpreadModelRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - ], - "response": { - "$id": "800" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put" - } - ], - "parameters": [ - { - "$id": "801", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "802", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "803", - "type": { - "$id": "804", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "805", - "kind": "client", - "name": "ExtendsDifferentSpreadString", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "806", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "807", - "name": "get", - "resourceName": "ExtendsDifferentSpreadString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "808", - "name": "accept", - "nameInRequest": "Accept", + "$id": "209", + "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": "210", + "kind": "array", + "name": "ArrayModelForRecord", + "valueType": { + "$ref": "201" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "properties": [ + { + "$id": "211", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "100" + "$ref": "210" }, - "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": "809", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "299" - }, - "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": "810", - "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": "811", - "type": { - "$ref": "299" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get" + ] + }, + { + "$id": "212", + "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": { + "$ref": "210" }, - { - "$id": "812", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "813", - "name": "put", - "resourceName": "ExtendsDifferentSpreadString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "814", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "213", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "102" + "$ref": "210" }, - "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": "815", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$id": "214", + "kind": "model", + "name": "SpreadModelArrayRecord", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord", + "usage": "Input,Output,Json", + "decorators": [], + "additionalProperties": { + "$ref": "210" + }, + "properties": [ + { + "$id": "215", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "299" + "$ref": "210" }, - "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": "816", - "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", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$id": "216", + "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": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "parameters": [ - { - "$id": "817", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "299" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + }, + "properties": [ { - "$id": "818", - "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": "218", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The name property", + "type": { + "$id": "219", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringRecord.id", + "serializationOptions": { + "json": { + "name": "id" + } + } } - ], - "response": { - "$id": "819" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put" - } - ], - "parameters": [ - { - "$id": "820", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "821", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "822", - "type": { - "$id": "823", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "824", - "kind": "client", - "name": "ExtendsDifferentSpreadFloat", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "825", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "826", - "name": "get", - "resourceName": "ExtendsDifferentSpreadFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "827", - "name": "accept", - "nameInRequest": "Accept", + "$id": "220", + "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": "221", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "properties": [ + { + "$id": "222", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The id property", "type": { - "$ref": "104" + "$id": "223", + "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": "828", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "304" - }, - "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": "829", - "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": "830", - "type": { - "$ref": "304" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatRecord.name", + "serializationOptions": { + "json": { + "name": "name" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get" + ] + }, + { + "$id": "224", + "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": "201" }, - { - "$id": "831", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "832", - "name": "put", - "resourceName": "ExtendsDifferentSpreadFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "833", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "225", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "106" + "$id": "226", + "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": "834", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } + } + ] + }, + { + "$id": "227", + "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": { + "$ref": "210" + }, + "properties": [ + { + "$id": "228", + "kind": "property", + "name": "knownProp", + "serializedName": "knownProp", "type": { - "$ref": "304" + "$id": "229", + "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": "835", - "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": "836", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "304" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "837", - "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.DifferentSpreadModelArrayRecord.knownProp", + "serializationOptions": { + "json": { + "name": "knownProp" + } + } } - ], - "response": { - "$id": "838" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put" - } - ], - "parameters": [ - { - "$id": "839", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "840", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "841", - "type": { - "$id": "842", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "843", - "kind": "client", - "name": "ExtendsDifferentSpreadModel", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "844", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "845", - "name": "get", - "resourceName": "ExtendsDifferentSpreadModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "846", - "name": "accept", - "nameInRequest": "Accept", + "$id": "230", + "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": "216" + }, + "properties": [ + { + "$id": "231", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "108" + "$id": "232", + "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": "847", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "309" - }, - "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": "848", - "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.AdditionalProperties.DifferentSpreadStringDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } } - ], - "response": { - "$id": "849", - "type": { - "$ref": "309" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get" + ] + }, + { + "$id": "233", + "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": "220" }, - { - "$id": "850", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "851", - "name": "put", - "resourceName": "ExtendsDifferentSpreadModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "852", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "234", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "110" + "$id": "235", + "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": "853", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } + } + ] + }, + { + "$id": "236", + "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": "224" + }, + "properties": [ + { + "$id": "237", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "309" + "$ref": "201" }, - "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": "854", - "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": "855", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "309" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "856", - "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.DifferentSpreadModelDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } } - ], - "response": { - "$id": "857" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put" - } - ], - "parameters": [ - { - "$id": "858", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "859", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "860", - "type": { - "$id": "861", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "862", - "kind": "client", - "name": "ExtendsDifferentSpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "863", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "864", - "name": "get", - "resourceName": "ExtendsDifferentSpreadModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "865", - "name": "accept", - "nameInRequest": "Accept", + "$id": "238", + "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": "227" + }, + "properties": [ + { + "$id": "239", + "kind": "property", + "name": "derivedProp", + "serializedName": "derivedProp", + "doc": "The index property", "type": { - "$ref": "112" + "$ref": "210" }, - "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": "866", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "313" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived.derivedProp", + "serializationOptions": { + "json": { + "name": "derivedProp" + } + } + } + ] + }, + { + "$id": "240", + "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": "241", + "kind": "union", + "name": "MultipleSpreadRecordAdditionalProperty", + "variantTypes": [ + { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "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", + { + "$id": "243", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", "decorators": [] - }, - "parameters": [ - { - "$id": "867", - "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": "868", - "type": { - "$ref": "313" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get" }, - { - "$id": "869", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "870", - "name": "put", - "resourceName": "ExtendsDifferentSpreadModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "871", - "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": "872", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "properties": [ + { + "$id": "244", + "kind": "property", + "name": "flag", + "serializedName": "flag", + "doc": "The name property", "type": { - "$ref": "313" + "$id": "245", + "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": "873", - "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": "874", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "313" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "875", - "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.AdditionalProperties.MultipleSpreadRecord.flag", + "serializationOptions": { + "json": { + "name": "flag" + } + } } - ], - "response": { - "$id": "876" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put" - } - ], - "parameters": [ - { - "$id": "877", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "878", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "879", - "type": { - "$id": "880", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", - "apiVersions": [], - "parent": { - "$ref": "382" - } + ] }, { - "$id": "881", - "kind": "client", - "name": "MultipleSpread", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "882", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "883", - "name": "get", - "resourceName": "MultipleSpread", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "884", - "name": "accept", - "nameInRequest": "Accept", + "$id": "246", + "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": "247", + "kind": "union", + "name": "SpreadRecordForUnionAdditionalProperty", + "variantTypes": [ + { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "249", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "properties": [ + { + "$id": "250", + "kind": "property", + "name": "flag", + "serializedName": "flag", + "doc": "The name property", "type": { - "$ref": "116" + "$id": "251", + "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": "885", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "317" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForUnion.flag", + "serializationOptions": { + "json": { + "name": "flag" + } + } + } + ] + }, + { + "$id": "252", + "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": "253", + "kind": "union", + "name": "SpreadRecordForNonDiscriminatedUnionAdditionalProperty", + "variantTypes": [ + { + "$id": "254", + "kind": "model", + "name": "WidgetData0", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "255", + "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": "256", + "kind": "property", + "name": "fooProp", + "serializedName": "fooProp", + "type": { + "$id": "257", + "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": "258", + "kind": "model", + "name": "WidgetData1", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "259", + "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": "260", + "kind": "property", + "name": "start", + "serializedName": "start", + "type": { + "$id": "261", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "262", + "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": "263", + "kind": "property", + "name": "end", + "serializedName": "end", + "type": { + "$id": "264", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "265", + "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": "886", - "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": "887", - "type": { - "$ref": "317" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get" }, - { - "$id": "888", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "889", - "name": "put", - "resourceName": "MultipleSpread", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "890", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "266", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "118" + "$id": "267", + "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": "891", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "317" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$ref": "254" + }, + { + "$ref": "258" + }, + { + "$id": "268", + "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": "269", + "kind": "union", + "name": "SpreadRecordForNonDiscriminatedUnion2AdditionalProperty", + "variantTypes": [ + { + "$id": "270", + "kind": "model", + "name": "WidgetData2", + "namespace": "Type.Property.AdditionalProperties", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "271", + "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": "272", + "kind": "property", + "name": "start", + "serializedName": "start", + "type": { + "$id": "273", + "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 - } + { + "$ref": "258" + } ], - "responses": [ - { - "$id": "892", - "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", + "namespace": "", "decorators": [] - }, - "parameters": [ - { - "$id": "893", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "317" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, + }, + "properties": [ { - "$id": "894", - "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": "895" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put" - } - ], - "parameters": [ - { - "$id": "896", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "897", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "898", - "type": { - "$id": "899", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", - "apiVersions": [], - "parent": { - "$ref": "382" - } - }, - { - "$id": "900", - "kind": "client", - "name": "SpreadRecordUnion", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "901", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "902", - "name": "get", - "resourceName": "SpreadRecordUnion", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "903", - "name": "accept", - "nameInRequest": "Accept", + "$id": "274", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "120" + "$id": "275", + "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": "904", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "325" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion2.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + { + "$ref": "270" + }, + { + "$id": "276", + "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": "277", + "kind": "union", + "name": "SpreadRecordForNonDiscriminatedUnion3AdditionalProperty", + "variantTypes": [ + { + "$id": "278", + "kind": "array", + "name": "ArrayWidgetData2", + "valueType": { + "$ref": "270" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + { + "$ref": "258" + } ], - "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": "905", - "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": "906", - "type": { - "$ref": "325" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get" }, - { - "$id": "907", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "908", - "name": "put", - "resourceName": "SpreadRecordUnion", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "909", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "properties": [ + { + "$id": "279", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name property", "type": { - "$ref": "122" + "$id": "280", + "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": "910", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "281", + "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": "325" + "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": "282", + "kind": "client", + "name": "ExtendsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "283", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "284", + "name": "get", + "resourceName": "ExtendsUnknown", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "285", + "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": "286", + "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": "287", + "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": "288", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "289", + "name": "put", + "resourceName": "ExtendsUnknown", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "290", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "291", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "135" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "292", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordUnknown", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "293", + "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": "294", + "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": "911", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "295", + "kind": "client", + "name": "ExtendsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "296", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "297", + "name": "get", + "resourceName": "ExtendsUnknownDerived", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "298", + "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": "299", + "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": "300", + "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": "301", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "302", + "name": "put", + "resourceName": "ExtendsUnknownDerived", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "303", + "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": "304", + "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": "305", + "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": "306", + "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": "307", + "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": "281" + } + }, { - "$id": "912", - "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 + "$id": "308", + "kind": "client", + "name": "ExtendsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "309", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "310", + "name": "get", + "resourceName": "ExtendsUnknownDiscriminated", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "311", + "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": "312", + "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": "313", + "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": "314", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "315", + "name": "put", + "resourceName": "ExtendsUnknownDiscriminated", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "316", + "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": "317", + "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": "318", + "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": "319", + "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": "320", + "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": "281" + } }, { - "$id": "913", - "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": "914" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put" - } - ], - "parameters": [ - { - "$id": "915", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "916", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "917", - "type": { - "$id": "918", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "321", + "kind": "client", + "name": "IsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "322", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "323", + "name": "get", + "resourceName": "IsUnknown", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "324", + "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": "325", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "155" + }, + "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": "326", + "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": "155" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get" + }, + { + "$id": "327", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "328", + "name": "put", + "resourceName": "IsUnknown", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "329", + "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": "330", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "331", + "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": "332", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "333", + "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": "281" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", - "apiVersions": [], - "parent": { - "$ref": "382" - } - }, - { - "$id": "919", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "920", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "921", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "922", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "334", + "kind": "client", + "name": "IsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "335", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "336", + "name": "get", + "resourceName": "IsUnknownDerived", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "337", + "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": "338", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "159" + }, + "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": "339", + "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": "159" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get" + }, + { + "$id": "340", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "341", + "name": "put", + "resourceName": "IsUnknownDerived", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "342", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "343", + "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": "344", + "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": "345", + "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": "346", + "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": "923", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "347", + "kind": "client", + "name": "IsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "348", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "349", + "name": "get", + "resourceName": "IsUnknownDiscriminated", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "350", + "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": "351", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "164" + }, + "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": "352", + "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": "164" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get" + }, + { + "$id": "353", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "354", + "name": "put", + "resourceName": "IsUnknownDiscriminated", + "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": "27" + }, + "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": "164" + }, + "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/additionalProperties/isUnknownDiscriminated", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "358", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "164" + }, + "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": "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": "333" - }, - "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": "281" + } + }, { - "$id": "924", - "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": "925", - "type": { - "$ref": "333" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get" - }, - { - "$id": "926", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "927", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "928", - "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": "360", + "kind": "client", + "name": "ExtendsString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "361", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "362", + "name": "get", + "resourceName": "ExtendsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "363", + "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": "364", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "176" + }, + "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": "365", + "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": "176" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get" + }, + { + "$id": "366", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "367", + "name": "put", + "resourceName": "ExtendsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "368", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "369", + "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": "370", + "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": "371", + "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": "372", + "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": "929", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "333" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "373", + "kind": "client", + "name": "IsString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "374", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "375", + "name": "get", + "resourceName": "IsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "376", + "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": "377", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "180" + }, + "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": "378", + "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": "180" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get" + }, + { + "$id": "379", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "380", + "name": "put", + "resourceName": "IsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "381", + "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": "382", + "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": "383", + "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": "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 + }, + { + "$id": "385", + "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": "930", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "386", + "kind": "client", + "name": "SpreadString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "387", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "388", + "name": "get", + "resourceName": "SpreadString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "389", + "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": "390", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "184" + }, + "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": "391", + "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": "184" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get" + }, + { + "$id": "392", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "393", + "name": "put", + "resourceName": "SpreadString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "394", + "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": "395", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "396", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordString", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "397", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "398", + "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": "281" + } + }, { - "$id": "931", - "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": "399", + "kind": "client", + "name": "ExtendsFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "400", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "401", + "name": "get", + "resourceName": "ExtendsFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "402", + "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": "403", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "188" + }, + "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": "404", + "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": "188" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get" + }, + { + "$id": "405", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "406", + "name": "put", + "resourceName": "ExtendsFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "407", + "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": "408", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "409", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordFloat", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "410", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "188" + }, + "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": "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": "281" + } }, { - "$id": "932", - "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": "933" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put" - } - ], - "parameters": [ - { - "$id": "934", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "935", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "936", - "type": { - "$id": "937", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "412", + "kind": "client", + "name": "IsFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "413", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "414", + "name": "get", + "resourceName": "IsFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "415", + "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": "416", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "192" + }, + "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": "417", + "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": "192" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get" + }, + { + "$id": "418", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "419", + "name": "put", + "resourceName": "IsFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "420", + "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": "421", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "192" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "422", + "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": "423", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "192" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "424", + "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": "281" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", - "apiVersions": [], - "parent": { - "$ref": "382" - } - }, - { - "$id": "938", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion2", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "939", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "940", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion2", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "941", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "425", + "kind": "client", + "name": "SpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "426", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "427", + "name": "get", + "resourceName": "SpreadFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "428", + "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": "429", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "196" + }, + "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": "430", + "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": "196" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get" + }, + { + "$id": "431", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "432", + "name": "put", + "resourceName": "SpreadFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "433", + "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": "434", + "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": "435", + "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": "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 + }, + { + "$id": "437", + "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": "942", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "438", + "kind": "client", + "name": "ExtendsModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "439", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "440", + "name": "get", + "resourceName": "ExtendsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "441", + "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": "442", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "200" + }, + "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": "443", + "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": "200" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get" + }, + { + "$id": "444", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "445", + "name": "put", + "resourceName": "ExtendsModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "446", + "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": "447", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "200" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "448", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordModel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "449", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "200" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "450", + "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": "361" - }, - "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": "281" + } + }, { - "$id": "943", - "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": "944", - "type": { - "$ref": "361" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get" - }, - { - "$id": "945", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "946", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion2", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "947", - "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": "451", + "kind": "client", + "name": "IsModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "452", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "453", + "name": "get", + "resourceName": "IsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "454", + "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": "455", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "205" + }, + "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": "456", + "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": "205" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get" + }, + { + "$id": "457", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "458", + "name": "put", + "resourceName": "IsModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "459", + "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": "460", + "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": "461", + "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": "462", + "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": "463", + "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": "948", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "361" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "464", + "kind": "client", + "name": "SpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "465", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "466", + "name": "get", + "resourceName": "SpreadModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "467", + "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": "468", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "207" + }, + "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": "469", + "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": "207" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get" + }, + { + "$id": "470", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "471", + "name": "put", + "resourceName": "SpreadModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "472", + "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": "473", + "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": "474", + "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": "475", + "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": "476", + "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": "949", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "477", + "kind": "client", + "name": "ExtendsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "478", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "479", + "name": "get", + "resourceName": "ExtendsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "480", + "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": "481", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "209" + }, + "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": "482", + "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": "209" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get" + }, + { + "$id": "483", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "484", + "name": "put", + "resourceName": "ExtendsModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "485", + "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": "486", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "209" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "487", + "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": "488", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "209" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "489", + "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": "281" + } + }, { - "$id": "950", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "361" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "490", + "kind": "client", + "name": "IsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "491", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "492", + "name": "get", + "resourceName": "IsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "493", + "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": "494", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "212" + }, + "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": "495", + "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": "212" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get" + }, + { + "$id": "496", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "497", + "name": "put", + "resourceName": "IsModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "498", + "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": "499", + "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": "500", + "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": "501", + "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": "502", + "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": "281" + } }, { - "$id": "951", - "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": "952" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put" - } - ], - "parameters": [ - { - "$id": "953", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "954", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "955", - "type": { - "$id": "956", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "503", + "kind": "client", + "name": "SpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "504", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "505", + "name": "get", + "resourceName": "SpreadModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "506", + "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": "507", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "214" + }, + "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": "508", + "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": "214" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get" + }, + { + "$id": "509", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "510", + "name": "put", + "resourceName": "SpreadModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "511", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "512", + "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": "513", + "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": "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 + }, + { + "$id": "515", + "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": "281" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", - "apiVersions": [], - "parent": { - "$ref": "382" - } - }, - { - "$id": "957", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion3", - "namespace": "Type.Property.AdditionalProperties", - "methods": [ - { - "$id": "958", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "doc": "Get call", - "operation": { - "$id": "959", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion3", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "960", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "516", + "kind": "client", + "name": "SpreadDifferentString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "517", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "518", + "name": "get", + "resourceName": "SpreadDifferentString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "519", + "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": "520", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "216" + }, + "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": "521", + "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": "216" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get" + }, + { + "$id": "522", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "523", + "name": "put", + "resourceName": "SpreadDifferentString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "524", + "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": "525", + "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": "526", + "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": "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 + }, + { + "$id": "528", + "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": "961", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "529", + "kind": "client", + "name": "SpreadDifferentFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "530", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "531", + "name": "get", + "resourceName": "SpreadDifferentFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "532", + "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": "533", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "220" + }, + "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": "534", + "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": "220" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get" + }, + { + "$id": "535", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "536", + "name": "put", + "resourceName": "SpreadDifferentFloat", + "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": "83" + }, + "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": "220" + }, + "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/spreadDifferentRecordFloat", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", + "decorators": [] + }, + "parameters": [ + { + "$id": "540", + "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": "541", + "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": "375" - }, - "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": "281" + } + }, { - "$id": "962", - "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": "963", - "type": { - "$ref": "375" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get" - }, - { - "$id": "964", - "kind": "basic", - "name": "put", - "accessibility": "public", - "apiVersions": [], - "doc": "Put operation", - "operation": { - "$id": "965", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion3", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "966", - "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": "542", + "kind": "client", + "name": "SpreadDifferentModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "543", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "544", + "name": "get", + "resourceName": "SpreadDifferentModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "545", + "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": "546", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "224" + }, + "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": "547", + "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": "224" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get" + }, + { + "$id": "548", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "549", + "name": "put", + "resourceName": "SpreadDifferentModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "550", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "551", + "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": "552", + "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": "553", + "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": "554", + "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": "967", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "375" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "555", + "kind": "client", + "name": "SpreadDifferentModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "556", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "557", + "name": "get", + "resourceName": "SpreadDifferentModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "558", + "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": "559", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "227" + }, + "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": "560", + "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": "227" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get" + }, + { + "$id": "561", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "562", + "name": "put", + "resourceName": "SpreadDifferentModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "563", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "564", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "227" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "565", + "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": "566", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "227" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "567", + "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": "968", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "568", + "kind": "client", + "name": "ExtendsDifferentSpreadString", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "569", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "570", + "name": "get", + "resourceName": "ExtendsDifferentSpreadString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "571", + "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": "572", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "230" + }, + "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": "573", + "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": "230" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get" + }, + { + "$id": "574", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "575", + "name": "put", + "resourceName": "ExtendsDifferentSpreadString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "576", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "577", + "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": "578", + "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": "579", + "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": "580", + "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": "281" + } + }, { - "$id": "969", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "375" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "581", + "kind": "client", + "name": "ExtendsDifferentSpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "582", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "583", + "name": "get", + "resourceName": "ExtendsDifferentSpreadFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "584", + "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": "585", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "233" + }, + "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": "586", + "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": "233" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get" + }, + { + "$id": "587", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "588", + "name": "put", + "resourceName": "ExtendsDifferentSpreadFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "589", + "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": "590", + "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": "591", + "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": "592", + "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": "593", + "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": "281" + } }, { - "$id": "970", - "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": "971" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put" - } - ], - "parameters": [ - { - "$id": "972", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "973", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "974", - "type": { - "$id": "975", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "594", + "kind": "client", + "name": "ExtendsDifferentSpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "595", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "596", + "name": "get", + "resourceName": "ExtendsDifferentSpreadModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "597", + "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": "598", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "236" + }, + "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": "599", + "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": "236" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get" + }, + { + "$id": "600", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "601", + "name": "put", + "resourceName": "ExtendsDifferentSpreadModel", + "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": "103" + }, + "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", + "type": { + "$ref": "236" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "604", + "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": "605", + "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": "606", + "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": "281" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", - "apiVersions": [], - "parent": { - "$ref": "382" - } + { + "$id": "607", + "kind": "client", + "name": "ExtendsDifferentSpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "608", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "609", + "name": "get", + "resourceName": "ExtendsDifferentSpreadModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "610", + "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": "611", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "238" + }, + "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": "612", + "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": "238" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get" + }, + { + "$id": "613", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "614", + "name": "put", + "resourceName": "ExtendsDifferentSpreadModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "615", + "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": "616", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "238" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "617", + "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": "618", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "238" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "619", + "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": "281" + } + }, + { + "$id": "620", + "kind": "client", + "name": "MultipleSpread", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "621", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "622", + "name": "get", + "resourceName": "MultipleSpread", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "623", + "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": "624", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "240" + }, + "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": "625", + "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": "240" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get" + }, + { + "$id": "626", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "627", + "name": "put", + "resourceName": "MultipleSpread", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "628", + "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": "629", + "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": "630", + "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": "631", + "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": "632", + "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": "281" + } + }, + { + "$id": "633", + "kind": "client", + "name": "SpreadRecordUnion", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "634", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "635", + "name": "get", + "resourceName": "SpreadRecordUnion", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "636", + "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": "637", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "246" + }, + "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": "638", + "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": "246" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get" + }, + { + "$id": "639", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "640", + "name": "put", + "resourceName": "SpreadRecordUnion", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "641", + "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": "642", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "246" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "643", + "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": "644", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "246" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "645", + "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": "281" + } + }, + { + "$id": "646", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "647", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "648", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "649", + "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": "650", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "252" + }, + "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": "651", + "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": "252" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get" + }, + { + "$id": "652", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "653", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "654", + "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": "655", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "252" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "656", + "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": "657", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "252" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "658", + "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": "281" + } + }, + { + "$id": "659", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "660", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "661", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion2", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "662", + "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": "663", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "268" + }, + "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": "664", + "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": "268" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get" + }, + { + "$id": "665", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "666", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion2", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "667", + "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": "668", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "268" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "669", + "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": "670", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "268" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "671", + "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": "281" + } + }, + { + "$id": "672", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", + "methods": [ + { + "$id": "673", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "doc": "Get call", + "operation": { + "$id": "674", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion3", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "675", + "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": "676", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "276" + }, + "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": "677", + "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": "276" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get" + }, + { + "$id": "678", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "doc": "Put operation", + "operation": { + "$id": "679", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion3", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "680", + "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": "681", + "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": "682", + "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": "683", + "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": "684", + "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": "281" + } + } + ] } - ] - } - ] + ] } 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 f5cd551a0c7..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 @@ -1,2501 +1,2438 @@ { - "$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": { - "$ref": "195" - }, - "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": "218", - "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": "219", - "type": { - "$ref": "195" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify" - }, - { - "$id": "220", - "kind": "basic", - "name": "verify", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "221", - "name": "verify", - "resourceName": "Decimal128Verify", - "accessibility": "public", - "parameters": [ - { - "$id": "222", - "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": "223", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "224", - "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": "225", - "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": "226", - "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": "227", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "228", - "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": { + "$ref": "153" + }, + "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": "170", + "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": "153" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify" + }, + { + "$id": "171", + "kind": "basic", + "name": "verify", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "172", + "name": "verify", + "resourceName": "Decimal128Verify", + "accessibility": "public", + "parameters": [ + { + "$id": "173", + "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": "174", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "175", + "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": "176", + "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": "177", + "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": "178", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "179", + "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": "229" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify" - } - ], - "parameters": [ - { - "$id": "230", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "231", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "232", - "type": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "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 3fd1e090022..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 @@ -1,4574 +1,4353 @@ { - "$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" }, - { - "$ref": "184" + "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": "191", - "json": { - "$id": "192", - "name": "array" - } } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "180" - }, - { - "$id": "195", - "kind": "model", - "name": "SendRequest7", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "196", - "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": "197", - "json": { - "$id": "198", - "name": "prop" - } - } - } - ] - }, - { - "$id": "199", - "kind": "model", - "name": "GetResponse8", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "200", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "201", + "$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": "202", - "kind": "property", - "name": "stringLiteral", - "serializedName": "stringLiteral", - "doc": "This should be receive/send the \"a\" variant", - "type": { - "$id": "203", - "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": "204", - "json": { - "$id": "205", - "name": "stringLiteral" - } - } - }, - { - "$id": "206", - "kind": "property", - "name": "intLiteral", - "serializedName": "intLiteral", - "doc": "This should be receive/send the 2 variant", - "type": { - "$ref": "203" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral", - "serializationOptions": { - "$id": "207", - "json": { - "$id": "208", - "name": "intLiteral" - } - } - }, - { - "$id": "209", - "kind": "property", - "name": "floatLiteral", - "serializedName": "floatLiteral", - "doc": "This should be receive/send the 3.3 variant", - "type": { - "$ref": "203" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral", - "serializationOptions": { - "$id": "210", - "json": { - "$id": "211", - "name": "floatLiteral" - } - } - }, - { - "$id": "212", - "kind": "property", - "name": "booleanLiteral", - "serializedName": "booleanLiteral", - "doc": "This should be receive/send the true variant", - "type": { - "$ref": "203" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.booleanLiteral", - "serializationOptions": { - "$id": "213", - "json": { - "$id": "214", - "name": "booleanLiteral" - } } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "215", - "json": { - "$id": "216", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "201" - }, - { - "$id": "217", - "kind": "model", - "name": "SendRequest8", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "218", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "201" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.prop", - "serializationOptions": { - "$id": "219", - "json": { - "$id": "220", - "name": "prop" - } - } - } - ] - }, - { - "$id": "221", - "kind": "model", - "name": "GetResponse9", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", - "usage": "Output,Json", - "decorators": [], - "properties": [ + }, { - "$id": "222", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "223", + "$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": "224", - "kind": "property", - "name": "model", - "serializedName": "model", - "doc": "This should be receive/send the Cat variant", - "type": { - "$id": "225", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "147" - }, - { - "$ref": "62" - }, - { - "$id": "226", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + { + "$id": "93", + "kind": "property", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "10" }, - { - "$id": "227", - "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": "228", - "json": { - "$id": "229", - "name": "model" - } - } - }, - { - "$id": "230", - "kind": "property", - "name": "literal", - "serializedName": "literal", - "doc": "This should be receive/send the \"a\" variant", - "type": { - "$ref": "225" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal", - "serializationOptions": { - "$id": "231", - "json": { - "$id": "232", - "name": "literal" - } - } - }, - { - "$id": "233", - "kind": "property", - "name": "int", - "serializedName": "int", - "doc": "This should be receive/send the int variant", - "type": { - "$ref": "225" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int", - "serializationOptions": { - "$id": "234", - "json": { - "$id": "235", - "name": "int" - } - } - }, - { - "$id": "236", - "kind": "property", - "name": "boolean", - "serializedName": "boolean", - "doc": "This should be receive/send the boolean variant", - "type": { - "$ref": "225" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean", - "serializationOptions": { - "$id": "237", - "json": { - "$id": "238", - "name": "boolean" - } - } - }, - { - "$id": "239", - "kind": "property", - "name": "array", - "serializedName": "array", - "doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", - "type": { - "$id": "240", - "kind": "array", - "name": "Array1", - "valueType": { - "$ref": "225" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.array", - "serializationOptions": { - "$id": "241", - "json": { - "$id": "242", - "name": "array" - } } - } ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", - "serializationOptions": { - "$id": "243", - "json": { - "$id": "244", - "name": "prop" - } - } - } - ] - }, - { - "$ref": "223" - }, - { - "$id": "245", - "kind": "model", - "name": "SendRequest9", - "namespace": "Type.Union", - "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "246", - "kind": "property", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "223" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop", - "serializationOptions": { - "$id": "247", - "json": { - "$id": "248", - "name": "prop" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "249", - "kind": "client", - "name": "UnionClient", - "namespace": "Type.Union", - "doc": "Describe scenarios for various combinations of unions.", - "methods": [], - "parameters": [ - { - "$id": "250", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "251", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "252", - "type": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union", - "apiVersions": [], - "children": [ + }, { - "$id": "254", - "kind": "client", - "name": "StringsOnly", - "namespace": "Type.Union", - "doc": "Describe union of string \"a\" | \"b\" | \"c\"", - "methods": [ - { - "$id": "255", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "256", - "name": "get", - "resourceName": "StringsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "257", - "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": "258", - "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": "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 - } - ], - "response": { - "$id": "260", - "type": { - "$ref": "104" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" - }, - { - "$id": "261", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "262", - "name": "send", - "resourceName": "StringsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "263", - "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": "264", - "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": "265", - "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": "266", - "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": "267", - "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": "268" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send" - } - ], - "parameters": [ - { - "$id": "269", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "270", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "271", - "type": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringsOnly", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "273", - "kind": "client", - "name": "StringExtensible", - "namespace": "Type.Union", - "doc": "Describe union of string string | \"b\" | \"c\"", - "methods": [ - { - "$id": "274", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "275", - "name": "get", - "resourceName": "StringExtensible", - "accessibility": "public", - "parameters": [ - { - "$id": "276", - "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": "277", - "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": "278", - "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": "279", - "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": "280", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "281", - "name": "send", - "resourceName": "StringExtensible", - "accessibility": "public", - "parameters": [ - { - "$id": "282", - "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": "283", - "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": "284", - "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": "285", - "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": "286", - "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": "287" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send" - } - ], - "parameters": [ - { - "$id": "288", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "289", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "290", - "type": { - "$id": "291", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "292", - "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": "293", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "294", - "name": "get", - "resourceName": "StringExtensibleNamed", - "accessibility": "public", - "parameters": [ - { - "$id": "295", - "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": "296", - "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": "297", - "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": "298", - "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": "299", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "300", - "name": "send", - "resourceName": "StringExtensibleNamed", - "accessibility": "public", - "parameters": [ - { - "$id": "301", - "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": "302", - "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": "303", - "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": "304", - "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": "305", - "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": "306" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send" - } - ], - "parameters": [ - { - "$id": "307", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "308", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "309", - "type": { - "$id": "310", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "311", - "kind": "client", - "name": "IntsOnly", - "namespace": "Type.Union", - "doc": "Describe union of integer 1 | 2 | 3", - "methods": [ - { - "$id": "312", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "313", - "name": "get", - "resourceName": "IntsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "314", - "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": "315", - "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": "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 - } - ], - "response": { - "$id": "317", - "type": { - "$ref": "128" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" - }, - { - "$id": "318", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "319", - "name": "send", - "resourceName": "IntsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "320", - "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": "321", - "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": "322", - "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": "323", - "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": "324", - "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": "325" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send" - } - ], - "parameters": [ - { - "$id": "326", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "327", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "328", - "type": { - "$id": "329", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "330", - "kind": "client", - "name": "FloatsOnly", - "namespace": "Type.Union", - "doc": "Describe union of floats 1.1 | 2.2 | 3.3", - "methods": [ - { - "$id": "331", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "332", - "name": "get", - "resourceName": "FloatsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "333", - "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": "334", - "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": "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 - } - ], - "response": { - "$id": "336", - "type": { - "$ref": "136" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" - }, - { - "$id": "337", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "338", - "name": "send", - "resourceName": "FloatsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "339", - "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": "340", - "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": "341", - "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": "342", - "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": "343", - "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": "344" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send" - } - ], - "parameters": [ - { - "$id": "345", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "346", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "347", - "type": { - "$id": "348", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "349", - "kind": "client", - "name": "ModelsOnly", - "namespace": "Type.Union", - "doc": "Describe union of models", - "methods": [ - { - "$id": "350", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "351", - "name": "get", - "resourceName": "ModelsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "352", - "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": "353", - "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": "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 - } - ], - "response": { - "$id": "355", - "type": { - "$ref": "144" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" - }, - { - "$id": "356", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "357", - "name": "send", - "resourceName": "ModelsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "358", - "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": "359", - "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": "360", - "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": "361", - "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": "362", - "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": "363" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send" - } - ], - "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.Union.ModelsOnly", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "368", - "kind": "client", - "name": "EnumsOnly", - "namespace": "Type.Union", - "doc": "Describe union of 2 different enums", - "methods": [ - { - "$id": "369", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "370", - "name": "get", - "resourceName": "EnumsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "371", - "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": "372", - "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": "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 - } - ], - "response": { - "$id": "374", - "type": { - "$ref": "163" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" - }, - { - "$id": "375", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "376", - "name": "send", - "resourceName": "EnumsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "377", - "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": "378", - "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": [] + }, + { + "$ref": "128" + } + ], + "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": "379", - "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": "380", - "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": "381", - "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": "382" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send" - } - ], - "parameters": [ - { - "$id": "383", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "384", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "385", - "type": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "387", - "kind": "client", - "name": "StringAndArray", - "namespace": "Type.Union", - "doc": "Describe union of a string and an array of strings", - "methods": [ - { - "$id": "388", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "389", - "name": "get", - "resourceName": "StringAndArray", - "accessibility": "public", - "parameters": [ - { - "$id": "390", - "name": "accept", - "nameInRequest": "Accept", + "$ref": "124" + }, + { + "$id": "133", + "kind": "model", + "name": "SendRequest7", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "134", + "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": "391", - "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": "392", - "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": "393", - "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": "394", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "395", - "name": "send", - "resourceName": "StringAndArray", - "accessibility": "public", - "parameters": [ - { - "$id": "396", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$id": "135", + "kind": "model", + "name": "GetResponse8", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "136", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "94" + "$id": "137", + "kind": "model", + "name": "MixedLiteralsCases", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "138", + "kind": "property", + "name": "stringLiteral", + "serializedName": "stringLiteral", + "doc": "This should be receive/send the \"a\" variant", + "type": { + "$id": "139", + "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": "140", + "kind": "property", + "name": "intLiteral", + "serializedName": "intLiteral", + "doc": "This should be receive/send the 2 variant", + "type": { + "$ref": "139" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral", + "serializationOptions": { + "json": { + "name": "intLiteral" + } + } + }, + { + "$id": "141", + "kind": "property", + "name": "floatLiteral", + "serializedName": "floatLiteral", + "doc": "This should be receive/send the 3.3 variant", + "type": { + "$ref": "139" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral", + "serializationOptions": { + "json": { + "name": "floatLiteral" + } + } + }, + { + "$id": "142", + "kind": "property", + "name": "booleanLiteral", + "serializedName": "booleanLiteral", + "doc": "This should be receive/send the true variant", + "type": { + "$ref": "139" + }, + "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": "397", - "name": "sendRequest7", - "nameInRequest": "sendRequest7", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + } + ] + }, + { + "$ref": "137" + }, + { + "$id": "143", + "kind": "model", + "name": "SendRequest8", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "144", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "195" + "$ref": "137" }, - "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": "398", - "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": "399", - "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": "400", - "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": "401" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send" - } - ], - "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.Union.StringAndArray", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] }, { - "$id": "406", - "kind": "client", - "name": "MixedLiterals", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", - "methods": [ - { - "$id": "407", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "408", - "name": "get", - "resourceName": "MixedLiterals", - "accessibility": "public", - "parameters": [ - { - "$id": "409", - "name": "accept", - "nameInRequest": "Accept", + "$id": "145", + "kind": "model", + "name": "GetResponse9", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "146", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "96" + "$id": "147", + "kind": "model", + "name": "MixedTypesCases", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "148", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "This should be receive/send the Cat variant", + "type": { + "$id": "149", + "kind": "union", + "name": "MixedTypesCasesModel", + "variantTypes": [ + { + "$ref": "107" + }, + { + "$ref": "80" + }, + { + "$id": "150", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$id": "151", + "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": "152", + "kind": "property", + "name": "literal", + "serializedName": "literal", + "doc": "This should be receive/send the \"a\" variant", + "type": { + "$ref": "149" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal", + "serializationOptions": { + "json": { + "name": "literal" + } + } + }, + { + "$id": "153", + "kind": "property", + "name": "int", + "serializedName": "int", + "doc": "This should be receive/send the int variant", + "type": { + "$ref": "149" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int", + "serializationOptions": { + "json": { + "name": "int" + } + } + }, + { + "$id": "154", + "kind": "property", + "name": "boolean", + "serializedName": "boolean", + "doc": "This should be receive/send the boolean variant", + "type": { + "$ref": "149" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean", + "serializationOptions": { + "json": { + "name": "boolean" + } + } + }, + { + "$id": "155", + "kind": "property", + "name": "array", + "serializedName": "array", + "doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", + "type": { + "$id": "156", + "kind": "array", + "name": "Array1", + "valueType": { + "$ref": "149" + }, + "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": "410", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "199" - }, - "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": "411", - "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": "412", - "type": { - "$ref": "199" + "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" - }, - { - "$id": "413", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "414", - "name": "send", - "resourceName": "MixedLiterals", - "accessibility": "public", - "parameters": [ - { - "$id": "415", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + ] + }, + { + "$ref": "147" + }, + { + "$id": "157", + "kind": "model", + "name": "SendRequest9", + "namespace": "Type.Union", + "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "158", + "kind": "property", + "name": "prop", + "serializedName": "prop", "type": { - "$ref": "98" + "$ref": "147" }, - "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": "416", - "name": "sendRequest8", - "nameInRequest": "sendRequest8", + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop", + "serializationOptions": { + "json": { + "name": "prop" + } + } + } + ] + } + ], + "clients": [ + { + "$id": "159", + "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": "217" + "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": "417", - "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": "160", + "kind": "client", + "name": "StringsOnly", + "namespace": "Type.Union", + "doc": "Describe union of string \"a\" | \"b\" | \"c\"", + "methods": [ + { + "$id": "161", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "162", + "name": "get", + "resourceName": "StringsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "163", + "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": "164", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "84" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" + }, + { + "$id": "166", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "167", + "name": "send", + "resourceName": "StringsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "168", + "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": "169", + "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": "170", + "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": "171", + "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": "172", + "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": "159" + } + }, { - "$id": "418", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "201" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "173", + "kind": "client", + "name": "StringExtensible", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\"", + "methods": [ + { + "$id": "174", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "175", + "name": "get", + "resourceName": "StringExtensible", + "accessibility": "public", + "parameters": [ + { + "$id": "176", + "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": "177", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "88" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensible.get" + }, + { + "$id": "179", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "180", + "name": "send", + "resourceName": "StringExtensible", + "accessibility": "public", + "parameters": [ + { + "$id": "181", + "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": "182", + "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": "183", + "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": "184", + "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": "185", + "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": "159" + } }, { - "$id": "419", - "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": "420" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send" - } - ], - "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" + "$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": "187", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "188", + "name": "get", + "resourceName": "StringExtensibleNamed", + "accessibility": "public", + "parameters": [ + { + "$id": "189", + "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": "190", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "92" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get" + }, + { + "$id": "192", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "193", + "name": "send", + "resourceName": "StringExtensibleNamed", + "accessibility": "public", + "parameters": [ + { + "$id": "194", + "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": "195", + "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": "196", + "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": "197", + "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": "198", + "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": "159" + } }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals", - "apiVersions": [], - "parent": { - "$ref": "249" - } - }, - { - "$id": "425", - "kind": "client", - "name": "MixedTypes", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", - "methods": [ - { - "$id": "426", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "427", - "name": "get", - "resourceName": "MixedTypes", - "accessibility": "public", - "parameters": [ - { - "$id": "428", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", + { + "$id": "199", + "kind": "client", + "name": "IntsOnly", + "namespace": "Type.Union", + "doc": "Describe union of integer 1 | 2 | 3", + "methods": [ + { + "$id": "200", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "201", + "name": "get", + "resourceName": "IntsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "202", + "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": "203", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "96" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" + }, + { + "$id": "205", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "206", + "name": "send", + "resourceName": "IntsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "207", + "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": "208", + "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": "209", + "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": "210", + "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": "211", + "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": "429", - "statusCodes": [ - 200 + "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "apiVersions": [], + "parent": { + "$ref": "159" + } + }, + { + "$id": "212", + "kind": "client", + "name": "FloatsOnly", + "namespace": "Type.Union", + "doc": "Describe union of floats 1.1 | 2.2 | 3.3", + "methods": [ + { + "$id": "213", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "214", + "name": "get", + "resourceName": "FloatsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "215", + "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": "216", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "100" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" + }, + { + "$id": "218", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "219", + "name": "send", + "resourceName": "FloatsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "220", + "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": "221", + "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": "222", + "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": "223", + "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": "224", + "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": "221" - }, - "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": "159" + } + }, { - "$id": "430", - "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": "431", - "type": { - "$ref": "221" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" - }, - { - "$id": "432", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "433", - "name": "send", - "resourceName": "MixedTypes", - "accessibility": "public", - "parameters": [ - { - "$id": "434", - "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": "225", + "kind": "client", + "name": "ModelsOnly", + "namespace": "Type.Union", + "doc": "Describe union of models", + "methods": [ + { + "$id": "226", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "227", + "name": "get", + "resourceName": "ModelsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "228", + "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": "229", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "104" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" + }, + { + "$id": "231", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "232", + "name": "send", + "resourceName": "ModelsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "233", + "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": "234", + "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": "235", + "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": "236", + "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": "237", + "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": "435", - "name": "sendRequest9", - "nameInRequest": "sendRequest9", - "type": { - "$ref": "245" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", + "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "apiVersions": [], + "parent": { + "$ref": "159" + } + }, + { + "$id": "238", + "kind": "client", + "name": "EnumsOnly", + "namespace": "Type.Union", + "doc": "Describe union of 2 different enums", + "methods": [ + { + "$id": "239", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "240", + "name": "get", + "resourceName": "EnumsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "241", + "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": "242", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "115" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" + }, + { + "$id": "244", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "245", + "name": "send", + "resourceName": "EnumsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "246", + "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": "247", + "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": "248", + "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": "249", + "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": "250", + "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": "436", - "statusCodes": [ - 204 + "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "apiVersions": [], + "parent": { + "$ref": "159" + } + }, + { + "$id": "251", + "kind": "client", + "name": "StringAndArray", + "namespace": "Type.Union", + "doc": "Describe union of a string and an array of strings", + "methods": [ + { + "$id": "252", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "253", + "name": "get", + "resourceName": "StringAndArray", + "accessibility": "public", + "parameters": [ + { + "$id": "254", + "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": "255", + "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": "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 + } + ], + "response": { + "type": { + "$ref": "122" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.StringAndArray.get" + }, + { + "$id": "257", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "258", + "name": "send", + "resourceName": "StringAndArray", + "accessibility": "public", + "parameters": [ + { + "$id": "259", + "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": "260", + "name": "sendRequest7", + "nameInRequest": "sendRequest7", + "type": { + "$ref": "133" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "261", + "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": "262", + "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": "263", + "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": "159" + } + }, { - "$id": "437", - "name": "prop", - "nameInRequest": "prop", - "type": { - "$ref": "223" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "264", + "kind": "client", + "name": "MixedLiterals", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "methods": [ + { + "$id": "265", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "266", + "name": "get", + "resourceName": "MixedLiterals", + "accessibility": "public", + "parameters": [ + { + "$id": "267", + "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": "268", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "135" + }, + "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": "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 + } + ], + "response": { + "type": { + "$ref": "135" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" + }, + { + "$id": "270", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "271", + "name": "send", + "resourceName": "MixedLiterals", + "accessibility": "public", + "parameters": [ + { + "$id": "272", + "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": "273", + "name": "sendRequest8", + "nameInRequest": "sendRequest8", + "type": { + "$ref": "143" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "274", + "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": "275", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "137" + }, + "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": "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": "159" + } }, { - "$id": "438", - "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": "277", + "kind": "client", + "name": "MixedTypes", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "methods": [ + { + "$id": "278", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "279", + "name": "get", + "resourceName": "MixedTypes", + "accessibility": "public", + "parameters": [ + { + "$id": "280", + "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": "281", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "145" + }, + "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": "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 + } + ], + "response": { + "type": { + "$ref": "145" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" + }, + { + "$id": "283", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "284", + "name": "send", + "resourceName": "MixedTypes", + "accessibility": "public", + "parameters": [ + { + "$id": "285", + "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": "286", + "name": "sendRequest9", + "nameInRequest": "sendRequest9", + "type": { + "$ref": "157" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "287", + "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": "288", + "name": "prop", + "nameInRequest": "prop", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "289", + "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": "159" + } } - ], - "response": { - "$id": "439" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send" - } - ], - "parameters": [ - { - "$id": "440", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "441", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "442", - "type": { - "$id": "443", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes", - "apiVersions": [], - "parent": { - "$ref": "249" - } + ] } - ] - } - ] + ] } 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" - ] - } - ] + ] } diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index fa915e6c21e..653c19b4ee3 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", @@ -4885,12 +4882,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 c0931ef1985..68b877a5d9a 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",