Skip to content

fix: do not cache createrequest in collectionresultdef#8198

Merged
jorgerangel-msft merged 3 commits intomicrosoft:mainfrom
jorgerangel-msft:collectionresult-caching
Aug 15, 2025
Merged

fix: do not cache createrequest in collectionresultdef#8198
jorgerangel-msft merged 3 commits intomicrosoft:mainfrom
jorgerangel-msft:collectionresult-caching

Conversation

@jorgerangel-msft
Copy link
Copy Markdown
Contributor

@jorgerangel-msft jorgerangel-msft commented Aug 14, 2025

This PR fixes an issue where both the built fields and the CreateRequest signature consumed by the CollectionResultDefinition were being cached, preventing a visitor to perform mutations on its' fields and ctors.

fixes: #8202

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Aug 14, 2025
@jorgerangel-msft jorgerangel-msft force-pushed the collectionresult-caching branch from 336d3e8 to ddaa466 Compare August 14, 2025 17:30
@github-actions
Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@jorgerangel-msft jorgerangel-msft marked this pull request as draft August 15, 2025 15:26
@jorgerangel-msft jorgerangel-msft force-pushed the collectionresult-caching branch from c5585af to b06ac2e Compare August 15, 2025 15:27
@jorgerangel-msft jorgerangel-msft marked this pull request as ready for review August 15, 2025 16:13
@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue Aug 15, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 15, 2025
This PR fixes an issue where both the built fields and the CreateRequest
signature consumed by the CollectionResultDefinition were being cached,
preventing a visitor to perform mutations on its' fields and ctors.

fixes: #8202
@jorgerangel-msft jorgerangel-msft removed this pull request from the merge queue due to a manual request Aug 15, 2025
@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue Aug 15, 2025
Merged via the queue into microsoft:main with commit 62342a8 Aug 15, 2025
22 checks passed
@jorgerangel-msft jorgerangel-msft deleted the collectionresult-caching branch August 15, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do Not Cache Fields And Constructors in CollectionResultDefinition

2 participants