Skip to content

Commit 190858f

Browse files
committed
After migration from spring boot 3.3.4/springdoc 2.6.0 to spring boot 3.4.3/springdoc 2.8.5 the "try it out"button has disappeared. Fixes #90
1 parent d658166 commit 190858f

13 files changed

+21
-21
lines changed

Diff for: docs/faq.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h3 id="_how_can_i_disable_the_try_it_out_button"><a class="anchor" href="#_how_
230230
</div>
231231
<div class="listingblock">
232232
<div class="content">
233-
<pre>springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"</pre>
233+
<pre>springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace</pre>
234234
</div>
235235
</div>
236236
</div>
@@ -2120,7 +2120,7 @@ <h3 id="_some_parameters_are_not_generated_in_the_resulting_openapi_spec"><a cla
21202120
</div>
21212121
<div id="footer">
21222122
<div id="footer-text">
2123-
Last updated 2025-02-11 21:37:22 +0100
2123+
Last updated 2025-02-28 20:11:22 +0100
21242124
</div>
21252125
</div>
21262126
</div>

Diff for: docs/img/gdnext.png

-8.42 KB
Loading

Diff for: docs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ <h3 id="swagger-ui-properties"><a class="anchor" href="#swagger-ui-properties"><
17241724
<tr>
17251725
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.supportedSubmitMethods</p></td>
17261726
<td class="tableblock halign-left valign-top"></td>
1727-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
1727+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=[get, put, post, delete, options, head, patch, trace]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
17281728
</tr>
17291729
<tr>
17301730
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.queryConfigEnabled</p></td>
@@ -2765,7 +2765,7 @@ <h3 id="how-can-i-disable-the-try-it-out-button"><a class="anchor" href="#how-ca
27652765
</div>
27662766
<div class="listingblock">
27672767
<div class="content">
2768-
<pre>springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"</pre>
2768+
<pre>springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace</pre>
27692769
</div>
27702770
</div>
27712771
</div>

Diff for: docs/properties.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ <h3 id="_swagger_ui_properties"><a class="anchor" href="#_swagger_ui_properties"
470470
<tr>
471471
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.supportedSubmitMethods</p></td>
472472
<td class="tableblock halign-left valign-top"></td>
473-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
473+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=[get, put, post, delete, options, head, patch, trace]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
474474
</tr>
475475
<tr>
476476
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.queryConfigEnabled</p></td>

Diff for: docs/ui-properties.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
<tr>
152152
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.supportedSubmitMethods</p></td>
153153
<td class="tableblock halign-left valign-top"></td>
154-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
154+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=[get, put, post, delete, options, head, patch, trace]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
155155
</tr>
156156
<tr>
157157
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.queryConfigEnabled</p></td>
@@ -279,7 +279,7 @@
279279
</div>
280280
<div id="footer">
281281
<div id="footer-text">
282-
Last updated 2024-10-06 14:22:20 +0200
282+
Last updated 2025-02-28 20:11:22 +0100
283283
</div>
284284
</div>
285285
</div>

Diff for: docs/v1/faq.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h3 id="_how_can_i_disable_the_try_it_out_button"><a class="anchor" href="#_how_
230230
</div>
231231
<div class="listingblock">
232232
<div class="content">
233-
<pre>springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"</pre>
233+
<pre>springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace</pre>
234234
</div>
235235
</div>
236236
</div>
@@ -1997,7 +1997,7 @@ <h3 id="_why_am_i_getting_an_error_swagger_ui_unable_to_render_definition_when_o
19971997
</div>
19981998
<div id="footer">
19991999
<div id="footer-text">
2000-
Last updated 2025-02-11 21:37:22 +0100
2000+
Last updated 2025-02-28 20:11:22 +0100
20012001
</div>
20022002
</div>
20032003
</div>

Diff for: docs/v1/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ <h3 id="swagger-ui-properties"><a class="anchor" href="#swagger-ui-properties"><
15231523
</tr>
15241524
<tr>
15251525
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.tryItOutEnabled</p></td>
1526-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>false</code></p></td>
1526+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>true</code></p></td>
15271527
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code>. Controls whether the "Try it out" section should be enabled by default.</p></td>
15281528
</tr>
15291529
<tr>
@@ -1604,7 +1604,7 @@ <h3 id="swagger-ui-properties"><a class="anchor" href="#swagger-ui-properties"><
16041604
<tr>
16051605
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.supportedSubmitMethods</p></td>
16061606
<td class="tableblock halign-left valign-top"></td>
1607-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
1607+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=[get, put, post, delete, options, head, patch, trace]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
16081608
</tr>
16091609
<tr>
16101610
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.queryConfigEnabled</p></td>
@@ -2442,7 +2442,7 @@ <h3 id="how-can-i-disable-the-try-it-out-button"><a class="anchor" href="#how-ca
24422442
</div>
24432443
<div class="listingblock">
24442444
<div class="content">
2445-
<pre>springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"</pre>
2445+
<pre>springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace</pre>
24462446
</div>
24472447
</div>
24482448
</div>

Diff for: docs/v1/properties.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ <h3 id="_swagger_ui_properties"><a class="anchor" href="#_swagger_ui_properties"
470470
<tr>
471471
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.supportedSubmitMethods</p></td>
472472
<td class="tableblock halign-left valign-top"></td>
473-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
473+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=[get, put, post, delete, options, head, patch, trace]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
474474
</tr>
475475
<tr>
476476
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.queryConfigEnabled</p></td>

Diff for: docs/v1/ui-properties.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</tr>
7171
<tr>
7272
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.tryItOutEnabled</p></td>
73-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>false</code></p></td>
73+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>true</code></p></td>
7474
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code>. Controls whether the "Try it out" section should be enabled by default.</p></td>
7575
</tr>
7676
<tr>
@@ -151,7 +151,7 @@
151151
<tr>
152152
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.supportedSubmitMethods</p></td>
153153
<td class="tableblock halign-left valign-top"></td>
154-
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
154+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Array=[get, put, post, delete, options, head, patch, trace]</code>. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.</p></td>
155155
</tr>
156156
<tr>
157157
<td class="tableblock halign-left valign-top"><p class="tableblock">springdoc.swagger-ui.queryConfigEnabled</p></td>
@@ -268,7 +268,7 @@
268268
</div>
269269
<div id="footer">
270270
<div id="footer-text">
271-
Last updated 2024-10-06 14:24:00 +0200
271+
Last updated 2025-02-28 20:12:36 +0100
272272
</div>
273273
</div>
274274
</div>

Diff for: src/docs/asciidoc/faq.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ springdoc.swagger-ui.tagsSorter=alpha
110110
* You have to set the following property:
111111
[source,properties]
112112
----
113-
springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"
113+
springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace
114114
----
115115

116116
=== How can I add Reusable Enums ?

Diff for: src/docs/asciidoc/ui-properties.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
|springdoc.swagger-ui.showExtensions | `false` | `Boolean`. Controls the display of vendor extension (`x-`) fields and values for Operations, Parameters, and Schema.
2525
|springdoc.swagger-ui.url | | `String`.To configure, the path of a custom OpenAPI file . Will be ignored if `urls` is used.
2626
|springdoc.swagger-ui.showCommonExtensions | `false` | `Boolean`. Controls the display of extensions (`pattern`, `maxLength`, `minLength`, `maximum`, `minimum`) fields and values for Parameters.
27-
|springdoc.swagger-ui.supportedSubmitMethods | | `Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]`. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.
27+
|springdoc.swagger-ui.supportedSubmitMethods | | `Array=[get, put, post, delete, options, head, patch, trace]`. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.
2828
|springdoc.swagger-ui.queryConfigEnabled | `false` | `Boolean`. Disabled since `v1.6.0`. This parameter enables (legacy) overriding configuration parameters via URL search params. link:https://github.com/swagger-api/swagger-ui/security/advisories/GHSA-qrmm-w75w-3wpx[See security advisory , window="_blank"] before enabling this feature.
2929
|springdoc.swagger-ui.oauth. additionalQueryStringParams | | `String`. Additional query parameters added to authorizationUrl and tokenUrl.
3030
|springdoc.swagger-ui.disable-swagger-default-url | `false` | `Boolean`. To disable the swagger-ui default petstore url. (Available since v1.4.1).

Diff for: src/docs/asciidoc/v1/faq.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ springdoc.swagger-ui.tagsSorter=alpha
110110
* You have to set the following property:
111111
[source,properties]
112112
----
113-
springdoc.swagger-ui.supportedSubmitMethods="get", "put", "post", "delete", "options", "head", "patch", "trace"
113+
springdoc.swagger-ui.supportedSubmitMethods=get, put, post, delete, options, head, patch, trace
114114
----
115115

116116
=== How can I add Reusable Enums?

Diff for: src/docs/asciidoc/v1/ui-properties.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
|springdoc.swagger-ui.configUrl | `/v3/api-docs/swagger-config` | `String`. URL to fetch external configuration document from.
99
|springdoc.swagger-ui.layout | `BaseLayout` | `String`. The name of a component available via the plugin system to use as the top-level layout for Swagger UI.
1010
|springdoc.swagger-ui.validatorUrl | | By default, Swagger UI does not validate specs. You can use this parameter to set a validator URL, for example for against swagger.io’s online validator.
11-
|springdoc.swagger-ui.tryItOutEnabled | `false` |`Boolean`. Controls whether the "Try it out" section should be enabled by default.
11+
|springdoc.swagger-ui.tryItOutEnabled | `true` |`Boolean`. Controls whether the "Try it out" section should be enabled by default.
1212
|springdoc.swagger-ui.filter | `false` | `Boolean OR String`. If set, enables filtering. The top bar will show an edit box that you can use to filter the tagged operations that are shown. Can be Boolean to enable or disable, or a string, in which case filtering will be enabled using that string as the filter expression. Filtering is case sensitive matching the filter expression anywhere inside the tag.
1313
|springdoc.swagger-ui.operationsSorter | | `Function=(a => a)`. Apply a sort to the operation list of each API. It can be 'alpha' (sort by paths alphanumerically), 'method' (sort by HTTP method) or a function (see Array.prototype.sort() to know how sort function works). Default is the order returned by the server unchanged.
1414
|springdoc.swagger-ui.tagsSorter | | `Function=(a => a)`. Apply a sort to the tag list of each API. It can be 'alpha' (sort by paths alphanumerically) or a function link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort[see Array.prototype.sort() , window="_blank"] to learn how to write a sort function). Two tag name strings are passed to the sorter for each pass. Default is the order determined by Swagger UI.
@@ -24,7 +24,7 @@
2424
|springdoc.swagger-ui.showExtensions | `false` | `Boolean`. Controls the display of vendor extension (`x-`) fields and values for Operations, Parameters, and Schema.
2525
|springdoc.swagger-ui.url | | `String`.To configure, the path of a custom OpenAPI file . Will be ignored if `urls` is used.
2626
|springdoc.swagger-ui.showCommonExtensions | `false` | `Boolean`. Controls the display of extensions (`pattern`, `maxLength`, `minLength`, `maximum`, `minimum`) fields and values for Parameters.
27-
|springdoc.swagger-ui.supportedSubmitMethods | | `Array=["get", "put", "post", "delete", "options", "head", "patch", "trace"]`. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.
27+
|springdoc.swagger-ui.supportedSubmitMethods | | `Array=[get, put, post, delete, options, head, patch, trace]`. List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.
2828
|springdoc.swagger-ui.queryConfigEnabled | `false` | `Boolean`. Disabled since `v1.6.0`. This parameter enables (legacy) overriding configuration parameters via URL search params. link:https://github.com/swagger-api/swagger-ui/security/advisories/GHSA-qrmm-w75w-3wpx[See security advisory , window="_blank"] before enabling this feature.
2929
|springdoc.swagger-ui.oauth. additionalQueryStringParams | | `String`. Additional query parameters added to authorizationUrl and tokenUrl.
3030
|springdoc.swagger-ui.disable-swagger-default-url | `false` | `Boolean`. To disable the swagger-ui default petstore url. (Available since v1.4.1).

0 commit comments

Comments
 (0)