From d647150ee0584df4524fe3d2614e2849816fd414 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 12 Feb 2023 17:03:41 +1100 Subject: [PATCH] Add authorization errors --- openapi/api-docs.yaml | 20 ++++++++++++++++++++ openapi/components/components.yaml | 14 ++++++++++++++ openapi/paths/paths.yaml | 6 ++++++ 3 files changed, 40 insertions(+) diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index 48f62e479514..d20683dbadae 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -1661,6 +1661,12 @@ paths: application/json: schema: $ref: '#/components/schemas/Client' + 403: + description: 'Authorization error' + content: + application/json: + schema: + $ref: '#components/schema/AuthorizationError' 422: description: 'Validation error' content: @@ -18768,6 +18774,20 @@ components: type: string type: object type: object + AuthorizationError: + properties: + message: + description: 'The error message' + type: string + example: 'Invalid Token' + errors: + properties: + value: + type: array + items: + type: string + type: object + type: object VendorContact: properties: id: diff --git a/openapi/components/components.yaml b/openapi/components/components.yaml index 2ad24c10978b..54c8b0c8d0c5 100644 --- a/openapi/components/components.yaml +++ b/openapi/components/components.yaml @@ -3833,6 +3833,20 @@ components: type: string type: object type: object + AuthorizationError: + properties: + message: + description: 'The error message' + type: string + example: 'Invalid Token' + errors: + properties: + value: + type: array + items: + type: string + type: object + type: object VendorContact: properties: id: diff --git a/openapi/paths/paths.yaml b/openapi/paths/paths.yaml index fdf136252021..6289ebbc9bb1 100644 --- a/openapi/paths/paths.yaml +++ b/openapi/paths/paths.yaml @@ -1637,6 +1637,12 @@ paths: application/json: schema: $ref: '#/components/schemas/Client' + 403: + description: 'Authorization error' + content: + application/json: + schema: + $ref: '#components/schema/AuthorizationError' 422: description: 'Validation error' content: