Skip to content

Commit

Permalink
Downgrade System.Text.Json to 4.7.2 (Kros-sk#24)
Browse files Browse the repository at this point in the history
* Downgrade System.Text.Json to 4.7.2
* Version 1.3.1
  • Loading branch information
satano authored Mar 25, 2022
1 parent bfea969 commit dd92538
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/Kros.KORM.Extensions.Asp.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Company>KROS a. s.</Company>
<Version>1.3.0</Version>
<Version>1.3.1</Version>
<Authors>KROS a. s.</Authors>
<Title>Kros.KORM.Extensions.Asp</Title>
<Description>Extensions for Kros.KORM library for ASP.NET Core projects.</Description>
Expand Down Expand Up @@ -52,7 +52,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.14" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.14" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions tests/Converters/JsonConverterShould.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public void ConvertEntityToJson()
var actual = converter.ConvertBack(GetSampleClass());

actual.Should().BeOfType(typeof(string));
((string)actual).Should().Equals(expected);
((string)actual).Should().Be(expected);
}

private TestClass GetSampleClass()
=> new TestClass()
{
BoolProperty = true,
StringProperty = "LoremIpsum",
DoubleProperty = Math.PI,
DoubleProperty = 3.14,
ArrayProperty = new int[] { 4, 8, 15, 16, 23, 42 },
ObjectProperty = new TestClass() { StringProperty = "DolorSitAmet" }
};
Expand All @@ -82,7 +82,7 @@ private string GetSampleJson()
@"{
""BoolProperty"":true,
""StringProperty"":""LoremIpsum"",
""DoubleProperty"":3.1415926535897931,
""DoubleProperty"":3.14,
""ArrayProperty"":[4,8,15,16,23,42],
""ObjectProperty"":
{
Expand All @@ -99,7 +99,7 @@ private string GetSampleImproperlyFormattedJson()
@"{
""boolProperty"":true,
""stringProperty"":""LoremIpsum"",
""doubleProperty"":3.1415926535897931,
""doubleProperty"":3.14,
""arrayProperty"":[4,8,15,16,23,42],
""objectProperty"":
{
Expand Down
18 changes: 9 additions & 9 deletions tests/Kros.KORM.Extensions.Api.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Kros.Utils" Version="1.18.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="NSubstitute" Version="4.2.2" />
<PackageReference Include="FluentAssertions" Version="6.5.1" />
<PackageReference Include="Kros.Utils" Version="1.19.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NSubstitute" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit dd92538

Please sign in to comment.