feat: add type and color to response

This commit is contained in:
wancat committed 2023-08-09 21:14:57 +08:00
1 parent 5cad3ecc12
commit a151d2d667
6 files changed
+143 -17

No files matched your search

+28
View File
@@ -453,10 +453,38 @@ components:
type: object
properties:
responses:
type: array
items:
$ref: '#/components/schemas/CommandResponseItem'
hints:
type: array
items:
type: string
example: '`ls -al` to list detail information of all files.'
end:
type: boolean
description: Whether the session has ended
CommandResponseItem:
type: object
required:
- type
- content
properties:
type:
type: string
enum: [narrative, dialogue]
content:
type: array
items:
type: string
example: 'You have completed the quest!'
color:
type: string
enum: [red, green, blue, yellow, purple, cyan, white, gray, black]
speaker:
type: string
example: 'Unix Spirit'
securitySchemes:
BearerAuth: