Skip to content

Commit

Permalink
Bump the .NET SDK/runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Jun 2, 2023
1 parent 8777dc9 commit 3677001
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions 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": {
Expand Down
8 changes: 4 additions & 4 deletions src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs
Expand Up @@ -117,10 +117,10 @@ public int Count

// 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
Expand Down

0 comments on commit 3677001

Please sign in to comment.