From 53b594b36ca44a5e3b9ad8338bcbf7ff76b10daa Mon Sep 17 00:00:00 2001 From: Taichi Sasaki Date: Sun, 5 Nov 2023 20:51:34 +0900 Subject: [PATCH] Fix generated validation code for gRPC --- grpc/codegen/service_data.go | 1 + 1 file changed, 1 insertion(+) diff --git a/grpc/codegen/service_data.go b/grpc/codegen/service_data.go index ced49fb447..f356d441b7 100644 --- a/grpc/codegen/service_data.go +++ b/grpc/codegen/service_data.go @@ -744,6 +744,7 @@ func addValidation(att *expr.AttributeExpr, attName string, sd *ServiceData, req } } vtx := protoBufTypeContext(sd.PkgName, sd.Scope, false) + removeMeta(att) if def := codegen.ValidationCode(att, ut, vtx, true, expr.IsAlias(att.Type), attName); def != "" { v := &ValidationData{ Name: "Validate" + name,