Skip to content

Commit db22b05

Browse files
committed
feat: update tests/spec.json
Signed-off-by: Jay <jaykumar20march@gmail.com>
1 parent 677f4cf commit db22b05

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/resources/spec.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,27 @@
11341134
}
11351135
},
11361136
"required": ["result"]
1137+
},
1138+
"appwriteException": {
1139+
"x-appwrite": {
1140+
"types": [
1141+
{
1142+
"code": 400,
1143+
"type": "general_mock",
1144+
"message": "General errors thrown by the mock controller used for testing."
1145+
},
1146+
{
1147+
"code": 409,
1148+
"type": "document_already_exists",
1149+
"message": "Document with the requested ID already exists. Try again with a different ID or use unique() to generate a unique ID."
1150+
},
1151+
{
1152+
"code": 404,
1153+
"type": "avatar_not_found",
1154+
"message": "The request avatar could not be found."
1155+
}
1156+
]
1157+
}
11371158
}
11381159
},
11391160
"externalDocs": {

0 commit comments

Comments
 (0)