TongchengOpenSource / smart-doc

Smart-doc is a java restful api document generation tool. Smart-doc is based on interface source code analysis to generate interface documentation, completely zero-injection.
https://smart-doc-group.github.io/#/
Apache License 2.0
1.4k stars 275 forks source link

@RequestPart annotation parameter support issue #847

Closed zooltech closed 1 month ago

zooltech commented 2 months ago

Controller method:

@PostMapping(value = "/picture/add", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public Result<MainContentPicDTO> addMainContentPic(@RequestPart("param") @NotNull final MainContentPicParam param,
                                                   @RequestPart("file") @NotNull final MultipartFile file) {
 ....
}

Description of API document parameters generated: image

There is no "param" parameter. Just directly listing the properties of the parameter object.

shalousun commented 2 months ago

@zooltech If you can fix it yourself, we would greatly appreciate a pull request from you. The official documentation also provides instructions on how to submit a pull request.