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
when i use "swagger.globalOperationParameters" with 2.0.0.RELEASE , i found it can't work .
By looking at the source code , i found "globalOperParameters" not set in Docket.
Currently I can only add BeanPostProcessor to handle.
globalOperationParameters is deprecated when use "DocumentationType.OAS_30"
/** * Adds default parameters which will be applied to all operations. * * @param operationParameters parameters which will be globally applied to all operations * @return this Docket use @see {@link Docket#globalRequestParameters} instead * @deprecated */@DeprecatedpublicDocketglobalOperationParameters(List<springfox.documentation.service.Parameter> operationParameters) {
this.globalOperationParameters.addAll(nullToEmptyList(operationParameters));
returnthis;
}
We will add globalRequestParameters instead globalOperationParameters
升级版本之后发现swagger.globalOperationParameters失效
The text was updated successfully, but these errors were encountered: