【发布时间】:2015-06-19 14:26:56
【问题描述】:
使用 Swagger 2.0 我正在尝试指定对象类型的输入参数:
代码sn-p:
paths:
'/thingies/{thingy_id}.json':
put:
summary: Update an existing thingy
description: Updates an existing thingy
parameters:
- name: thingy_id
description: ID of the thingy to update
in: path
required: true
type: integer
- name: translation
description: Name and Locale for new translation
in: formData
type: object
properties:
name:
type: string
locale:
type: string
但是验证器抱怨type: object 部分。
我应该如何正确指定我的输入参数?
【问题讨论】:
标签: parameters swagger