Skip to content

Update dependencies and migrate to Fiber v3#51

Merged
moutonjeremy merged 5 commits into
mainfrom
fiber-v3
May 22, 2026
Merged

Update dependencies and migrate to Fiber v3#51
moutonjeremy merged 5 commits into
mainfrom
fiber-v3

Conversation

@moutonjeremy
Copy link
Copy Markdown
Member

  • 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.
Copilot AI review requested due to automatic review settings May 22, 2026 17:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 to github.com/gofiber/fiber/v3, and refreshed transitive deps (go.mod/go.sum).
  • Updated handler/context signatures across the library and tests from *fiber.Ctx to fiber.Ctx, and adjusted request binding/testing helpers for Fiber v3.
  • Adapted routing/group wiring for Fiber v3 (including a handler-to-any conversion 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.

Comment thread group.go
Comment thread common.go Outdated
@moutonjeremy moutonjeremy merged commit 606a27b into main May 22, 2026
4 checks passed
@moutonjeremy moutonjeremy deleted the fiber-v3 branch May 22, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants