Skip to content

Commit 00b9ca2

Browse files
authored
feat(specs): detail perso error codes [PRED-3384] (#4413)
1 parent 50a375e commit 00b9ca2

17 files changed

+142
-31
lines changed

specs/advanced-personalization/common/responses/BadRequest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ description: Bad request.
22
content:
33
application/json:
44
schema:
5-
$ref: './BaseResponse.yml'
5+
$ref: '../schemas/ErrorResponses.yml#/badRequest'
6+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Bad user ID.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: '../schemas/ErrorResponses.yml#/badUserID'

specs/advanced-personalization/common/responses/BaseResponse.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

specs/advanced-personalization/common/responses/ConfigurationNotFound.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Not found.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: '../schemas/ErrorResponses.yml#/genericNotFound'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Unprocessable entity.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: '../schemas/ErrorResponses.yml#/genericUnprocessableEntity'

specs/advanced-personalization/common/responses/InternalServerError.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ description: Internal server error.
22
content:
33
application/json:
44
schema:
5-
$ref: './BaseResponse.yml'
5+
$ref: '../schemas/ErrorResponses.yml#/internalServerError'

specs/advanced-personalization/common/responses/InvalidUserID.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ description: Invalid user ID format.
22
content:
33
application/json:
44
schema:
5-
$ref: './BaseResponse.yml'
5+
$ref: '../schemas/ErrorResponses.yml#/invalidUserID'

specs/advanced-personalization/common/responses/Unauthorized.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ description: Not authorized to access this resource.
22
content:
33
application/json:
44
schema:
5-
$ref: './BaseResponse.yml'
5+
$ref: '../schemas/ErrorResponses.yml#/unauthorized'

specs/advanced-personalization/common/responses/UserNotFound.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)