招摇过市没有模式

我正在使用节点的招摇。 这工作正常。 我想发布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数据。

试试这个YAML:

 --- swagger: '2.0' info: version: 0.0.0 title: Simple API paths: /: post: produces: - application/json parameters: - in: body name: id required: true schema: "$ref": "#/definitions/inBody" responses: 201: description: Added definitions: inBody: type: object