Skip to content

Commit

Permalink
update schema and added 404 response
Browse files Browse the repository at this point in the history
  • Loading branch information
princerajpoot20 committed Aug 18, 2023
1 parent c3b8180 commit 1e5544b
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,21 @@ paths:
content:
application/json:
schema:
type: object
properties:
message:
type: string
oneOf:
- $ref: '#/components/schemas/HelpListResponse'
- $ref: '#/components/schemas/HelpCommandResponse'
"400":
description: Failed to get help. The given AsyncAPI command is not valid.
description: Bad request
content:
application/json:
schema:
$ref: "#/components/schemas/Problem"
$ref: '#/components/schemas/Problem'
"404":
description: Command not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
default:
description: Unexpected problem.
content:
Expand Down Expand Up @@ -453,6 +458,25 @@ components:
type: [object, string]
description: The diff between the two AsyncAPI documents.

HelpListResponse:
type: object
properties:
commands:
type: array
items:
type: string
description: A list of all available commands.
HelpCommandResponse:
type: object
description: Detailed help information for a specific command.
properties:
command:
type: string
description: The name of the command.
description:
type: string
description: Detailed description of the command.

Problem:
type: object
properties:
Expand Down

0 comments on commit 1e5544b

Please sign in to comment.