File tree Expand file tree Collapse file tree 4 files changed +5
-97
lines changed
springdoc-openapi-webmvc-core/src/test
java/test/org/springdoc/api/app79 Expand file tree Collapse file tree 4 files changed +5
-97
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## Added
9
9
- Added ability to disable security for one operation using @SecurityRequirements #259
10
10
- Support for extensions on @ApiResponse #368
11
+ - Support for CompletionStage as endpoint return type #370
12
+ - Support for extensions on @ApiResponse #368
13
+ - Support for java 8 Optional for @RequestParam #375
11
14
12
15
## [ 1.2.28] -
13
16
## Changed
Original file line number Diff line number Diff line change 16
16
*
17
17
*/
18
18
19
- package test .org .springdoc .api .app78 ;
19
+ package test .org .springdoc .api .app79 ;
20
20
21
- <<<<<<< HEAD
22
- import java .util .concurrent .CompletableFuture ;
23
- import java .util .concurrent .CompletionStage ;
24
-
25
- import org .springframework .http .ResponseEntity ;
26
- import org .springframework .web .bind .annotation .RequestMapping ;
27
- import org .springframework .web .bind .annotation .RequestMethod ;
28
- import org .springframework .web .bind .annotation .RestController ;
29
-
30
- @ RestController
31
- public class HelloController {
32
-
33
- @ RequestMapping (value = "/person1" , method = RequestMethod .GET )
34
- private CompletionStage <ResponseEntity <PersonDTO >> getPerson1 (String str ) {
35
- return null ;
36
- }
37
-
38
- @ RequestMapping (value = "/person2" , method = RequestMethod .GET )
39
- private CompletableFuture <PersonDTO > getPerson2 (String str ) {
40
- return null ;
41
- }
42
-
43
- }
44
- =======
45
21
import org .springframework .http .MediaType ;
46
22
import org .springframework .web .bind .annotation .GetMapping ;
47
23
import org .springframework .web .bind .annotation .RequestParam ;
@@ -58,4 +34,3 @@ public String echo(@RequestParam Optional<String> text) {
58
34
}
59
35
60
36
}
61
- >>>>>>> 945f 0e9 e8cbfe98accf6bb98cc7274552fa47441
Original file line number Diff line number Diff line change 23
23
import org .springframework .boot .autoconfigure .SpringBootApplication ;
24
24
25
25
26
- public class SpringDocApp78Test extends AbstractSpringDocTest {
26
+ public class SpringDocApp79Test extends AbstractSpringDocTest {
27
27
28
28
@ SpringBootApplication
29
29
static class SpringDocTestApp {}
Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"paths" : {
14
- <<<<<<< HEAD
15
- "/person1" : {
16
- =======
17
14
"/test" : {
18
- >>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
19
15
"get" : {
20
16
"tags" : [
21
17
" hello-controller"
22
18
],
23
- <<<<<<< HEAD
24
- "operationId" : " getPerson1" ,
25
- "parameters" : [
26
- {
27
- "name" : " str" ,
28
- "in" : " query" ,
29
- "required" : true ,
30
- =======
31
19
"operationId" : " echo" ,
32
20
"parameters" : [
33
21
{
34
22
"name" : " text" ,
35
23
"in" : " query" ,
36
24
"required" : false ,
37
- >>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
38
25
"schema" : {
39
26
"type" : " string"
40
27
}
44
31
"200" : {
45
32
"description" : " default response" ,
46
33
"content" : {
47
- <<<<<<< HEAD
48
- "*/*" : {
49
- "schema" : {
50
- "$ref" : " #/components/schemas/PersonDTO"
51
- }
52
- }
53
- }
54
- }
55
- }
56
- }
57
- },
58
- "/person2" : {
59
- "get" : {
60
- "tags" : [
61
- " hello-controller"
62
- ],
63
- "operationId" : " getPerson2" ,
64
- "parameters" : [
65
- {
66
- "name" : " str" ,
67
- "in" : " query" ,
68
- "required" : true ,
69
- "schema" : {
70
- "type" : " string"
71
- }
72
- }
73
- ],
74
- "responses" : {
75
- "200" : {
76
- "description" : " default response" ,
77
- "content" : {
78
- "*/*" : {
79
- "schema" : {
80
- "$ref" : " #/components/schemas/PersonDTO"
81
- =======
82
34
"text/plain" : {
83
35
"schema" : {
84
36
"type" : " string"
85
- >>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
86
37
}
87
38
}
88
39
}
91
42
}
92
43
}
93
44
},
94
- <<<<<<< HEAD
95
- "components" : {
96
- "schemas" : {
97
- "PersonDTO" : {
98
- "type" : " object" ,
99
- "properties" : {
100
- "email" : {
101
- "type" : " string"
102
- },
103
- "firstName" : {
104
- "type" : " string"
105
- },
106
- "lastName" : {
107
- "type" : " string"
108
- }
109
- }
110
- }
111
- }
112
- }
113
- =======
114
45
"components" : {}
115
- >>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
116
46
}
You can’t perform that action at this time.
0 commit comments