Skip to content

Commit f14fcff

Browse files
authored
Merge pull request #101 from cnblogs/require-stj-8.0
fix: require system.text.json 8.0 for compatibility issue
2 parents e188f5a + 67e7778 commit f14fcff

File tree

4 files changed

+2
-140
lines changed

4 files changed

+2
-140
lines changed

src/Cnblogs.DashScope.Core/Cnblogs.DashScope.Core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="Microsoft.DeepDev.TokenizerLib" Version="1.3.3" />
16+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
1617
</ItemGroup>
1718

1819
</Project>

src/Cnblogs.DashScope.Core/DashScopeClientCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class DashScopeClientCore : IDashScopeClient
1818
new()
1919
{
2020
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
21-
PropertyNamingPolicy = JsonSnakeCaseLowerNamingPolicy.SnakeCaseLower,
21+
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower
2222
};
2323

2424
private readonly HttpClient _httpClient;

src/Cnblogs.DashScope.Core/Internals/JsonSeparatorNamingPolicy.cs

Lines changed: 0 additions & 128 deletions
This file was deleted.

src/Cnblogs.DashScope.Core/Internals/JsonSnakeCaseLowerNamingPolicy.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)