Skip to main content

Validations

This page contains some of the validations that backend agreed to implement.

Phone Numbers

After discussion with front-end team we agreed to implement the Google's phone number

<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>?</version>
</dependency>

As an input we expect the phone number to be below format.

Number : Number in string formatted according to E.164

Country Code: 2 Letter ISO-code

"phoneNumber":  {
"number": "+31619794423", // Valid phone number in E164 format
"countryCode": "NL" // 2 Letter ISO code for country
}