From 93e898cea504f4177f937e9c7b5cfe4d8b8a5c41 Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Fri, 1 Nov 2024 13:13:57 +0800 Subject: [PATCH 1/4] feat(http-client-csharp): bump to tcgc 0.47.4 - upgrade tcgc to 0.47.4 - upgrade cadl-ranch to latest version resolve #4938 --- .../http/type/array/tspCodeModel.json | 232 ++--- .../http/type/dictionary/tspCodeModel.json | 14 +- .../http/type/union/tspCodeModel.json | 930 ++++++------------ packages/http-client-csharp/package-lock.json | 298 +++--- packages/http-client-csharp/package.json | 8 +- 5 files changed, 544 insertions(+), 938 deletions(-) diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/tspCodeModel.json index 8867dfccfa..7ab3ba7346 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/tspCodeModel.json @@ -2174,15 +2174,7 @@ "kind": "array", "name": "Array", "valueType": { - "$id": "223", - "kind": "nullable", - "type": { - "$id": "224", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } + "$ref": "215" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2200,7 +2192,7 @@ ], "Responses": [ { - "$id": "225", + "$id": "223", "StatusCodes": [ 204 ], @@ -2224,7 +2216,7 @@ } ], "Protocol": { - "$id": "226" + "$id": "224" }, "Parent": "ArrayClient", "Parameters": [ @@ -2235,23 +2227,23 @@ "Decorators": [] }, { - "$id": "227", + "$id": "225", "Name": "NullableInt32Value", "Description": "Array of nullable int32 values", "Operations": [ { - "$id": "228", + "$id": "226", "Name": "get", "ResourceName": "NullableInt32Value", "Accessibility": "public", "Parameters": [ { - "$id": "229", + "$id": "227", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "230", + "$id": "228", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2266,9 +2258,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "231", + "$id": "229", "Type": { - "$id": "232", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2277,14 +2269,14 @@ } }, { - "$id": "233", + "$id": "231", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "234", + "$id": "232", "kind": "constant", "valueType": { - "$id": "235", + "$id": "233", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2306,19 +2298,19 @@ ], "Responses": [ { - "$id": "236", + "$id": "234", "StatusCodes": [ 200 ], "BodyType": { - "$id": "237", + "$id": "235", "kind": "array", "name": "Array", "valueType": { - "$id": "238", + "$id": "236", "kind": "nullable", "type": { - "$id": "239", + "$id": "237", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2347,24 +2339,24 @@ "Decorators": [] }, { - "$id": "240", + "$id": "238", "Name": "put", "ResourceName": "NullableInt32Value", "Accessibility": "public", "Parameters": [ { - "$ref": "229" + "$ref": "227" }, { - "$id": "241", + "$id": "239", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "242", + "$id": "240", "kind": "constant", "valueType": { - "$id": "243", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2384,23 +2376,15 @@ "SkipUrlEncoding": false }, { - "$id": "244", + "$id": "242", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "245", + "$id": "243", "kind": "array", "name": "Array", "valueType": { - "$id": "246", - "kind": "nullable", - "type": { - "$id": "247", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - } + "$ref": "236" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2418,7 +2402,7 @@ ], "Responses": [ { - "$id": "248", + "$id": "244", "StatusCodes": [ 204 ], @@ -2442,34 +2426,34 @@ } ], "Protocol": { - "$id": "249" + "$id": "245" }, "Parent": "ArrayClient", "Parameters": [ { - "$ref": "229" + "$ref": "227" } ], "Decorators": [] }, { - "$id": "250", + "$id": "246", "Name": "NullableBooleanValue", "Description": "Array of nullable boolean values", "Operations": [ { - "$id": "251", + "$id": "247", "Name": "get", "ResourceName": "NullableBooleanValue", "Accessibility": "public", "Parameters": [ { - "$id": "252", + "$id": "248", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "253", + "$id": "249", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2484,9 +2468,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "254", + "$id": "250", "Type": { - "$id": "255", + "$id": "251", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2495,14 +2479,14 @@ } }, { - "$id": "256", + "$id": "252", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "257", + "$id": "253", "kind": "constant", "valueType": { - "$id": "258", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2524,19 +2508,19 @@ ], "Responses": [ { - "$id": "259", + "$id": "255", "StatusCodes": [ 200 ], "BodyType": { - "$id": "260", + "$id": "256", "kind": "array", "name": "Array", "valueType": { - "$id": "261", + "$id": "257", "kind": "nullable", "type": { - "$id": "262", + "$id": "258", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2565,24 +2549,24 @@ "Decorators": [] }, { - "$id": "263", + "$id": "259", "Name": "put", "ResourceName": "NullableBooleanValue", "Accessibility": "public", "Parameters": [ { - "$ref": "252" + "$ref": "248" }, { - "$id": "264", + "$id": "260", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "265", + "$id": "261", "kind": "constant", "valueType": { - "$id": "266", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2602,23 +2586,15 @@ "SkipUrlEncoding": false }, { - "$id": "267", + "$id": "263", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "268", + "$id": "264", "kind": "array", "name": "Array", "valueType": { - "$id": "269", - "kind": "nullable", - "type": { - "$id": "270", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } + "$ref": "257" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2636,7 +2612,7 @@ ], "Responses": [ { - "$id": "271", + "$id": "265", "StatusCodes": [ 204 ], @@ -2660,34 +2636,34 @@ } ], "Protocol": { - "$id": "272" + "$id": "266" }, "Parent": "ArrayClient", "Parameters": [ { - "$ref": "252" + "$ref": "248" } ], "Decorators": [] }, { - "$id": "273", + "$id": "267", "Name": "NullableStringValue", "Description": "Array of nullable string values", "Operations": [ { - "$id": "274", + "$id": "268", "Name": "get", "ResourceName": "NullableStringValue", "Accessibility": "public", "Parameters": [ { - "$id": "275", + "$id": "269", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "276", + "$id": "270", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2702,9 +2678,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "277", + "$id": "271", "Type": { - "$id": "278", + "$id": "272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2713,14 +2689,14 @@ } }, { - "$id": "279", + "$id": "273", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "280", + "$id": "274", "kind": "constant", "valueType": { - "$id": "281", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2742,19 +2718,19 @@ ], "Responses": [ { - "$id": "282", + "$id": "276", "StatusCodes": [ 200 ], "BodyType": { - "$id": "283", + "$id": "277", "kind": "array", "name": "Array", "valueType": { - "$id": "284", + "$id": "278", "kind": "nullable", "type": { - "$id": "285", + "$id": "279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2783,24 +2759,24 @@ "Decorators": [] }, { - "$id": "286", + "$id": "280", "Name": "put", "ResourceName": "NullableStringValue", "Accessibility": "public", "Parameters": [ { - "$ref": "275" + "$ref": "269" }, { - "$id": "287", + "$id": "281", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "288", + "$id": "282", "kind": "constant", "valueType": { - "$id": "289", + "$id": "283", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2820,23 +2796,15 @@ "SkipUrlEncoding": false }, { - "$id": "290", + "$id": "284", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "291", + "$id": "285", "kind": "array", "name": "Array", "valueType": { - "$id": "292", - "kind": "nullable", - "type": { - "$id": "293", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } + "$ref": "278" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2854,7 +2822,7 @@ ], "Responses": [ { - "$id": "294", + "$id": "286", "StatusCodes": [ 204 ], @@ -2878,34 +2846,34 @@ } ], "Protocol": { - "$id": "295" + "$id": "287" }, "Parent": "ArrayClient", "Parameters": [ { - "$ref": "275" + "$ref": "269" } ], "Decorators": [] }, { - "$id": "296", + "$id": "288", "Name": "NullableModelValue", "Description": "Array of nullable model values", "Operations": [ { - "$id": "297", + "$id": "289", "Name": "get", "ResourceName": "NullableModelValue", "Accessibility": "public", "Parameters": [ { - "$id": "298", + "$id": "290", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "299", + "$id": "291", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2920,9 +2888,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "300", + "$id": "292", "Type": { - "$id": "301", + "$id": "293", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2931,14 +2899,14 @@ } }, { - "$id": "302", + "$id": "294", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "303", + "$id": "295", "kind": "constant", "valueType": { - "$id": "304", + "$id": "296", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2960,16 +2928,16 @@ ], "Responses": [ { - "$id": "305", + "$id": "297", "StatusCodes": [ 200 ], "BodyType": { - "$id": "306", + "$id": "298", "kind": "array", "name": "Array", "valueType": { - "$id": "307", + "$id": "299", "kind": "nullable", "type": { "$ref": "2" @@ -2997,24 +2965,24 @@ "Decorators": [] }, { - "$id": "308", + "$id": "300", "Name": "put", "ResourceName": "NullableModelValue", "Accessibility": "public", "Parameters": [ { - "$ref": "298" + "$ref": "290" }, { - "$id": "309", + "$id": "301", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "310", + "$id": "302", "kind": "constant", "valueType": { - "$id": "311", + "$id": "303", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3034,19 +3002,15 @@ "SkipUrlEncoding": false }, { - "$id": "312", + "$id": "304", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "313", + "$id": "305", "kind": "array", "name": "Array", "valueType": { - "$id": "314", - "kind": "nullable", - "type": { - "$ref": "2" - } + "$ref": "299" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3064,7 +3028,7 @@ ], "Responses": [ { - "$id": "315", + "$id": "306", "StatusCodes": [ 204 ], @@ -3088,12 +3052,12 @@ } ], "Protocol": { - "$id": "316" + "$id": "307" }, "Parent": "ArrayClient", "Parameters": [ { - "$ref": "298" + "$ref": "290" } ], "Decorators": [] diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/tspCodeModel.json index 644587fe5d..1e2563db4b 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/tspCodeModel.json @@ -2492,15 +2492,7 @@ "decorators": [] }, "valueType": { - "$id": "265", - "kind": "nullable", - "type": { - "$id": "266", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - } + "$ref": "256" }, "decorators": [] }, @@ -2517,7 +2509,7 @@ ], "Responses": [ { - "$id": "267", + "$id": "265", "StatusCodes": [ 204 ], @@ -2541,7 +2533,7 @@ } ], "Protocol": { - "$id": "268" + "$id": "266" }, "Parent": "DictionaryClient", "Parameters": [ diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/tspCodeModel.json index 14640ed17f..c5b47dedf8 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/tspCodeModel.json @@ -566,42 +566,7 @@ "serializedName": "literal", "description": "This should be receive/send the \"a\" variant", "type": { - "$id": "67", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "68", - "kind": "constant", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "70", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "71", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -611,48 +576,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal" }, { - "$id": "72", + "$id": "67", "kind": "property", "name": "int", "serializedName": "int", "description": "This should be receive/send the int variant", "type": { - "$id": "73", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "76", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "77", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -662,48 +592,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int" }, { - "$id": "78", + "$id": "68", "kind": "property", "name": "boolean", "serializedName": "boolean", "description": "This should be receive/send the boolean variant", "type": { - "$id": "79", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "80", - "kind": "constant", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "82", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "83", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "optional": false, "readOnly": false, @@ -713,52 +608,17 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean" }, { - "$id": "84", + "$id": "69", "kind": "property", "name": "array", "serializedName": "array", "description": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", "type": { - "$id": "85", + "$id": "70", "kind": "array", "name": "Array", "valueType": { - "$id": "86", - "kind": "union", - "name": "MixedTypesCasesModel", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "89", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - { - "$id": "90", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - } - ], - "decorators": [] + "$ref": "58" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -788,7 +648,7 @@ "$ref": "59" }, { - "$id": "91", + "$id": "71", "kind": "model", "name": "SendRequest", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -796,7 +656,7 @@ "decorators": [], "properties": [ { - "$id": "92", + "$id": "72", "kind": "property", "name": "prop", "serializedName": "prop", @@ -813,7 +673,7 @@ ] }, { - "$id": "93", + "$id": "73", "kind": "model", "name": "GetResponse1", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -821,12 +681,12 @@ "decorators": [], "properties": [ { - "$id": "94", + "$id": "74", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "95", + "$id": "75", "kind": "model", "name": "MixedLiteralsCases", "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases", @@ -834,21 +694,21 @@ "decorators": [], "properties": [ { - "$id": "96", + "$id": "76", "kind": "property", "name": "stringLiteral", "serializedName": "stringLiteral", "description": "This should be receive/send the \"a\" variant", "type": { - "$id": "97", + "$id": "77", "kind": "union", "name": "MixedLiteralsCasesStringLiteral1", "variantTypes": [ { - "$id": "98", + "$id": "78", "kind": "constant", "valueType": { - "$id": "99", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -858,10 +718,10 @@ "decorators": [] }, { - "$id": "100", + "$id": "80", "kind": "constant", "valueType": { - "$id": "101", + "$id": "81", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -871,10 +731,10 @@ "decorators": [] }, { - "$id": "102", + "$id": "82", "kind": "constant", "valueType": { - "$id": "103", + "$id": "83", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -884,10 +744,10 @@ "decorators": [] }, { - "$id": "104", + "$id": "84", "kind": "constant", "valueType": { - "$id": "105", + "$id": "85", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -907,70 +767,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.stringLiteral" }, { - "$id": "106", + "$id": "86", "kind": "property", "name": "intLiteral", "serializedName": "intLiteral", "description": "This should be receive/send the 2 variant", "type": { - "$id": "107", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "110", - "kind": "constant", - "valueType": { - "$id": "111", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "112", - "kind": "constant", - "valueType": { - "$id": "113", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -980,70 +783,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral" }, { - "$id": "116", + "$id": "87", "kind": "property", "name": "floatLiteral", "serializedName": "floatLiteral", "description": "This should be receive/send the 3.3 variant", "type": { - "$id": "117", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "118", - "kind": "constant", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "120", - "kind": "constant", - "valueType": { - "$id": "121", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "122", - "kind": "constant", - "valueType": { - "$id": "123", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "valueType": { - "$id": "125", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -1053,70 +799,13 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral" }, { - "$id": "126", + "$id": "88", "kind": "property", "name": "booleanLiteral", "serializedName": "booleanLiteral", "description": "This should be receive/send the true variant", "type": { - "$id": "127", - "kind": "union", - "name": "MixedLiteralsCasesStringLiteral1", - "variantTypes": [ - { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "a", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 2, - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "valueType": { - "$id": "133", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "value": 3.3, - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - } - ], - "decorators": [] + "$ref": "77" }, "optional": false, "readOnly": false, @@ -1137,10 +826,10 @@ ] }, { - "$ref": "95" + "$ref": "75" }, { - "$id": "136", + "$id": "89", "kind": "model", "name": "SendRequest1", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1148,12 +837,12 @@ "decorators": [], "properties": [ { - "$id": "137", + "$id": "90", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "95" + "$ref": "75" }, "optional": false, "readOnly": false, @@ -1165,7 +854,7 @@ ] }, { - "$id": "138", + "$id": "91", "kind": "model", "name": "GetResponse2", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1173,12 +862,12 @@ "decorators": [], "properties": [ { - "$id": "139", + "$id": "92", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "140", + "$id": "93", "kind": "model", "name": "StringAndArrayCases", "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases", @@ -1186,29 +875,29 @@ "decorators": [], "properties": [ { - "$id": "141", + "$id": "94", "kind": "property", "name": "string", "serializedName": "string", "description": "This should be receive/send the string variant", "type": { - "$id": "142", + "$id": "95", "kind": "union", "name": "StringAndArrayCasesString", "variantTypes": [ { - "$id": "143", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "144", + "$id": "97", "kind": "array", "name": "Array", "valueType": { - "$id": "145", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1228,29 +917,29 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.string" }, { - "$id": "146", + "$id": "99", "kind": "property", "name": "array", "serializedName": "array", "description": "This should be receive/send the array variant", "type": { - "$id": "147", + "$id": "100", "kind": "union", "name": "StringAndArrayCasesArray", "variantTypes": [ { - "$id": "148", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "149", + "$id": "102", "kind": "array", "name": "Array", "valueType": { - "$id": "150", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1281,10 +970,10 @@ ] }, { - "$ref": "140" + "$ref": "93" }, { - "$id": "151", + "$id": "104", "kind": "model", "name": "SendRequest2", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1292,12 +981,12 @@ "decorators": [], "properties": [ { - "$id": "152", + "$id": "105", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "140" + "$ref": "93" }, "optional": false, "readOnly": false, @@ -1309,7 +998,7 @@ ] }, { - "$id": "153", + "$id": "106", "kind": "model", "name": "GetResponse3", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1317,12 +1006,12 @@ "decorators": [], "properties": [ { - "$id": "154", + "$id": "107", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "155", + "$id": "108", "kind": "model", "name": "EnumsOnlyCases", "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases", @@ -1330,7 +1019,7 @@ "decorators": [], "properties": [ { - "$id": "156", + "$id": "109", "kind": "property", "name": "lr", "serializedName": "lr", @@ -1346,7 +1035,7 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr" }, { - "$id": "157", + "$id": "110", "kind": "property", "name": "ud", "serializedName": "ud", @@ -1373,10 +1062,10 @@ ] }, { - "$ref": "155" + "$ref": "108" }, { - "$id": "158", + "$id": "111", "kind": "model", "name": "SendRequest3", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1384,12 +1073,12 @@ "decorators": [], "properties": [ { - "$id": "159", + "$id": "112", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "155" + "$ref": "108" }, "optional": false, "readOnly": false, @@ -1401,7 +1090,7 @@ ] }, { - "$id": "160", + "$id": "113", "kind": "model", "name": "GetResponse4", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1409,12 +1098,12 @@ "decorators": [], "properties": [ { - "$id": "161", + "$id": "114", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "162", + "$id": "115", "kind": "union", "name": "GetResponseProp", "variantTypes": [ @@ -1422,7 +1111,7 @@ "$ref": "59" }, { - "$id": "163", + "$id": "116", "kind": "model", "name": "Dog", "crossLanguageDefinitionId": "Type.Union.Dog", @@ -1430,12 +1119,12 @@ "decorators": [], "properties": [ { - "$id": "164", + "$id": "117", "kind": "property", "name": "bark", "serializedName": "bark", "type": { - "$id": "165", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1463,10 +1152,10 @@ ] }, { - "$ref": "163" + "$ref": "116" }, { - "$id": "166", + "$id": "119", "kind": "model", "name": "SendRequest4", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1474,23 +1163,12 @@ "decorators": [], "properties": [ { - "$id": "167", + "$id": "120", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "168", - "kind": "union", - "name": "GetResponseProp", - "variantTypes": [ - { - "$ref": "59" - }, - { - "$ref": "163" - } - ], - "decorators": [] + "$ref": "115" }, "optional": false, "readOnly": false, @@ -1502,7 +1180,7 @@ ] }, { - "$id": "169", + "$id": "121", "kind": "model", "name": "GetResponse5", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1510,7 +1188,7 @@ "decorators": [], "properties": [ { - "$id": "170", + "$id": "122", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1527,7 +1205,7 @@ ] }, { - "$id": "171", + "$id": "123", "kind": "model", "name": "SendRequest5", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1535,7 +1213,7 @@ "decorators": [], "properties": [ { - "$id": "172", + "$id": "124", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1552,7 +1230,7 @@ ] }, { - "$id": "173", + "$id": "125", "kind": "model", "name": "GetResponse6", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1560,7 +1238,7 @@ "decorators": [], "properties": [ { - "$id": "174", + "$id": "126", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1577,7 +1255,7 @@ ] }, { - "$id": "175", + "$id": "127", "kind": "model", "name": "SendRequest6", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1585,7 +1263,7 @@ "decorators": [], "properties": [ { - "$id": "176", + "$id": "128", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1602,7 +1280,7 @@ ] }, { - "$id": "177", + "$id": "129", "kind": "model", "name": "GetResponse7", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1610,7 +1288,7 @@ "decorators": [], "properties": [ { - "$id": "178", + "$id": "130", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1627,7 +1305,7 @@ ] }, { - "$id": "179", + "$id": "131", "kind": "model", "name": "SendRequest7", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1635,7 +1313,7 @@ "decorators": [], "properties": [ { - "$id": "180", + "$id": "132", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1652,7 +1330,7 @@ ] }, { - "$id": "181", + "$id": "133", "kind": "model", "name": "GetResponse8", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1660,7 +1338,7 @@ "decorators": [], "properties": [ { - "$id": "182", + "$id": "134", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1677,7 +1355,7 @@ ] }, { - "$id": "183", + "$id": "135", "kind": "model", "name": "SendRequest8", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1685,7 +1363,7 @@ "decorators": [], "properties": [ { - "$id": "184", + "$id": "136", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1702,7 +1380,7 @@ ] }, { - "$id": "185", + "$id": "137", "kind": "model", "name": "GetResponse9", "crossLanguageDefinitionId": "Type.Union.get.Response.anonymous", @@ -1710,7 +1388,7 @@ "decorators": [], "properties": [ { - "$id": "186", + "$id": "138", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1727,7 +1405,7 @@ ] }, { - "$id": "187", + "$id": "139", "kind": "model", "name": "SendRequest9", "crossLanguageDefinitionId": "Type.Union.send.Request.anonymous", @@ -1735,7 +1413,7 @@ "decorators": [], "properties": [ { - "$id": "188", + "$id": "140", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1754,21 +1432,21 @@ ], "Clients": [ { - "$id": "189", + "$id": "141", "Name": "UnionClient", "Description": "Describe scenarios for various combinations of unions.", "Operations": [], "Protocol": { - "$id": "190" + "$id": "142" }, "Parameters": [ { - "$id": "191", + "$id": "143", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "192", + "$id": "144", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1783,9 +1461,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "193", + "$id": "145", "Type": { - "$id": "194", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1797,23 +1475,23 @@ "Decorators": [] }, { - "$id": "195", + "$id": "147", "Name": "StringsOnly", "Description": "Describe union of string \"a\" | \"b\" | \"c\"", "Operations": [ { - "$id": "196", + "$id": "148", "Name": "get", "ResourceName": "StringsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "197", + "$id": "149", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "198", + "$id": "150", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1828,9 +1506,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "199", + "$id": "151", "Type": { - "$id": "200", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1839,14 +1517,14 @@ } }, { - "$id": "201", + "$id": "153", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "202", + "$id": "154", "kind": "constant", "valueType": { - "$id": "203", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1868,12 +1546,12 @@ ], "Responses": [ { - "$id": "204", + "$id": "156", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "185" + "$ref": "137" }, "BodyMediaType": "Json", "Headers": [], @@ -1894,24 +1572,24 @@ "Decorators": [] }, { - "$id": "205", + "$id": "157", "Name": "send", "ResourceName": "StringsOnly", "Accessibility": "public", "Parameters": [ { - "$ref": "197" + "$ref": "149" }, { - "$id": "206", + "$id": "158", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "207", + "$id": "159", "kind": "constant", "valueType": { - "$id": "208", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1931,11 +1609,11 @@ "SkipUrlEncoding": false }, { - "$id": "209", + "$id": "161", "Name": "sendRequest9", "NameInRequest": "sendRequest9", "Type": { - "$ref": "187" + "$ref": "139" }, "Location": "Body", "IsApiVersion": false, @@ -1950,7 +1628,7 @@ ], "Responses": [ { - "$id": "210", + "$id": "162", "StatusCodes": [ 204 ], @@ -1974,34 +1652,34 @@ } ], "Protocol": { - "$id": "211" + "$id": "163" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "197" + "$ref": "149" } ], "Decorators": [] }, { - "$id": "212", + "$id": "164", "Name": "StringExtensible", "Description": "Describe union of string string | \"b\" | \"c\"", "Operations": [ { - "$id": "213", + "$id": "165", "Name": "get", "ResourceName": "StringExtensible", "Accessibility": "public", "Parameters": [ { - "$id": "214", + "$id": "166", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "215", + "$id": "167", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2016,9 +1694,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "216", + "$id": "168", "Type": { - "$id": "217", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2027,14 +1705,14 @@ } }, { - "$id": "218", + "$id": "170", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "219", + "$id": "171", "kind": "constant", "valueType": { - "$id": "220", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2056,12 +1734,12 @@ ], "Responses": [ { - "$id": "221", + "$id": "173", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "181" + "$ref": "133" }, "BodyMediaType": "Json", "Headers": [], @@ -2082,24 +1760,24 @@ "Decorators": [] }, { - "$id": "222", + "$id": "174", "Name": "send", "ResourceName": "StringExtensible", "Accessibility": "public", "Parameters": [ { - "$ref": "214" + "$ref": "166" }, { - "$id": "223", + "$id": "175", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "224", + "$id": "176", "kind": "constant", "valueType": { - "$id": "225", + "$id": "177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2119,11 +1797,11 @@ "SkipUrlEncoding": false }, { - "$id": "226", + "$id": "178", "Name": "sendRequest8", "NameInRequest": "sendRequest8", "Type": { - "$ref": "183" + "$ref": "135" }, "Location": "Body", "IsApiVersion": false, @@ -2138,7 +1816,7 @@ ], "Responses": [ { - "$id": "227", + "$id": "179", "StatusCodes": [ 204 ], @@ -2162,34 +1840,34 @@ } ], "Protocol": { - "$id": "228" + "$id": "180" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "214" + "$ref": "166" } ], "Decorators": [] }, { - "$id": "229", + "$id": "181", "Name": "StringExtensibleNamed", "Description": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", "Operations": [ { - "$id": "230", + "$id": "182", "Name": "get", "ResourceName": "StringExtensibleNamed", "Accessibility": "public", "Parameters": [ { - "$id": "231", + "$id": "183", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "232", + "$id": "184", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2204,9 +1882,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "233", + "$id": "185", "Type": { - "$id": "234", + "$id": "186", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2215,14 +1893,14 @@ } }, { - "$id": "235", + "$id": "187", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "236", + "$id": "188", "kind": "constant", "valueType": { - "$id": "237", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2244,12 +1922,12 @@ ], "Responses": [ { - "$id": "238", + "$id": "190", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "177" + "$ref": "129" }, "BodyMediaType": "Json", "Headers": [], @@ -2270,24 +1948,24 @@ "Decorators": [] }, { - "$id": "239", + "$id": "191", "Name": "send", "ResourceName": "StringExtensibleNamed", "Accessibility": "public", "Parameters": [ { - "$ref": "231" + "$ref": "183" }, { - "$id": "240", + "$id": "192", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "241", + "$id": "193", "kind": "constant", "valueType": { - "$id": "242", + "$id": "194", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2307,11 +1985,11 @@ "SkipUrlEncoding": false }, { - "$id": "243", + "$id": "195", "Name": "sendRequest7", "NameInRequest": "sendRequest7", "Type": { - "$ref": "179" + "$ref": "131" }, "Location": "Body", "IsApiVersion": false, @@ -2326,7 +2004,7 @@ ], "Responses": [ { - "$id": "244", + "$id": "196", "StatusCodes": [ 204 ], @@ -2350,34 +2028,34 @@ } ], "Protocol": { - "$id": "245" + "$id": "197" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "231" + "$ref": "183" } ], "Decorators": [] }, { - "$id": "246", + "$id": "198", "Name": "IntsOnly", "Description": "Describe union of integer 1 | 2 | 3", "Operations": [ { - "$id": "247", + "$id": "199", "Name": "get", "ResourceName": "IntsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "248", + "$id": "200", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "249", + "$id": "201", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2392,9 +2070,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "250", + "$id": "202", "Type": { - "$id": "251", + "$id": "203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2403,14 +2081,14 @@ } }, { - "$id": "252", + "$id": "204", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "253", + "$id": "205", "kind": "constant", "valueType": { - "$id": "254", + "$id": "206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2432,12 +2110,12 @@ ], "Responses": [ { - "$id": "255", + "$id": "207", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "173" + "$ref": "125" }, "BodyMediaType": "Json", "Headers": [], @@ -2458,24 +2136,24 @@ "Decorators": [] }, { - "$id": "256", + "$id": "208", "Name": "send", "ResourceName": "IntsOnly", "Accessibility": "public", "Parameters": [ { - "$ref": "248" + "$ref": "200" }, { - "$id": "257", + "$id": "209", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "258", + "$id": "210", "kind": "constant", "valueType": { - "$id": "259", + "$id": "211", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2495,11 +2173,11 @@ "SkipUrlEncoding": false }, { - "$id": "260", + "$id": "212", "Name": "sendRequest6", "NameInRequest": "sendRequest6", "Type": { - "$ref": "175" + "$ref": "127" }, "Location": "Body", "IsApiVersion": false, @@ -2514,7 +2192,7 @@ ], "Responses": [ { - "$id": "261", + "$id": "213", "StatusCodes": [ 204 ], @@ -2538,34 +2216,34 @@ } ], "Protocol": { - "$id": "262" + "$id": "214" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "248" + "$ref": "200" } ], "Decorators": [] }, { - "$id": "263", + "$id": "215", "Name": "FloatsOnly", "Description": "Describe union of floats 1.1 | 2.2 | 3.3", "Operations": [ { - "$id": "264", + "$id": "216", "Name": "get", "ResourceName": "FloatsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "265", + "$id": "217", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "266", + "$id": "218", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2580,9 +2258,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "267", + "$id": "219", "Type": { - "$id": "268", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2591,14 +2269,14 @@ } }, { - "$id": "269", + "$id": "221", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "270", + "$id": "222", "kind": "constant", "valueType": { - "$id": "271", + "$id": "223", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2620,12 +2298,12 @@ ], "Responses": [ { - "$id": "272", + "$id": "224", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "169" + "$ref": "121" }, "BodyMediaType": "Json", "Headers": [], @@ -2646,24 +2324,24 @@ "Decorators": [] }, { - "$id": "273", + "$id": "225", "Name": "send", "ResourceName": "FloatsOnly", "Accessibility": "public", "Parameters": [ { - "$ref": "265" + "$ref": "217" }, { - "$id": "274", + "$id": "226", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "275", + "$id": "227", "kind": "constant", "valueType": { - "$id": "276", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2683,11 +2361,11 @@ "SkipUrlEncoding": false }, { - "$id": "277", + "$id": "229", "Name": "sendRequest5", "NameInRequest": "sendRequest5", "Type": { - "$ref": "171" + "$ref": "123" }, "Location": "Body", "IsApiVersion": false, @@ -2702,7 +2380,7 @@ ], "Responses": [ { - "$id": "278", + "$id": "230", "StatusCodes": [ 204 ], @@ -2726,34 +2404,34 @@ } ], "Protocol": { - "$id": "279" + "$id": "231" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "265" + "$ref": "217" } ], "Decorators": [] }, { - "$id": "280", + "$id": "232", "Name": "ModelsOnly", "Description": "Describe union of models", "Operations": [ { - "$id": "281", + "$id": "233", "Name": "get", "ResourceName": "ModelsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "282", + "$id": "234", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "283", + "$id": "235", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2768,9 +2446,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "284", + "$id": "236", "Type": { - "$id": "285", + "$id": "237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2779,14 +2457,14 @@ } }, { - "$id": "286", + "$id": "238", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "287", + "$id": "239", "kind": "constant", "valueType": { - "$id": "288", + "$id": "240", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2808,12 +2486,12 @@ ], "Responses": [ { - "$id": "289", + "$id": "241", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "160" + "$ref": "113" }, "BodyMediaType": "Json", "Headers": [], @@ -2834,24 +2512,24 @@ "Decorators": [] }, { - "$id": "290", + "$id": "242", "Name": "send", "ResourceName": "ModelsOnly", "Accessibility": "public", "Parameters": [ { - "$ref": "282" + "$ref": "234" }, { - "$id": "291", + "$id": "243", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "292", + "$id": "244", "kind": "constant", "valueType": { - "$id": "293", + "$id": "245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2871,11 +2549,11 @@ "SkipUrlEncoding": false }, { - "$id": "294", + "$id": "246", "Name": "sendRequest4", "NameInRequest": "sendRequest4", "Type": { - "$ref": "166" + "$ref": "119" }, "Location": "Body", "IsApiVersion": false, @@ -2890,7 +2568,7 @@ ], "Responses": [ { - "$id": "295", + "$id": "247", "StatusCodes": [ 204 ], @@ -2914,34 +2592,34 @@ } ], "Protocol": { - "$id": "296" + "$id": "248" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "282" + "$ref": "234" } ], "Decorators": [] }, { - "$id": "297", + "$id": "249", "Name": "EnumsOnly", "Description": "Describe union of 2 different enums", "Operations": [ { - "$id": "298", + "$id": "250", "Name": "get", "ResourceName": "EnumsOnly", "Accessibility": "public", "Parameters": [ { - "$id": "299", + "$id": "251", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "300", + "$id": "252", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2956,9 +2634,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "301", + "$id": "253", "Type": { - "$id": "302", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2967,14 +2645,14 @@ } }, { - "$id": "303", + "$id": "255", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "304", + "$id": "256", "kind": "constant", "valueType": { - "$id": "305", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2996,12 +2674,12 @@ ], "Responses": [ { - "$id": "306", + "$id": "258", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "153" + "$ref": "106" }, "BodyMediaType": "Json", "Headers": [], @@ -3022,24 +2700,24 @@ "Decorators": [] }, { - "$id": "307", + "$id": "259", "Name": "send", "ResourceName": "EnumsOnly", "Accessibility": "public", "Parameters": [ { - "$ref": "299" + "$ref": "251" }, { - "$id": "308", + "$id": "260", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "309", + "$id": "261", "kind": "constant", "valueType": { - "$id": "310", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3059,11 +2737,11 @@ "SkipUrlEncoding": false }, { - "$id": "311", + "$id": "263", "Name": "sendRequest3", "NameInRequest": "sendRequest3", "Type": { - "$ref": "158" + "$ref": "111" }, "Location": "Body", "IsApiVersion": false, @@ -3078,7 +2756,7 @@ ], "Responses": [ { - "$id": "312", + "$id": "264", "StatusCodes": [ 204 ], @@ -3102,34 +2780,34 @@ } ], "Protocol": { - "$id": "313" + "$id": "265" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "299" + "$ref": "251" } ], "Decorators": [] }, { - "$id": "314", + "$id": "266", "Name": "StringAndArray", "Description": "Describe union of a string and an array of strings", "Operations": [ { - "$id": "315", + "$id": "267", "Name": "get", "ResourceName": "StringAndArray", "Accessibility": "public", "Parameters": [ { - "$id": "316", + "$id": "268", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "317", + "$id": "269", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3144,9 +2822,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "318", + "$id": "270", "Type": { - "$id": "319", + "$id": "271", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3155,14 +2833,14 @@ } }, { - "$id": "320", + "$id": "272", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "321", + "$id": "273", "kind": "constant", "valueType": { - "$id": "322", + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3184,12 +2862,12 @@ ], "Responses": [ { - "$id": "323", + "$id": "275", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "138" + "$ref": "91" }, "BodyMediaType": "Json", "Headers": [], @@ -3210,24 +2888,24 @@ "Decorators": [] }, { - "$id": "324", + "$id": "276", "Name": "send", "ResourceName": "StringAndArray", "Accessibility": "public", "Parameters": [ { - "$ref": "316" + "$ref": "268" }, { - "$id": "325", + "$id": "277", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "326", + "$id": "278", "kind": "constant", "valueType": { - "$id": "327", + "$id": "279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3247,11 +2925,11 @@ "SkipUrlEncoding": false }, { - "$id": "328", + "$id": "280", "Name": "sendRequest2", "NameInRequest": "sendRequest2", "Type": { - "$ref": "151" + "$ref": "104" }, "Location": "Body", "IsApiVersion": false, @@ -3266,7 +2944,7 @@ ], "Responses": [ { - "$id": "329", + "$id": "281", "StatusCodes": [ 204 ], @@ -3290,34 +2968,34 @@ } ], "Protocol": { - "$id": "330" + "$id": "282" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "316" + "$ref": "268" } ], "Decorators": [] }, { - "$id": "331", + "$id": "283", "Name": "MixedLiterals", "Description": "Describe union of floats \"a\" | 2 | 3.3", "Operations": [ { - "$id": "332", + "$id": "284", "Name": "get", "ResourceName": "MixedLiterals", "Accessibility": "public", "Parameters": [ { - "$id": "333", + "$id": "285", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "334", + "$id": "286", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3332,9 +3010,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "335", + "$id": "287", "Type": { - "$id": "336", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3343,14 +3021,14 @@ } }, { - "$id": "337", + "$id": "289", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "338", + "$id": "290", "kind": "constant", "valueType": { - "$id": "339", + "$id": "291", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3372,12 +3050,12 @@ ], "Responses": [ { - "$id": "340", + "$id": "292", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "93" + "$ref": "73" }, "BodyMediaType": "Json", "Headers": [], @@ -3398,24 +3076,24 @@ "Decorators": [] }, { - "$id": "341", + "$id": "293", "Name": "send", "ResourceName": "MixedLiterals", "Accessibility": "public", "Parameters": [ { - "$ref": "333" + "$ref": "285" }, { - "$id": "342", + "$id": "294", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "343", + "$id": "295", "kind": "constant", "valueType": { - "$id": "344", + "$id": "296", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3435,11 +3113,11 @@ "SkipUrlEncoding": false }, { - "$id": "345", + "$id": "297", "Name": "sendRequest1", "NameInRequest": "sendRequest1", "Type": { - "$ref": "136" + "$ref": "89" }, "Location": "Body", "IsApiVersion": false, @@ -3454,7 +3132,7 @@ ], "Responses": [ { - "$id": "346", + "$id": "298", "StatusCodes": [ 204 ], @@ -3478,34 +3156,34 @@ } ], "Protocol": { - "$id": "347" + "$id": "299" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "333" + "$ref": "285" } ], "Decorators": [] }, { - "$id": "348", + "$id": "300", "Name": "MixedTypes", "Description": "Describe union of floats \"a\" | 2 | 3.3", "Operations": [ { - "$id": "349", + "$id": "301", "Name": "get", "ResourceName": "MixedTypes", "Accessibility": "public", "Parameters": [ { - "$id": "350", + "$id": "302", "Name": "endpoint", "NameInRequest": "endpoint", "Description": "Service host", "Type": { - "$id": "351", + "$id": "303", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3520,9 +3198,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "352", + "$id": "304", "Type": { - "$id": "353", + "$id": "305", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3531,14 +3209,14 @@ } }, { - "$id": "354", + "$id": "306", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "355", + "$id": "307", "kind": "constant", "valueType": { - "$id": "356", + "$id": "308", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3560,7 +3238,7 @@ ], "Responses": [ { - "$id": "357", + "$id": "309", "StatusCodes": [ 200 ], @@ -3586,24 +3264,24 @@ "Decorators": [] }, { - "$id": "358", + "$id": "310", "Name": "send", "ResourceName": "MixedTypes", "Accessibility": "public", "Parameters": [ { - "$ref": "350" + "$ref": "302" }, { - "$id": "359", + "$id": "311", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "360", + "$id": "312", "kind": "constant", "valueType": { - "$id": "361", + "$id": "313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3623,11 +3301,11 @@ "SkipUrlEncoding": false }, { - "$id": "362", + "$id": "314", "Name": "sendRequest", "NameInRequest": "sendRequest", "Type": { - "$ref": "91" + "$ref": "71" }, "Location": "Body", "IsApiVersion": false, @@ -3642,7 +3320,7 @@ ], "Responses": [ { - "$id": "363", + "$id": "315", "StatusCodes": [ 204 ], @@ -3666,12 +3344,12 @@ } ], "Protocol": { - "$id": "364" + "$id": "316" }, "Parent": "UnionClient", "Parameters": [ { - "$ref": "350" + "$ref": "302" } ], "Decorators": [] diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index d2c6bc2c1e..be5c3a84fc 100644 --- a/packages/http-client-csharp/package-lock.json +++ b/packages/http-client-csharp/package-lock.json @@ -12,10 +12,10 @@ "json-serialize-refs": "0.1.0-0" }, "devDependencies": { - "@azure-tools/cadl-ranch": "0.14.7", - "@azure-tools/cadl-ranch-specs": "0.37.7", + "@azure-tools/cadl-ranch": "0.16.0", + "@azure-tools/cadl-ranch-specs": "0.39.0", "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", + "@azure-tools/typespec-client-generator-core": "0.47.4", "@microsoft/api-extractor": "^7.47.9", "@types/node": "~22.7.5", "@typespec/compiler": "0.61.2", @@ -35,7 +35,7 @@ }, "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0 || ~0.48.0-0", - "@azure-tools/typespec-client-generator-core": ">=0.47.1 <1.0.0 || ~0.48.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.47.4 <1.0.0 || ~0.48.0-0", "@typespec/compiler": ">=0.61.2 <1.0.0 || ~0.62.0-0", "@typespec/http": ">=0.61.0 <1.0.0 || ~0.62.0-0", "@typespec/openapi": ">=0.61.0 <1.0.0 || ~0.62.0-0", @@ -63,14 +63,14 @@ } }, "node_modules/@azure-tools/cadl-ranch": { - "version": "0.14.7", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch/-/cadl-ranch-0.14.7.tgz", - "integrity": "sha512-vJrHpLT797aelIYJlFchKsFffmhWyC+zeQ8xlt6NVjdU6xhHdYjFcVVBCTrccCAfOtI2StL3ethK119RAvjWOQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch/-/cadl-ranch-0.16.0.tgz", + "integrity": "sha512-/+gzNzL9/mPm4SH+euuq9cX6Hnnbcz2xywtwFm3j6uiMHzFn5n9lm6ls9s0Mw2691sjVQ9Idokmb65wmQbkYmg==", "dev": true, "license": "MIT", "dependencies": { - "@azure-tools/cadl-ranch-api": "~0.4.7", - "@azure-tools/cadl-ranch-coverage-sdk": "~0.8.4", + "@azure-tools/cadl-ranch-api": "~0.5.0", + "@azure-tools/cadl-ranch-coverage-sdk": "~0.9.0", "@azure-tools/cadl-ranch-expect": "~0.15.5", "@azure/identity": "^4.4.1", "@types/js-yaml": "^4.0.5", @@ -79,9 +79,9 @@ "@typespec/rest": "~0.61.0", "ajv": "8.17.1", "axios": "^1.7.5", - "body-parser": "^1.20.2", + "body-parser": "^1.20.3", "deep-equal": "^2.2.0", - "express": "^4.19.2", + "express": "^4.20.0", "express-promise-router": "^4.1.1", "form-data": "^3.0.1", "glob": "^11.0.0", @@ -104,15 +104,15 @@ } }, "node_modules/@azure-tools/cadl-ranch-api": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-api/-/cadl-ranch-api-0.4.7.tgz", - "integrity": "sha512-eSl2RStE1Vbbe09jITyGyScXdDGO9hwKojBc+QVnpYARsF+m2J55D8ImJBZ8HNB7iURxgi1psx+oQy5PsHkFKw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-api/-/cadl-ranch-api-0.5.0.tgz", + "integrity": "sha512-awgLMCWGy4VxIJ5n9SJuTH0WfZFsUv5kYffIYfvGPtV3NIkCwO1u39Polb4BBR8GLELWjRuHMxYsmhwpTzRBpw==", "dev": true, "license": "MIT", "dependencies": { - "body-parser": "^1.20.2", + "body-parser": "^1.20.3", "deep-equal": "^2.2.0", - "express": "^4.19.2", + "express": "^4.20.0", "express-promise-router": "^4.1.1", "glob": "^11.0.0", "morgan": "^1.10.0", @@ -168,9 +168,9 @@ } }, "node_modules/@azure-tools/cadl-ranch-api/node_modules/lru-cache": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.1.tgz", - "integrity": "sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", + "integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", "dev": true, "license": "ISC", "engines": { @@ -211,10 +211,11 @@ } }, "node_modules/@azure-tools/cadl-ranch-coverage-sdk": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-coverage-sdk/-/cadl-ranch-coverage-sdk-0.8.4.tgz", - "integrity": "sha512-N207EZEdJrXDKUVmi5Cnw/4y+/Ou9dTbdhMPDoLaalUxZp8T/YK+Y057/M88G0dY76PEAwWPPDolLchW62LZNQ==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-coverage-sdk/-/cadl-ranch-coverage-sdk-0.9.0.tgz", + "integrity": "sha512-u4WU5U6Ps6oct9E3FiBdORMsSiqpV1VBFeiqH4ZTXCV3A245n3GzznRexZ5bDuRlRY4ea2BVvKrVnemaYaLp+w==", "dev": true, + "license": "MIT", "dependencies": { "@azure/identity": "^4.4.1", "@azure/storage-blob": "^12.24.0", @@ -241,14 +242,14 @@ } }, "node_modules/@azure-tools/cadl-ranch-specs": { - "version": "0.37.7", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-specs/-/cadl-ranch-specs-0.37.7.tgz", - "integrity": "sha512-Zqe5AAadPb4qa34vUlJBw5oPELlcvCwC3sMeqap6gsw1dvuFD80YrskgS0bnHtTjEERtTsFSLtjuvu74KK2b+Q==", + "version": "0.39.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-specs/-/cadl-ranch-specs-0.39.0.tgz", + "integrity": "sha512-twJYI4Bj8Me+5Cll5LbeF9WXFJah/ry6oNgTXAdz/77BiXwS/oSu33SUJUo1P3ZKiqnQEyGWSkyMCVxEM+7GJw==", "dev": true, "license": "MIT", "dependencies": { - "@azure-tools/cadl-ranch": "~0.14.7", - "@azure-tools/cadl-ranch-api": "~0.4.7" + "@azure-tools/cadl-ranch": "~0.16.0", + "@azure-tools/cadl-ranch-api": "~0.5.0" }, "engines": { "node": ">=16.0.0" @@ -365,9 +366,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.47.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.1.tgz", - "integrity": "sha512-kgjGnnOaHewa8PjmZcEY4+UrEMBrXhOpMxDuhlMnFfOvCo3uZc3FVryoNrDHkZ8weCn6sjxo8zHcj1lpCg4/uw==", + "version": "0.47.4", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.4.tgz", + "integrity": "sha512-oXA8rHzBsoofzSXvGLGohj6VDYegtgAfGMWo2o4ubew1bS4cvl3CYl9DJ54blqafxtJXnNh4SdjadeHTsCz2mw==", "dev": true, "license": "MIT", "dependencies": { @@ -387,37 +388,27 @@ } }, "node_modules/@azure/abort-controller": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.1.0.tgz", - "integrity": "sha512-TrRLIoSQVzfAJX9H1JeFjzAoDGcoK1IYX1UImfceTZpsyYfWr09Ss1aHW1y5TrrR3iq6RZLBwJ3E24uwPhwahw==", - "dev": true, - "dependencies": { - "tslib": "^2.2.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@azure/core-auth": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.7.2.tgz", - "integrity": "sha512-Igm/S3fDYmnMq1uKS38Ae1/m37B3zigdlZw+kocwEhh5GjyKjPrXKO2J6rzpC1wAxrNil/jX9BJRqBshyjnF3g==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", "dev": true, + "license": "MIT", "dependencies": { - "@azure/abort-controller": "^2.0.0", - "@azure/core-util": "^1.1.0", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@azure/core-auth/node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "node_modules/@azure/core-auth": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.9.0.tgz", + "integrity": "sha512-FPwHpZywuyasDSLMqJ6fhbOK3TqUdviZNF8OqRGA4W5Ewib2lEEZ+pBsYcBa88B2NGO/SEnYPGhyBqNlE8ilSw==", "dev": true, + "license": "MIT", "dependencies": { + "@azure/abort-controller": "^2.0.0", + "@azure/core-util": "^1.11.0", "tslib": "^2.6.2" }, "engines": { @@ -429,6 +420,7 @@ "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.9.2.tgz", "integrity": "sha512-kRdry/rav3fUKHl/aDLd/pDLcB+4pOFwPPTVEExuMyaI5r+JBbMWqRbCY1pn5BniDaU3lRxO9eaQ1AmSMehl/w==", "dev": true, + "license": "MIT", "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-auth": "^1.4.0", @@ -442,23 +434,12 @@ "node": ">=18.0.0" } }, - "node_modules/@azure/core-client/node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", - "dev": true, - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@azure/core-http-compat": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@azure/core-http-compat/-/core-http-compat-2.1.2.tgz", "integrity": "sha512-5MnV1yqzZwgNLLjlizsU3QqOeQChkIXw781Fwh1xdAqJR5AA32IUaq6xv1BICJvfbHoa+JYcaij2HFkhLbNTJQ==", "dev": true, + "license": "MIT", "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-client": "^1.3.0", @@ -468,23 +449,12 @@ "node": ">=18.0.0" } }, - "node_modules/@azure/core-http-compat/node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", - "dev": true, - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@azure/core-lro": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/@azure/core-lro/-/core-lro-2.7.2.tgz", "integrity": "sha512-0YIpccoX8m/k00O7mDDMdJpbr6mf1yWo2dfmxt5A8XVZVVMz2SSKaEbMCeJRvgQ0IaSlqhjT47p4hVIRRy90xw==", "dev": true, + "license": "MIT", "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-util": "^1.2.0", @@ -495,23 +465,12 @@ "node": ">=18.0.0" } }, - "node_modules/@azure/core-lro/node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", - "dev": true, - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@azure/core-paging": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/@azure/core-paging/-/core-paging-1.6.2.tgz", "integrity": "sha512-YKWi9YuCU04B55h25cnOYZHxXYtEvQEbKST5vqRga7hWY9ydd3FZHdeQF8pyh+acWZvppw13M/LMGx0LABUVMA==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.6.2" }, @@ -520,13 +479,14 @@ } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.16.3.tgz", - "integrity": "sha512-VxLk4AHLyqcHsfKe4MZ6IQ+D+ShuByy+RfStKfSjxJoL3WBWq17VNmrz8aT8etKzqc2nAeIyLxScjpzsS4fz8w==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.17.0.tgz", + "integrity": "sha512-62Vv8nC+uPId3j86XJ0WI+sBf0jlqTqPUFCBNrGtlaUeQUIXWV/D8GE5A1d+Qx8H7OQojn2WguC8kChD6v0shA==", "dev": true, + "license": "MIT", "dependencies": { "@azure/abort-controller": "^2.0.0", - "@azure/core-auth": "^1.4.0", + "@azure/core-auth": "^1.8.0", "@azure/core-tracing": "^1.0.1", "@azure/core-util": "^1.9.0", "@azure/logger": "^1.0.0", @@ -538,23 +498,12 @@ "node": ">=18.0.0" } }, - "node_modules/@azure/core-rest-pipeline/node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", - "dev": true, - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@azure/core-tracing": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.1.2.tgz", - "integrity": "sha512-dawW9ifvWAWmUm9/h+/UQ2jrdvjCJ7VJEuCJ6XVNudzcOwm53BFZH4Q845vjfgoUAM8ZxokvVNxNxAITc502YA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.2.0.tgz", + "integrity": "sha512-UKTiEJPkWcESPYJz3X5uKRYyOcJD+4nYph+KpfdPRnQJVrZfk0KJgdnaAWKfhsBBtAf/D58Az4AvCJEmWgIBAg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.6.2" }, @@ -563,10 +512,11 @@ } }, "node_modules/@azure/core-util": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.9.2.tgz", - "integrity": "sha512-l1Qrqhi4x1aekkV+OlcqsJa4AnAkj5p0JV8omgwjaV9OAbP41lvrMvs+CptfetKkeEaGRGSzby7sjPZEX7+kkQ==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.11.0.tgz", + "integrity": "sha512-DxOSLua+NdpWoSqULhjDyAZTXFdP/LKkqtYuxxz1SCN289zk3OG8UOpnCQAz/tygyACBtWp/BoO72ptK7msY8g==", "dev": true, + "license": "MIT", "dependencies": { "@azure/abort-controller": "^2.0.0", "tslib": "^2.6.2" @@ -575,25 +525,14 @@ "node": ">=18.0.0" } }, - "node_modules/@azure/core-util/node_modules/@azure/abort-controller": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", - "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", - "dev": true, - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@azure/core-xml": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@azure/core-xml/-/core-xml-1.4.3.tgz", - "integrity": "sha512-D6G7FEmDiTctPKuWegX2WTrS1enKZwqYwdKTO6ZN6JMigcCehlT0/CYl+zWpI9vQ9frwwp7GQT3/owaEXgnOsA==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@azure/core-xml/-/core-xml-1.4.4.tgz", + "integrity": "sha512-J4FYAqakGXcbfeZjwjMzjNcpcH4E+JtEBv+xcV1yL0Ydn/6wbQfeFKTCHh9wttAi0lmajHw7yBbHPRG+YHckZQ==", "dev": true, + "license": "MIT", "dependencies": { - "fast-xml-parser": "^4.3.2", + "fast-xml-parser": "^4.4.1", "tslib": "^2.6.2" }, "engines": { @@ -601,20 +540,21 @@ } }, "node_modules/@azure/identity": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.4.1.tgz", - "integrity": "sha512-DwnG4cKFEM7S3T+9u05NstXU/HN0dk45kPOinUyNKsn5VWwpXd9sbPKEg6kgJzGbm1lMuhx9o31PVbCtM5sfBA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.5.0.tgz", + "integrity": "sha512-EknvVmtBuSIic47xkOqyNabAme0RYTw52BTMz8eBgU1ysTyMrD1uOoM+JdS0J/4Yfp98IBT3osqq3BfwSaNaGQ==", "dev": true, + "license": "MIT", "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.5.0", + "@azure/abort-controller": "^2.0.0", + "@azure/core-auth": "^1.9.0", "@azure/core-client": "^1.9.2", - "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-rest-pipeline": "^1.17.0", "@azure/core-tracing": "^1.0.0", - "@azure/core-util": "^1.3.0", + "@azure/core-util": "^1.11.0", "@azure/logger": "^1.0.0", - "@azure/msal-browser": "^3.14.0", - "@azure/msal-node": "^2.9.2", + "@azure/msal-browser": "^3.26.1", + "@azure/msal-node": "^2.15.0", "events": "^3.0.0", "jws": "^4.0.0", "open": "^8.0.0", @@ -630,6 +570,7 @@ "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.1.4.tgz", "integrity": "sha512-4IXXzcCdLdlXuCG+8UKEwLA1T1NHqUfanhXYHiQTn+6sfWCZXduqbtXDGceg3Ce5QxTGo7EqmbV6Bi+aqKuClQ==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.6.2" }, @@ -638,33 +579,36 @@ } }, "node_modules/@azure/msal-browser": { - "version": "3.23.0", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-3.23.0.tgz", - "integrity": "sha512-+QgdMvaeEpdtgRTD7AHHq9aw8uga7mXVHV1KshO1RQ2uI5B55xJ4aEpGlg/ga3H+0arEVcRfT4ZVmX7QLXiCVw==", + "version": "3.26.1", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-3.26.1.tgz", + "integrity": "sha512-y78sr9g61aCAH9fcLO1um+oHFXc1/5Ap88RIsUSuzkm0BHzFnN+PXGaQeuM1h5Qf5dTnWNOd6JqkskkMPAhh7Q==", "dev": true, + "license": "MIT", "dependencies": { - "@azure/msal-common": "14.14.2" + "@azure/msal-common": "14.15.0" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "14.14.2", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.14.2.tgz", - "integrity": "sha512-XV0P5kSNwDwCA/SjIxTe9mEAsKB0NqGNSuaVrkCCE2lAyBr/D6YtD80Vkdp4tjWnPFwjzkwldjr1xU/facOJog==", + "version": "14.15.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.15.0.tgz", + "integrity": "sha512-ImAQHxmpMneJ/4S8BRFhjt1MZ3bppmpRPYYNyzeQPeFN288YKbb8TmmISQEbtfkQ1BPASvYZU5doIZOPBAqENQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-node": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.13.1.tgz", - "integrity": "sha512-sijfzPNorKt6+9g1/miHwhj6Iapff4mPQx1azmmZExgzUROqWTM1o3ACyxDja0g47VpowFy/sxTM/WsuCyXTiw==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.15.0.tgz", + "integrity": "sha512-gVPW8YLz92ZeCibQH2QUw96odJoiM3k/ZPH3f2HxptozmH6+OnyyvKXo/Egg39HAM230akarQKHf0W74UHlh0Q==", "dev": true, + "license": "MIT", "dependencies": { - "@azure/msal-common": "14.14.2", + "@azure/msal-common": "14.15.0", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" }, @@ -673,12 +617,13 @@ } }, "node_modules/@azure/storage-blob": { - "version": "12.24.0", - "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.24.0.tgz", - "integrity": "sha512-l8cmWM4C7RoNCBOImoFMxhTXe1Lr+8uQ/IgnhRNMpfoA9bAFWoLG4XrWm6O5rKXortreVQuD+fc1hbzWklOZbw==", + "version": "12.25.0", + "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.25.0.tgz", + "integrity": "sha512-oodouhA3nCCIh843tMMbxty3WqfNT+Vgzj3Xo5jqR9UPnzq3d7mzLjlHAYz7lW+b4km3SIgz+NAgztvhm7Z6kQ==", "dev": true, + "license": "MIT", "dependencies": { - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.4.0", "@azure/core-client": "^1.6.2", "@azure/core-http-compat": "^2.0.0", @@ -687,7 +632,7 @@ "@azure/core-rest-pipeline": "^1.10.1", "@azure/core-tracing": "^1.1.2", "@azure/core-util": "^1.6.1", - "@azure/core-xml": "^1.3.2", + "@azure/core-xml": "^1.4.3", "@azure/logger": "^1.0.0", "events": "^3.0.0", "tslib": "^2.2.0" @@ -2215,6 +2160,7 @@ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -2484,7 +2430,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/buffer-from": { "version": "1.1.2", @@ -2866,6 +2813,7 @@ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2936,6 +2884,7 @@ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" } @@ -3094,6 +3043,7 @@ "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.x" } @@ -3269,6 +3219,7 @@ "url": "https://paypal.me/naturalintelligence" } ], + "license": "MIT", "dependencies": { "strnum": "^1.0.5" }, @@ -3777,6 +3728,7 @@ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dev": true, + "license": "MIT", "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -3790,6 +3742,7 @@ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", "dev": true, + "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -3992,6 +3945,7 @@ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", "dev": true, + "license": "MIT", "bin": { "is-docker": "cli.js" }, @@ -4193,6 +4147,7 @@ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, + "license": "MIT", "dependencies": { "is-docker": "^2.0.0" }, @@ -4365,6 +4320,7 @@ "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", "dev": true, + "license": "MIT", "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", @@ -4387,6 +4343,7 @@ "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", "dev": true, + "license": "MIT", "dependencies": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.11", @@ -4398,6 +4355,7 @@ "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", "dev": true, + "license": "MIT", "dependencies": { "jwa": "^1.4.1", "safe-buffer": "^5.0.1" @@ -4408,6 +4366,7 @@ "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", "dev": true, + "license": "MIT", "dependencies": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.11", @@ -4419,6 +4378,7 @@ "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", "dev": true, + "license": "MIT", "dependencies": { "jwa": "^2.0.0", "safe-buffer": "^5.0.1" @@ -4487,43 +4447,50 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isboolean": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isinteger": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isnumber": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isplainobject": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isstring": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.once": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/logform": { "version": "2.6.1", @@ -5059,6 +5026,7 @@ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", "dev": true, + "license": "MIT", "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", @@ -5975,6 +5943,7 @@ "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==", "dev": true, + "license": "MIT", "engines": { "node": ">=4", "npm": ">=6" @@ -6115,7 +6084,8 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/supports-color": { "version": "5.5.0", @@ -6274,10 +6244,11 @@ } }, "node_modules/tslib": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", - "dev": true + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" }, "node_modules/type-detect": { "version": "4.0.8", @@ -6394,6 +6365,7 @@ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index 221cd9c232..e1e1dc6f78 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -47,7 +47,7 @@ }, "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0 || ~0.48.0-0", - "@azure-tools/typespec-client-generator-core": ">=0.47.1 <1.0.0 || ~0.48.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.47.4 <1.0.0 || ~0.48.0-0", "@typespec/compiler": ">=0.61.2 <1.0.0 || ~0.62.0-0", "@typespec/http": ">=0.61.0 <1.0.0 || ~0.62.0-0", "@typespec/openapi": ">=0.61.0 <1.0.0 || ~0.62.0-0", @@ -55,10 +55,10 @@ "@typespec/versioning": ">=0.61.0 <1.0.0 || ~0.62.0-0" }, "devDependencies": { - "@azure-tools/cadl-ranch": "0.14.7", - "@azure-tools/cadl-ranch-specs": "0.37.7", + "@azure-tools/cadl-ranch": "0.16.0", + "@azure-tools/cadl-ranch-specs": "0.39.0", "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.1", + "@azure-tools/typespec-client-generator-core": "0.47.4", "@microsoft/api-extractor": "^7.47.9", "@types/node": "~22.7.5", "@typespec/compiler": "0.61.2", From a2d4ad04b1810e372d5c99b4c3591a492d59f2de Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Fri, 1 Nov 2024 15:07:53 +0800 Subject: [PATCH 2/4] downgrade cadl-ranch due to problematic assertion --- packages/http-client-csharp/package-lock.json | 18 +++++++++--------- packages/http-client-csharp/package.json | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index be5c3a84fc..0a8d4664b0 100644 --- a/packages/http-client-csharp/package-lock.json +++ b/packages/http-client-csharp/package-lock.json @@ -12,8 +12,8 @@ "json-serialize-refs": "0.1.0-0" }, "devDependencies": { - "@azure-tools/cadl-ranch": "0.16.0", - "@azure-tools/cadl-ranch-specs": "0.39.0", + "@azure-tools/cadl-ranch": "0.15.0", + "@azure-tools/cadl-ranch-specs": "0.38.0", "@azure-tools/typespec-azure-core": "0.47.0", "@azure-tools/typespec-client-generator-core": "0.47.4", "@microsoft/api-extractor": "^7.47.9", @@ -63,9 +63,9 @@ } }, "node_modules/@azure-tools/cadl-ranch": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch/-/cadl-ranch-0.16.0.tgz", - "integrity": "sha512-/+gzNzL9/mPm4SH+euuq9cX6Hnnbcz2xywtwFm3j6uiMHzFn5n9lm6ls9s0Mw2691sjVQ9Idokmb65wmQbkYmg==", + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch/-/cadl-ranch-0.15.0.tgz", + "integrity": "sha512-RU8AktXgCW7tuZF5yE2JCQdqY51qp5YJ8bvF82/M1tNwkN8GTxSXde3rBMyYnXJRd/DQUxaCqFMbwX1MgFBWFA==", "dev": true, "license": "MIT", "dependencies": { @@ -242,13 +242,13 @@ } }, "node_modules/@azure-tools/cadl-ranch-specs": { - "version": "0.39.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-specs/-/cadl-ranch-specs-0.39.0.tgz", - "integrity": "sha512-twJYI4Bj8Me+5Cll5LbeF9WXFJah/ry6oNgTXAdz/77BiXwS/oSu33SUJUo1P3ZKiqnQEyGWSkyMCVxEM+7GJw==", + "version": "0.38.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-specs/-/cadl-ranch-specs-0.38.0.tgz", + "integrity": "sha512-AbOpERFpxYGmfFcSxDQl7ZeBy6FHEWFgqqw8FBRaugtVbeAj9BfUOPfc/OSEGNQmEIrzZJpH1N974JqhmKtKYg==", "dev": true, "license": "MIT", "dependencies": { - "@azure-tools/cadl-ranch": "~0.16.0", + "@azure-tools/cadl-ranch": "~0.15.0", "@azure-tools/cadl-ranch-api": "~0.5.0" }, "engines": { diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index e1e1dc6f78..8a04c93808 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -55,8 +55,8 @@ "@typespec/versioning": ">=0.61.0 <1.0.0 || ~0.62.0-0" }, "devDependencies": { - "@azure-tools/cadl-ranch": "0.16.0", - "@azure-tools/cadl-ranch-specs": "0.39.0", + "@azure-tools/cadl-ranch": "0.15.0", + "@azure-tools/cadl-ranch-specs": "0.38.0", "@azure-tools/typespec-azure-core": "0.47.0", "@azure-tools/typespec-client-generator-core": "0.47.4", "@microsoft/api-extractor": "^7.47.9", From 433aa00c2e4716407d9c117659340908f35237a3 Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Mon, 4 Nov 2024 13:47:13 +0800 Subject: [PATCH 3/4] filter out azure core models --- packages/http-client-csharp/emitter/src/lib/model.ts | 3 ++- packages/http-client-csharp/emitter/src/options.ts | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/model.ts b/packages/http-client-csharp/emitter/src/lib/model.ts index fb2a47227d..cb082f9a21 100644 --- a/packages/http-client-csharp/emitter/src/lib/model.ts +++ b/packages/http-client-csharp/emitter/src/lib/model.ts @@ -5,6 +5,7 @@ import { SdkContext, getAllModels, getClientType, + isAzureCoreModel, } from "@azure-tools/typespec-client-generator-core"; import { ModelProperty, Operation, Type, getEffectiveModelType } from "@typespec/compiler"; import { @@ -85,7 +86,7 @@ export function getInputType( export function navigateModels(context: SdkContext, typeCache: SdkTypeMap) { for (const type of getAllModels(context)) { - if (type.name === "") { + if (type.name === "" || isAzureCoreModel(type)) { continue; } if (type.kind === "model") { diff --git a/packages/http-client-csharp/emitter/src/options.ts b/packages/http-client-csharp/emitter/src/options.ts index e39ea3b10b..5a1aff1f4c 100644 --- a/packages/http-client-csharp/emitter/src/options.ts +++ b/packages/http-client-csharp/emitter/src/options.ts @@ -59,7 +59,6 @@ export const NetEmitterOptionsSchema: JSONSchemaType = { "model-namespace": { type: "boolean", nullable: true }, "generate-protocol-methods": { type: "boolean", nullable: true }, "generate-convenience-methods": { type: "boolean", nullable: true }, - "filter-out-core-models": { type: "boolean", nullable: true }, "flatten-union-as-enum": { type: "boolean", nullable: true }, "package-name": { type: "string", nullable: true }, "existing-project-folder": { type: "string", nullable: true }, @@ -121,7 +120,6 @@ export const defaultOptions = { "new-project": false, "clear-output-folder": false, "save-inputs": false, - "filter-out-core-models": false, "generate-protocol-methods": true, "generate-convenience-methods": true, "package-name": undefined, From ee0823685b2837d2ce7dbbb2571399508e56fbcc Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Mon, 4 Nov 2024 14:32:06 +0800 Subject: [PATCH 4/4] keep `filter-out-core-modles` --- packages/http-client-csharp/emitter/src/options.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/http-client-csharp/emitter/src/options.ts b/packages/http-client-csharp/emitter/src/options.ts index 5a1aff1f4c..e39ea3b10b 100644 --- a/packages/http-client-csharp/emitter/src/options.ts +++ b/packages/http-client-csharp/emitter/src/options.ts @@ -59,6 +59,7 @@ export const NetEmitterOptionsSchema: JSONSchemaType = { "model-namespace": { type: "boolean", nullable: true }, "generate-protocol-methods": { type: "boolean", nullable: true }, "generate-convenience-methods": { type: "boolean", nullable: true }, + "filter-out-core-models": { type: "boolean", nullable: true }, "flatten-union-as-enum": { type: "boolean", nullable: true }, "package-name": { type: "string", nullable: true }, "existing-project-folder": { type: "string", nullable: true }, @@ -120,6 +121,7 @@ export const defaultOptions = { "new-project": false, "clear-output-folder": false, "save-inputs": false, + "filter-out-core-models": false, "generate-protocol-methods": true, "generate-convenience-methods": true, "package-name": undefined,