Document owner telephone validation

This commit is contained in:
Afia0872 2025-12-26 15:17:52 +05:30
parent fd4361b118
commit e652dccab0

View file

@ -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: