From f721128371dc34af34239bc71e438f60366f0d18 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Fri, 1 Jul 2022 00:02:39 +0100 Subject: [PATCH] cite error schema --- data/api/client-server/account-data.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/data/api/client-server/account-data.yaml b/data/api/client-server/account-data.yaml index e9a5b37d..7013093c 100644 --- a/data/api/client-server/account-data.yaml +++ b/data/api/client-server/account-data.yaml @@ -74,14 +74,20 @@ paths: 400: description: |- The request body is not a JSON object. + schema: + $ref: "../client-server/definitions/errors/error.yaml" 403: description: |- The access token provided is not authorized to modify this user's account data. + schema: + $ref: "../client-server/definitions/errors/error.yaml" 405: description: |- This `type` of account data is controlled by the server; it cannot be modified by clients. + schema: + $ref: "../client-server/definitions/errors/error.yaml" tags: - User data get: @@ -121,9 +127,13 @@ paths: description: |- The access token provided is not authorized to retrieve this user's account data. + schema: + $ref: "../client-server/definitions/errors/error.yaml" 404: description: |- No account data has been provided for this user with the given `type`. + schema: + $ref: "../client-server/definitions/errors/error.yaml" tags: - User data "/user/{userId}/rooms/{roomId}/account_data/{type}": @@ -180,14 +190,20 @@ paths: 400: description: |- The request body is not a JSON object. + schema: + $ref: "../client-server/definitions/errors/error.yaml" 403: description: |- The access token provided is not authorized to modify this user's account data. + schema: + $ref: "../client-server/definitions/errors/error.yaml" 405: description: |- This `type` of account data is controlled by the server; it cannot be modified by clients. + schema: + $ref: "../client-server/definitions/errors/error.yaml" tags: - User data get: @@ -234,9 +250,13 @@ paths: description: |- The access token provided is not authorized to retrieve this user's account data. + schema: + $ref: "../client-server/definitions/errors/error.yaml" 404: description: |- No account data has been provided for this user and this room with the given `type`. + schema: + $ref: "../client-server/definitions/errors/error.yaml" tags: - User data