Skip to content

Commit

Permalink
Fix generated validation code for gRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
tchssk committed Nov 5, 2023
1 parent 1f992bc commit 53b594b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grpc/codegen/service_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 53b594b

Please sign in to comment.