update backend/shared docs

This commit is contained in:
Aaron Po
2026-08-04 06:19:10 -04:00
parent 64302286fb
commit 7a0620337d
2 changed files with 4 additions and 15 deletions

View File

@@ -5,9 +5,8 @@ using MediatR;
namespace Shared.Application.Behaviors;
/// <summary>
/// MediatR pipeline behavior that runs all registered FluentValidation validators for a
/// request before invoking its handler, short-circuiting with a <see cref="ValidationException" />
/// when any validator reports failures.
/// MediatR pipeline behavior that runs registered FluentValidation validators before the handler,
/// throwing <see cref="ValidationException" /> if any report failures.
/// </summary>
public class ValidationBehavior<TRequest, TResponse>(IEnumerable<IValidator<TRequest>> validators)
: IPipelineBehavior<TRequest, TResponse>