Skip to content

Commit

Permalink
docs(api): change type of phone number to string
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Feb 26, 2023
1 parent d7636d7 commit bf22a1f
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions docs/openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ components:
emailAddress:
type: string
phoneNumber:
$ref: '#/components/schemas/PhoneNumber'
type: string
role:
$ref: '#/components/schemas/HealthProfessionalRole'
required:
Expand All @@ -214,37 +214,6 @@ components:
type: string
enum: [ MALE, FEMALE, OTHER ]

Birthdate:
type: object
properties:
year:
type: integer
format: int32
month:
type: integer
format: int32
day:
type: integer
format: int32
required:
- year
- month
- day

PhoneNumber:
type: object
properties:
countryCode:
type: string
areaCode:
type: string
number:
type: string
required:
- countryCode
- areaCode
- number

HealthProfessionalRole:
type: string
enum: [ DOCTOR, NURSE, THERAPIST ]

0 comments on commit bf22a1f

Please sign in to comment.