在 API 蓝图中表示文件上传

CDu*_*Dub 6 apiary.io apiblueprint apiary

我们有一个 API 端点,可以在其中上传图像文件以及文件名(字符串)和描述(字符串)。

养蜂场/API 蓝图不允许我拥有类似的东西:

+ Request (multipart/form-data)

  + Headers

              Authorization: [key]

  + Attributes
      + name (string, required) - A human-readable name of the Catalog Item
      + description (string, optional) - A human readable description of the Catalog Item
      + image (file, optional) - An image file corresponding to the Catalog Item
Run Code Online (Sandbox Code Playgroud)

我得到:

base type 'file' is not defined in the document

有没有办法在 API 蓝图中表示多部分/表单数据(例如上面的内容)?