【发布时间】:2016-06-08 07:06:31
【问题描述】:
我正在使用节点招摇。它工作正常。我想发布 json 正文而不详细定义架构。例如下面我不想指定对象属性。有没有办法做到这一点?
/pets:
post:
description: Add new
parameters:
- name: id
in: body
description: data to post
required: true
type: object
responses:
'200':
description: A list of pets
schema:
type : string
它不会渲染 textarea 来发布 json 数据。
【问题讨论】:
标签: node.js swagger swagger-ui swagger-2.0