Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestPart Integer Param Is shown in the Parameters parameter #1196

Closed
hero-zhanghao opened this issue Jun 18, 2021 · 0 comments
Closed

RequestPart Integer Param Is shown in the Parameters parameter #1196

hero-zhanghao opened this issue Jun 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@hero-zhanghao
Copy link

hero-zhanghao commented Jun 18, 2021

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

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants