【发布时间】:2018-08-17 19:23:36
【问题描述】:
我正在为两个获取路径编写一个模式,其中结果是一个类似的对象
{
"id":"49077acb6ac8",
"info":
{
"name":"test"
}
}
其实我得到了这个:
/*
* @swagger
* definitions:
* getVCenter:
* id:
* type: string
* format: uuid
* info:
* type: object
* properties:
* name:
* type: string
* fullName:
* type: string
* vendor:
* type: string
* /v1/vcenters/:
* get:
* tags:
* - vcenters
* summary: Get availables vCenters.
* description: Get a list of availables vCenters.
* produces:
* - application/json
* responses:
* 200:
* description: an array of vCenters
* schema:
* $ref : '#definitions/getVCenter'
*/
但它不再起作用了。
谁能解释一下我做错了什么?
【问题讨论】:
-
定义“不起作用”。
-
我的意思是它不显示文档
标签: node.js object schema yaml swagger