Skip to content

Conversation

@kriti20041
Copy link

This PR adds validation to the Owner.telephone field to ensure it is not blank
and contains a valid 10-digit number. This improves data integrity and user input validation.

Signed-off-by: kriti20041 <kritia2004@gmail.com>
@kriti20041 kriti20041 force-pushed the improve-readme-or-validation branch from 754faa0 to 7b9760c Compare December 25, 2025 14:28

@NotBlank
@Pattern(regexp = "\\d{10}", message = "Telephone must be a 10-digit number")
@Column(name = "telephone")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why here in the getter?
There is already validation on the field.

Copy link
Contributor

@andrzejsydor andrzejsydor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the PR is not complete, no tests, no value, imo

@snicoll snicoll closed this Dec 30, 2025
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.

3 participants