Skip to content

Commit

Permalink
Revert "protoc-gen-swagger: check typeIndex when typeName is Method"
Browse files Browse the repository at this point in the history
This reverts commit 8140d98. It caused
a regression in the swagger generator allow_merge behaviour.

Fixes #923
  • Loading branch information
johanbrandhorst committed Jun 13, 2019
1 parent e6f18d3 commit 7427fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ func isProtoPathMatches(paths []int32, outerPaths []int32, typeName string, type
}

if typeName == "Method" {
if paths[0] != serviceProtoPath || paths[1] != typeIndex || paths[2] != methodProtoPath {
if paths[0] != serviceProtoPath || paths[2] != methodProtoPath {
return false
}
paths = paths[2:]
Expand Down

0 comments on commit 7427fbd

Please sign in to comment.