diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d610863..e2c3d751 100644 --- a/.github/workflows/build.yml +++ b/.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 diff --git a/global.json b/global.json index 45e9ccc4..0dd10c6f 100644 --- a/global.json +++ b/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": { diff --git a/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs b/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs index 498404e3..d8da9035 100644 --- a/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs +++ b/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs @@ -117,10 +117,10 @@ public readonly struct OpenIddictParameter : IEquatable // 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