-
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-144: Updated API doc for external_patron as per new modifie…
…d error scenario (#127) * EDGPATRON-144: updated API doc for external_patron as per new modified error scenario --------- Co-authored-by: Kapil Verma <[email protected]>
- Loading branch information
1 parent
1835b01
commit 7365c9e
Showing
5 changed files
with
106 additions
and
22 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,26 @@ | ||
{ | ||
"$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": "USER_NOT_FOUND", | ||
"description": "User does not exist" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"code", | ||
"errorMessage" | ||
] | ||
} |
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,26 @@ | ||
{ | ||
"$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" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"code", | ||
"errorMessage" | ||
] | ||
} |
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,34 @@ | ||
{ | ||
"$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": "EMAIL_ALREADY_EXIST", | ||
"description": "User already exists with email provided in payload" | ||
}, | ||
{ | ||
"value": "PATRON_GROUP_NOT_APPLICABLE", | ||
"description": "Required Patron group not applicable for user" | ||
}, | ||
{ | ||
"value": "MULTIPLE_USER_WITH_EMAIL", | ||
"description": "Multiple users found with the same email" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"code", | ||
"errorMessage" | ||
] | ||
} |