Browse Source

Bump the .NET SDK/runtimes

pull/1782/head
Kévin Chalet 3 years ago
parent
commit
5501b3df0e
  1. 4
      .github/workflows/build.yml
  2. 12
      global.json
  3. 8
      src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs

4
.github/workflows/build.yml

@ -33,8 +33,8 @@ jobs:
with:
dotnet-version: |
3.1.426
6.0.404
7.0.101
6.0.408
7.0.302
- name: Setup NuGet
uses: nuget/setup-nuget@v1

12
global.json

@ -1,12 +1,20 @@
{
"sdk": {
"version": "7.0.203",
"version": "7.0.302",
"allowPrerelease": true,
"rollForward": "major"
},
"tools": {
"dotnet": "7.0.203"
"dotnet": "7.0.302",
"runtimes": {
"aspnetcore": [
"3.1.32",
"6.0.16",
"7.0.5"
]
}
},
"msbuild-sdks": {

8
src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs

@ -117,10 +117,10 @@ public readonly struct OpenIddictParameter : IEquatable<OpenIddictParameter>
// If the parameter is a JsonValue wrapping a well-known primitive type
// (e.g int or string), always return 0 as these types can't have a length.
JsonValue value when value.TryGetValue(out bool _) ||
value.TryGetValue(out int _) ||
value.TryGetValue(out long _) ||
value.TryGetValue(out string _) => 0,
JsonValue value when value.TryGetValue(out bool _) ||
value.TryGetValue(out int _) ||
value.TryGetValue(out long _) ||
value.TryGetValue(out string? _) => 0,
// If the parameter is any other JsonNode (e.g a JsonValue), serialize it
// to a JsonElement first to determine its actual JSON representation

Loading…
Cancel
Save