Merge branch 'v1.4' into master
This commit is contained in:
commit
a186fda880
|
@ -50,7 +50,11 @@ public class Swagger2Parser extends ApiImportAbstractParser {
|
||||||
for (HttpMethod method : httpMethods) {
|
for (HttpMethod method : httpMethods) {
|
||||||
Operation operation = operationMap.get(method);
|
Operation operation = operationMap.get(method);
|
||||||
HttpRequest request = new HttpRequest();
|
HttpRequest request = new HttpRequest();
|
||||||
|
if (StringUtils.isNotBlank(operation.getSummary())) {
|
||||||
|
request.setName(operation.getSummary());
|
||||||
|
} else {
|
||||||
request.setName(operation.getOperationId());
|
request.setName(operation.getOperationId());
|
||||||
|
}
|
||||||
request.setPath(pathName);
|
request.setPath(pathName);
|
||||||
request.setUseEnvironment(true);
|
request.setUseEnvironment(true);
|
||||||
request.setMethod(method.name());
|
request.setMethod(method.name());
|
||||||
|
|
Loading…
Reference in New Issue