Skip to content

Improve Owner telephone validation with international formats and prefixes#2331

Open
marcosgdz03 wants to merge 3 commits intospring-projects:mainfrom
marcosgdz03:feature/validate-telephone
Open

Improve Owner telephone validation with international formats and prefixes#2331
marcosgdz03 wants to merge 3 commits intospring-projects:mainfrom
marcosgdz03:feature/validate-telephone

Conversation

@marcosgdz03
Copy link
Copy Markdown

This PR introduces the following changes:

  • Updated the 'telephone' field in Owner.java to allow:
    • International prefixes
    • Various formats (spaces, dashes, parentheses)
  • Modified the validation message in messages.properties for clarity and modern style
  • Added a test in OwnerControllerTests.java to ensure invalid phone numbers trigger validation errors

These changes improve compatibility with phone numbers from different countries and ensure users see proper validation feedback.

… modify invalid phone message, and add test for new format

Signed-off-by: Marcos <marcgimdi@gmail.com>
@marcosgdz03 marcosgdz03 force-pushed the feature/validate-telephone branch from 6f90210 to cbf3a02 Compare April 7, 2026 10:14
Signed-off-by: Marcos <marcgimdi@gmail.com>
Signed-off-by: Marcos <marcgimdi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant