Skip to content

Commit fff43d5

Browse files
Fixing encoding section in multipart request
1 parent f9f4d16 commit fff43d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app103/HelloController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public class HelloController {
3434

3535
@PostMapping(value = "/test/103", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
3636
@Operation(
37-
requestBody = @RequestBody(content = @Content(encoding = @Encoding(name = "body", contentType = "application/json")))
37+
requestBody = @RequestBody(
38+
content = @Content(
39+
encoding = @Encoding(name = "body", contentType = "application/json")
40+
)
41+
)
3842
)
3943
public String postMyRequestBody(
4044
@RequestPart("body") ExampleBody body,

0 commit comments

Comments
 (0)