Skip to content

Commit

Permalink
Updated README.md to indicate the validator requirements (#164)
Browse files Browse the repository at this point in the history
The validator must be publicly accessible and inherit directly from `AbstractValidator<T>`.

Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
  • Loading branch information
icnocop and chrissainty authored Dec 30, 2022
1 parent 25ca8ad commit 38d8fe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ You can find examples of different configurations in the sample projects. The Bl

**Note:** When scanning assemblies the component will swallow any exceptions thrown by that process. This is to stop exceptions thrown by scanning third party dependencies crashing your app.

The validator must be publicly accessible and inherit directly from `AbstractValidator<T>`.

## Async Validation
If you're using async validation, you can use the `ValidateAsync` method on the `FluentValidationValidator`.

Expand Down Expand Up @@ -127,4 +129,4 @@ The second is when manually validating the model using the `Validate` or `Valida
private void PartialValidate()
=> _fluentValidationValidator?.Validate(options => options.IncludeRuleSets("Names"));
}
```
```

0 comments on commit 38d8fe4

Please sign in to comment.