Skip to content

Commit

Permalink
Merge pull request #144 from camaraproject/bigludo7-patch-1
Browse files Browse the repository at this point in the history
Make '+' mandatory for phoneNumber
  • Loading branch information
bigludo7 authored Apr 26, 2024
2 parents 98ac611 + ca213cc commit d846f09
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions code/API_definitions/device-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,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 @@ -1079,7 +1079,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456789
phoneNumber: +123456789
roaming: true
countryCode: 208
countryName: FR
Expand All @@ -1095,7 +1095,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 @@ -1108,7 +1108,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 @@ -1121,7 +1121,7 @@ components:
datacontenttype: application/json
data:
device:
phoneNumber: 123456789
phoneNumber: +123456789
countryCode: 214
countryName: ["ES"]
subscriptionId: qs15-h556-rt89-1298
Expand All @@ -1136,7 +1136,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 @@ -1149,7 +1149,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 @@ -1162,7 +1162,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 @@ -1175,7 +1175,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

0 comments on commit d846f09

Please sign in to comment.