File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public static IEndpointRouteBuilder MapTodoApiRoutes(this IEndpointRouteBuilder
52
52
ITodoService service ,
53
53
CancellationToken cancellationToken ) =>
54
54
{
55
- if ( model is null || string . IsNullOrWhiteSpace ( model . Text ) )
55
+ if ( string . IsNullOrWhiteSpace ( model . Text ) )
56
56
{
57
57
return Results . Problem ( "No item text specified." , statusCode : StatusCodes . Status400BadRequest ) ;
58
58
}
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public static IServiceCollection AddGitHubAuthentication(this IServiceCollection
55
55
options . ClaimActions . MapJsonKey ( GitHubAvatarClaim , "avatar_url" ) ;
56
56
}
57
57
} )
58
+ . ValidateOnStart ( )
58
59
. Services ;
59
60
}
60
61
Original file line number Diff line number Diff line change 6
6
<TypeScriptCompileBlocked >true</TypeScriptCompileBlocked >
7
7
<TypeScriptToolsVersion >latest</TypeScriptToolsVersion >
8
8
<UserSecretsId >TodoApp</UserSecretsId >
9
+ <Nullable >enable</Nullable >
9
10
</PropertyGroup >
10
11
<ItemGroup >
11
12
<PackageReference Include =" AspNet.Security.OAuth.GitHub" Version =" 6.0.0-preview.6.21378.61" />
You can’t perform that action at this time.
0 commit comments