Skip to content

[SwaggerUI] Add SubmitMethod.Query - #4268

Merged
martincostello merged 1 commit into
masterfrom
gh-4267
Nov 12, 2026
Merged

martincostello merged 1 commit into
masterfrom
gh-4267

Conversation

@martincostello

Copy link
Copy Markdown
Collaborator

Fixes #4267.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the change enabling HTTP QUERY operations in Swagger UI.

No open issues 🎉

What changed in this PR

Addresses #4267 by adding SubmitMethod.Query, allowing HTTP QUERY operations to show Swagger UI’s Try it out button by default.

Changes:

  • Appends Query to the enum, preserving existing numeric values.
  • Records the new member in the public API baseline.
  • Adds regression tests for default submit methods and alignment with bundled Swagger UI and ASP.NET Core methods.
File Description
test/​Swashbuckle.AspNetCore.IntegrationTests/​SwaggerUIIntegrationTests.cs Tests serialized defaults and supported-method coverage.
src/​Swashbuckle.AspNetCore.SwaggerUI/​SubmitMethod.cs Adds the Query enum member.
src/​Swashbuckle.AspNetCore.SwaggerUI/​PublicAPI/​PublicAPI.Unshipped.txt Tracks SubmitMethod.Query as a public API addition.

Review effort: Balanced

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.17%. Comparing base (5570c94) to head (d77fa5d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4268   +/-   ##
=======================================
  Coverage   92.17%   92.17%           
=======================================
  Files         109      109           
  Lines        4179     4179           
  Branches      940      940           
=======================================
  Hits         3852     3852           
  Misses        178      178           
  Partials      149      149           
Flag Coverage Δ
Linux 92.17% <ø> (ø)
Windows 92.17% <ø> (ø)
macOS 92.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@martincostello
martincostello marked this pull request as ready for review November 12, 2026 11:32
@martincostello
martincostello merged commit 5e0111c into master Nov 12, 2026
16 checks passed
@martincostello
martincostello deleted the gh-4267 branch November 12, 2026 11:32
This was referenced Nov 12, 2026
This was referenced Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: HTTP QUERY operations have no "Try it out" button because SubmitMethod does not include Query

2 participants