-
-
Notifications
You must be signed in to change notification settings - Fork 2k
π₯ feat: Add OpenAPI middleware #3702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
gaby
wants to merge
33
commits into
main
Choose a base branch
from
2025-08-21-14-48-18
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ed61350
test: assert raw openapi spec matches fixture
gaby 0cded2b
refactor: split route media types
gaby 886ed13
feat: add route tags and deprecation
gaby 60d4596
test: expand openapi middleware coverage
gaby 149c053
test: cover openapi helpers
gaby ddbaa0f
feat(openapi): add operation helpers
gaby 4ab58fd
refactor: use maps.Copy for metadata cloning
gaby 9b1a022
docs: clarify openapi type reference
gaby 2b4fa75
test: normalize openapi json assertions
gaby 2bab831
chore: address openapi review feedback
gaby 3c33f84
fix: scope openapi handler to its resolved path
gaby 7da513d
Adjust OpenAPI default responses
gaby abe75b9
Extend OpenAPI helpers with schema refs and examples
gaby 87d1f44
Merge branch 'main' into 2025-08-21-14-48-18
gaby 868cf03
Merge branch 'main' into 2025-08-21-14-48-18
gaby ac3bc5c
Merge branch 'main' into 2025-08-21-14-48-18
gaby 615d8e9
Merge branch 'main' into 2025-08-21-14-48-18
gaby abcc817
Merge branch 'main' into 2025-08-21-14-48-18
gaby 603b4ab
Merge branch 'main' into 2025-08-21-14-48-18
gaby d092785
π bug: fix merge conflicts and auto-generated HEAD routes in OpenAPI β¦
Claude 0c16991
π₯ feat: merge parallel benchmarks from main into router_test.go
Claude 272d61e
π§Ή chore: fix lint issues and optimize struct alignment
Claude 1ecf5d1
Merge branch 'main' into 2025-08-21-14-48-18
gaby b76e04d
π§Ή chore: address review comments - clone Tags, filter middleware routβ¦
Copilot 9158f56
π§Ή chore: fix deprecated utils.ToLower lint warning
Copilot d342624
β
test: add auto-HEAD exclusion test for OpenAPI middleware
Copilot 4e33e7d
Merge branch 'main' into 2025-08-21-14-48-18
gaby 49ee7a2
fix: add OpenAPI methods to domainRouter, defensive-copy Tags slice, β¦
Copilot 38a32b9
refactor: simplify Tags() defensive copy
Copilot 9946f64
π security: harden OpenAPI middleware - fix path generation, add nil β¦
Claude 8dcfd7c
π§ͺ test: improve openapi middleware coverage to 93.1%
Claude e3918d1
Merge branch 'main' into 2025-08-21-14-48-18
gaby 057e9eb
Merge branch 'main' into 2025-08-21-14-48-18
gaby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consumes()/Produces()validatetypwithout trimming whitespace, whileRequestBody/Responsemedia type handling trims and de-dupes. This makesConsumes(" application/json")(or trailing spaces) panic unexpectedly. Consider normalizing viastrings.TrimSpace(or reusing the same sanitization helper used elsewhere) before validating/storing.