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 #50

Merged
merged 1 commit into from
Apr 4, 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
6 changes: 3 additions & 3 deletions code/API_definitions/one-time-password-sms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ info:

# Resources and Operations overview
This API currently provides two endpoints, one to send an OTP to a given phone number and another to validate the code received as input.
version: 0.5.0
version: 0.6.0-wip
termsOfService: http://example.com/terms/
contact:
name: API Support
Expand Down Expand Up @@ -177,9 +177,9 @@ components:
- authenticationId
- code
PhoneNumber:
description: A phone number belonging to the user. 'E164 with an optional +' format
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}$'
pattern: '^\+[1-9][0-9]{4,14}$'
example: '+346661113334'
Message:
type: string
Expand Down