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
