Skip to content

Commit

Permalink
Fixed failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
annatisch committed May 17, 2016
1 parent 640df1a commit e0e5bd1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,17 +575,17 @@ public string GetDocumentationType(IType type)
{
result = string.Format(CultureInfo.InvariantCulture, "list of {0}", GetDocumentationType(listType.ElementType));
}
else if (type is EnumType)
else if (enumType != null)
{
if (type == ReturnType.Body)
if (enumType == ReturnType.Body)
{
if (enumType.ModelAsString)
result = "str";
else
result = string.Format(CultureInfo.InvariantCulture, ":class:`{0} <{1}.models.{0}>`", type.Name, modelNamespace);
result = string.Format(CultureInfo.InvariantCulture, ":class:`{0} <{1}.models.{0}>`", enumType.Name, modelNamespace);
}
else
result = string.Format(CultureInfo.InvariantCulture, "str or :class:`{0} <{1}.models.{0}>`", type.Name, modelNamespace);
result = string.Format(CultureInfo.InvariantCulture, "str or :class:`{0} <{1}.models.{0}>`", enumType.Name, modelNamespace);
}
else if (type is DictionaryType)
{
Expand Down

0 comments on commit e0e5bd1

Please sign in to comment.