Schema
Phone Number
Represents a phone number.
Overview
Properties
country
reference
Required
The ISO 3166-1 alpha-2 country code associated with the phone number.
References Country Code.
country_calling_code
string
The calling code associated with the phone number.
Example
+65
Min length
2
Max length
4
Read only
Yes
national_number
string
Required
The localised (national) representation of the phone number.
Example
6904 4827
Min length
1
Max length
255
international_number
string
The localised (international) representation of the phone number.
Example
+65 6904 4827
Min length
1
Max length
255
Read only
Yes
e_164
string
The e.164 formatted representation of the phone number.
Example
+6569044827
Min length
1
Max length
255
Read only
Yes
Used by
Raw YAML
Download source
title: Phone Number
type: object
description: Represents a phone number.
required:
- country
- national_number
properties:
country:
$ref: ./CountryCode.yaml
description: The ISO 3166-1 alpha-2 country code associated with the phone number.
country_calling_code:
type: string
example: '+65'
description: The calling code associated with the phone number.
minLength: 2
maxLength: 4
readOnly: true
national_number:
type: string
minLength: 1
description: The localised (national) representation of the phone number.
maxLength: 255
example: 6904 4827
international_number:
type: string
description: The localised (international) representation of the phone number.
minLength: 1
maxLength: 255
example: +65 6904 4827
readOnly: true
e_164:
type: string
description: The e.164 formatted representation of the phone number.
minLength: 1
maxLength: 255
example: '+6569044827'
readOnly: true
x-tags:
- Models