You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>If this is not enough, Spring Framework provides a <code>ForwardedHeaderFilter</code>. You can register it as a Servlet Filter in your application by setting server.forward-headers-strategy is set to FRAMEWORK.</p>
580
578
</li>
581
579
<li>
582
-
<p>Since Spring Boot 3.2, this is the new property to handle reverse proxy headers:</p>
580
+
<p>Since Spring Boot 2.2, this is the new property to handle reverse proxy headers:</p>
@Parameter(description = "An extra JSON payload sent with file") @RequestPart("jsonRequest") final JsonRequest jsonRequest,
1270
+
@RequestPart("file") final MultipartFile file) {
1271
+
return null;
1272
+
}
1273
+
</span></code></pre>
1274
+
</div>
1275
+
</div>
1246
1276
</div>
1247
1277
<divclass="sect2">
1248
1278
<h3id="_can_i_use_parameter_inside_operation_annotation"><aclass="anchor" href="#_can_i_use_parameter_inside_operation_annotation"></a>Can I use <code>@Parameter</code> inside <code>@Operation</code> annotation?</h3>
<p><code>springdoc-openapi</code> relies on standard <ahref="https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config" target="_blank" rel="noopener">spring configuration properties</a> (yml or properties) using the standard files locations.</p>
1337
+
<p><code>springdoc-openapi</code> relies on standard <ahref="https://docs.spring.io/spring-boot/reference/features/external-config.html" target="_blank" rel="noopener">spring configuration properties</a> (yml or properties) using the standard files locations.</p>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">By default, Swagger UI attempts to validate specs against swagger.io’s online validator. You can use this parameter to set a different validator URL, for example for locally deployed validators <ahref="https://github.com/swagger-api/validator-badge" target="_blank" rel="noopener">Validator Badge</a>. Setting it to either <code>none</code>, <code>127.0.0.1</code> or <code>localhost</code> will disable validation.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">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.</p></td>
<p>If this is not enough, Spring Framework provides a <code>ForwardedHeaderFilter</code>. You can register it as a Servlet Filter in your application by setting server.forward-headers-strategy is set to FRAMEWORK.</p>
3242
3240
</li>
3243
3241
<li>
3244
-
<p>Since Spring Boot 3.2, this is the new property to handle reverse proxy headers:</p>
3242
+
<p>Since Spring Boot 2.2, this is the new property to handle reverse proxy headers:</p>
@Parameter(description = "An extra JSON payload sent with file") @RequestPart("jsonRequest") final JsonRequest jsonRequest,
3932
+
@RequestPart("file") final MultipartFile file) {
3933
+
return null;
3934
+
}
3935
+
</span></code></pre>
3936
+
</div>
3937
+
</div>
3908
3938
</div>
3909
3939
<divclass="sect2">
3910
3940
<h3id="can-i-use-parameter-inside-operation-annotation"><aclass="anchor" href="#can-i-use-parameter-inside-operation-annotation"></a>13.54. Can I use <code>@Parameter</code> inside <code>@Operation</code> annotation?</h3>
<p><code>springdoc-openapi</code> relies on standard <ahref="https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config" target="_blank" rel="noopener">spring configuration properties</a> (yml or properties) using the standard files locations.</p>
36
+
<p><code>springdoc-openapi</code> relies on standard <ahref="https://docs.spring.io/spring-boot/reference/features/external-config.html" target="_blank" rel="noopener">spring configuration properties</a> (yml or properties) using the standard files locations.</p>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">By default, Swagger UI attempts to validate specs against swagger.io’s online validator. You can use this parameter to set a different validator URL, for example for locally deployed validators <ahref="https://github.com/swagger-api/validator-badge" target="_blank" rel="noopener">Validator Badge</a>. Setting it to either <code>none</code>, <code>127.0.0.1</code> or <code>localhost</code> will disable validation.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">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.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">By default, Swagger UI attempts to validate specs against swagger.io’s online validator. You can use this parameter to set a different validator URL, for example for locally deployed validators <ahref="https://github.com/swagger-api/validator-badge" target="_blank" rel="noopener">Validator Badge</a>. Setting it to either <code>none</code>, <code>127.0.0.1</code> or <code>localhost</code> will disable validation.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">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.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">By default, Swagger UI attempts to validate specs against swagger.io’s online validator. You can use this parameter to set a different validator URL, for example for locally deployed validators <ahref="https://github.com/swagger-api/validator-badge" target="_blank" rel="noopener">Validator Badge</a>. Setting it to either <code>none</code>, <code>127.0.0.1</code> or <code>localhost</code> will disable validation.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">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.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">By default, Swagger UI attempts to validate specs against swagger.io’s online validator. You can use this parameter to set a different validator URL, for example for locally deployed validators <ahref="https://github.com/swagger-api/validator-badge" target="_blank" rel="noopener">Validator Badge</a>. Setting it to either <code>none</code>, <code>127.0.0.1</code> or <code>localhost</code> will disable validation.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">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.</p></td>
0 commit comments