Skip to content

Commit

Permalink
CU-86azteq4d_prowide-core-update-constraint-messages (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
creedox2010 authored Mar 25, 2024
1 parent 60fe18b commit d38b371
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Prowide Core - CHANGELOG

#### 9.4.15 - SNAPSHOT
* Updated validators for BIC, country, and currency constraints to utilize keywords for i18n-compatible messages
* Deprecated unnecessary methods in the SafeXmlUtils class

#### 9.4.14 - December 2023
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Target({METHOD, FIELD, PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface BicConstraint {
String message() default "Invalid BIC code";
String message() default "{prowide.invalid.bic.code}";

Class<?>[] groups() default {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Target({METHOD, FIELD, PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CountryConstraint {
String message() default "Invalid ISO country code";
String message() default "{prowide.invalid.iso.country.code}";

Class<?>[] groups() default {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Target({METHOD, FIELD, PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CurrencyConstraint {
String message() default "Invalid currency code";
String message() default "{prowide.invalid.currency.code}";

Class<?>[] groups() default {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Target({METHOD, FIELD, PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface IbanConstraint {
String message() default "Invalid IBAN number";
String message() default "{prowide.invalid.iban.number}";

Class<?>[] groups() default {};

Expand Down

0 comments on commit d38b371

Please sign in to comment.