Skip to content

Add C# Spector scenario coverage - #11693

Merged
JoshLove-msft merged 2 commits into
microsoft:mainfrom
JoshLove-msft:josh/csharp-spector-scenarios
Aug 17, 2026
Merged

Add C# Spector scenario coverage#11693
JoshLove-msft merged 2 commits into
microsoft:mainfrom
JoshLove-msft:josh/csharp-spector-scenarios

Conversation

@JoshLove-msft

Copy link
Copy Markdown
Contributor

Summary

Validation

  • npm run build (with NuGet audit disabled after nuget.org audit endpoint failures)
  • pwsh eng/scripts/Test-Spector.ps1 -filter "http/parameters/body-root"
  • pwsh eng/scripts/Test-Spector.ps1 -filter "http/parameters/query"
  • pwsh eng/scripts/Test-Spector.ps1 -filter "http/streaming/jsonl"
  • dotnet format whitespace generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj --include generator/TestProjects/Spector.Tests/Http/Parameters/BodyRoot/BodyRootTests.cs generator/TestProjects/Spector.Tests/Http/Parameters/Query/QueryTests.cs generator/TestProjects/Spector.Tests/Http/Streaming/Jsonl/JsonlTests.cs --verify-no-changes --no-restore
  • npm run cop

JoshLove-msft and others added 2 commits August 14, 2026 20:45
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fce3f59e-5e13-4881-96b8-bc2cc41dcf44
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fce3f59e-5e13-4881-96b8-bc2cc41dcf44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the C# Spector test suite to cover additional HTTP parameter scenarios (nested @bodyRoot bodies and $-prefixed query parameter names) and re-enables the JSONL send streaming scenario now that the upstream gap has been addressed.

Changes:

  • Add the http/parameters/body-root Spector project to the C# Spector test project and introduce a new test covering nested @bodyRoot parameters.
  • Add a new query-parameter test case covering dollar-sign ($) query parameter names.
  • Re-enable the JSONL Send scenario test by removing the prior ignore.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj Adds the Parameters.BodyRoot project reference so the new body-root tests compile/run.
packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Streaming/Jsonl/JsonlTests.cs Removes the ignore to re-enable the JSONL send scenario.
packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Parameters/Query/QueryTests.cs Adds coverage for $-style query parameter naming via the DollarSign scenario.
packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Parameters/BodyRoot/BodyRootTests.cs New test validating nested @bodyRoot request body parameter handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@pkg-pr-new

pkg-pr-new Bot commented Aug 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-csharp@11693

commit: 4d8b09f

@github-actions

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@JoshLove-msft
JoshLove-msft added this pull request to the merge queue Aug 17, 2026
Merged via the queue into microsoft:main with commit 30b0623 Aug 17, 2026
29 checks passed
@JoshLove-msft
JoshLove-msft deleted the josh/csharp-spector-scenarios branch August 17, 2026 19:35
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.

3 participants