Skip to content

Commit

Permalink
Releasing 2.2.0 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaopeng-gh authored Nov 7, 2022
1 parent 050fc37 commit 7605ae5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Json.Schema.ToDotNet.UnitTests/DataModelGeneratorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public void GeneratesPropertiesWithNumberTypes()
namespace N
{
[DataContract]
[GeneratedCode(""Microsoft.Json.Schema.ToDotNet"", ""2.1.0.0"")]
[GeneratedCode(""Microsoft.Json.Schema.ToDotNet"", """ + VersionConstants.FileVersion + @""")]
public partial class C
{
[DataMember(Name = ""numberProperty_default"", IsRequired = false, EmitDefaultValue = false)]
Expand Down Expand Up @@ -534,7 +534,7 @@ public partial class C
namespace N
{
[DataContract]
[GeneratedCode(""Microsoft.Json.Schema.ToDotNet"", ""2.1.0.0"")]
[GeneratedCode(""Microsoft.Json.Schema.ToDotNet"", """ + VersionConstants.FileVersion + @""")]
public partial class C
{
[DataMember(Name = ""numberProperty_default"", IsRequired = false, EmitDefaultValue = false)]
Expand Down Expand Up @@ -577,7 +577,7 @@ public partial class C
namespace N
{
[DataContract]
[GeneratedCode(""Microsoft.Json.Schema.ToDotNet"", ""2.1.0.0"")]
[GeneratedCode(""Microsoft.Json.Schema.ToDotNet"", """ + VersionConstants.FileVersion + @""")]
public partial class C
{
[DataMember(Name = ""numberProperty_default"", IsRequired = false, EmitDefaultValue = false)]
Expand Down
2 changes: 1 addition & 1 deletion src/ReleaseHistory.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Microsoft Json Schema Packages

## **Unreleased**
## **2.2.0** [Pointer](https://www.nuget.org/packages/Microsoft.Json.Pointer/2.2.0) | [Schema](https://www.nuget.org/packages/Microsoft.Json.Schema/2.2.0)| [Schema.ToDotNet](https://www.nuget.org/packages/Microsoft.Json.Schema.ToDotNet/2.2.0)| [Schema.Validation](https://www.nuget.org/packages/Microsoft.Json.Schema.Validation/2.2.0)
* BREAKING: .NET type to express Json integers now will be nullable if the property is not required and also without default. [#167](https://github.com/microsoft/jschema/pull/167)
* FEATURE: Add new option for specifying .NET type to express Json numbers: `--generate-json-number-as = double | float | decimal` with a default of `double`. [#166](https://github.com/microsoft/jschema/pull/166)

Expand Down
2 changes: 1 addition & 1 deletion src/build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Company Condition=" '$(Company)' == '' ">Microsoft</Company>
<Product Condition=" '$(Product)' == '' ">JSON Schema</Product>
<Copyright Condition=" '$(Copyright)' == '' ">© Microsoft Corporation. All rights reserved.</Copyright>
<VersionPrefix>2.1.0</VersionPrefix>
<VersionPrefix>2.2.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>

Expand Down

0 comments on commit 7605ae5

Please sign in to comment.