mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add type and color to response
This commit is contained in:
1 parent
5cad3ecc12
commit
a151d2d667
6 files changed
+143
-17
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user