From 6f88ffcf16c2c93644e241ab495165b556d7cc91 Mon Sep 17 00:00:00 2001 From: konyu Date: Tue, 4 Jun 2024 13:37:24 +0900 Subject: [PATCH] Fix: comment echo to gin --- oapi_validate.go | 2 +- oapi_validate_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oapi_validate.go b/oapi_validate.go index dce1061..871d8ff 100644 --- a/oapi_validate.go +++ b/oapi_validate.go @@ -171,7 +171,7 @@ func ValidateRequestFromContext(c *gin.Context, router routers.Router, options * return nil } -// GetGinContext gets the echo context from within requests. It returns +// GetGinContext gets the gin context from within requests. It returns // nil if not found or wrong type. func GetGinContext(c context.Context) *gin.Context { iface := c.Value(GinContextKey) diff --git a/oapi_validate_test.go b/oapi_validate_test.go index 1b5fe81..5832286 100644 --- a/oapi_validate_test.go +++ b/oapi_validate_test.go @@ -87,7 +87,7 @@ func TestOapiRequestValidator(t *testing.T) { swagger, err := openapi3.NewLoader().LoadFromData(testSchema) require.NoError(t, err, "Error initializing swagger") - // Create a new echo router + // Create a new gin router g := gin.New() // Set up an authenticator to check authenticated function. It will allow