Skip to content

Commit

Permalink
v3.0.1, #61
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianhuang committed Feb 2, 2024
1 parent 258e148 commit a2c1ffb
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 24 deletions.
Binary file modified Docs/Images/TestSuitesInitial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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</Version>
<Version>3.0.1</Version>
<PackageReleaseNotes>.NET 7</PackageReleaseNotes>
</PropertyGroup>

Expand Down
22 changes: 11 additions & 11 deletions Fonlow.OpenApiClientGen.ClientTypes/Interfaces.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Microsoft.OpenApi.Models;
using System.CodeDom;

namespace Fonlow.OpenApiClientGen.ClientTypes
{
using Microsoft.OpenApi.Models;
using System.CodeDom;

namespace Fonlow.OpenApiClientGen.ClientTypes
{
/// <summary>
/// OpenApi Components to CodeDOM.
/// </summary>
public interface IComponentToCodeDom
{
CodeTypeReference PropertySchemaToCodeTypeReference(OpenApiSchema propertySchema, string containerName, string propertyName);
}
}
/// </summary>
public interface IComponentToCodeDom
{
CodeTypeReference PropertySchemaToCodeTypeReference(OpenApiSchema propertySchema, string containerName, string propertyName);
}
}
2 changes: 1 addition & 1 deletion Fonlow.OpenApiClientGen.ClientTypes/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public class Settings : ISettings
public bool UseSystemTextJson { get; set; }

/// <summary>
/// For date type, generate DateOnly property. Default true. If false, generate DateTimeOffset decorated by System.ComponentModel.DataAnnotations.DataTypeAttribute(System.ComponentModel.DataAnnotationsDataType.Date)
/// For date type, generate DateOnly property. Default true. If false, generate DateTimeOffset decorated by System.ComponentModel.DataAnnotations.DataTypeAttribute(System.ComponentModel.DataAnnotations.DataType.Date)
/// </summary>
public bool DateToDateOnly { get; set; } = true;

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</Version>
<Version>3.0.1</Version>
<PackageTags>Swagger, Open API Specification, C#, .NET Core, Web API, TypeScript, Angular, YAML</PackageTags>
<PackageReleaseNotes>* Angular FormGroup; * optional null type.</PackageReleaseNotes>
</PropertyGroup>
Expand Down
9 changes: 0 additions & 9 deletions Tests/SwagTests/CodeGenCsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,5 @@ public void Testwebhook31()
GenerateAndAssertAndBuild("SwagMock\\webhook31.yaml", "Results\\webhook31.txt");
}



//[Fact]
//public void TestXero_projects() in getTasks, parameter chargeType has no in field which is required.
//{
// helper.GenerateFromOpenApiAndBuild("SwagMock\\Xero-projects.yaml", "Results\\Xero-projects.txt");
//}


}
}
2 changes: 1 addition & 1 deletion Tests/SwagTests/ComponentsToCsTypesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public class Pet
/// </summary>
public string PetType { get; set; }//;
[System.ComponentModel.DataAnnotations.DataTypeAttribute(System.ComponentModel.DataAnnotationsDataType.Date)]
[System.ComponentModel.DataAnnotations.DataTypeAttribute(System.ComponentModel.DataAnnotations.DataType.Date)]
public System.Nullable<System.DateTimeOffset> BirthDate { get; set; }//;
/// <summary>
Expand Down

0 comments on commit a2c1ffb

Please sign in to comment.