-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EDGPATRON-142: added API doc for external_patron error scenario (#126)
* EDGPATRON-142: added API doc for external_patron error scenario --------- Co-authored-by: Kapil Verma <kverma@ebsco.com>
- Loading branch information
1 parent
ca39f73
commit 1835b01
Showing
3 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"code": 422, | ||
"errorMessage": "USER_ALREADY_EXIST" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "external_patron_error.schema", | ||
"description": "An external_patron user error", | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"type": "integer", | ||
"description": "Error code" | ||
}, | ||
"errorMessage": { | ||
"type": "string", | ||
"description": "Error message text", | ||
"examples": [ | ||
{ | ||
"value": "MULTIPLE_USER_WITH_EMAIL", | ||
"description": "Multiple users found with the same email" | ||
}, | ||
{ | ||
"value": "USER_ACCOUNT_INACTIVE", | ||
"description": "User account is not active" | ||
}, | ||
{ | ||
"value": "USER_ALREADY_EXIST", | ||
"description": "User already exists" | ||
}, | ||
{ | ||
"value": "USER_NOT_FOUND", | ||
"description": "User does not exist" | ||
}, | ||
{ | ||
"value": "EMAIL_ALREADY_EXIST", | ||
"description": "User already exists with email provided in payload" | ||
}, | ||
{ | ||
"value": "INVALID_PATRON_GROUP", | ||
"description": "User does not belong to the required patron group" | ||
}, | ||
{ | ||
"value": "PATRON_GROUP_NOT_APPLICABLE", | ||
"description": "Required Patron group not applicable for user" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"code", | ||
"errorMessage" | ||
] | ||
} |