Skip to content

Commit

Permalink
EDGPATRON-149 Fix contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh-kalyanasundaram committed Oct 17, 2024
1 parent b054399 commit 1f77c0e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions ramls/examples/user_error.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"code": 404,
"errorMessage": "USER_ACCOUNT_INACTIVE"
"code": "USER_ACCOUNT_INACTIVE",
"errorMessage": "User account is not active"
}
20 changes: 11 additions & 9 deletions ramls/schemas/user_error_400.schema
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "external_patron_error.schema",
"description": "An external_patron user error",
"id": "user_error.schema",
"description": "user errors",
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "Error code"
"type": "string",
"description": "Error code",
"examples": [
"MULTIPLE_USER_WITH_EMAIL",
"EMAIL_NOT_PROVIDED"
]
},
"errorMessage": {
"type": "string",
"description": "Error message text",
"description": "Error code description",
"examples": [
{
"value": "MULTIPLE_USER_EXISTS",
"description": "Multiple users found with the same email"
}
"Multiple users found with the same email",
"emailId is missing in the request"
]
}
},
Expand Down
24 changes: 11 additions & 13 deletions ramls/schemas/user_error_404.schema
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "external_patron_error.schema",
"description": "An external_patron user error",
"id": "user_error.schema",
"description": "user errors",
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "Error code"
"type": "string",
"description": "Error code",
"examples": [
"USER_ACCOUNT_INACTIVE",
"USER_NOT_FOUND"
]
},
"errorMessage": {
"type": "string",
"description": "Error message text",
"description": "Error code description",
"examples": [
{
"value": "USER_ACCOUNT_INACTIVE",
"description": "User is not active"
},
{
"value": "USER_NOT_FOUND",
"description": "User does not exist"
}
"User account is not active",
"User does not exist"
]
}
},
Expand Down

0 comments on commit 1f77c0e

Please sign in to comment.