-
Notifications
You must be signed in to change notification settings - Fork 0
Add header parameter support #31
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
bf69f97
chore: Update dependencies in go.mod and go.sum files
moutonjeremy a81c5f1
feat: Add RequestID to GetInput and update greeting response format
moutonjeremy 17bceb7
feat: Add header parameter parsing to input handling
moutonjeremy ab95ce9
feat: Extend schema generation to skip header parameters
moutonjeremy b18762e
feat: Add comprehensive tests for header parameter binding and valida…
moutonjeremy 0e5a7fa
chore: Remove unnecessary newline and update replace directive in go.mod
moutonjeremy 68911a5
feat: Enhance setFieldValue to handle pointer types for field value a…
moutonjeremy b836687
feat: Implement pointer header handling with runtime binding and Open…
moutonjeremy 4300eaa
feat: Skip reserved header parameter names in OpenAPI specification
moutonjeremy adb7998
feat: Update header validation for x-request-id to be optional
moutonjeremy 289ea11
feat: Document behavior of header validation with JSON body parsing
moutonjeremy fe2d43e
feat: Add test to ensure header takes priority over body input
moutonjeremy e5e71de
feat: Adjust header parameter parsing to prioritize headers over body…
moutonjeremy 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,31 @@ | ||
| module auth-example | ||
| module simple | ||
|
|
||
| go 1.24.2 | ||
|
|
||
| replace github.com/labbs/fiber-oapi => ../.. | ||
|
|
||
| require ( | ||
| github.com/gofiber/fiber/v2 v2.52.9 | ||
| github.com/labbs/fiber-oapi v1.3.2 | ||
| github.com/gofiber/fiber/v2 v2.52.10 | ||
| github.com/labbs/fiber-oapi v0.0.0-00010101000000-000000000000 | ||
| ) | ||
|
|
||
| require ( | ||
| github.com/andybalholm/brotli v1.2.0 // indirect | ||
| github.com/gabriel-vasile/mimetype v1.4.10 // indirect | ||
| github.com/gabriel-vasile/mimetype v1.4.12 // indirect | ||
| github.com/go-playground/locales v0.14.1 // indirect | ||
| github.com/go-playground/universal-translator v0.18.1 // indirect | ||
| github.com/go-playground/validator/v10 v10.27.0 // indirect | ||
| github.com/go-playground/validator/v10 v10.30.1 // indirect | ||
| github.com/google/uuid v1.6.0 // indirect | ||
| github.com/klauspost/compress v1.18.0 // indirect | ||
| github.com/leodido/go-urn v1.4.0 // indirect | ||
| github.com/mattn/go-colorable v0.1.14 // indirect | ||
| github.com/mattn/go-isatty v0.0.20 // indirect | ||
| github.com/mattn/go-runewidth v0.0.16 // indirect | ||
| github.com/mattn/go-runewidth v0.0.17 // indirect | ||
| github.com/rivo/uniseg v0.4.7 // indirect | ||
| github.com/stretchr/testify v1.11.1 // indirect | ||
| github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
| github.com/valyala/fasthttp v1.65.0 // indirect | ||
| golang.org/x/crypto v0.45.0 // indirect | ||
| golang.org/x/sys v0.38.0 // indirect | ||
| golang.org/x/text v0.31.0 // indirect | ||
| ) | ||
|
|
||
| replace github.com/Labbs/fiber-oapi => ../../ | ||
| github.com/valyala/fasthttp v1.66.0 // indirect | ||
| golang.org/x/crypto v0.46.0 // indirect | ||
| golang.org/x/sys v0.39.0 // indirect | ||
| golang.org/x/text v0.32.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) |
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
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
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.