From 2df100662395a12554ac3669a40606589118e181 Mon Sep 17 00:00:00 2001 From: overthink Date: Mon, 3 Nov 2025 08:26:52 -0500 Subject: [PATCH] fix: echo route syntax uses `:id` not `{id}` --- adapter/echoopenapi/README.MD | 2 +- adapter/echoopenapi/examples/basic/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/echoopenapi/README.MD b/adapter/echoopenapi/README.MD index a770391..6a6fecb 100644 --- a/adapter/echoopenapi/README.MD +++ b/adapter/echoopenapi/README.MD @@ -54,7 +54,7 @@ func main() { auth := v1.Group("", AuthMiddleware).With( option.GroupSecurity("bearerAuth"), ) - auth.GET("/users/{id}", GetUserHandler).With( + auth.GET("/users/:id", GetUserHandler).With( option.Summary("Get user by ID"), option.Request(new(GetUserRequest)), option.Response(200, new(User)), diff --git a/adapter/echoopenapi/examples/basic/main.go b/adapter/echoopenapi/examples/basic/main.go index c36f3a7..088e81c 100644 --- a/adapter/echoopenapi/examples/basic/main.go +++ b/adapter/echoopenapi/examples/basic/main.go @@ -29,7 +29,7 @@ func main() { auth := v1.Group("", AuthMiddleware).With( option.GroupSecurity("bearerAuth"), ) - auth.GET("/users/{id}", GetUserHandler).With( + auth.GET("/users/:id", GetUserHandler).With( option.Summary("Get user by ID"), option.Request(new(GetUserRequest)), option.Response(200, new(User)),