如何在openapi 3的分段上传中描述名称?

时间:2019-08-05 10:17:23

标签: swagger swagger-2.0 openapi

我将在分段上传的name中以毫秒为单位传递数据:

Content-Disposition: form-data; name="1564672251250";

根据openapi 3示例:

requestBody:
  content:
    multipart/form-data:
      schema:
        type: object
        properties:
          profileImage:
            type: string
            format: binary

符合条件的人

Content-Disposition: form-data; name="profileImage"; filename="image1.png"
{…file content…}

如何在模式中描述name(字面名称)并为其添加描述?

0 个答案:

没有答案