Skip to content

Commit e1fbb7f

Browse files
authored
Merge pull request #50 from icnocop/patch-1
Fixed typo in README.md
2 parents eb7fd03 + 5457ca2 commit e1fbb7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ builder.Services.AddFluentValidationAutoValidation(configuration =>
9191
// Disable the built-in .NET model (data annotations) validation.
9292
configuration.DisableBuiltInModelValidation = true;
9393
94-
// Only validate controllers decorated with the `FluentValidationAutoValidation` attribute.
95-
configuration.ValidationStrategy = ValidationStrategy.Annotation;
94+
// Only validate controllers decorated with the `AutoValidation` attribute.
95+
configuration.ValidationStrategy = ValidationStrategy.Annotations;
9696
9797
// Enable validation for parameters bound from `BindingSource.Body` binding sources.
9898
configuration.EnableBodyBindingSourceAutomaticValidation = true;
@@ -275,4 +275,4 @@ private class TestValidator : AbstractValidator<TestModel>, IValidatorIntercepto
275275
return null;
276276
}
277277
}
278-
```
278+
```

0 commit comments

Comments
 (0)