Skip to content

Commit

Permalink
Output all object definitions for parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
warmans committed Dec 15, 2017
1 parent 8db8c1a commit e3aeda3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ func findServicesMessagesAndEnumerations(s []*descriptor.Service, reg *descripto
// Request may be fully included in query
if _, ok := refs[fmt.Sprintf("#/definitions/%s", fullyQualifiedNameToSwaggerName(meth.RequestType.FQMN(), reg))]; ok {
m[fullyQualifiedNameToSwaggerName(meth.RequestType.FQMN(), reg)] = meth.RequestType
findNestedMessagesAndEnumerations(meth.RequestType, reg, m, e)
}
findNestedMessagesAndEnumerations(meth.RequestType, reg, m, e)

m[fullyQualifiedNameToSwaggerName(meth.ResponseType.FQMN(), reg)] = meth.ResponseType
findNestedMessagesAndEnumerations(meth.ResponseType, reg, m, e)
}
Expand Down

0 comments on commit e3aeda3

Please sign in to comment.