use of io.swagger.models.parameters.QueryParameter in project java-chassis by ServiceComb.
the class SpringmvcDefaultParameterProcessor method process.
@Override
public void process(OperationGenerator operationGenerator, int paramIdx) {
String paramName = ParamUtils.getParameterName(operationGenerator.getProviderMethod(), paramIdx);
QueryParameter queryParameter = new QueryParameter();
queryParameter.setName(paramName);
ParamUtils.setParameterType(operationGenerator.getSwagger(), operationGenerator.getProviderMethod(), paramIdx, queryParameter);
operationGenerator.addProviderParameter(queryParameter);
}
Aggregations