Skip to content

Commit

Permalink
Fix retrieval of Xml comments for types with no namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
domaindrivendev committed Oct 21, 2016
1 parent 86f7326 commit 01bb7a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Swashbuckle.Core/Swagger/XmlComments/XmlCommentsIdHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ public static string GetCommentIdForProperty(PropertyInfo propertyInfo)

private static void AppendFullTypeName(Type type, StringBuilder builder, bool expandGenericArgs = false)
{
builder.Append(type.Namespace);
builder.Append(".");
if (type.Namespace != null)
{
builder.Append(type.Namespace);
builder.Append(".");
}
AppendTypeName(type, builder, expandGenericArgs);
}

Expand Down

0 comments on commit 01bb7a2

Please sign in to comment.