Skip to content

Commit

Permalink
Merge pull request #56 from devzaidi/fix/validate-template-typo
Browse files Browse the repository at this point in the history
fix: correct typo in the validate template for length restrictions
  • Loading branch information
adamdecaf authored Feb 12, 2024
2 parents f8033da + 7078a03 commit 5401a7e
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 5401a7e

Please sign in to comment.