From dee516164b0a3651bb2a292f8ab105e1aa3dc386 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 12 Feb 2023 17:09:51 +1100 Subject: [PATCH] Add authorization errors --- openapi/api-docs.yaml | 4 ++-- openapi/components/components.yaml | 2 +- openapi/paths/paths.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index d20683dbadae..b78a01cbd560 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -1666,7 +1666,7 @@ paths: content: application/json: schema: - $ref: '#components/schema/AuthorizationError' + $ref: '#components/schemas/AuthorizationError' 422: description: 'Validation error' content: @@ -18777,7 +18777,7 @@ components: AuthorizationError: properties: message: - description: 'The error message' + description: 'Invalid Token' type: string example: 'Invalid Token' errors: diff --git a/openapi/components/components.yaml b/openapi/components/components.yaml index 54c8b0c8d0c5..c5f8a18232bb 100644 --- a/openapi/components/components.yaml +++ b/openapi/components/components.yaml @@ -3836,7 +3836,7 @@ components: AuthorizationError: properties: message: - description: 'The error message' + description: 'Invalid Token' type: string example: 'Invalid Token' errors: diff --git a/openapi/paths/paths.yaml b/openapi/paths/paths.yaml index 6289ebbc9bb1..8b52e1e5ac1c 100644 --- a/openapi/paths/paths.yaml +++ b/openapi/paths/paths.yaml @@ -1642,7 +1642,7 @@ paths: content: application/json: schema: - $ref: '#components/schema/AuthorizationError' + $ref: '#components/schemas/AuthorizationError' 422: description: 'Validation error' content: