Skip to content

Commit

Permalink
Merge pull request #14 from ejball/float
Browse files Browse the repository at this point in the history
  • Loading branch information
ejball authored Jan 14, 2025
2 parents b5d1666 + 40f7f6c commit 0e5f9d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>

<PropertyGroup>
<VersionPrefix>2.7.0</VersionPrefix>
<PackageValidationBaselineVersion>2.6.2</PackageValidationBaselineVersion>
<VersionPrefix>2.8.0</VersionPrefix>
<PackageValidationBaselineVersion>2.7.0</PackageValidationBaselineVersion>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Facility.CodeGen.Console" Version="2.15.0" />
<PackageVersion Include="Facility.Definition" Version="2.15.0" />
<PackageVersion Include="Facility.CodeGen.Console" Version="2.16.0" />
<PackageVersion Include="Facility.Definition" Version="2.16.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 2.8.0

* Support `float` field type.

## 2.7.0

* Drop support for end-of-life frameworks.
Expand Down
2 changes: 2 additions & 0 deletions src/Facility.Definition.Swagger/SwaggerGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ private static T GetTypeSchema<T>(ServiceTypeInfo type)
return new T { Type = SwaggerSchemaType.String };
case ServiceTypeKind.Boolean:
return new T { Type = SwaggerSchemaType.Boolean };
case ServiceTypeKind.Float:
return new T { Type = SwaggerSchemaType.Number, Format = SwaggerSchemaTypeFormat.Float };
case ServiceTypeKind.Double:
return new T { Type = SwaggerSchemaType.Number, Format = SwaggerSchemaTypeFormat.Double };
case ServiceTypeKind.Int32:
Expand Down

0 comments on commit 0e5f9d5

Please sign in to comment.