以下是Api的代码草案,重要的是定义部分:
definitions:
Code:
type: object
properties:
code:
type: string
Status:
type: object
properties:
status:
type: string
externalDocs:
description: Find out more about Swagger
url: http://swagger.io
# Added by API Auto Mocking Plugin
host: virtserver.swaggerhub.com
basePath: /gupeel/Raven/1.0.0
# schemes:
# - http
# Added by API Auto Mocking Plugin
schemes:
- http
我的问题是它返回: { “code”:“string” }
所以我想如果有可能返回一个更精确的例子: { “code”:“toto-titi” } 而不只是字符串。
由于