Skip to content

Commit 6bd04eb

Browse files
committed
Replaced deprecated 'summary' attribute with recommended 'caption' element
1 parent e9c3c63 commit 6bd04eb

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>
@@ -287,7 +288,8 @@ public class {{classname}} {
287288
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
288289
{{#responses.0}}
289290
* @http.response.details
290-
<table summary="Response Details" border="1">
291+
<table border="1">
292+
<caption>Response Details</caption>
291293
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
292294
{{#responses}}
293295
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -327,7 +329,8 @@ public class {{classname}} {
327329
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
328330
{{#responses.0}}
329331
* @http.response.details
330-
<table summary="Response Details" border="1">
332+
<table border="1">
333+
<caption>Response Details</caption>
331334
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
332335
{{#responses}}
333336
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -395,7 +398,8 @@ public class {{classname}} {
395398
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
396399
{{#responses.0}}
397400
* @http.response.details
398-
<table summary="Response Details" border="1">
401+
<table border="1">
402+
<caption>Response Details</caption>
399403
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
400404
{{#responses}}
401405
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -455,7 +459,8 @@ public class {{classname}} {
455459
* @throws ApiException If fail to serialize the request body object
456460
{{#responses.0}}
457461
* @http.response.details
458-
<table summary="Response Details" border="1">
462+
<table border="1">
463+
<caption>Response Details</caption>
459464
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
460465
{{#responses}}
461466
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -479,7 +484,8 @@ public class {{classname}} {
479484
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
480485
{{#responses.0}}
481486
* @http.response.details
482-
<table summary="Response Details" border="1">
487+
<table border="1">
488+
<caption>Response Details</caption>
483489
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
484490
{{#responses}}
485491
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -511,7 +517,8 @@ public class {{classname}} {
511517
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
512518
{{#responses.0}}
513519
* @http.response.details
514-
<table summary="Response Details" border="1">
520+
<table border="1">
521+
<caption>Response Details</caption>
515522
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
516523
{{#responses}}
517524
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -543,7 +550,8 @@ public class {{classname}} {
543550
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
544551
{{#responses.0}}
545552
* @http.response.details
546-
<table summary="Response Details" border="1">
553+
<table border="1">
554+
<caption>Response Details</caption>
547555
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
548556
{{#responses}}
549557
<tr><td> {{code}} </td><td> {{message}} </td><td> {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} </td></tr>
@@ -569,7 +577,8 @@ public class {{classname}} {
569577
* @return API{{operationId}}Request
570578
{{#responses.0}}
571579
* @http.response.details
572-
<table summary="Response Details" border="1">
580+
<table border="1">
581+
<caption>Response Details</caption>
573582
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
574583
{{#responses}}
575584
<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)