File tree Expand file tree Collapse file tree 12 files changed +31
-31
lines changed
modules/jooby-apitool/src/test/java/issues Expand file tree Collapse file tree 12 files changed +31
-31
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public void shouldContainsSwaggerResponseDescription() throws Exception {
4141 + " operationId: \" get\" \n "
4242 + " parameters: []\n "
4343 + " responses:\n "
44- + " 200:\n "
44+ + " \" 200\" :\n "
4545 + " description: \" Person\" \n "
4646 + " schema:\n "
4747 + " $ref: \" #/definitions/Person\" \n "
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public void zonedDateMustUseDateTimeFormat() throws Exception {
3535 + " type: \" string\" \n "
3636 + " format: \" date-time\" \n "
3737 + " responses:\n "
38- + " 200:\n "
38+ + " \" 200\" :\n "
3939 + " description: \" News\" \n "
4040 + " schema:\n "
4141 + " $ref: \" #/definitions/News\" \n "
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public void shouldDetectKotlinTypeUsingOptionalParameters() throws Exception {
6363 + " type: \" integer\" \n "
6464 + " format: \" int32\" \n "
6565 + " responses:\n "
66- + " 200:\n "
66+ + " \" 200\" :\n "
6767 + " description: \" String\" \n "
6868 + " schema:\n "
6969 + " type: \" string\" \n " , yaml (swagger (routes )));
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public void shouldGenerateUniqueOperationIds() throws Exception {
3232 + " operationId: \" getOrders\" \n "
3333 + " parameters: []\n "
3434 + " responses:\n "
35- + " 200:\n "
35+ + " \" 200\" :\n "
3636 + " description: \" List[String]\" \n "
3737 + " schema:\n "
3838 + " type: \" array\" \n "
@@ -50,7 +50,7 @@ public void shouldGenerateUniqueOperationIds() throws Exception {
5050 + " type: \" integer\" \n "
5151 + " format: \" int32\" \n "
5252 + " responses:\n "
53- + " 200:\n "
53+ + " \" 200\" :\n "
5454 + " description: \" int\" \n "
5555 + " schema:\n "
5656 + " type: \" integer\" \n "
@@ -62,7 +62,7 @@ public void shouldGenerateUniqueOperationIds() throws Exception {
6262 + " operationId: \" getProducts\" \n "
6363 + " parameters: []\n "
6464 + " responses:\n "
65- + " 200:\n "
65+ + " \" 200\" :\n "
6666 + " description: \" List[String]\" \n "
6767 + " schema:\n "
6868 + " type: \" array\" \n "
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public void shouldExpandQueryBean() throws Exception {
8181 + " required: false\n "
8282 + " type: \" string\" \n "
8383 + " responses:\n "
84- + " 200:\n "
84+ + " \" 200\" :\n "
8585 + " description: \" String\" \n "
8686 + " schema:\n "
8787 + " type: \" string\" \n " , yaml (swagger (routes )));
@@ -155,7 +155,7 @@ public void shouldExpandForm() throws Exception {
155155 + " required: false\n "
156156 + " type: \" file\" \n "
157157 + " responses:\n "
158- + " 200:\n "
158+ + " \" 200\" :\n "
159159 + " description: \" String\" \n "
160160 + " schema:\n "
161161 + " type: \" string\" \n " , yaml (swagger (routes )));
@@ -229,7 +229,7 @@ public void shouldExpandFormMvc() throws Exception {
229229 + " required: false\n "
230230 + " type: \" file\" \n "
231231 + " responses:\n "
232- + " 200:\n "
232+ + " \" 200\" :\n "
233233 + " description: \" String\" \n "
234234 + " schema:\n "
235235 + " type: \" string\" \n " , yaml (swagger (routes )));
@@ -296,7 +296,7 @@ public void shouldExpandQueryBeanFromMvc() throws Exception {
296296 + " required: false\n "
297297 + " type: \" string\" \n "
298298 + " responses:\n "
299- + " 200:\n "
299+ + " \" 200\" :\n "
300300 + " description: \" String\" \n "
301301 + " schema:\n "
302302 + " type: \" string\" \n " , yaml (swagger (routes )));
@@ -350,7 +350,7 @@ public void shouldExpandQueryBeanFromKotlin() throws Exception {
350350 + " required: true\n "
351351 + " type: \" string\" \n "
352352 + " responses:\n "
353- + " 200:\n "
353+ + " \" 200\" :\n "
354354 + " description: \" String\" \n "
355355 + " schema:\n "
356356 + " type: \" string\" \n " , yaml (swagger (routes )));
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void shouldUseCustomTagger() throws Exception {
3636 + " operationId: \" getSong\" \n "
3737 + " parameters: []\n "
3838 + " responses:\n "
39- + " 200:\n "
39+ + " \" 200\" :\n "
4040 + " description: \" String\" \n "
4141 + " schema:\n "
4242 + " type: \" string\" \n "
@@ -47,7 +47,7 @@ public void shouldUseCustomTagger() throws Exception {
4747 + " operationId: \" getAlbum\" \n "
4848 + " parameters: []\n "
4949 + " responses:\n "
50- + " 200:\n "
50+ + " \" 200\" :\n "
5151 + " description: \" String\" \n "
5252 + " schema:\n "
5353 + " type: \" string\" \n "
@@ -58,7 +58,7 @@ public void shouldUseCustomTagger() throws Exception {
5858 + " operationId: \" getArtist\" \n "
5959 + " parameters: []\n "
6060 + " responses:\n "
61- + " 200:\n "
61+ + " \" 200\" :\n "
6262 + " description: \" String\" \n "
6363 + " schema:\n "
6464 + " type: \" string\" \n " , Yaml
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public void apiOperation() throws Exception {
4141 + " - \" bar/baz\" \n "
4242 + " parameters: []\n "
4343 + " responses:\n "
44- + " 202:\n "
44+ + " \" 202\" :\n "
4545 + " description: \" Result\" \n "
4646 + " headers:\n "
4747 + " foo:\n "
@@ -56,7 +56,7 @@ public void apiOperation() throws Exception {
5656 + " operationId: \" /Controller1100.listApiResponse\" \n "
5757 + " parameters: []\n "
5858 + " responses:\n "
59- + " 204:\n "
59+ + " \" 204\" :\n "
6060 + " description: \" Response message\" \n "
6161 + " headers:\n "
6262 + " foo:\n "
@@ -70,11 +70,11 @@ public void apiOperation() throws Exception {
7070 + " operationId: \" /Controller1100.listNApiResponse\" \n "
7171 + " parameters: []\n "
7272 + " responses:\n "
73- + " 200:\n "
73+ + " \" 200\" :\n "
7474 + " description: \" cat\" \n "
7575 + " schema:\n "
7676 + " $ref: \" #/definitions/Category\" \n "
77- + " 200(Tag):\n "
77+ + " \" 200(Tag)\" :\n "
7878 + " description: \" tag\" \n "
7979 + " headers:\n "
8080 + " foo:\n "
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void bodySchemaRefVsFormData() throws Exception {
3636 + " schema:\n "
3737 + " $ref: \" #/definitions/PingCommand\" \n "
3838 + " responses:\n "
39- + " 200:\n "
39+ + " \" 200\" :\n "
4040 + " description: \" Boolean\" \n "
4141 + " schema:\n "
4242 + " type: \" boolean\" \n "
@@ -59,7 +59,7 @@ public void bodySchemaRefVsFormData() throws Exception {
5959 + " type: \" integer\" \n "
6060 + " format: \" int32\" \n "
6161 + " responses:\n "
62- + " 200:\n "
62+ + " \" 200\" :\n "
6363 + " description: \" Boolean\" \n "
6464 + " schema:\n "
6565 + " type: \" boolean\" \n "
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public void shouldProcessApiParamSwaggerAnnotation() throws Exception {
4242 + " required: false\n "
4343 + " type: \" string\" \n "
4444 + " responses:\n "
45- + " 200:\n "
45+ + " \" 200\" :\n "
4646 + " description: \" String\" \n " , yaml (swagger (routes ), false ));
4747 }
4848
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public void apitoolDoesNotListMvcNamespaced () throws Exception {
3333 + " operationId: \" /Controller1276.foo\" \n "
3434 + " parameters: []\n "
3535 + " responses:\n "
36- + " 200:\n "
36+ + " \" 200\" :\n "
3737 + " description: \" String\" \n "
3838 + " schema:\n "
3939 + " type: \" string\" \n "
@@ -44,7 +44,7 @@ public void apitoolDoesNotListMvcNamespaced () throws Exception {
4444 + " operationId: \" getNamespacefoo\" \n "
4545 + " parameters: []\n "
4646 + " responses:\n "
47- + " 200:\n "
47+ + " \" 200\" :\n "
4848 + " description: \" String\" \n "
4949 + " schema:\n "
5050 + " type: \" string\" \n " , yaml (swagger (routes ), false ));
You can’t perform that action at this time.
0 commit comments