Skip to content

Commit

Permalink
Merge pull request #59 from marcominerva/develop
Browse files Browse the repository at this point in the history
Update samples
  • Loading branch information
marcominerva authored Jun 17, 2024
2 parents d220b2d + 925a8f5 commit 4d7509c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/Controllers/OperationResults.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

// If you just want to directly use HTTP status codes as failure reasons, set the following property to false.
// In this way, the code you use with Result.Fail() will be used as response status code with no further mapping.
// options.MapStatusCodes = false;
//options.MapStatusCodes = false;
},
//updateModelStateResponseFactory: true);
// Passing a validation error default message or a validation error message provider automatically update the ModelStateResponseFactory.
Expand Down
2 changes: 1 addition & 1 deletion samples/MinimalApis/OperationResults.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

// If you just want to directly use HTTP status codes as failure reasons, set the following property to false.
// In this way, the code you use with Result.Fail() will be used as response status code with no further mapping.
options.MapStatusCodes = false;
//options.MapStatusCodes = false;
});

builder.Services.AddEndpointsApiExplorer();
Expand Down

0 comments on commit 4d7509c

Please # to comment.