Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make '+' mandatory for phoneNumber #144

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions code/API_definitions/device-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,10 @@ components:
minProperties: 1

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"

NetworkAccessIdentifier:
description: A public identifier addressing a subscription in a mobile network. In 3GPP terminology, it corresponds to the GPSI formatted with the External Identifier ({Local Identifier}@{Domain Identifier}). Unlike the telephone number, the network access identifier is not subjected to portability ruling in force, and is individually managed by each operator.
Expand Down Expand Up @@ -1043,7 +1043,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456789
phoneNumber: +123456789
roaming: true
countryCode: 208
countryName: FR
Expand All @@ -1059,7 +1059,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456788
phoneNumber: +123456788
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-18T13:18:23.682Z

Expand All @@ -1072,7 +1072,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456787
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z

Expand All @@ -1085,7 +1085,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456789
phoneNumber: +123456789
countryCode: 214
countryName: ["ES"]
subscriptionId: qs15-h556-rt89-1298
Expand All @@ -1100,7 +1100,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456787
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z

Expand All @@ -1113,7 +1113,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456787
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z

Expand All @@ -1126,7 +1126,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456787
phoneNumber: +123456787
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z

Expand All @@ -1139,7 +1139,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456789
phoneNumber: +123456789
terminationReason: SUBSCRIPTION_EXPIRED
subscriptionId: qs15-h556-rt89-1298
time: 2023-01-19T13:18:23.682Z