Skip to content

Commit

Permalink
[#IOPID-1045] Update Profile definitions (#342)
Browse files Browse the repository at this point in the history
* [#IOPID-1045] add is_email_already_taken property to ExtendedProfile

* [#IOPID-1045] add new problemJson_definitions.yaml file + add UpdateProfile412ErrorTypes definition

* [#IOPID-1045] add default false to IsEmailAlreadyTaken
  • Loading branch information
gquadrati authored Nov 14, 2023
1 parent 9c4c5e0 commit ac23956
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openapi/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,8 @@ ExtendedProfile:
$ref: "#/IsEmailEnabled"
is_email_validated:
$ref: "#/IsEmailValidated"
is_email_already_taken:
$ref: "#/IsEmailAlreadyTaken"
reminder_status:
$ref: "#/ReminderStatus"
is_test_profile:
Expand All @@ -786,6 +788,7 @@ ExtendedProfile:
required:
- is_email_enabled
- is_email_validated
- is_email_already_taken
- is_inbox_enabled
- is_webhook_enabled
- service_preferences_settings
Expand All @@ -794,6 +797,12 @@ IsEmailValidated:
type: boolean
description: |-
True if the user email has been validated.
IsEmailAlreadyTaken:
type: boolean
default: false
description: |-
True if the user email has been validated by another user.
If so, the user must provide a new email.
IsInboxEnabled:
type: boolean
description: |-
Expand Down
7 changes: 7 additions & 0 deletions openapi/problemJson_definitions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
UpdateProfile412ErrorTypes:
type: string
description: |-
List of error types returned by the updateProfile endpoint when the HTTP status code is 412
x-extensible-enum:
- https://ioapp.it/problems/email-already-taken
example: https://ioapp.it/problems/email-already-taken

0 comments on commit ac23956

Please sign in to comment.