Skip to content

Commit

Permalink
fix: correct typo in the validate template for length restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
devzaidi committed Feb 11, 2024
1 parent f8033da commit 7078a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/templates/rtp20022/validate.tgo
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ import (
}
{{- end }}
{{- if .Restriction.Length }}
if err := rtp.ValidateLength(string(v), {{ .Restriction.MinLength.Value }}); err != nil {
if err := rtp.ValidateLength(string(v), {{ .Restriction.Length.Value }}); err != nil {
return err
}
{{- end }}
Expand Down

0 comments on commit 7078a03

Please sign in to comment.