From e652dccab0e726cdb380cd71d9115eb7204b3895 Mon Sep 17 00:00:00 2001 From: Afia0872 Date: Fri, 26 Dec 2025 15:17:52 +0530 Subject: [PATCH] Document owner telephone validation --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index a1c65baff..b80d7fcc6 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,15 @@ Or you can run it from Maven directly using the Spring Boot Maven plugin. If you > NOTE: If you prefer to use Gradle, you can build the app using `./gradlew build` and look for the jar file in `build/libs`. +## Validation + +### Owner Telephone Validation + +The owner telephone field is validated to ensure it contains exactly 10 digits. +This validation is implemented using `@Pattern` in `Owner.java` and uses the +`telephone.invalid` message defined in `messages.properties`. + + ## Building a Container There is no `Dockerfile` in this project. You can build a container image (if you have a docker daemon) using the Spring Boot build plugin: