Skip to content

Commit

Permalink
EES-5084 Add ProblemDetailsResultFilter to admin
Browse files Browse the repository at this point in the history
This fixes incorrectly formatted validation error responses.
  • Loading branch information
ntsim committed Apr 25, 2024
1 parent f307098 commit 70aeadb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public virtual void ConfigureServices(IServiceCollection services)
{
options.Filters.Add(new AuthorizeFilter(SecurityPolicies.RegisteredUser.ToString()));
options.Filters.Add(new OperationCancelledExceptionFilter());
options.Filters.Add(new ProblemDetailsResultFilter());
options.EnableEndpointRouting = false;
options.AllowEmptyInputInBodyModelBinding = true;
})
Expand Down

0 comments on commit 70aeadb

Please sign in to comment.