Add authorization errors

This commit is contained in:
David Bomba 2023-02-12 17:03:41 +11:00
parent ec096f8825
commit d647150ee0
3 changed files with 40 additions and 0 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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: