$schema: https://json-schema.org/draft/2020-12/schema
$id: Phone.yaml
type: object
properties:
  countryCode:
    type: string
    pattern: ^\+[1-9][0-9]{0,3}$
    description: The international country code (e.g., "+1" for US/Canada).
  number:
    type: string
    description: The local phone number without the country code.
  extension:
    type: string
    description: Optional extension number for the phone line.
  isMobile:
    type: boolean
    default: false
    description: Indicates whether this is a mobile/cell phone number.
required:
  - countryCode
  - number
examples:
  - countryCode: '+1'
    number: 555-123-4567
    extension: '123'
    isMobile: false
  - countryCode: '+1'
    number: 444-456-1230
    isMobile: true
description: A phone number.
