Skip to content

Commit

Permalink
fix: Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jul 15, 2024
1 parent da5e30d commit 7fd0d70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<PropertyGroup Label="Versioning">
<Version>0.13.6</Version>
<Version>0.13.7</Version>
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerDefaultPreReleaseIdentifiers>dev</MinVerDefaultPreReleaseIdentifiers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static string GetContextType(string type)

var result = string.Concat(type
.Replace("global::", string.Empty)
.TrimEnd('?')
.Replace("?", string.Empty)
.Replace("System.Collections.Generic.", string.Empty)
.Replace("System.", string.Empty)
.Split(ContextTypeSeparators, StringSplitOptions.RemoveEmptyEntries)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public void ContextTypes()
GetContextType("global::System.Collections.Generic.List<byte[]>").Should().Be("ListByteArray");
GetContextType("global::System.Collections.Generic.List<byte[][]>").Should().Be("ListByteArrayArray");
GetContextType("bool").Should().Be("NullableBoolean");
GetContextType("global::System.AllOf<Integration?, AppsCreateFromManifestResponse>").Should().Be("NullableAllOfIntegrationAppsCreateFromManifestResponse");
}
}

0 comments on commit 7fd0d70

Please sign in to comment.