Skip to content

RequestPart Integer Param Is shown in the Parameters parameter #1196

Closed
@hero-zhanghao

Description

@hero-zhanghao

Describe the bug

When I upload the file, I want to have other Parameters along with it. String is fine, but Integer is displayed in Parameters, which should be wrong

This is the code:

@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE) @Operation(summary = "test") public Mono<Response<Void>> test( @RequestPart("strValue") String strValue, @RequestPart("intValue") Integer intValue, @RequestPart("fileA") FilePart fileA, @RequestPart("fileB") FilePart fileB ){ return Mono.empty(); }

This is the generated page:

image

  • What version of spring-boot you are using? 2.5.0
  • What modules and versions of springdoc-openapi are you using? 1.5.9

Is there any other way I can fix this? Thanks for any answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions