Skip to content

Commit

Permalink
apidocs - removing api-docs relatedOperations when targetting 'string…
Browse files Browse the repository at this point in the history
…' type
  • Loading branch information
fcamblor committed Sep 3, 2017
1 parent 5ba615b commit fcb821d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -103,9 +103,11 @@ private List<ResourceDescription> fillRelatedOperations(final String name, List<
Set<OperationReference> related = new LinkedHashSet<>(operation.relatedOperations); Set<OperationReference> related = new LinkedHashSet<>(operation.relatedOperations);


// add related by type // add related by type
related.addAll(operationsByType.get(getTargetType(operation.responseClass))); if(!"string".equals(getTargetType(operation.responseClass))){
related.addAll(operationsByType.get(getTargetType(operation.responseClass)));
}
Optional<OperationParameterDescription> bodyParameter = operation.findBodyParameter(); Optional<OperationParameterDescription> bodyParameter = operation.findBodyParameter();
if (bodyParameter.isPresent()) { if (bodyParameter.isPresent() && !"string".equals(bodyParameter.get().dataType)) {
related.addAll(operationsByType.get(getTargetType(bodyParameter.get().dataType))); related.addAll(operationsByType.get(getTargetType(bodyParameter.get().dataType)));
} }


Expand Down

0 comments on commit fcb821d

Please sign in to comment.