Skip to content

增加encoding的支持,在multipart/form-data中指定part的Content-Type #192

@781574155

Description

@781574155

当requestBody为:

        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": ["file", "process_params"],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "上传的文件",
                    "format": "binary"
                  },
                  "process_params": {
                    "$ref": "#/components/schemas/FileProcessParam"
                  }
                }
              },
              "encoding": {
                "process_params": {
                  "contentType": "application/json"
                }
              }
            }
          }
        },

那么生成的方法:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions