Skip to content

convert response body with content "multipart/form-data" to @RequestParam parameters #56

Closed
@hauner

Description

@hauner

Assuming the following open api snippet for a request body:

  requestBody:
    required: true
    content:
      multipart/form-data:
        schema:
          type: object
          properties:
            file:
              type: string
              format: binary
            other:
              type: string

the generatr should create an additional query parameter for each property of the schema object instead of a @ReqeustBody parameter, in this case

 @RequestParam(name = "file") MultipartFile file,
 @RequestParam(name = "other") String other

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions