Skip to content

Commit 5ca8c21

Browse files
authored
Merge pull request #15 from konyu/main
Fix: comment from echo to gin
2 parents bf52853 + 6f88ffc commit 5ca8c21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oapi_validate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func ValidateRequestFromContext(c *gin.Context, router routers.Router, options *
171171
return nil
172172
}
173173

174-
// GetGinContext gets the echo context from within requests. It returns
174+
// GetGinContext gets the gin context from within requests. It returns
175175
// nil if not found or wrong type.
176176
func GetGinContext(c context.Context) *gin.Context {
177177
iface := c.Value(GinContextKey)

oapi_validate_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestOapiRequestValidator(t *testing.T) {
8787
swagger, err := openapi3.NewLoader().LoadFromData(testSchema)
8888
require.NoError(t, err, "Error initializing swagger")
8989

90-
// Create a new echo router
90+
// Create a new gin router
9191
g := gin.New()
9292

9393
// Set up an authenticator to check authenticated function. It will allow

0 commit comments

Comments
 (0)