Update dependencies and migrate to Fiber v3#51
Merged
Merged
Conversation
Member
moutonjeremy
commented
May 22, 2026
- Updated go.sum to use github.com/gofiber/fiber/v3 and other dependencies.
- Refactored group.go, group_test.go, and other test files to accommodate the new Fiber v3 API.
- Adjusted handler signatures in various test files to match the new Fiber v3 context type.
- Added a utility function to convert fiber.Handler to any type for compatibility with Fiber v3.
- Ensured all tests pass with the updated Fiber version.
- Updated go.sum to use github.com/gofiber/fiber/v3 and other dependencies. - Refactored group.go, group_test.go, and other test files to accommodate the new Fiber v3 API. - Adjusted handler signatures in various test files to match the new Fiber v3 context type. - Added a utility function to convert fiber.Handler to any type for compatibility with Fiber v3. - Ensured all tests pass with the updated Fiber version.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request migrates fiber-oapi to Fiber v3 and releases it as a v3 Go module (github.com/labbs/fiber-oapi/v3), updating the core wrapper types plus tests/examples/docs to the new Fiber v3 APIs.
Changes:
- Bumped the module major version to
/v3, updated Fiber dependency togithub.com/gofiber/fiber/v3, and refreshed transitive deps (go.mod/go.sum). - Updated handler/context signatures across the library and tests from
*fiber.Ctxtofiber.Ctx, and adjusted request binding/testing helpers for Fiber v3. - Adapted routing/group wiring for Fiber v3 (including a handler-to-
anyconversion helper) and updated docs redirect usage.
Reviewed changes
Copilot reviewed 39 out of 44 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| validation_test.go | Updates test handlers to Fiber v3 context type. |
| types.go | Changes exported handler/config callback types to use fiber.Ctx. |
| time_type_test.go | Updates test handlers to Fiber v3 context type. |
| serialization_error_test.go | Updates test handlers to Fiber v3 context type. |
| README.md | Updates installation/import instructions and handler signatures for v3 module + Fiber v3. |
| put_test.go | Updates PUT tests to Fiber v3 context type. |
| post_test.go | Updates POST tests to Fiber v3 context type. |
| openapi_hidden_test.go | Updates hidden-field tests to Fiber v3 context type. |
| nested_struct_test.go | Updates nested-struct tests to Fiber v3 context type. |
| json_type_error_test.go | Updates handlers and app.Test usage for Fiber v3. |
| header_params_test.go | Updates header binding tests to Fiber v3 context type. |
| group.go | Adapts group creation to Fiber v3 variadic handler typing via handlersToAny. |
| group_test.go | Updates group tests to Fiber v3 context type. |
| go.sum | Refreshes dependency checksums for Fiber v3 + updated transitive deps. |
| go.mod | Switches module path to /v3, updates Go version directive and dependencies. |
| get_oapi_test.go | Updates GET tests to Fiber v3 context type. |
| fiberoapi.go | Updates docs route handlers, redirects, and route registration for Fiber v3. |
| docs.go | Updates docs setup routes and redirects for Fiber v3. |
| docs_test.go | Updates docs tests to Fiber v3 context type. |
| delete_test.go | Updates DELETE tests to Fiber v3 context type. |
| custom_validation_error_test.go | Updates custom validation error tests to Fiber v3 context type. |
| config_test.go | Updates config tests to Fiber v3 imports. |
| conditional_auth.go | Updates middleware signatures to Fiber v3 context type. |
| common.go | Updates parsing/binding to Fiber v3 binding API and context type. |
| auto_params_test.go | Updates auto-params tests to Fiber v3 context type. |
| auto_params_edge_cases_test.go | Updates auto-params edge-case tests to Fiber v3 context type. |
| auth.go | Updates auth helpers/middleware signatures to Fiber v3 context type. |
| auth_test.go | Updates auth tests to Fiber v3 context type. |
| auth_schemes.go | Updates auth scheme validation signatures to Fiber v3 context type. |
| auth_schemes_test.go | Updates auth scheme tests to Fiber v3 context type. |
| auth_middleware_test.go | Updates middleware tests to Fiber v3 context type. |
| _examples/simple/main.go | Updates example imports and handlers to v3 module + Fiber v3 context type. |
| _examples/simple/go.sum | Updates example dependency checksums for Fiber v3. |
| _examples/simple/go.mod | Updates example module deps/replace to /v3 module + Fiber v3. |
| _examples/custom_validation_error/README.md | Updates example README snippets to Fiber v3 context type. |
| _examples/custom_validation_error/main.go | Updates example imports and handlers to v3 module + Fiber v3 context type. |
| _examples/custom_validation_error/go.sum | Updates example dependency checksums for Fiber v3. |
| _examples/custom_validation_error/go.mod | Updates example module deps/replace to /v3 module + Fiber v3. |
| _examples/auto_params/main.go | Updates example imports and handlers to v3 module + Fiber v3 context type. |
| _examples/auto_params/go.sum | Updates example dependency checksums for Fiber v3. |
| _examples/auto_params/go.mod | Updates example module deps/replace to /v3 module + Fiber v3. |
| _examples/auth/main.go | Updates auth example imports and handlers to v3 module + Fiber v3 context type. |
| _examples/auth/go.sum | Updates example dependency checksums for Fiber v3. |
| _examples/auth/go.mod | Updates example module deps/replace to /v3 module + Fiber v3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.