Skip to content

Commit b7e1ff5

Browse files
fix: consume collectionresultdefinition caching fix (Azure#52004)
* fix: consume collectionresultdefinition caching fix * bump mtg version * fix version
1 parent 88c2ddd commit b7e1ff5

File tree

8 files changed

+19
-18
lines changed

8 files changed

+19
-18
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@
457457

458458
<PropertyGroup>
459459
<TestProxyVersion>1.0.0-dev.20250805.1</TestProxyVersion>
460-
<UnbrandedGeneratorVersion>1.0.0-alpha.20250813.2</UnbrandedGeneratorVersion>
460+
<UnbrandedGeneratorVersion>1.0.0-alpha.20250815.3</UnbrandedGeneratorVersion>
461461
<AzureGeneratorVersion>1.0.0-alpha.20250812.2</AzureGeneratorVersion>
462462
</PropertyGroup>
463463
</Project>

eng/http-client-csharp-emitter-package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/http-client-csharp-emitter-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"main": "dist/src/index.js",
33
"dependencies": {
44
"client-plugin": "file:../../../../eng/packages/plugins/client",
5-
"@typespec/http-client-csharp": "1.0.0-alpha.20250813.2"
5+
"@typespec/http-client-csharp": "1.0.0-alpha.20250815.3"
66
},
77
"devDependencies": {
88
"@azure-tools/typespec-azure-core": "0.59.0",

eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/AzureCollectionResultDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private ScopedApi<HttpMessage> InvokeCreateRequestForNextLink(ValueExpression ne
240240

241241
private ScopedApi<HttpMessage> InvokeCreateRequestForContinuationToken(ValueExpression continuationToken)
242242
{
243-
var arguments = RequestFields.Select(f => f == NextTokenField ? continuationToken : f.AsValueExpression);
243+
var arguments = RequestFields.Select(f => f.Name.Equals(NextTokenField?.Name) ? continuationToken : f.AsValueExpression);
244244

245245
return ClientField.Invoke(CreateRequestMethodName, arguments).As<HttpMessage>();
246246
}

eng/packages/http-client-csharp/generator/Azure.Generator/test/Providers/ClientProviders/ClientProviderTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ internal class ClientProviderTests
2222
private const string KeyAuthCategory = "WithKeyAuth";
2323
private const string OAuth2Category = "WithOAuth2";
2424
private const string TestClientName = "TestClient";
25-
private static readonly InputClient _testClient = new(TestClientName, "Samples", "", "TestClient description", null, [], [], _testClient, []);
26-
private static readonly InputClient _animalClient = new("animal", "Samples", "", "AnimalClient description", null, [], [], _testClient, []);
27-
private static readonly InputClient _dogClient = new("dog", "Samples", "", "DogClient description", null, [], [], _animalClient, []);
28-
private static readonly InputClient _huskyClient = new("husky", "Samples", "", "HuskyClient description", null, [], [], _dogClient, []);
25+
private static readonly InputClient _testClient = new(TestClientName, "Samples", "", "TestClient description", null, [], [], _testClient, [], []);
26+
private static readonly InputClient _animalClient = new("animal", "Samples", "", "AnimalClient description", null, [], [], _testClient, [], []);
27+
private static readonly InputClient _dogClient = new("dog", "Samples", "", "DogClient description", null, [], [], _animalClient, [], []);
28+
private static readonly InputClient _huskyClient = new("husky", "Samples", "", "HuskyClient description", null, [], [], _dogClient, [], []);
2929

3030
private bool _containsSubClients;
3131
private bool _hasKeyAuth;

eng/packages/http-client-csharp/generator/Azure.Generator/test/common/InputFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,8 @@ public static InputClient Client(string name, string clientNamespace = "Samples"
667667
methods is null ? [] : [.. methods],
668668
parameters is null ? [] : [.. parameters],
669669
parent,
670-
clientChildren
670+
clientChildren,
671+
[]
671672
);
672673
_childClientsCache[client] = clientChildren;
673674
// when we have a parent, we need to find the children list of this parent client and update accordingly.

eng/packages/http-client-csharp/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"dist/generator/**"
3939
],
4040
"dependencies": {
41-
"@typespec/http-client-csharp": "1.0.0-alpha.20250813.2"
41+
"@typespec/http-client-csharp": "1.0.0-alpha.20250815.3"
4242
},
4343
"devDependencies": {
4444
"@azure-tools/azure-http-specs": "0.1.0-alpha.25",

0 commit comments

Comments
 (0)