Skip to content

Commit

Permalink
v3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianhuang committed Jun 12, 2024
1 parent c4beb74 commit df1585c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void CreateDocComments()
StringBuilder builder = new();
string[] linesNoIndent = Fonlow.DocComment.StringFunctions.TrimIndentedMultiLineTextToArray(
apiOperation.Summary
+ ((String.IsNullOrEmpty(apiOperation.Summary) || string.IsNullOrEmpty(apiOperation.Description)) ? String.Empty : "\n")
+ ((String.IsNullOrEmpty(apiOperation.Summary) || string.IsNullOrEmpty(apiOperation.Description)) ? String.Empty : Environment.NewLine)
+ apiOperation.Description);
if (linesNoIndent != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Authors>Zijian Huang</Authors>
<NeutralLanguage>en</NeutralLanguage>
<Description>Shared component for plugins that generate TypeScript client API codes</Description>
<Version>3.1.1</Version>
<Version>3.1.2</Version>
<AnalysisLevel>latest-all</AnalysisLevel>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Fonlow.OpenApiClientGen.CS/ClientApiFunctionGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void CreateParamDocComment(ParameterDescription item)
method.Comments.Add(new CodeCommentStatement("<summary>", true));
string[] noIndent = Fonlow.DocComment.StringFunctions.TrimIndentedMultiLineTextToArray(
apiOperation.Summary
+ ((String.IsNullOrEmpty(apiOperation.Summary) || string.IsNullOrEmpty(apiOperation.Description)) ? String.Empty : "\n")
+ ((String.IsNullOrEmpty(apiOperation.Summary) || string.IsNullOrEmpty(apiOperation.Description)) ? String.Empty : Environment.NewLine)
+ apiOperation.Description);
if (noIndent != null)
{
Expand Down
2 changes: 1 addition & 1 deletion Fonlow.OpenApiClientGen.CS/ControllersClientApiGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ void CreateDummyOfEnsureSuccessStatusCodeEx()
codeCompileUnit.Namespaces.Add(new CodeNamespace("ZZZzzzEnsureSuccessStatusCodeExDummy"));
}

string GetBlockOfEnsureSuccessStatusCodeExForLinux()
static string GetBlockOfEnsureSuccessStatusCodeExForLinux()
{
return blockOfEnsureSuccessStatusCodeEx.ReplaceLineEndings();
}
Expand Down
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.1</Version>
<Version>3.1.2</Version>
<PackageReleaseNotes>Better support for Int64 in JS. More doc comments generated.</PackageReleaseNotes>
<AnalysisLevel>latest-all</AnalysisLevel>
</PropertyGroup>
Expand All @@ -23,7 +23,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fonlow.Poco2TsCore" Version="3.8.0" />
<PackageReference Include="Fonlow.Poco2TsCore" Version="3.8.1" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.14" />
<PackageReference Include="Tavis.UriTemplates" Version="2.0.0" />
</ItemGroup>
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-$([System.DateTime]::Now.Year)</Copyright>
<Version>3.1.3</Version>
<Version>3.1.4</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
2 changes: 1 addition & 1 deletion TestReleaseAll.ps1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dotnet test --verbosity normal --configuration Release
dotnet test --verbosity normal --configuration Release --no-build
2 changes: 1 addition & 1 deletion Tests/ClientCodesValidation/ClientCodesValidation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
<PackageReference Include="System.CodeDom" Version="8.0.0" />
</ItemGroup>

Expand Down

0 comments on commit df1585c

Please sign in to comment.