Skip to content

Commit 04c1eee

Browse files
committed
Fix issue with last namespace being missed
1 parent c769d3e commit 04c1eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • SchemaDocumentationGenerator/SchemaDocumentationGenerator/TypeGeneration

SchemaDocumentationGenerator/SchemaDocumentationGenerator/TypeGeneration/TypeToMarkdown.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ private static string Header(this Type type)
217217

218218
string title = type.TitleName(true);
219219
string[] split = title.Split('.');
220-
string nameSpace = string.Join('.', split.Take(split.Length - 2));
220+
string nameSpace = string.Join('.', split.Take(split.Length - 1));
221221
string name = split[split.Length - 1];
222222
markdown += $"# <small>{nameSpace}.</small>**{name}**";
223223
markdown += "\n\n";

0 commit comments

Comments
 (0)