Skip to content

Commit

Permalink
update validator error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Aug 22, 2024
1 parent 591346e commit c42ce9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/validators/parse_mac.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (o ParseMacValidator) ValidateString(_ context.Context, req validator.Strin
if is_valid, err := regexp.MatchString(re_variable, value); !is_valid || err != nil {
resp.Diagnostics.Append(validatordiag.InvalidAttributeValueDiagnostic(
req.Path,
"value is not a valid MAC Address; format is \"5684dae9ac8b\"",
"value is not a valid MAC Address; format is \"[0-9a-f]{12}\" (e.g \"5684dae9ac8b\")",
value,
))
return
Expand Down

0 comments on commit c42ce9e

Please sign in to comment.