Fix parameter in PathItem (#639)

This commit is contained in:
Jérémie Bresson
2018-07-25 12:27:05 +02:00
committed by GitHub
parent 37be47fc56
commit 85f0909c7f
2 changed files with 52 additions and 2 deletions

View File

@@ -896,8 +896,8 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
if (path.getParameters() != null) {
for (Parameter parameter : path.getParameters()) {
//skip propagation if a parameter with the same name is already defined at the operation level
if (!operationParameters.contains(generateParameterId(parameter)) && operation.getParameters() != null) {
operation.getParameters().add(parameter);
if (!operationParameters.contains(generateParameterId(parameter))) {
operation.addParametersItem(parameter);
}
}
}