Skip to content

Commit

Permalink
Merge pull request #301 from jlurien/fix/phoneNumberPattern
Browse files Browse the repository at this point in the history
Make + prefix mandatory for phoneNumber
  • Loading branch information
hdamker authored Jun 14, 2024
2 parents a531a6a + 8b969aa commit ccc154d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/API_definitions/quality-on-demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,10 @@ components:
example: "123456789@domain.com"

PhoneNumber:
description: A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, optionally prefixed with '+'.
description: A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with '+'.
type: string
pattern: '^\+?[0-9]{5,15}$'
example: "123456789"
pattern: '^\+[1-9][0-9]{4,14}$'
example: "+123456789"

DeviceIpv4Addr:
type: object
Expand Down

0 comments on commit ccc154d

Please sign in to comment.