From cf9e2967d577a72f14924c03ba7c383089d0d367 Mon Sep 17 00:00:00 2001 From: Jose Luis Urien Date: Thu, 13 Jun 2024 16:44:33 +0200 Subject: [PATCH 1/2] Make + prefix mandatory for phoneNumber --- code/API_definitions/quality-on-demand.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index 5363730a65..eb1954d9bd 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -771,11 +771,11 @@ 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 description: | From 8b969aa81c2135e9e6c6ada99382b107f0968762 Mon Sep 17 00:00:00 2001 From: Jose Luis Urien Date: Thu, 13 Jun 2024 20:58:24 +0200 Subject: [PATCH 2/2] Making the linter happy --- code/API_definitions/quality-on-demand.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index eb1954d9bd..842ed17106 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -775,7 +775,7 @@ components: type: string pattern: '^\+[1-9][0-9]{4,14}$' example: "+123456789" - + DeviceIpv4Addr: type: object description: |