Skip to content

Commit 51a0bd0

Browse files
authored
Replaced deprecated 'summary' attribute with recommended 'caption' element (#19961)
1 parent 1a58d31 commit 51a0bd0

File tree

88 files changed

+3280
-1640
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3280
-1640
lines changed

modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public class {{classname}} {
6767
* @throws ApiException if fails to make API call
6868
{{#responses.0}}
6969
* @http.response.details
70-
<table summary="Response Details" border="1">
70+
<table border="1">
71+
<caption>Response Details</caption>
7172
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
7273
{{#responses}}
7374
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -101,7 +102,8 @@ public class {{classname}} {
101102
* @throws ApiException if fails to make API call
102103
{{#responses.0}}
103104
* @http.response.details
104-
<table summary="Response Details" border="1">
105+
<table border="1">
106+
<caption>Response Details</caption>
105107
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
106108
{{#responses}}
107109
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -232,7 +234,8 @@ public class {{classname}} {
232234
* @throws ApiException if fails to make API call
233235
{{#responses.0}}
234236
* @http.response.details
235-
<table summary="Response Details" border="1">
237+
<table border="1">
238+
<caption>Response Details</caption>
236239
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
237240
{{#responses}}
238241
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -252,7 +255,8 @@ public class {{classname}} {
252255
* @throws ApiException if fails to make API call
253256
{{#responses.0}}
254257
* @http.response.details
255-
<table summary="Response Details" border="1">
258+
<table border="1">
259+
<caption>Response Details</caption>
256260
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
257261
{{#responses}}
258262
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>

modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public class {{classname}} {
6767
* @throws ApiException if fails to make API call
6868
{{#responses.0}}
6969
* @http.response.details
70-
<table summary="Response Details" border="1">
70+
<table border="1">
71+
<caption>Response Details</caption>
7172
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
7273
{{#responses}}
7374
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -101,7 +102,8 @@ public class {{classname}} {
101102
* @throws ApiException if fails to make API call
102103
{{#responses.0}}
103104
* @http.response.details
104-
<table summary="Response Details" border="1">
105+
<table border="1">
106+
<caption>Response Details</caption>
105107
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
106108
{{#responses}}
107109
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -232,7 +234,8 @@ public class {{classname}} {
232234
* @throws ApiException if fails to make API call
233235
{{#responses.0}}
234236
* @http.response.details
235-
<table summary="Response Details" border="1">
237+
<table border="1">
238+
<caption>Response Details</caption>
236239
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
237240
{{#responses}}
238241
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -252,7 +255,8 @@ public class {{classname}} {
252255
* @throws ApiException if fails to make API call
253256
{{#responses.0}}
254257
* @http.response.details
255-
<table summary="Response Details" border="1">
258+
<table border="1">
259+
<caption>Response Details</caption>
256260
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
257261
{{#responses}}
258262
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>

modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public class {{classname}} {
9898
* @throws ApiException If fail to serialize the request body object
9999
{{#responses.0}}
100100
* @http.response.details
101-
<table summary="Response Details" border="1">
101+
<table border="1">
102+
<caption>Response Details</caption>
102103
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
103104
{{#responses}}
104105
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -290,7 +291,8 @@ public class {{classname}} {
290291
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
291292
{{#responses.0}}
292293
* @http.response.details
293-
<table summary="Response Details" border="1">
294+
<table border="1">
295+
<caption>Response Details</caption>
294296
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
295297
{{#responses}}
296298
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -330,7 +332,8 @@ public class {{classname}} {
330332
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
331333
{{#responses.0}}
332334
* @http.response.details
333-
<table summary="Response Details" border="1">
335+
<table border="1">
336+
<caption>Response Details</caption>
334337
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
335338
{{#responses}}
336339
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -398,7 +401,8 @@ public class {{classname}} {
398401
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
399402
{{#responses.0}}
400403
* @http.response.details
401-
<table summary="Response Details" border="1">
404+
<table border="1">
405+
<caption>Response Details</caption>
402406
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
403407
{{#responses}}
404408
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -458,7 +462,8 @@ public class {{classname}} {
458462
* @throws ApiException If fail to serialize the request body object
459463
{{#responses.0}}
460464
* @http.response.details
461-
<table summary="Response Details" border="1">
465+
<table border="1">
466+
<caption>Response Details</caption>
462467
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
463468
{{#responses}}
464469
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -482,7 +487,8 @@ public class {{classname}} {
482487
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
483488
{{#responses.0}}
484489
* @http.response.details
485-
<table summary="Response Details" border="1">
490+
<table border="1">
491+
<caption>Response Details</caption>
486492
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
487493
{{#responses}}
488494
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -514,7 +520,8 @@ public class {{classname}} {
514520
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
515521
{{#responses.0}}
516522
* @http.response.details
517-
<table summary="Response Details" border="1">
523+
<table border="1">
524+
<caption>Response Details</caption>
518525
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
519526
{{#responses}}
520527
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -546,7 +553,8 @@ public class {{classname}} {
546553
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
547554
{{#responses.0}}
548555
* @http.response.details
549-
<table summary="Response Details" border="1">
556+
<table border="1">
557+
<caption>Response Details</caption>
550558
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
551559
{{#responses}}
552560
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -572,7 +580,8 @@ public class {{classname}} {
572580
* @return API{{operationId}}Request
573581
{{#responses.0}}
574582
* @http.response.details
575-
<table summary="Response Details" border="1">
583+
<table border="1">
584+
<caption>Response Details</caption>
576585
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
577586
{{#responses}}
578587
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>

modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public class {{classname}} {
6161
* @throws ApiException if fails to make API call
6262
{{#responses.0}}
6363
* @http.response.details
64-
<table summary="Response Details" border="1">
64+
<table border="1">
65+
<caption>Response Details</caption>
6566
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
6667
{{#responses}}
6768
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -95,7 +96,8 @@ public class {{classname}} {
9596
* @throws ApiException if fails to make API call
9697
{{#responses.0}}
9798
* @http.response.details
98-
<table summary="Response Details" border="1">
99+
<table border="1">
100+
<caption>Response Details</caption>
99101
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
100102
{{#responses}}
101103
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -200,7 +202,8 @@ public class {{classname}} {
200202
* @throws ApiException if fails to make API call
201203
{{#responses.0}}
202204
* @http.response.details
203-
<table summary="Response Details" border="1">
205+
<table border="1">
206+
<caption>Response Details</caption>
204207
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
205208
{{#responses}}
206209
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -220,7 +223,8 @@ public class {{classname}} {
220223
* @throws ApiException if fails to make API call
221224
{{#responses.0}}
222225
* @http.response.details
223-
<table summary="Response Details" border="1">
226+
<table border="1">
227+
<caption>Response Details</caption>
224228
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
225229
{{#responses}}
226230
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>

0 commit comments

Comments
 (0)