Skip to content

Generator fix to handle apiVersion casing and multiple placeholders in URI path#9561

Merged
JoshLove-msft merged 8 commits intomicrosoft:mainfrom
MaiLinhP:main
Feb 4, 2026
Merged

Generator fix to handle apiVersion casing and multiple placeholders in URI path#9561
JoshLove-msft merged 8 commits intomicrosoft:mainfrom
MaiLinhP:main

Conversation

@MaiLinhP
Copy link
Member

@MaiLinhP MaiLinhP commented Feb 2, 2026

Make paramMap look up case insensitive to avoid cases like "ApiVersion" in server parameters vs "apiVersion". Fix template for URI path to be compatible with multiple placeholders like "{Endpoint}/anomalydetector/{ApiVersion}".

@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 Feb 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

No changes needing a change description found.

@MaiLinhP MaiLinhP marked this pull request as ready for review February 3, 2026 20:10
@MaiLinhP MaiLinhP changed the title Generator fix to migrate Azure.AI.AnomalyDetector library Generator fix to handle apiVersion casing and multiple placeholders in URI path Feb 3, 2026
@JoshLove-msft
Copy link
Contributor

This looks great, can we add some unit tests?

@JoshLove-msft JoshLove-msft added this pull request to the merge queue Feb 4, 2026
Merged via the queue into microsoft:main with commit c6f1f96 Feb 4, 2026
23 checks passed
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.

2 participants