File tree 2 files changed +8
-0
lines changed
springdoc-openapi-starter-webmvc-api/src/test
java/test/org/springdoc/api/v30/app119 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 27
27
import io .swagger .v3 .oas .annotations .Operation ;
28
28
import io .swagger .v3 .oas .annotations .Parameter ;
29
29
import io .swagger .v3 .oas .annotations .media .Content ;
30
+ import io .swagger .v3 .oas .annotations .media .Encoding ;
31
+ import io .swagger .v3 .oas .annotations .parameters .RequestBody ;
30
32
31
33
import org .springframework .http .MediaType ;
32
34
import org .springframework .web .bind .annotation .PostMapping ;
@@ -44,6 +46,7 @@ public class HelloController {
44
46
produces = MediaType .TEXT_PLAIN_VALUE )
45
47
public String multiFilesInMultiPart (
46
48
@ RequestPart ("params" )
49
+ @ RequestBody (content = @ Content (encoding = @ Encoding (name ="params" , contentType =MediaType .APPLICATION_JSON_VALUE )))
47
50
@ Parameter (
48
51
description = "This is the configuration" ,
49
52
content = @ Content (mediaType = MediaType .APPLICATION_JSON_VALUE )) final JsonRequest jsonRequest ,
Original file line number Diff line number Diff line change 41
41
"$ref" : " #/components/schemas/JsonRequest"
42
42
}
43
43
}
44
+ },
45
+ "encoding" : {
46
+ "params" : {
47
+ "contentType" : " application/json"
48
+ }
44
49
}
45
50
}
46
51
}
You can’t perform that action at this time.
0 commit comments