Skip to content

Commit f31f02b

Browse files
author
bnasslahsen
committed
Improve Management of multiple params in requestBody
1 parent d992477 commit f31f02b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import org.springframework.http.ResponseEntity;
2222
import org.springframework.web.bind.annotation.PutMapping;
23-
import org.springframework.web.bind.annotation.RequestMapping;
2423
import org.springframework.web.bind.annotation.RestController;
2524

2625
@RestController

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

+21-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
},
2929
"second": {
3030
"type": "string"
31+
},
32+
"personDTO": {
33+
"$ref": "#/components/schemas/PersonDTO"
3134
}
3235
}
3336
}
@@ -49,5 +52,22 @@
4952
}
5053
}
5154
},
52-
"components": {}
55+
"components": {
56+
"schemas": {
57+
"PersonDTO": {
58+
"type": "object",
59+
"properties": {
60+
"email": {
61+
"type": "string"
62+
},
63+
"firstName": {
64+
"type": "string"
65+
},
66+
"lastName": {
67+
"type": "string"
68+
}
69+
}
70+
}
71+
}
72+
}
5373
}

0 commit comments

Comments
 (0)