|
1 | | -<!-- |
2 | | - ~ /* |
3 | | - ~ * |
4 | | - ~ * * |
5 | | - ~ * * * Copyright 2019-2022 the original author or authors. |
6 | | - ~ * * * |
7 | | - ~ * * * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | | - ~ * * * you may not use this file except in compliance with the License. |
9 | | - ~ * * * You may obtain a copy of the License at |
10 | | - ~ * * * |
11 | | - ~ * * * https://www.apache.org/licenses/LICENSE-2.0 |
12 | | - ~ * * * |
13 | | - ~ * * * Unless required by applicable law or agreed to in writing, software |
14 | | - ~ * * * distributed under the License is distributed on an "AS IS" BASIS, |
15 | | - ~ * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | | - ~ * * * See the License for the specific language governing permissions and |
17 | | - ~ * * * limitations under the License. |
18 | | - ~ * * |
19 | | - ~ * |
20 | | - ~ */ |
21 | | - --> |
22 | | - |
23 | 1 | <!DOCTYPE html> |
24 | 2 | <html lang="en"> |
25 | 3 | <head> |
@@ -267,6 +245,23 @@ <h3 id="_how_can_i_add_reusable_enums"><a class="anchor" href="#_how_can_i_add_r |
267 | 245 | </div> |
268 | 246 | </div> |
269 | 247 | <div class="sect2"> |
| 248 | +<h3 id="_how_can_i_apply_enumasref_true_to_all_enums"><a class="anchor" href="#_how_can_i_apply_enumasref_true_to_all_enums"></a>How can i apply <code>enumAsRef = true</code> to all enums ?</h3> |
| 249 | +<div class="ulist"> |
| 250 | +<ul> |
| 251 | +<li> |
| 252 | +<p>Declare the following property:</p> |
| 253 | +</li> |
| 254 | +</ul> |
| 255 | +</div> |
| 256 | +<div class="listingblock"> |
| 257 | +<div class="content"> |
| 258 | +<pre>static { |
| 259 | + io.swagger.v3.core.jackson.ModelResolver.enumsAsRef = true; |
| 260 | +}</pre> |
| 261 | +</div> |
| 262 | +</div> |
| 263 | +</div> |
| 264 | +<div class="sect2"> |
270 | 265 | <h3 id="_how_can_i_explicitly_set_which_paths_to_filter"><a class="anchor" href="#_how_can_i_explicitly_set_which_paths_to_filter"></a>How can I explicitly set which paths to filter?</h3> |
271 | 266 | <div class="ulist"> |
272 | 267 | <ul> |
@@ -1967,7 +1962,7 @@ <h3 id="_what_is_the_compatibility_matrix_of_springdoc_openapi_with_spring_boot" |
1967 | 1962 | </div> |
1968 | 1963 | <div id="footer"> |
1969 | 1964 | <div id="footer-text"> |
1970 | | -Last updated 2022-05-01 00:07:55 +0200 |
| 1965 | +Last updated 2022-06-15 16:49:14 +0200 |
1971 | 1966 | </div> |
1972 | 1967 | </div> |
1973 | 1968 | </div> |
|
0 commit comments