Skip to content

Commit 690e917

Browse files
author
bnasslahsen
committed
Update changelog
1 parent b7c3341 commit 690e917

File tree

4 files changed

+5
-97
lines changed

4 files changed

+5
-97
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Added
99
- Added ability to disable security for one operation using @SecurityRequirements #259
1010
- 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
1114

1215
## [1.2.28] -
1316
## Changed

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,8 @@
1616
*
1717
*/
1818

19-
package test.org.springdoc.api.app78;
19+
package test.org.springdoc.api.app79;
2020

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-
=======
4521
import org.springframework.http.MediaType;
4622
import org.springframework.web.bind.annotation.GetMapping;
4723
import org.springframework.web.bind.annotation.RequestParam;
@@ -58,4 +34,3 @@ public String echo(@RequestParam Optional<String> text) {
5834
}
5935

6036
}
61-
>>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441

springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app79/SpringDocApp79Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.springframework.boot.autoconfigure.SpringBootApplication;
2424

2525

26-
public class SpringDocApp78Test extends AbstractSpringDocTest {
26+
public class SpringDocApp79Test extends AbstractSpringDocTest {
2727

2828
@SpringBootApplication
2929
static class SpringDocTestApp {}

springdoc-openapi-webmvc-core/src/test/resources/results/app79.json

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,17 @@
1111
}
1212
],
1313
"paths": {
14-
<<<<<<< HEAD
15-
"/person1": {
16-
=======
1714
"/test": {
18-
>>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
1915
"get": {
2016
"tags": [
2117
"hello-controller"
2218
],
23-
<<<<<<< HEAD
24-
"operationId": "getPerson1",
25-
"parameters": [
26-
{
27-
"name": "str",
28-
"in": "query",
29-
"required": true,
30-
=======
3119
"operationId": "echo",
3220
"parameters": [
3321
{
3422
"name": "text",
3523
"in": "query",
3624
"required": false,
37-
>>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
3825
"schema": {
3926
"type": "string"
4027
}
@@ -44,45 +31,9 @@
4431
"200": {
4532
"description": "default response",
4633
"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-
=======
8234
"text/plain": {
8335
"schema": {
8436
"type": "string"
85-
>>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
8637
}
8738
}
8839
}
@@ -91,26 +42,5 @@
9142
}
9243
}
9344
},
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-
=======
11445
"components": {}
115-
>>>>>>> 945f0e9e8cbfe98accf6bb98cc7274552fa47441
11646
}

0 commit comments

Comments
 (0)