RicoSuter / SigSpec

Specification and code generator for SignalR Core.
MIT License
159 stars 37 forks source link

XmlSummary for methods are taken from "Hub type" instead of method #16

Closed hoaol closed 5 years ago

hoaol commented 5 years ago

Hi! First I want to say that this is a very interesting project, at my company we are in the process of developing quite a lot of Signalr Services and have a need to get them documented in a structual way. I have dowloaded the latest version and made some tests and like what I see :-) but I think I have found a little bug...

In SigSpecGenerator.cs, GenerateOperationAsync I think that Description = await type.GetXmlSummaryAsync() should be changed to Description = await method.GetXmlSummaryAsync()

RicoSuter commented 5 years ago

Sounds reasonable, can you create a PR?