Skip to content

Commit

Permalink
tolerate doggy def with component names containing "+".
Browse files Browse the repository at this point in the history
  • Loading branch information
ZijianFLG committed Apr 29, 2024
1 parent e941f31 commit 5fcd978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AssemblyName>Fonlow.OpenApiClientGen.ClientTypes</AssemblyName>
<RootNamespace>Fonlow.OpenApiClientGen.ClientTypes</RootNamespace>
<Version>3.1</Version>
<Version>3.1.1</Version>
<PackageReleaseNotes>Better support for Int64 in JS. More doc comments generated.</PackageReleaseNotes>
<AnalysisLevel>latest-all</AnalysisLevel>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions Fonlow.OpenApiClientGen.ClientTypes/RenamerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public string RefineTypeName(string s, string nsInType, bool dotsToNamespaces =
.Replace("(", "").Replace(")", "")
.Replace("&", "And")
.Replace("?", "_")
.Replace("+", "_")
.Replace('[', '_').Replace("]", ""); // for something like PartialFindResult[ActivityEntryForApiContract]
return dotsToNamespaces ? r : r.Replace(".", string.Empty);
}
Expand Down
2 changes: 1 addition & 1 deletion Fonlow.OpenApiClientGen/Fonlow.OpenApiClientGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<NeutralLanguage>en</NeutralLanguage>
<Copyright>Copyright © Zijian Huang 2021-2024</Copyright>
<Version>3.1.1</Version>
<Version>3.1.2</Version>
<PackageTags>Swagger, Open API Specification, C#, .NET Core, Web API, TypeScript, Angular, YAML</PackageTags>
<PackageReleaseNotes>Better support for Int64 in JS. More doc comments generated.</PackageReleaseNotes>
<AnalysisLevel>latest-all</AnalysisLevel>
Expand Down

0 comments on commit 5fcd978

Please sign in to comment.