From 551edab2d4476ba50f2d9c37036b41fd4444a690 Mon Sep 17 00:00:00 2001 From: Gleb Buzin Date: Tue, 9 Apr 2024 17:51:43 +0300 Subject: [PATCH] fix: NewWithGroup accepting fiber.Router --- adapters/humafiber/humafiber.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/humafiber/humafiber.go b/adapters/humafiber/humafiber.go index 452d79b2..c8d3207a 100644 --- a/adapters/humafiber/humafiber.go +++ b/adapters/humafiber/humafiber.go @@ -145,6 +145,6 @@ func New(r *fiber.App, config huma.Config) huma.API { return huma.NewAPI(config, &fiberAdapter{tester: r, router: r}) } -func NewWithGroup(r *fiber.App, g *fiber.Group, config huma.Config) huma.API { +func NewWithGroup(r *fiber.App, g fiber.Router, config huma.Config) huma.API { return huma.NewAPI(config, &fiberAdapter{tester: r, router: g}) }