You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In validator.v10, apart from using RegisterValidation() to register validator.Func, it could also use RegisterValidationCtx() to register validator.FuncCtx. This enables you to validate parameters using an additional context.Context that is passed in.
However, this does not yet enable passing gin.Context to validator.FuncCtx. When validating the parameters, it is necessary to replace validator.Validate.Struct() with validator.Validate.StructCtx() and pass down *gin.Context.
The text was updated successfully, but these errors were encountered:
In validator.v10, apart from using RegisterValidation() to register validator.Func, it could also use RegisterValidationCtx() to register validator.FuncCtx. This enables you to validate parameters using an additional context.Context that is passed in.
However, this does not yet enable passing gin.Context to validator.FuncCtx. When validating the parameters, it is necessary to replace validator.Validate.Struct() with validator.Validate.StructCtx() and pass down *gin.Context.
The text was updated successfully, but these errors were encountered: