Skip to content

Commit

Permalink
Merge pull request #13 from GreenmaskIO/fix_masking_credit_card
Browse files Browse the repository at this point in the history
Fixed credit_card parameter value for type parameter in Masking transformer
  • Loading branch information
wwoytenko authored Feb 14, 2024
2 parents 7a87922 + c59aa73 commit bd01819
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions internal/db/postgres/transformers/masking.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
MMobile string = "mobile"
MTelephone string = "tel"
MID string = "id"
MCreditCard string = "credit_cart"
MCreditCard string = "credit_card"
MURL string = "url"
MDefault string = "default"
)
Expand All @@ -50,14 +50,15 @@ var MaskingTransformerDefinition = utils.NewDefinition(
toolkit.MustNewParameter(
"column",
"column name",
).SetIsColumn(toolkit.NewColumnProperties().
SetAffected(true).
SetAllowedColumnTypes("text", "varchar"),
).SetIsColumn(
toolkit.NewColumnProperties().
SetAffected(true).
SetAllowedColumnTypes("text", "varchar"),
).SetRequired(true),

toolkit.MustNewParameter(
"type",
"logical type of attribute (default, password, name, addr, email, mobile, tel, id, credit, url)",
"logical type of attribute (default, password, name, addr, email, mobile, tel, id, credit_card, url)",
).SetRawValueValidator(maskerTypeValidator).
SetDefaultValue(toolkit.ParamsValue(MDefault)),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
MMobile string = "mobile"
MTelephone string = "tel"
MID string = "id"
MCreditCard string = "credit_cart"
MCreditCard string = "credit_card"
MURL string = "url"
MDefault string = "default"
)
Expand Down

0 comments on commit bd01819

Please sign in to comment.