From 7f76b65ae1ee580ee48de12944d58d8600100252 Mon Sep 17 00:00:00 2001 From: Shaopeng Li Date: Mon, 7 Nov 2022 08:51:02 -0800 Subject: [PATCH] Releasing 2.2.0 --- .../DataModelGeneratorTests.cs | 6 +++--- src/ReleaseHistory.md | 2 +- src/build.props | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Json.Schema.ToDotNet.UnitTests/DataModelGeneratorTests.cs b/src/Json.Schema.ToDotNet.UnitTests/DataModelGeneratorTests.cs index 3b3b50f..4cf877c 100644 --- a/src/Json.Schema.ToDotNet.UnitTests/DataModelGeneratorTests.cs +++ b/src/Json.Schema.ToDotNet.UnitTests/DataModelGeneratorTests.cs @@ -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)] @@ -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)] @@ -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)] diff --git a/src/ReleaseHistory.md b/src/ReleaseHistory.md index 697ca83..19facbe 100644 --- a/src/ReleaseHistory.md +++ b/src/ReleaseHistory.md @@ -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) diff --git a/src/build.props b/src/build.props index 49c16a0..ee38206 100644 --- a/src/build.props +++ b/src/build.props @@ -9,7 +9,7 @@ Microsoft JSON Schema © Microsoft Corporation. All rights reserved. - 2.1.0 + 2.2.0